Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Kaip vadinas panele
Parašė Gizmis· 2008 Kov. 14 18:03:04
#1
Sveiki,
Kaip vadinas panele naujausi siuntiniai ir populiariausi siuntiniai. Ten dvi paneles viena kitos per viduri ?
Parašė samsung123· 2008 Kov. 14 18:03:55
#2
echo "<table width='100%'>
<tr>
<td width='50%'>";
openside("Naujausi siuntiniai");
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 10");
if (dbrows($result) != 0) {
echo "<table width='100%' 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 "";
closeside();
echo "</td>
<td width='50%'>";
openside("Populiariausi siuntiniai");
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 10");
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 "<center>".$locale['004']."</center>\n";
}
closeside();
echo "</td>";
echo "</tr>
</table>";
Pasiredagosi..
Redagavo samsung123· 2008 Kov. 14 18:03:23
Parašė Gizmis· 2008 Kov. 14 18:03:40
#3
dekui
Parašė Gizmis· 2008 Kov. 14 19:03:28
#4
Galit gal kas pataisyt sita koda kad rodytu normaliai ir prie naujausi 30 mp3 rodytu kiek kartu siuntesi
openside("naujinoeoosososos");
echo "<table width='100%'>
<tr>
<td width='50%'>";
openside("Top 30 mp3");
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,30");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 60);
if (iMEMBER) {
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' target='_blank'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
} else {
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."nariams.php' title='".$data['download_title']."' class='side' target='_blank'>$itemsubject</td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}
echo "";
closeside();
echo "</td>
<td width='50%'>";
openside("Naujausi 30 mp3");
$result = dbquery(
"SELECT td.*,tdc.* FROM ".$db_prefix."downloads td
INNER JOIN ".$db_prefix."download_cats tdc ON td.download_cat=tdc.download_cat_id
WHERE ".groupaccess('download_cat_access')." ORDER BY download_datestamp DESC LIMIT 0,30"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 100);
if (iMEMBER) {
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' target='_blank'>$itemsubject</a>\n";
} else {
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."nariams.php' title='".$data['download_title']."' class='side' target='_blank'>$itemsubject</a>\n";
}
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
closeside();
Redagavo Gizmis· 2008 Kov. 14 19:03:15
Parašė sniuff· 2008 Kov. 14 19:03:17
#5
openside("Top 30 mp3");
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,30");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 60);
if (iMEMBER) {
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' target='_blank'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
} else {
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."nariams.php' title='".$data['download_title']."' class='side' target='_blank'>$itemsubject</td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}
echo "";
closeside();
echo "</td>
<td width='50%'>";
openside("Naujausi .mp3");
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,30");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 60);
if (iMEMBER) {
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' target='_blank'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
} else {
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."nariams.php' title='".$data['download_title']."' class='side' target='_blank'>$itemsubject</td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}
echo "";
closeside();
Parašė Gizmis· 2008 Kov. 14 19:03:40
#6
KipshiuS dekui :)
Parašė sniuff· 2008 Kov. 14 19:03:28
#7
Nėra už ką...
Parašė Gizmis· 2008 Kov. 14 19:03:21
#8
Bet va kazkodel kai idedu ja i pagrindini puslapi isikraipo jinai
Parašė tadonesis· 2008 Bal. 21 00:04:55
#9
Siaip i panele reikia deti bet ir paneleje issikraipo