Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Del header

Parašė Jupiter· 2008 Sau. 18 22:01:53
#1

Kaip iterpti tai ? Cia user_info tik , kad header cia visas kodas.

// Start banner code / Banerio kodas
   echo "<table width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td height='250' background='".THEME."media/header.jpg' align='right' valign='bottom' style='padding-bottom: 30px;' class='full-header'>
   <table width='900' border='0' cellspacing='0' cellpadding='0'>
  <tr>
    <td>&nbsp;</td>
    <td width='220' align='center'>";
   // Jei narys, prisijungimas atrodo taip
   if (iMEMBER) {
   openside2($userdata['user_name']);
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
  <tr>
    <td>\n";
   if ($userdata['user_avatar'] != "") {
   echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' height='50'></center>\n";
   } else {
   echo "<center><img src='".THEME."media/no.png' width='50' height='50'></center>\n";
   }
   echo "</td>
    <td><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='sonas'>Apra&#240;ymas</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='sonas'>&#222;inut&#235;s</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='sonas'>Nariai</a><br>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='sonas'>Administracija</a><br>\n";
   }
   echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='sonas'>Atsijungti</a>\n";"
   <td><img src='".THEME."images/blank.gif'></td>
  </tr>
</table>

\n";
   // Jei ne narys
} else {
   openside2("");
   echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' background='".THEME."images/userlogin.gif' align='center' class='side2'><form name='loginform' method='post' action='".FUSION_SELF."'>
  <tr>
    <td align='right'>Slapyvardis: </td>
    <td>&nbsp;<input type='text' name='user_name' class='textbox2' style='width:100px;filter:alpha(opacity=70)'></td>
  </tr>
  <tr>
    <td align='right'>Slaptažodis: </td>
    <td>&nbsp;<input type='password' name='user_pass' class='textbox2' style='width:100px;filter:alpha(opacity=70)'></td>
  </tr>
  <tr>
    <td align='right'><input type='checkbox' name='remember_me' value='y'></td>
    <td>&nbsp;<input type='submit' name='login' value='Prisijungti' class='button2'></td>
  </tr>
  </form>\n";
   if ($settings['enable_registration']) {
      echo "<a href=".BASEDIR."register.php>Registracija</a> <a href=".BASEDIR."lostpassword.php>Slaptažodis</a>\n";
   }
   echo"</div>\n";
}
closeside2();
   echo "</td>
   <td><img src='".THEME."images/blank.gif'></td>
  </tr>
</table>
   </td>";
   echo "</tr></table></td></tr></table>\n";
   // End banner code / Banerio kodo pabaiga
   echo "<table width='100%' cellspacing='0' cellpadding='0' class='sub-header'>\n<tr>";
   echo "<td>\n";
   if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "users", "user_status='2'")."\n";
   echo ($i == 0 ? "&nbsp;" : "")."</td>";
   echo "</td></tr></table>\n";
   echo "<table width='100%' border='0' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF'>

</table>\n";
?>




O stai cia i ka reikia iterpti .
<?php

echo "

<table align=center border=0 cellpadding='0' cellspacing='0' width='$theme_width' style='border-right: solid # 2px;'>

<tr>

<td width=199 height=49 align=center style='border-right: solid #5c5e5d 2px;' bgcolor='#3d3f3e'><a href=".BASEDIR."index.php><img src=".THEME."nuorodos/home.jpg border=0></a><img src=".THEME."nuorodos/hr.jpg border=0><a href=".BASEDIR."search.php><img src=".THEME."nuorodos/search.jpg border=0></a><img src=".THEME."nuorodos/hr.jpg border=0><a href=".BASEDIR."contact.php><img src=".THEME."nuorodos/contact.jpg border=0></a></td>

<td width=472 height=49 bgcolor='#3d3f3e' align=left>
<td width=199 height=51 style='border-left: solid # 2px;' bgcolor='#3d3f3e' background='".THEME."images/headeris3.jpg' align=right  class='headeris5'></td>

<table align=center border=0 cellpadding='0' cellspacing='0' width='662'>
</tr>
</table>

</tr>
</table>



<table align=center border=0 cellpadding='0' cellspacing='0' width='$theme_width' bgcolor='#3d3f3e'>

<tr>

<td width=195 >


<table align=center border=0 cellpadding='0' cellspacing='0' width='195' height='194' bgcolor='#3d3f3e'>
<td background='".THEME."images/navigacija.jpg' class='nuorodos'>"; echo showsublinks("<br><img src=".THEME."images/bullet.gif border=0>",white); echo "</td>
</table>


<td width=663>

<table align=left border=0 cellpadding='0' cellspacing='0' width='460' class='headeris'>

<tr>

<td width='460' height='194' background='".THEME."images/headeris.jpg'></td>
<table align=center border=0 cellpadding='0' cellspacing='0' width='193' bgcolor='#3d3f3e'>

<tr>

<td width=150 valign=top height=150  background='".THEME."images/navigacija2.jpg' style='padding: 4px;'><br>";

if (iMEMBER) {

   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");

echo "<br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a><br>";
    if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {

echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."submit.php?stype=n' class='um'>Pateikti naujieną</a><br>";
}



echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='um'>Redaguoti profilį</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='um'>Asmeninės žinutės</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='um'>Narių sąrašas</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='um'>Atsijungti</a>\n";

} else {

   echo "<br><div align='center'>".(isset($loginerror) ? $loginerror : "")."

<form name='loginform' method='post' action='".FUSION_SELF."'>
<font color='#fffff'>Vartotojo vardas</font>
<input type='text' name='user_name' class='textbox' style='width:100px' value='Vartotojas' onclick='if (this.value==&quot;Vartotojas&quot;) {this.value=&quot;&quot;;}' onblur='if (this.value==&quot;&quot;) {this.value=&quot;&quot;;};'><br>
<font color='#fffff'>Slaptažodis</font><br>
<input type='password' name='user_pass' class='textbox' style='width:100px' value='Vartotojas' onblur='if (this.value==&quot;Vartotojas&quot;) {this.value=&quot;&quot;;}' onclick='if (this.value==&quot;Vartotojas&quot;) {this.value=&quot;&quot;;}' onblur='if (this.value==&quot;&quot;) {this.value=&quot;&quot;;};'><br>

<input type='submit' name='login' value='Prisijungti' class='button'><br>

</form></div>

<br>\n";


echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."register.php' class='um'><font color='#fffff'>Užsiregistruoti</font></a><br>";

echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."lostpassword.php' class='um'><font color='#fffff'>Pamiršau slaptažodį</font></a>";


   if ($settings['enable_registration']) {

      echo "".$locale['065']."<br><br>\n";

   }

   echo $locale['066']."

</div>\n";

}

echo "</td>

</td>
</tr>
</table>

</td>

</tr>

</table>";



?>





As isidedu , bet meta daug eroru , o kai eror istaisau visa web iskraipo belekaip :/ tai gal kas pades ?