Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Atsitiktiniai siuntiniai

Parašė Noyz· 2010 Sau. 30 12:01:34
#1

Sveiki, ieskau atsitiktiniu siuntiniu paneles, turi butinai buti atsitiktiniai, ar turit kas? Nes modu saite nera.

Parašė minimukas· 2010 Sau. 30 12:01:03
#2

stai
openside("Atsitiktiniai siuntiniai");
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY RAND() DESC LIMIT 0,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'> ".$data['download_description']."
</td>
<td align='right'><a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'><b>Parsisiųsti</b></a></td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
closeside();



Parašė Noyz· 2010 Sau. 30 12:01:53
#3

Aciu tau lb, +10 :) (Min. privalomas ilgis: 60 simbolių) (Min. privalomas ilgis: 60 simbolių)

Parašė Noyz· 2010 Sau. 30 13:01:24
#4

Na man reiktu, kad pries Teksta parsisiusti, butu to siuntinio pavadinimas, va screen :




Parašė Apocal· 2010 Sau. 30 13:01:21
#5

   openside("Atsitiktiniai 10 siuntinių");
$result=dbquery("SELECT * FROM ".DB_PREFIX."downloads ORDER BY RAND() LIMIT 10");

if(dbrows($result)!=0){
while($data=dbarray($result)){
$result2 = dbquery("SELECT download_cat_name FROM ".DB_PREFIX."download_cats WHERE download_cat_id='$data[download_cat]'");

$category = dbresult($result2,0);

echo "<taašr><td class='small2'><a href='".BASEDIR."downloads.php?cat_id=$data[download_cats]&download_id=$data[download_id]' target='blank'
class='slink'>".trimlink($data[download_title], 25)."</a</td></tr></table>\n";
}
}
closeside();



Redagavo Apocal· 2010 Sau. 30 13:01:34

Parašė zDon· 2010 Sau. 30 13:01:31
#6

openside("Atsitiktiniai siuntiniai");
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY RAND() DESC LIMIT 0,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'> ".$data['download_description']."
</td>
<td align='right'><a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".$data['download_title']." - <b>Parsisiųsti</b></a></td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
closeside();