ilch Forum » Allgemein » HTML, PHP, SQL,... » Profil edit

Geschlossen
  1. #1
    User Pic
    freak Mitglied
    Registriert seit
    31.01.2007
    Beiträge
    856
    Beitragswertungen
    0 Beitragspunkte
    Ich bastel hier grad an der profil edit ich das problem das wenn ich die pms erlaube dann wird mir alles wieder gelöscht also ich mach user drüfen mir pms schicken auf ja dann sind alle vorherigen einträge weg.

    ich weis nicht wo der fehler liegt.
    hier mal meine php und html

    <?php
    
    
    defined ('main') or die ( 'no direct access' );
    
    
    
    $title = $allgAr['title'].' :: Users :: Profil';
    $hmenu  = $extented_forum_menu.'<a class="smalfont" href="?user">Users</a><b> &raquo; </b> Profil'.$extented_forum_menu_sufix;
    $design = new design ( $title , $hmenu, 1);
    
    if ( $_SESSION['authright'] <= -1 ) {
    
    if ( empty ($_POST['submit']) ) {
    
      $design->header();
    	$abf = 'SELECT email,vorname,nachname,strasse,postleitzahl,statussc,tag,monat,jahr,wohnort,homepage,aim,msn,icq,yahoo,avatar,status,staat,gebdatum,sig,opt_pm_popup,opt_pm,opt_mail,geschlecht,spezrank,wim,winm,hobbys,forumavatar,hoere,familienstand,musik,raucher,kinder,bildung,tatigkeit,beruf,firma,sprachen,nationalitaet FROM `prefix_user` WHERE id = "'.$_SESSION['authid'].'"';
    	$erg = db_query($abf);
    	if ( db_num_rows($erg) > 0 ) {
    	  $row = db_fetch_assoc($erg);
    
    	$titelseite = db_fetch_assoc(db_query("SELECT txt FROM `prefix_user-profil` WHERE uid = '".$_SESSION['authid']."'"));
    	$row['titelseite'] = $titelseite['txt'];
    	
    	
    	$userconfig = db_fetch_assoc(db_query("SELECT buttonfarbe, buttonfarbehover , borderfarbe, background, menuschrift, profilschrift, ueberschrift  FROM `prefix_user-config` WHERE uid = '".$_SESSION['authid']."'"));	
    	$row['menufarbe'] = $userconfig['buttonfarbe'];
    	$row['menufarbehover'] = $userconfig['buttonfarbehover'];
    	$row['menuschrift'] = $userconfig['menuschrift'];
    	$row['borderfarbe'] = $userconfig['borderfarbe'];
    	$row['profilschrift'] = $userconfig['profilschrift'];
    	$row['uberschrift'] = $userconfig['ueberschrift'];
    	$row['uberschrift'] = $userconfig['ueberschrift'];
    	$row['background'] = ( file_exists ( $userconfig['background'] ) ? '<a href="'.$userconfig['background'].'" target="_blank"><img src="'.$userconfig['background'].'" width="210" height="210" border="0" alt=""></a><br />' : '' );
    	
    		$tpl = new tpl ('user/profil_edit');
    		$row['staat'] = '<option></option>'.arliste ( $row['staat'] , get_nationality_array() , $tpl , 'staat' );
        $row['geschlecht0'] = ( $row['geschlecht'] < 1 ? 'checked' : '' );
        $row['geschlecht1'] = ( $row['geschlecht'] == 1 ? 'checked' : '' );
        $row['geschlecht2'] = ( $row['geschlecht'] == 2 ? 'checked' : '' );
        if ( $row['status'] == 1 ) { $row['status1'] = 'checked'; $row['status0'] = ''; } else { $row['status1'] = ''; $row['status0'] = 'checked'; }
        if ( $row['opt_mail'] == 1 ) { $row['opt_mail1'] = 'checked'; $row['opt_mail0'] = ''; } else { $row['opt_mail1'] = ''; $row['opt_mail0'] = 'checked'; }
        if ( $row['opt_pm'] == 1 ) { $row['opt_pm1'] = 'checked'; $row['opt_pm0'] = ''; } else { $row['opt_pm1'] = ''; $row['opt_pm0'] = 'checked'; }
        if ( $row['opt_pm_popup'] == 1 ) { $row['opt_pm_popup1'] = 'checked'; $row['opt_pm_popup0'] = ''; } else { $row['opt_pm_popup1'] = ''; $row['opt_pm_popup0'] = 'checked'; }
        $row['forumbild'] = ( file_exists ( $row['forumavatar'] ) ? '<img src="'.$row['forumavatar'].'" alt=""><br />' : '' );
        $row['avatarbild'] = ( file_exists ( $row['avatar'] ) ? '<img src="'.$row['avatar'].'" alt=""><br />' : '' );
    	$hoere = array ('1'=>'JA','2'=>'Nein');
    	$row['hoere2'] = $hoere[$row['hoere']];
    	$row['pobreite'] = $allgAr['pobreite'];
        $row['pohohe'] = $allgAr['pohohe'];
        $row['posize'] = $allgAr['posize'];
    	###noch net fertig ab hier
    	$row['Fobreite'] = $allgAr['Fobreite'];
        $row['Fohohe'] = $allgAr['Fohohe'];
        $row['Fosize'] = $allgAr['Fosize'];
        $row['Fabreite'] = $allgAr['Fabreite'];
        $row['Fahohe'] = $allgAr['Fahohe'];
        $row['Fasize'] = $allgAr['Fasize'];
        $row['forum_max_sig'] = $allgAr['forum_max_sig'];
        $row['uid'] = $_SESSION['authid'];
        $row['forum_usergallery'] = $allgAr['forum_usergallery'];
        $tpl->set_ar_out($row,0);
        if ($allgAr['forum_avatar_upload'])
    	if ($allgAr['forum_forumavatar_upload'])
    	if ($allgAr['forum_background_upload']) $tpl->out(1);
        $tpl->set_ar_out($row,2);
    		profilefields_change ( $_SESSION['authid'] );
    		$tpl->out(3);
    
      } else {
        $tpl = new tpl ( 'user/login.htm' );
        $tpl->set_out('WDLINK','index.php',0);
    	}
    
    } else {  # submit
    
      # change poassword
    	if ( !empty($_POST['np1']) AND !empty($_POST['np2']) AND !empty($_POST['op'])) {
        if ($_POST['np1'] == $_POST['np2']) {
    		  $akpw = db_result(db_query("SELECT pass FROM prefix_user WHERE id = ".$_SESSION['authid']),0);
    			if ($akpw == md5($_POST['op'])) {
    			  $newpw = md5($_POST['np1']);
    				db_query("UPDATE prefix_user SET pass = '".$newpw."' WHERE id = ".$_SESSION['authid']);
            setcookie(session_und_cookie_name(), $_SESSION['authid'].'='.$newpw, time() + 31104000, "/" );
    				$fmsg = $lang['passwortchanged'];
    			} else {
    		    $fmsg = $lang['passwortwrong'];
    		  }
    		} else {
    		  $fmsg = $lang['passwortnotequal'];
    	  }
      }
    
      # avatar speichern START
    			$avatar_sql_update = '';
          if ( !empty ( $_FILES['avatarfile']['name'] ) AND $allgAr['forum_avatar_upload'] ) {
    				$file_tmpe = $_FILES['avatarfile']['tmp_name'];
            $rile_type = ic_mime_type ($_FILES['avatarfile']['tmp_name']);
    				$file_type = $_FILES['avatarfile']['type'];
    				$file_size = $_FILES['avatarfile']['size'];
            $fmsg = $lang['avatarisnopicture'];
            $size  = @getimagesize ($file_tmpe);
            $endar = array (1 => 'gif', 2 => 'jpg', 3 => 'png');
    				if ( ($size[2] == 1 OR $size[2] == 2 OR $size[2] == 3) AND $size[0] > 10 AND $size[1] > 10 AND substr ( $file_type , 0 , 6 ) == 'image/' AND substr ( $rile_type , 0 , 6 ) == 'image/' ) {
    				  $endung = $endar[$size[2]];
              $breite = $size[0];
              $hoehe  = $size[1];
              $fmsg = $lang['avatarcannotupload'];
    				  if ( $file_size <= $allgAr['Fasize'] AND $breite <= $allgAr['Fabreite'] AND $hoehe <=  $allgAr['Fahohe'] ) {
    					  $neuer_name = 'include/images/avatars/'.$_SESSION['authid'].'.'.$endung;
    						@unlink (db_result(db_query("SELECT avatar FROM prefix_user WHERE id = ".$_SESSION['authid']),0));
                move_uploaded_file ( $file_tmpe , $neuer_name );
                @chmod($neuer_name, 0777);
                $avatar_sql_update = "avatar = '".$neuer_name."',";
                $fmsg = $lang['pictureuploaded'];
    					}
    				}
    			} elseif ( isset($_POST['avatarloeschen']) ) {
            $fmsg = $lang['picturedelete'];
            @unlink (db_result(db_query("SELECT avatar FROM prefix_user WHERE id = ".$_SESSION['authid']),0));
            $avatar_sql_update = "avatar = '',";
          }
      # avatar speichern ENDE
      
      # forumavatar speichern START
    			$forumavatar_sql_update = '';
          if ( !empty ( $_FILES['forumfile']['name'] ) AND $allgAr['forum_forumavatar_upload'] ) {
    				$file_tmpe = $_FILES['forumfile']['tmp_name'];
            $rile_type = ic_mime_type ($_FILES['forumfile']['tmp_name']);
    				$file_type = $_FILES['forumfile']['type'];
    				$file_size = $_FILES['forumfile']['size'];
            $fmsg = $lang['avatarisnopicture'];
            $size  = @getimagesize ($file_tmpe);
            $endar = array (1 => 'gif', 2 => 'jpg', 3 => 'png');
    				if ( ($size[2] == 1 OR $size[2] == 2 OR $size[2] == 3) AND $size[0] > 10 AND $size[1] > 10 AND substr ( $file_type , 0 , 6 ) == 'image/' AND substr ( $rile_type , 0 , 6 ) == 'image/' ) {
    				  $endung = $endar[$size[2]];
              $breite = $size[0];
              $hoehe  = $size[1];
              $fmsg = $lang['avatarcannotupload'];
    				  if ( $file_size <= $allgAr['Fosize'] AND $breite <= $allgAr['Fobreite'] AND $hoehe <=  $allgAr['Fohohe'] ) {
    					  $neuer_name = 'include/images/forumavatars/'.$_SESSION['authid'].'.'.$endung;
    						@unlink (db_result(db_query("SELECT forumavatar FROM prefix_user WHERE id = ".$_SESSION['authid']),0));
                move_uploaded_file ( $file_tmpe , $neuer_name );
                @chmod($neuer_name, 0777);
                $forumavatar_sql_update = "forumavatar = '".$neuer_name."',";
                $fmsg = $lang['pictureuploaded'];
    					}
    				}
    			} elseif ( isset($_POST['forumloeschen']) ) {
            $fmsg = $lang['picturedelete'];
            @unlink (db_result(db_query("SELECT forumavatar FROM prefix_user WHERE id = ".$_SESSION['authid']),0));
            $forumavatar_sql_update = "forumavatar = '',";
          }
      # forumavatar speichern ENDE
      
      # Backgroundpic speichern START
          if ( !empty ( $_FILES['backgroundfile']['name'] ) AND $allgAr['forum_background_upload'] ) {
    				$file_tmpe = $_FILES['backgroundfile']['tmp_name'];
            $rile_type = ic_mime_type ($_FILES['backgroundfile']['tmp_name']);
    				$file_type = $_FILES['backgroundfile']['type'];
    				$file_size = $_FILES['backgroundfile']['size'];
            $fmsg = $lang['avatarisnopicture'];
            $size  = @getimagesize ($file_tmpe);
            $endar = array (1 => 'gif', 2 => 'jpg', 3 => 'png');
    				if ( ($size[2] == 1 OR $size[2] == 2 OR $size[2] == 3) AND $size[0] > 10 AND $size[1] > 10 AND substr ( $file_type , 0 , 6 ) == 'image/' AND substr ( $rile_type , 0 , 6 ) == 'image/' ) {
    				  $endung = $endar[$size[2]];
              $breite = $size[0];
              $hoehe  = $size[1];
              $fmsg = $lang['avatarcannotupload'];
    				  if ( $file_size <= $allgAr['posize'] AND $breite <= $allgAr['pobreite'] AND $hoehe <=  $allgAr['pohohe'] ) {
    					  $neuer_name = 'include/images/userdetails/'.$_SESSION['authid'].'.'.$endung;
    						@unlink (db_result(db_query("SELECT background FROM `prefix_user-config` WHERE uid = ".$_SESSION['authid']),0));
                move_uploaded_file ( $file_tmpe , $neuer_name );
                @chmod($neuer_name, 0777);
                $background_sql_update = $neuer_name;
                $fmsg = $lang['pictureuploaded'];
    					}
    				}
    			} elseif ( isset($_POST['backgroundloeschen']) ) {
            $fmsg = $lang['picturedelete'];
            @unlink (db_result(db_query("SELECT background FROM `prefix_user-config` WHERE uid = ".$_SESSION['authid']),0));
            $background_sql_update = "background = '',";
          }
      # Backgroundpic speichern ENDE
    
    
      # email aendern
      if ($_POST['email'] != $_POST['aemail']) {
        $id = $_SESSION['authid'].'||'.md5 (uniqid (rand()));
        db_query("INSERT INTO prefix_usercheck (`check`,email,datime,ak)
        VALUES ('".$id."','".escape($_POST['email'],'string')."',NOW(),3)");
        $page = $_SERVER["HTTP_HOST"].$_SERVER["SCRIPT_NAME"];
        $text = $lang['changedthemail'] . sprintf ($lang['registconfirmlink'], $page, $id );
        icmail ($_POST['email'], $lang['mail'].' '.$lang['changed'], $text );
        $fmsg = $lang['pleaseconfirmmail'];
      }
      #
    
      #remove account
      if (isset($_POST['removeaccount'])) {
        $id = $_SESSION['authid'].'-remove-'.md5 (uniqid (rand()));
        db_query("INSERT INTO prefix_usercheck (`check`,email,datime,ak)
        VALUES ('".$id."','".escape($_POST['email'],'string')."',NOW(),5)");
        $page = $_SERVER["HTTP_HOST"].$_SERVER["SCRIPT_NAME"];
        $text = $lang['removeconfirm'] . sprintf ($lang['registconfirmlink'], $page, $id );
        icmail ($_POST['email'], html_entity_decode($lang['removeaccount']), $text );
        $fmsg = $lang['pleaseconfirmremove'];
      }
      #remove account
    		
    		$usercon = db_fetch_assoc(db_query("SELECT uid FROM `prefix_user-config` WHERE uid = ".$_SESSION['authid']));
    
    		if(empty($usercon['uid'])) {
    		db_query("INSERT INTO `prefix_user-config` (buttonfarbe, buttonfarbehover, borderfarbe, menuschrift, profilschrift, ueberschrift, uid) VALUES ('".escape($_POST['menufarbe'], 'string')."', '".escape($_POST['menufarbehover'], 'string')."', '".escape($_POST['borderfarbe'], 'string')."', '".escape($_POST['menuschrift'], 'string')."', '".escape($_POST['profilschrift'], 'string')."', '".escape($_POST['ueberschrift'], 'string')."', '".$_SESSION['authid']."')");
    		}else{
    		db_query("UPDATE `prefix_user-config` SET buttonfarbe = '".escape($_POST['menufarbe'], 'string')."', buttonfarbehover = '".escape($_POST['menufarbehover'], 'string')."', borderfarbe = '".escape($_POST['borderfarbe'], 'string')."', menuschrift = '".escape($_POST['menuschrift'], 'string')."', profilschrift = '".escape($_POST['profilschrift'], 'string')."', ueberschrift = '".escape($_POST['ueberschrift'], 'string')."' WHERE uid = '".$_SESSION['authid']."'");
    		}
    		
    		if(!empty($background_sql_update)) {
    		db_query("UPDATE `prefix_user-config` SET background = '".$background_sql_update."' WHERE uid = ".$_SESSION['authid']);
    		}
      # statische felder speichern
    		  db_query("UPDATE prefix_user
    			  SET
    	  
    		  strasse = '".escape($_POST['strasse'], 'string')."',
    		  postleitzahl = '".escape($_POST['postleitzahl'], 'string')."',
    		  wohnort = '".escape($_POST['wohnort'], 'string')."',
    		  
    		  
    		  familienstand = '".escape($_POST['familienstand'], 'string')."',
    		  musik = '".escape($_POST['musik'], 'string')."',
    		  raucher = '".escape($_POST['raucher'], 'string')."',
    		  kinder = '".escape($_POST['kinder'], 'string')."',
    		  nationalitaet = '".escape($_POST['nationalitaet'], 'string')."',
    		  staat = '".escape($_POST['staat'], 'string')."',
    		  bildung = '".escape($_POST['bildung'], 'string')."',
    		  tatigkeit = '".escape($_POST['tatigkeit'], 'string')."',
    		  beruf = '".escape($_POST['beruf'], 'string')."',
    		  firma = '".escape($_POST['firma'], 'string')."',
    		  sprachen = '".escape($_POST['sprachen'], 'string')."',
    		  homepage = '".get_homepage(escape($_POST['homepage'], 'string'))."',
    		  aim = '".escape($_POST['aim'], 'string')."',
    		  msn = '".escape($_POST['msn'], 'string')."',
              yahoo = '".escape($_POST['yahoo'], 'string')."',
    		  icq = '".escape($_POST['icq'], 'string')."',
    		  hobbys = '".escape($_POST['hobbys'], 'string')."',
    		  winm = '".escape($_POST['winm'], 'string')."',
              
    		  statussc = '".escape($_POST['statussc'], 'string')."',
    		  
              ".$avatar_sql_update."
    		  ".$forumavatar_sql_update."
    		  
              geschlecht = '".escape($_POST['geschlecht'], 'string')."',
              status = '".escape($_POST['status'], 'string')."',
              opt_mail = '".escape($_POST['opt_mail'], 'string')."',
              opt_pm = '".escape($_POST['opt_pm'], 'string')."',
              opt_pm_popup = '".escape($_POST['opt_pm_popup'], 'string')."',
    		  
              gebdatum = '".get_datum(escape($_POST['gebdatum'], 'string'))."',
              sig = '".substr(escape($_POST['sig'], 'string'),0,$allgAr['forum_max_sig'])."'
    				WHERE id = ".$_SESSION['authid']
          );
    
    
    	# change other profil fields
    
      profilefields_change_save ( $_SESSION['authid'] );
    	$design->header();
    
    	# definie and print msg
    	$fmsg = ( isset($fmsg) ? $fmsg : $lang['changesuccessful'] );
    	wd('?user-8' , $fmsg  , 3 );
    
    }
    
    if(isset($_POST['submit1'])) {
    
    		$titelpage = db_fetch_assoc(db_query("SELECT uid FROM `prefix_user-profil` WHERE uid = ".$_SESSION['authid']));
    
    		if(empty($titelpage['uid'])) {
    		db_query("INSERT INTO `prefix_user-profil` (txt, uid) VALUES ('".escape($_POST['txt'], 'string')."', '".$_SESSION['authid']."')");
    		wd ('index.php?user-8','Erfolgreich eingetragen',3);
    		}else{
    		db_query("UPDATE `prefix_user-profil` SET txt = '".escape($_POST['txt'], 'string')."' WHERE uid = '".$_SESSION['authid']."'");
    		wd ('index.php?user-8','Erfolgreich eingetragen',3);
    		}
    
    }
    
    } else {
    		$tpl = new tpl ( 'user/login' );
    		$tpl->set_out('WDLINK', '?user-8', 0);
    }
    
    $design->footer();
    ?>


    <style title="Profil Design" type="text/css">
    /*UserProfil*/
    .shadetabs {
    font-size: 11px;
    font-family:Arial, Helvetica, sans-serif;
    font-weight: bold;
    margin: 0;
    padding: 0;
    list-style: none;
    height:20px;
    }
    
    
    .shadetabs li a{
    float: left;
    margin: 0 2px 0 0;
    padding: 0 0 1px 3px;
    text-decoration: none;
    letter-spacing: 1px;
    color:#000000;
    }
    
    .shadetabs li a span{
    float: left;
    display: block;
    padding: 5px 9px 1px 6px;
    cursor: pointer;
    }
    
    .shadetabs li a span{
    float: none;
    }
    
    
    .shadetabs li a:hover {
    background-color: #0099FF; /*background color of tabs onMouseover*/
    color: #000000;
    }
    
    .shadetabs li a.selected {
    background-color: #0099FF; /*background color of tabs onMouseover*/
    color: #000000;
    }
    
    .shadetabs li a:hover span{
    background-color: transparent;
    }
    
    .tabcontent{
    display:none;
    height:100%;
    }
    
    @media print {
    .tabcontent {
    display:block !important;
    height:100%;
    }
    }
    
    .shadetabs li{
    display: inline;
    margin: 0 2px 0 0;
    padding: 0;
    }
    </style>
    
    <div style="height:10px;"></div>
    <ul id="countrytabs" class="shadetabs">
    <li><a rel="country1" href="#"><span>Pers&ouml;nliche Daten</span></a></li>
    <li><a rel="country2" href="#"><span>Profil Daten</span></a></li>
    <li><a rel="country3" href="#"><span>Titelseite</span></a></li>
    <li><a rel="country4" href="#"><span>Blog</span></a></li>
    <li><a rel="country5" href="#"><span>Profilbild</span></a></li>	
    <li><a rel="country6" href="#"><span>Forumbild</span></a></li>	
    <li><a rel="country7" href="#"><span>Profil Anpassen</span></a></li>	
    <li><a rel="country8" href="#"><span>Einstellungen</span></a></li>
    <li><a rel="country9" href="#"><span>Passwort</span></a></li>
    </ul>
    <div style="border-style:solid; border-color:#0066FF; border-width:1px; padding:4px;">
    <div id="country1" class="tabcontent" align="left">
    <form action="index.php?user-profil" method="POST" enctype="multipart/form-data">
    <table width="100%" border="0" cellspacing="0" cellpadding="3">
      <tr>
        <td align="left" colspan="2"><b style="font-size:14px;">Pers&ouml;nline Angaben</b></td>
      </tr>  
      <tr>
        <td width="30%">Vor- Nachname:</td>
        <td>{vorname} {nachname}</td>
      </tr>
      <tr>
        <td width="30%">Geburtstag:</td>
        <td>{tag} {monat} {jahr}</td>
      </tr>  
      <tr>
        <td width="30%">Stra&szlig;e:</td>
        <td><input name="strasse" value="{strasse}" /></td>
      </tr>
      <tr>
        <td width="30%">Postleitzahl:</td>
        <td><input name="postleitzahl" value="{postleitzahl}" /></td>
      </tr>
      <tr>
        <td width="30%">Wohnort:</td>
        <td><input name="wohnort" value="{wohnort}" /></td>
      </tr>
      <tr>
        <td width="30%">eMail:</td>
        <td>
        <input style="margin-bottom:2px;" name="email" value="{email}" />
        <input type="hidden" name="aemail" value="{email}" />
        {_lang_mustbeentered}
        </td>
      </tr>
      <tr>
        <td align="center" colspan="2"><input type="submit" value="Absenden" name="submit"></td>
      </tr>    
    </table>
    </form>
    </div>
    
    <div id="country2" class="tabcontent" align="left">
    <form action="index.php?user-profil" method="POST" enctype="multipart/form-data">
    <table width="100%" border="0" cellspacing="0" cellpadding="3">
      <tr>
        <td align="left" colspan="2"><b style="font-size:14px;">Profil Angaben</b></td>
      </tr>
      <tr>
        <td width="30%" align="left">Familienstand:</td>
        <td><input name="familienstand" value="{familienstand}" type="text" /></td>
      </tr>
      <tr>
        <td width="30%" align="left">Lieblingsmusik:</td>
        <td><input name="musik" value="{musik}" type="text" /></td>
      </tr> 
      <tr>
        <td width="30%" align="left">Raucher:</td>
        <td><input name="raucher" value="{raucher}" type="text" /></td>
      </tr>
      <tr>
        <td width="30%" align="left">Kinder:</td>
        <td><input name="kinder" value="{kinder}" type="text" /></td>
      </tr>  
      <tr>
        <td width="30%" align="left">Nationalität:</td>
        <td><input name="nationalitaet" value="{nationalitaet}" type="text" /></td>
      </tr>
      <tr>
        <td width="30%" align="left">Staat:</td>
        <td><select name="staat">
                  
    	  {_list_staat@<option%1 value="%2">%3
    	  
                  </option>
                  
    	  }
    	  
                </select></td>
      </tr> 
      <tr>
        <td width="30%" align="left">Bildung:</td>
        <td><input name="bildung" value="{bildung}" type="text" /></td>
      </tr>
      <tr>
        <td width="30%" align="left">T&auml;tigkeit:</td>
        <td><input name="tatigkeit" value="{tatigkeit}" type="text" /></td>
      </tr>
      <tr>
        <td width="30%" align="left">Beruf:</td>
        <td><input name="beruf" value="{beruf}" type="text" /></td>
      </tr>       
      <tr>
        <td width="30%" align="left">Firma:</td>
        <td><input name="firma" value="{firma}" type="text" /></td>
      </tr>
      <tr>
        <td width="30%" align="left">Sprachen:</td>
        <td><input name="sprachen" value="{sprachen}" type="text" /></td>
      </tr>
      <tr>
        <td width="30%" align="left">Homepage:</td>
        <td><input name="homepage" value="{homepage}" type="text" /></td>
      </tr> 
      <tr>
        <td width="30%" align="left">Messager:</td>
        <td>ICQ: <input name="icq" value="{icq}" type="text" />&nbsp;MSN: <input name="msn" value="{msn}" type="text" />&nbsp;Yahoo: <input name="yahoo" value="{yahoo}" /></td>
      </tr>
      <tr>
        <td colspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2" align="left"><b style="font-size:13px;">Meine Interessen</b></td>
      </tr>
      <tr>
        <td colspan="2" align="left"><textarea rows="5" style="width:100%" name="hobbys">{hobbys}</textarea></td>
      </tr>
      <tr>
        <td colspan="2" align="left"><b style="font-size:13px;">Was Ich nicht mag</b></td>
      </tr>
      <tr>
        <td colspan="2" align="left"><textarea rows="5" style="width:100%" name="winm">{winm}</textarea></td>
      </tr>
      <tr>
        <td colspan="2" align="center"><input type="submit" value="Absenden" name="submit"></td>
      </tr>                                    
    </table>
    </form>
    </div>
    
    <div id="country3" class="tabcontent" align="left">
    <form method="POST" name="form" enctype="multipart/form-data">
    <table width="100%" border="0" cellspacing="0" cellpadding="3">
      <tr>
        <td align="left"><b style="font-size:14px;">Deine Titelseite</b></td>
      </tr>
      <tr>
        <td align="left">
        <script type="text/javascript" src="include/includes/js/bbcode.js"></script> 
        <script type="text/javascript" src="include/includes/js/interface.js"></script>
        <!-- BB Code START -->
    
    	{__BBCodeButtons__}
    
        <!-- BB Code ENDE -->
        </td>
      </tr>
      <tr>
        <td><textarea style="width:100%;" name="txt" rows="25">{titelseite}</textarea></td>
      </tr>  
      <tr>
        <td align="center"><input type="submit" value="Absenden" name="submit1"></td>
      </tr>  
    </table>
    </form>
    </div>
    
    <div id="country4" class="tabcontent" align="left">
    Der Blog ist noch ausser funktion
    </div>
    
    <div id="country5" class="tabcontent" align="left">
    <form action="index.php?user-profil" method="POST" enctype="multipart/form-data">
    <table width="100%" border="0" cellspacing="0" cellpadding="3">
      <tr>
        <td align="left"><b style="font-size:14px;">Profilbild</b></td>
      </tr>
      <tr>
        <td align="left"><div align="center">{avatarbild}
    	        <input type="checkbox" value="yes" name="avatarloeschen" />{_lang_delete}?<br /><br />
                <input type="file" name="avatarfile" />
    	        <br/><i style="font-size:11px">{_lang_criterions}:</i><br /><i style="font-size:11px">{_lang_maxwidth} {Fabreite}px, {_lang_maxheight} {Fahohe}px {_lang_and} max size {Fasize} bytes. {_lang_otherwisenoaction}.</i></div></td>
      </tr>
      <tr>
        <td align="center"><input type="submit" value="Absenden" name="submit"></td>
      </tr>    
    </table>
    </form>
    </div>
    
    <div id="country6" class="tabcontent" align="left">
    <form action="index.php?user-profil" method="POST" enctype="multipart/form-data">
    <table width="100%" border="0" cellspacing="0" cellpadding="3">
      <tr>
        <td align="left"><b style="font-size:14px;">Forumbild</b></td>
      </tr>
      <tr>
        <td align="left"><div align="center">{forumbild}
    	        <input type="checkbox" value="yes" name="forumloeschen" />{_lang_delete}?<br /><br />
                <input type="file" name="forumfile" />
    	        <br/><i style="font-size:11px">{_lang_criterions}:</i><br /><i style="font-size:11px">{_lang_maxwidth} {Fobreite}px, {_lang_maxheight} {Fohohe}px {_lang_and} max size {Fosize} bytes. {_lang_otherwisenoaction}.</i></div></td>
      </tr>
      <tr>
        <td align="center"><input type="submit" value="Absenden" name="submit"></td>
      </tr>    
    </table>
    </form>
    </div>
    
    <div id="country7" class="tabcontent" align="left">
    <form action="index.php?user-profil" method="POST" enctype="multipart/form-data">
    <table width="100%" border="0" cellspacing="0" cellpadding="3">
      <tr>
        <td colspan="3" align="left"><b style="font-size:14px;">Profil Anpassen</b></td>
      </tr>
      <tr>
        <td width="30%" align="left">Men&uuml;farbe:</td>
        <td align="left"><input type="text" name="menufarbe" value="{menufarbe}" /></td>
        <td rowspan="6" valign="top"><div align="center">{background}
    	        <input type="checkbox" value="yes" name="backgroundloeschen" />{_lang_delete}?<br /><br />
                <input type="file" name="backgroundfile" />
    	        <br/><i style="font-size:11px">{_lang_criterions}:</i><br /><i style="font-size:11px">{_lang_maxwidth} {pobreite}px, {_lang_maxheight} {pohohe}px {_lang_and} max size {posize} bytes. {_lang_otherwisenoaction}.</i></div></td>
      </tr>
      <tr>
        <td width="30%" align="left">Men&uuml;farbe bei hover:</td>
        <td align="left"><input type="text" name="menufarbehover" value="{menufarbehover}" /></td>
      </tr>
      <tr>
        <td width="30%" align="left">Men&uuml;schriftfarbe:</td>
        <td align="left"><input type="text" name="menuschrift" value="{menuschrift}" /></td>
      </tr>     
      <tr>
        <td width="30%" align="left">Rahmenfarbe:</td>
        <td align="left"><input type="text" name="borderfarbe" value="{borderfarbe}" /></td>
      </tr> 
      <tr>
        <td width="30%" align="left">Profilschriftfarbe:</td>
        <td align="left"><input type="text" name="profilschrift" value="{profilschrift}" /></td>
      </tr>
      <tr>
        <td width="30%" align="left">&Uuml;berschriftfarbe:</td>
        <td align="left"><input type="text" name="ueberschrift" value="{uberschrift}" /></td>
      </tr>            
      <tr>
        <td colspan="3" align="center"><input type="submit" value="Absenden" name="submit"></td>
      </tr>  
    </table>
    </form>
    </div>
    
    <div id="country8" class="tabcontent" align="left">
    <form action="index.php?user-profil" method="POST" enctype="multipart/form-data">
    <table width="100%" border="0" cellspacing="0" cellpadding="3">
      <tr>
        <td colspan="2" align="left"><b style="font-size:14px;">Einstellungen</b></td>
      </tr>
      <tr>
        <td width="30%" align="left">{_lang_mails} {_lang_fromotherusers}?</td>
        <td align="left"><input id="opt_mail1" type="radio" value="1" name="opt_mail" {opt_mail1} /><label for="opt_mail1"> {_lang_yes}</label>, <input id="opt_mail0" type="radio" value="0" name="opt_mail" {opt_mail0} /><label for="opt_mail0"> {_lang_no}</label></td>
      </tr>
      <tr>
        <td align="left">{_lang_privatemessages} {_lang_fromotherusers}?</td>
        <td align="left"><input id="opt_pm1" type="radio" value="1" name="opt_pm" {opt_pm1} /><label for="opt_pm1"> {_lang_yes}</label>, <input id="opt_pm0" type="radio" value="0" name="opt_pm" {opt_pm0} /><label for="opt_pm0"> {_lang_no}</label></td>
      </tr>
      <tr>
        <td align="left">{_lang_privatemessages} {_lang_popupbynewmsg}?</td>
        <td align="left"><input id="opt_pm_popup1" type="radio" value="1" name="opt_pm_popup" {opt_pm_popup1} /><label for="opt_pm_popup1"> {_lang_yes}</label>, <input id="opt_pm_popup0" type="radio" value="0" name="opt_pm_popup" {opt_pm_popup0} /><label for="opt_pm_popup0"> {_lang_no}</label></td>
      </tr>
      <tr>
        <td colspan="2" align="center"><input type="submit" value="Absenden" name="submit"></td>
      </tr>        
    </table>
    </form>
    </div>
    
    <div id="country9" class="tabcontent" align="left">
    <form action="index.php?user-profil" method="POST" enctype="multipart/form-data">
    <table width="100%" border="0" cellspacing="0" cellpadding="3">
      <tr>
        <td colspan="2" align="left"><b style="font-size:14px;">Passwort &auml;ndern</b></td>
      </tr>
      <tr>
        <td align="left" width="30%">{_lang_current}:</td>
        <td align="left"><input type="password" name="op" maxlength="20"></td> 
      </tr>
      <tr>
        <td align="left" width="30%">{_lang_new}:</td>
        <td align="left"><input type="password" name="np1" maxlength="20"></td> 
      </tr>  
      <tr>
        <td align="left" width="30%">{_lang_repeat}:</td>
        <td align="left"><input type="password" name="np2" maxlength="20"></td> 
      </tr>
      <tr>
        <td colspan="2" align="center"><input type="submit" value="Absenden" name="submit"></td>      
      </tr>  
    </table>
    </form>
    </div>
    </div>
    <div style="height:20px;"></div>
    <script type="text/javascript">
    
    var countries=new ddtabcontent("countrytabs")
    countries.setpersist(true)
    countries.setselectedClassTarget("link") //"link" or "linkparent"
    countries.init()
    
    </script>



    ich danke euch schonmals glücklich
    0 Mitglieder finden den Beitrag gut.
  2. #2
    User Pic
    freak Mitglied
    Registriert seit
    31.01.2007
    Beiträge
    856
    Beitragswertungen
    0 Beitragspunkte
    der thread kann geschlossen werden ich habe den fehler gefunden
    0 Mitglieder finden den Beitrag gut.
Geschlossen

Zurück zu HTML, PHP, SQL,...

Optionen: Bei einer Antwort zu diesem Thema eine eMail erhalten