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

Parašė mariuxxxx· 2009 Gru. 4 19:12:05
#1







Gal zinote kur klaida?

<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#555555";
$body_bg = "#ffffff";
$theme_width = "860";
$theme_width_l = "246";
$theme_width_r = "246";

function render_header($header_content) {

echo "<table align=center class='mainsite-border' align='left' width='860' cellspacing='0' cellpadding='0'>
<tr><td class='outer-border'>
<table align='center' width='860' cellspacing='0' cellpadding='0'>
<tr><td class='inner-border'>

<table align='center' width='860' cellspacing='0' cellpadding='0'>

<tr align=center><td>";
include_once "headeris.php";

echo "</td></tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='860'>
<tr>

<td background='".THEME."images/dz_04.jpg' height='203' width='281' align='left'>";


echo "<table cellpadding='0' cellspacing='0' width='281px'>
<tr>
<td style='padding-left:35px; padding-top:18px;'>";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,11");
 if (dbrows($result) != 0) {
  echo "<table width='100%' cellpadding='0' cellspacing='0'>";
  while ($data = dbarray($result)) {
   echo "<tr>
    <td class='small'>

     <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='hed'>".trimlink($data['download_title'], 35)."</a>
</td>
      </tr>";
  }
  echo "</table>";
 } else {
  echo "<div style='text-align:left'>".$locale['004']."</div>\n";
 }



echo"</td></tr></table>";


echo "</td>
<td background='".THEME."images/dz_05.jpg' height='203' width='281' align='left'>";
echo "<table cellpadding='0' cellspacing='0' width='281px'>
<tr>
<td>";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,11");
if (dbrows($result) != 0) {
echo "<table width='281' border='0' cellspacing='0' cellpadding='0' align='left'  style='padding-left:35px;padding-top:18px;'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 35);
echo "<tr>
<td class='small'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='hed'>$itemsubject</a>
</td>\n
</tr>\n";
}
echo "</table>";
} else {
  echo "<div style='text-align:right'>".$locale['004']."</div>\n";
}



echo "</td>
<td background='".THEME."images/dz_06.jpg' height='203' width='298' align='center'>";
echo "<table cellpadding='0' cellspacing='0' width='298'><tr><td>";

if (iMEMBER) {
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='298' border='0' cellspacing='0' cellpadding='0' align='left'  style='padding-left:55px;'>
<tr>
<td>";
   if ($userdata['user_avatar'] != "") {
   echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='62' height='62' ></center>\n";
   } else {
   echo "<center><img src='".THEME."images/def.jpg' width='62' height='62'></center>\n";
   }
   echo "</td><td align='left'>";


echo" Sveikas, <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' >".$userdata['user_name']."</a><br><br>";

echo"<a href='".BASEDIR."edit_profile.php' >Redaguoti apra&#240;im&#224;</a><br>
<a href='".BASEDIR."messages.php' >Asmenin&#235;s &#254;inut&#235;s</a>\n"; echo"<br>
<a href='".BASEDIR."members.php' >Nariø s&#224;ra&#240;as</a><br>";


if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo "<a href='".ADMIN."index.php".$aidlink."' class='hed'>Administracija</a>\n";
   }

   
   echo "<br><a href='".BASEDIR."setuser.php?logout=yes' >Atsijungti </a> ";




echo"</td>";
echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <center><b><span style='font-size: 10px; color: #a1a1a1'>Susirask dain&#224;</span></b><center><form  name='searchform' method='post' action='search.php' style='display: inline;'>
<input name='stext' value='Dainos pavadinimas'  class='inputass' style='width: 130px;height: 18px;border:1px dashed #e0e0e0;background:#fff;color : #a1a1a1; type='text' onBlur=\"if(this.value=='') this.value='Dainos pavadinimas';\" onFocus=\"if(this.value=='Dainos pavadinimas') this.value='';\">
      <input name='stype' value='d' type='hidden'><input name='search' value='Ie&#240;koti' class='buttonas' type='submit'>
      </form><br><br>";


echo"</tr></table>";

} else {

echo "
<table style='padding-left:50px;' width='202' border='0' cellspacing='0' cellpadding='0' >
<tr><td>


<table width='202' border='0' cellspacing='0' cellpadding='0' align='left'>
<form name='loginform' method='post' action='".FUSION_SELF."'>

  <tr>
    <td align='right' style='color:#656565;' >Vardas: </td>
    <td>&nbsp;<input type='text' name='user_name' class='inputas' style='height:20px;width:100px;border: 1px solid #a1a1a1;color : #a1a1a1;background='".THEME."images/input_bg.jpg'></td>
  </tr>

  <tr>
    <td align='right' style='color:#656565;' >Slapta&#254;odis: </td>
    <td>&nbsp;<input type='password' name='user_pass' class='inputas' style='height:20px;width:100px;border: 1px solid #a1a1a1;color : #a1a1a1;background='".THEME."images/input_bg.jpg'></td>
  </tr>

  <tr>
    <td align='right' style='color:#656565;' ><input type='checkbox' name='remember_me' value='y'>- Prisiminti</td>
    <td style='padding-left:25px;'>&nbsp;<input type='submit' name='login' value='Jungtis' class='button'></td>
</tr>
</form>";



   echo"</td></tr></table>";




      

echo"</td></tr></table>";


echo "<center><a href='".BASEDIR."register.php' class='small'><br>Registracija</a>     &nbsp;    &nbsp; ";
   
   echo " <a href='".BASEDIR."lostpassword.php' class='small'>Priminti slapta&#254;od&#225;</a></center>";


}





echo"</td>

</tr></table>\n";













echo"</td></tr></table>";


echo"</td>

</tr>
</table>\n";

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 style='padding-left:40px; align='left' class='footer'>";

echo"
engine: PHP-Fusion.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copyright &copy; 2008 - 2009 muzikos.lt
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

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

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>
Paskelb&#235;: <a href='".BASEDIR."profile.php?lookup=".$info['user_id']."' style='color:#555;'>".$info['user_name']."</a> &nbsp; data: ".showdate("%d/%m/%y", $info['news_date'])."<img src='".THEME."images/blank.gif' width='65' height='0'>Komentarø: ".$info['news_comments']." &nbsp; <a href='news.php?readmore=".$info['news_id']."' style='color:#555;'><b>&#222;i&#251;r&#235;ti daugiau</b></a>
</td>
</tr>
</table>\n";
tablebreak();

}

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='100%'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";

}

function closetable() {

echo "</td>
</tr>
</table>\n";

}

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

}

function closeside() {

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

}

function kurejas() {
   global $settings;
   $res = "Varikliukas: PHP-Fusion | Dizainas: ShadoVw";
   return $res;
}

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

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' >
<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";

}
?>



Redagavo Karolis· 2009 Gru. 4 19:12:54

Parašė gintulys· 2009 Gru. 4 19:12:46
#2

Yra jau šitas daizainas sutvarkytas paieškok :)
Va imk

http://decolor.lt/downloads.php?...load_id=21

Redagavo gintulys· 2009 Gru. 4 19:12:32