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

Parašė EviL· 2008 Bir. 16 21:06:20
#1

Sveiki, gal galit pasakyti kaip padaryti kad naujausius siuntinius matytu tik nariai?
function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink,$db_prefix;

   echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border-right: solid #000000 1px; border-left: solid #000000 1px; border-top: solid #000000 1px; margin-top: -5px;'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td class='header' width='100%'>";
echo "<tr><table align=center width=100% height=159 background='".THEME."images/baner.jpg' border=0
   cellspacing=0 cellpadding=0>";
echo"<tr><td height=50 class='nuorodos' align='right' style='padding-right:20px; padding-top:0px;'><br>";
echo"<table width='41%'><tr>";

echo"<td width='24%'>";
 $result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,9");
if (dbrows($result) != 0) {
echo "<table width='120%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
  echo "<div style='text-align:center'>".$locale['004']."</div>\n";
 }

echo "</td><td width='20%' style='padding-left:29px;' >";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,9");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
echo "</table>";
} else {
      echo "<div style='text-align:center'>".$locale['004']."</div>\n";
   }

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

echo "</td></tr>
<tr></tr>
<tr><td height=31></td></tr>
</table>
";

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



Cia siuntiniu headerije script

Parašė Dandžu· 2008 Bir. 16 21:06:38
#2

Va.
function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink,$db_prefix;

   echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border-right: solid #000000 1px; border-left: solid #000000 1px; border-top: solid #000000 1px; margin-top: -5px;'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td class='header' width='100%'>";
echo "<tr><table align=center width=100% height=159 background='".THEME."images/baner.jpg' border=0
   cellspacing=0 cellpadding=0>";
echo"<tr><td height=50 class='nuorodos' align='right' style='padding-right:20px; padding-top:0px;'><br>";
echo"<table width='41%'><tr>";

echo"<td width='24%'>";
if (iMEMBER) {
 $result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,9");
if (dbrows($result) != 0) {
echo "<table width='120%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
  echo "<div style='text-align:center'>".$locale['004']."</div>\n";
 }
} else {
echo "Tik nariai mato naujausius siuntinius!";
}

echo "</td><td width='20%' style='padding-left:29px;' >";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,9");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
echo "</table>";
} else {
      echo "<div style='text-align:center'>".$locale['004']."</div>\n";
   }

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

echo "</td></tr>
<tr></tr>
<tr><td height=31></td></tr>
</table>
";

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