Parašė LeBro· 2008 Bir. 22 13:06:06
#1
sveiki, redagavausi savo downloads.php faila pagal snapso sukurta downloads.php , kuriame rodo, kas ikele siuntini ir susiduriau su tokia problema :
uzejus i bendra siuntiniu kategorija, pvz.:
http://www.mp3s.lt/downloads.php... , viskas tvarkoj - prie siuntiniu rodo kas juos ikele, o "ilindus" i dainos vidu ( pvz.:
http://www.mp3s.lt/downloads.php... ) jau neberodo, kas ikele viena ar kita siuntini...
vieta, kuria reikai redaguoti :
echo "<table width='100%' cellpadding='0' cellspacing='1' class='tbl-border'>\n";
echo "<tr>
<td colspan='5' class='forum-caption'>
<table style='border-collapse: collapse;' border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td> <a href='".FUSION_SELF."' class='small' title='Dainos'><b>Dainos</b></a> >> <a href='".FUSION_SELF."?cat_id=".$data['download_cat']."' class='small' title='Siuntinio Kategorija'><b>$kat</b></a> > <a class='small' href='".FUSION_SELF."?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='Atsisiøsti dainà'><b>".$data['download_title']."</b></a> </td>
<td align='right'><span class='small2'><b>Pridëtas:</b> $laikas</span></td>
</tr></table></td>
</tr>\n";
if ($data['download_description'] != "") echo "<tr>\n
<td colspan='5' class='tbl1'>".nl2br(stripslashes($data['download_description']))."</td>\n</tr>\n";
echo "<tr><br><br>\n
<td rowspan='2' class='tbl1' align='center' valign='middle' width='1%'><a class='small' href='".FUSION_SELF."?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='Atsisiøsti Failà' style='font-weight: bold;'><img src='".IMAGES."download.png' alt='Atsisiøsti Failà' border='0'></a></td>\n";
echo "<td width='30%' class='tbl2'><b>Ádëjo:</b> <a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a></td>\n";
$kom = dbquery("SELECT count(comment_id) FROM ".$db_prefix."comments WHERE comment_type='D' AND comment_item_id='$id'");
$kon = dbresult($kom, 0);
if ($kon == 0) { $komentarai = 0; } else { $komentarai = $kon; }
lentele, rodanti autoriu
download_author
Redagavo Enzo· 2008 Bir. 22 13:06:50