Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: theme.php

Parašė PyccKuu· 2008 Kov. 1 23:03:28
#5

susikuri new.php failiuka ir i ji irasyk:

<?php
@openside("Naujausias atsisiuntimas");
$result=dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,10");
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n";
if(dbrows($result)!=0){
echo "<tr><td colspan='2' class='small'>(Move the mouse over the link to see a longer title.)</td></tr>";
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='side'>".trimlink($data['download_title'], 22)."</a></td>
<td align='right' class='side'>$data[download_count]</td>
</tr>
<tr>
<td class='small'>".$download_cat_name."</td>
</tr>\n";
 
}
}
echo "</table>\n";
@closeside();
?>




Imesk ji naudojamos themos folderi ir irasyk si koda:

echo "<table cellpadding='0' cellspacing='0' width='$theme_width' class='paneles'>\n<tr>
<td align='left' width='120'>";
include THEME."user_info_panel.php";
echo "</td>
<td align='center' width='97'><br><br>";
echo ($userdata['user_avatar'] ? "<img src='".IMAGES."avatars/".$userdata['user_avatar']."' width='70' height='70'></center><br>\n" : "<center><a href='".BASEDIR."edit_profile.php'><img src='".THEME."images/avatar.gif' border='0' width='70' height='70'></a></center>\n")."";
echo "</td>
<td align='center' width='306'>";
include THEME."new.php";
echo "</td>
<td align='center' width='195'>";
include THEME."member_poll_panel.php";
echo "</td>
</tr>
</table><br>\n";




Liktai taip xD