Parašė Progress· 2009 Lie. 31 17:07:07
#1
sveiki norejau paprasyti kad padetumete man ideti panete
Kodas:
<tr>
<td colspan='11'
background='".THEME."images/IMG_siunt.jpg' width='769' height='150' alt=''>
<table align='left' width='200px' cellpadding='0' cellspacing='0'>";
echo "</td><td></td><td style='padding-top: 18px; padding-left: 5px;' align='left' width='200'>";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,7");
if (dbrows($result) != 0) {
echo "<table style='padding-left: 15px;' width='200' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 30);
echo "<tr>\n<td class='small'>» <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
}
echo "</table>
<table align='left' width='200px' cellpadding='0' cellspacing='0'>";
echo "</td><td></td><td style='padding-top: 18px; padding-left: 40px;' align='right' width='200'>";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,7");
if (dbrows($result) != 0) {
echo "<table width='200' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 30);
echo "<tr>\n<td class='small'>» <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a>
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}
echo "</table>
<table align='left' width='20px' cellpadding='0' cellspacing='0'>";
echo "</td><td></td><td style='padding-top: 18px; padding-left: 42px;' align='left' width='20'>";
$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 7
");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['thread_subject'], 45);
echo "» <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 "</td></tr></table></td></tr></table>";
echo "<table align='center' cellpadding='0' cellspacing='0' width='769px'>\n<tr>\n";
}
Man reikia vietoj
<table align='left' width='320px' cellpadding='0' cellspacing='0'>";
echo "</td><td></td><td style='padding-top: 18px; padding-left: 42px;' align='left' width='320'>";
$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 7
");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['thread_subject'], 45);
echo "» <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";
}
ideti sita panele :
echo"
<img src='http://mp3music.gan.lt/images/folder.png'> <a href='http://mp3music.gan.lt/downloads.php?cat_id=1'>Lietuviskos dainos</a><br>
<img src='http://mp3music.gan.lt/images/folder.png'> <a href='http://mp3music.gan.lt/downloads.php?cat_id=2'>Angliskos dainos</a><br>
<img
src='http://mp3music.gan.lt/images/folder.png'> <a href='http://mp3music.gan.lt/downloads.php?cat_id=3'>Rusiskos dainos</a><br>
<img
src='http://mp3music.gan.lt/images/folder.png'> <a href='http://mp3music.gan.lt/downloads.php?cat_id=4'>Setai</a><br>
<img
src='http://mp3music.gan.lt/images/folder.png'> <a href='http://mp3music.gan.lt/downloads.php?cat_id=5'>Club/House Dainos</a><br>
<br>";
$data = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
$result = dbquery("SELECT count(download_id) FROM ".$db_prefix."downloads");
echo "° Turime dainu: [".dbresult($result, 0)."]<br>";
echo '
<form action="search.php?stype=all" method="post" name="searchform">
<input type="text" style="width: 150px;" class="textbox" value="" name="stext">
<input type="submit" class="button" value="Ieškoti" name="ieškoti">
</form>
';
Redagavo Progress· 2009 Lie. 31 18:07:26