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

Parašė QxetaZ· 2009 Lie. 12 23:07:26
#11

function render_header($header_content) {

global $theme_width,$userdata,$settings,$locale,$aidlink,$db_prefix;

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table width='809' height='309' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='12'>
         <img src='".THEME."images/headeris_01.png' width='809' height='80' alt=''></td>
   </tr>
   <tr>
      <td colspan='3' rowspan='2'>
         <img src='".THEME."images/headeris_02.png' width='127' height='170' alt=''></td>
      <td colspan='3'>";
      echo"<table width='200' height='138' style='background-image:url(".THEME."images/headeris_03.png);background-repeat:no-repeat; color:#FFFFFF; Font-family : ; Tahoma font-size : 9px; padding-right: 25px;'>";
   if (iMEMBER)
         {
   echo"<td height='50' style='color:#FFFFFF; Font-family : Arial; font-size : 8px; padding-left: 10px;'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'>Mano profilis</a>".(iADMIN && $userdata['user_rights'] != "" ? " : <a href='".ADMIN."index.php$aidlink'>Administracija</a>" : "")."<br>
    <img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."edit_profile.php'>Redaguoti profil&#303;</a><br>
    <img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."messages.php'>Asmenin&#279;s &#382;inut&#279;s</a><br>
    <img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."setuser.php?logout=yes'>Atsijungti</a></td>";
    echo"<td>";
    $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
    if ($msg_count)
    echo"<a style='font-size : 10px;' href='".BASEDIR."messages.php' class='side2'>".sprintf('Gavai žinutę')."</a></td>";
   }
   else
   {
   echo "<form name='login' method='post' action='".FUSION_REQUEST."'>
   <td width='30'></td>
   <td width='100'>
<input type='text' name='user_name' class='prisijungimo-textboxas' value='Vardas' onBlur=\"if(this.value=='') this.value='Vardas';\" onFocus=\"if(this.value=='Vardas') this.value='';\" >
<input type='password' name='user_pass' class='prisijungimo-textboxas' value='Hashas' onBlur=\"if(this.value=='') this.value='Hashas';\" onFocus=\"if(this.value=='Hashas') this.value='';\" >
<input type='submit' name='login' value='' class='prisijugnimo-sumbitas' border='0'>
</td>

</form>";
   }
         echo"</table></td>
      <td colspan='6'>
         <img src='".THEME."images/headeris_04.png' width='482' height='138' alt=''></td>
   </tr>
   <tr>
      <td colspan='9'>
         <img src='".THEME."images/headeris_05.png' width='682' height='32'' alt=''></td>
   </tr>
   <tr>
      <td rowspan='2'>
         <img src='".THEME."images/headeris_06.png' width='18' height='58' alt=''></td>
      <td>
         <img src='".THEME."images/headeris_07.png' width='97' height='44' alt=''></td>
      <td colspan='2'>
         <img src='".THEME."images/headeris_08.png' width='85' height='44' alt=''></td>
      <td>
         <img src='".THEME."images/headeris_09.png' width='102' height='44' alt=''></td>
      <td colspan='2'>
         <img src='".THEME."images/headeris_10.png' width='77' height='44' alt=''></td>
      <td>
         <img src='".THEME."images/headeris_11.png' width='80' height='44' alt=''></td>
      <td>
         <img src='".THEME."images/headeris_12.png' width='85' height='44' alt=''></td>
      <td>
         <img src='".THEME."images/headeris_13.png' width='96' height='44' alt=''></td>
      <td>
         <img src='".THEME."images/headeris_14.png' width='151' height='44' alt=''></td>
      <td>
         <img src='".THEME."images/headeris_15.png' width='18' height='44' alt=''></td>
   </tr>
   <tr>
      <td colspan='11'>
         <img src='".THEME."images/headeris_16.png' width='791' height='14' alt=''></td>
   </tr>
   <tr>
      <td>
         <img src='".THEME."images/spacer.gif' width='18' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='97' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='12' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='73' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='102' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='25' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='52' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='80' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='85' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='96' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='151' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='18' height='1' alt=''></td>
</tr>
</tr>
</table>";

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='footer'>".stripslashes($settings['footer'])."<br>\n";
if (!$license) { echo showcopyright()."<br><br>\n"; } echo showcounter()."<br><br>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function render_news($subject, $news, $info) {

echo "<table cellpadding='0' cellspacing='0' width='559'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td width='559' class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," &middot;").newsopts($info,"&middot;").closeform("N",$info['news_id']);
echo "</td>
</tr>
<td class='center-down'>
</td>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," &middot;").articleopts($info,"&middot;").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table cellpadding='0' cellspacing='0' width='543'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td width='559'class='main-body'>\n";

}

function closetable() {

echo "</td>
</tr>
<td class='center-down'>
</td>
</table>\n";

}

function openside($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='193'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {

echo "</td>
</tr>
<td class='side-down'>
</td>
</table>\n";
tablebreak();

}

function opensidex($title,$state="on") {

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";

}

function closesidex() {

echo "</div>
</td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";

}






Va.

Redagavo QxetaZ· 2009 Lie. 12 23:07:34