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

Parašė Soo-2· 2008 Sau. 20 17:01:55
#1

sveiki.. cia yra prisijungimo kodas.. man reikia ji iterpti po headeriu ir padaryti taip kad kai prisijungus tas prisijungimo laukelis esantis po headeriu dingtu..

   echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."
<input type='text' name='user_name' class='textbox' style='width:100px'>
".$locale['062']."
<input type='password' name='user_pass' class='textbox' style='width:100px'>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='".$locale['064']."' class='button'>
</form>
<br>\n";
   if ($settings['enable_registration']) {
      echo "".$locale['065']."\n";
   }
   echo $locale['066']."
</div>\n";
}







O čia iš theme.php išimtas headerio kodas:



function render_header($header_content) {


global $theme_width,$settings;
   echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0'>";

   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
?>
<html>
<embed src="http://www.siuskis.failai.lt/themes/dizainas/images/logo.png" width="788" height="197" wmode="transparent" type="application/x-shockwave-flash">
</html>
<?
echo "<td height=0 border=0 align=center>
<div style=\"padding-bottom: 0px; padding-left: 0px; padding-right: 0px;\">";

echo"<img src='".THEME."images/1head.png' border='0'></a>
<td   height=0 border=0 align=center>
<div style=\"padding-bottom: 0px; padding-left: 0px; padding-right: 0px;\">";
echo"<a href='news.php'><img src='".THEME."images/pagrindinis.png' border='0'></a>
<td   height=0 border=0 align=center>
<div style=\"padding-bottom: 0px; padding-left: 0px; padding-right: 0px;\">";
echo"<a href='members.php'><img src='".THEME."images/info.png' border='0'></a>
<td   height=0 border=0 align=center>
<div style=\"padding-bottom: 0px; padding-left: 0px; padding-right: 0px;\">";
echo"<a href='reklama.php'><img src='".THEME."images/online.png' border='0'></a>
<td   height=0 border=0 align=center>
<div style=\"padding-bottom: 0px; padding-left: 0px; padding-right: 0px;\">";
echo"<a href='contact.php'><img src='".THEME."images/admin.png' border='0'></a>
<td   height=0 border=0 align=center>
<div style=\"padding-bottom: 0px; padding-left: 0px; padding-right: 0px;\">";
echo"<img src='".THEME."images/2head.png' border='0'></a>





";

//Login Code End

   echo"<script type='text/javascript'>LKT_init();</script>";
   echo"</td></tr></table>";   
   echo "</td></tr></table>";
   echo "<table width='100%' cellpadding='2' bgcolor='#F9F9F9' cellspacing='0' border='0'>";
   echo "<img src='".THEME."images/pixel.gif' width='100%' height='4'>";



   
}