Panelių bazė
Sveiki, jūs panelių bazėje.
Neaktyvuotų panelių: 0
Viso panelių: 377
Ieškoti panelės
Neaktyvuotų panelių: 0
Viso panelių: 377
Ieškoti panelės
Panelės peržiūra
| Pavadinimas | |
| Įdėjo | DnT - Pateikta: 2008-07-06 - Peržiūrėta: 3237 |
| Aprašymas | Siuntimai" kurioje yra "Nauji siuntimai" , "Populiars siuntimai" ir "Top 5 siuntimai" |
| Panelė | Code openside("Informacija");
echo "<div class='side-label'><b>".$locale['021']."</b></div>\n";
$result = dbquery("
SELECT * FROM ".$db_prefix."threads
INNER JOIN ".$db_prefix."forums ON ".$db_prefix."threads.forum_id=".$db_prefix."forums.forum_id
WHERE ".groupaccess('forum_access')." ORDER BY thread_lastpost DESC LIMIT 5
");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['thread_subject'], 23);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."' title='".$data['thread_subject']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
echo "<div class='side-label'><b>".$locale['022']."</b></div>\n";
$result = dbquery("
SELECT tf.forum_id, tt.thread_id, tt.thread_subject, COUNT(tp.post_id) as count_posts
FROM ".$db_prefix."forums tf
INNER JOIN ".$db_prefix."threads tt USING(forum_id)
INNER JOIN ".$db_prefix."posts tp USING(thread_id)
WHERE ".groupaccess('forum_access')." GROUP BY thread_id ORDER BY count_posts DESC, thread_lastpost DESC LIMIT 5
");
if (dbrows($result) != 0) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['thread_subject'], 20);
echo "<tr>\n<td class='side-small'><img src='".THEME."images/bullet.gif' alt=''> <a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."' title='".$data['thread_subject']."' class='side'>$itemsubject</a></td>
<td align='right' class='side-small'>[".($data['count_posts']-1)."]</td>\n</tr>\n";
}
echo "</table>\n";
} else {
echo "<center>".$locale['004']."</center>\n";
}
echo "<br>";
echo "<div class='side-label'><b>Nauji siuntiniai</b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,5");
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 "<br>";
echo "<div class='side-label'><b>Top 5 siuntiniai</b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,5");
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(); |
Rašyti komentarą
Turite prisijungti, norėdami parašyti komentarą.



Man patiko ;) Aciu ;)
kuo skiriasi populiarus siuntiniai nuo top 5 ? :D
xD
:D siaip nieko gero :)
Cool
Prisgalvoja vaikai... du kartus pakrotja .. kaip ir skae MaZvE :) gi nieko nesiskeria top5 nuo populeriauisu.. apgaileitna krc...
echo \"Nauji siuntiniai \n\";\";

\".$data['download_count'].\"
\";
\";\".$locale['004'].\" \n\";
$result = dbquery(\"SELECT * FROM \".$db_prefix.\"downloads ORDER BY download_datestamp DESC LIMIT 0,5\");
if (dbrows($result) != 0) {
echo \"
while ($data = dbarray($result)) {
echo \"
\".trimlink($data['download_title'], 23).\"
}
echo \"
} else {
echo \"
}
echo \"
\";
is sitos dalies padariau kad galetum matyti siuntinio foto ir aprasyma :) :-) teko palauzyt galva bet pasiseke :D
man tik naujus siuntinius kazkodel rodo....
Kokie mazvaikiai :D panele "Nauji siuntimai" , "Populiars siuntimai" ir "Top 5 siuntimai" :D :D :D Nesupranta kad Populeriausi ir Top 5 yra vienas ir taspats :D LOL
Bet top5 juk tipo siunciamiausi