عظيم بارك الله فيك![]()
![]()
![]()
و لكن اين التعديل حتى استطيع تطبيقه على باقى الملفات؟
و شكرآ لك![]()
عظيم بارك الله فيك![]()
![]()
![]()
و لكن اين التعديل حتى استطيع تطبيقه على باقى الملفات؟
و شكرآ لك![]()
__________________
**** شكرآ سوالف سوفت ****
كود:<table width="200" border="0"> <tr> <td width="51"><img src="images/<? echo $row2["image"]; ?>" height="50" width="50"></td> <td valign="top" width="149"><font size="1"><? echo $row2["name"]; ?><br> <? echo $row2["desc"]; ?><br> <a href="game-<? echo $row2["gameid"]; ?>.html">Play >></a></font></td> </tr> </table> <? } ?> </td> <td valign="top"> <? $sql2 = "SELECT * FROM games WHERE category = '$catname' AND visible = '1' ORDER BY played DESC LIMIT $leftend,$rightend"; $result2 = mysql_query($sql2); while($row2 = mysql_fetch_array($result2)) { ?> <table width="200" border="0"> <tr> <td width="51"><img src="images/<? echo $row2["image"]; ?>" height="50" width="50"></td> <td valign="top" width="149"><font size="1"><? echo $row2["name"]; ?><br> <? echo $row2["desc"]; ?><br> <a href="game-<? echo $row2["gameid"]; ?>.html">Play >></a></font></td>
------
<a href="game-<? echo $row2["gameid"]; ?>.html">
-------
لا شكر على واجب يا خوي
__________________
::: شبكة جرح الإمارات ::: قريبا :::
ضبطوا لنا هذا الملف + كود الــ .htaccess
كود PHP:
<?php
/*
paFileDB 3.1
©2001/2002 PHP Arena
Written by Todd
todd@phparena.net
http://www.phparena.net
Keep all copyright links on the script visible
Please read the license included with this script for more information.
*/
##########
#paFileDB 3.1
#Arabic
#translate by 7dod team
##########
$filelist = '';
$pages = '';
if (!is_object($pafiledb_sql)) {
exit;
}
$category = $pafiledb_sql->query($db, "SELECT * FROM $db[prefix]_cat WHERE cat_id = '".intval($id)."'", 1);
if ($category[5] == 0) { $locbar = "<p align='right'><a href=\"pafiledb.php\" class=\"small\">$config[1]</a> :: $category[1]"; }
if ($category[5] > 0) {
$parent = $pafiledb_sql->query($db, "SELECT * FROM $db[prefix]_cat WHERE cat_id = '$category[5]'", 1);
$locbar = "<p align='right'><a href=\"pafiledb.php\" class=\"small\">$config[1]</a> :: <a href=\"pafiledb.php?action=category&id=$parent[0]\" class=\"small\">$parent[1]</a> :: $category[1]";
}
if ($logged == 1) {
adlocbar($locbar, $user,$str);
adminlinks_viewcat($str,intval($id));
} else {
@locbar($locbar);
}
$result = $pafiledb_sql->query($db, "SELECT * FROM $db[prefix]_cat WHERE cat_parent = '".intval($id)."' ORDER BY cat_id", 0);
$n = mysql_num_rows($result);
if ($n > 0) {
echo("<table width=\"100%\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\" class=\"headertable\" bordercolor=\"#000000\">
<tr><td width=\"90%\" class=\"headercell\"><center><b>$str[category]</b></center></td><td width=\"10%\" class=\"headercell\"><center><b>$str[files]</b></center></td></tr>");
#$result = $pafiledb_sql->query($db, "SELECT * FROM $db[prefix]_cat WHERE cat_parent = '".intval($id)."' ORDER BY cat_id", 0);
while ($sub = mysql_fetch_object($result)) {
$filesincat = $pafiledb_sql->query($db, "SELECT * FROM $db[prefix]_files WHERE file_catid = '$sub->cat_id'", 2);
echo "<tr><td width=\"90%\" class=\"datacell\"><a href=\"pafiledb.php?action=category&id=$sub->cat_id\">$sub->cat_name</a><br><a class=\"smalltext\">» $sub->cat_desc «</a></td><td width=\"10%\" class=\"datacell\"><center>$filesincat</center></td></tr>";
}
echo"</table><p>";
}
$result = $pafiledb_sql->query($db, "SELECT * FROM $db[prefix]_files WHERE file_catid = '".intval($id)."' AND file_pin = '1' ORDER BY file_id", 0);
/*PINNED*/
while ($pin = mysql_fetch_object($result)) {
$date = date("n/j/y", $pin->file_time);
$ntv = $pin->file_totalvotes - 1;
if ($pin->file_rating == 0 or $ntv == 0) {
$rating = 0;
$starsshow="<font size=1>$str[notrate]</font>";
}
else {
$rating = round($pin->file_rating/$ntv, 2);
$rating = round($rating,0);
$starsshow="";
if ($rating=='1') {
$starsshow="<img src='images/stars-1.gif'>";
}
$i++;
if ($rating=='2') {
$starsshow="<img src='images/stars-2.gif'> <img src='images/star.gif'>";
}
$i++;
if ($rating=='3') {
$starsshow="<img src='images/stars-3.gif'>";
}
$i++;
if ($rating=='4') {
$starsshow="<img src='images/stars-4.gif'>";
}
$i++;
if ($rating=='5') {
$starsshow="<img src='images/stars-5.gif'>";}
}
$newind = "";
if (time() - ($config[6] * 24 * 60 * 60) < $pin->file_time)
$newind = " <FONT COLOR=\"#FF0000\">$str[newfile]</FONT>";
if ($z==0) {
$filelist .= "<tr><td width=\"5%\" align=\"center\" class=\"datacell\"><img src=\"styles/$config[11]/images/pin.gif\"></td><td width=\"65%\" class=\"datacell\"><a href=\"pafiledb.php?action=file&id=$pin->file_id&idP=$category->cat_id\" class=\"pin\">$pin->file_name</a>$newind<br><a class=\"smalltext\">» $pin->file_desc «</a></td><td width=\"10%\" class=\"datacell\"><center>$date</center></td><td width=\"10%\" class=\"datacell\" nowrap><center>$starsshow</center></td><td width=\"10%\" class=\"datacell\"><center>$pin->file_dls</center></td><td width=\"10%\" class=\"datacell\"><center>$pin->file_creator</center></td></tr>";
$z=1;
}
else {
$filelist .= "<tr><td width=\"5%\" align=\"center\" class=\"datacell2\"><img src=\"styles/$config[11]/images/pin.gif\"></td><td width=\"65%\" class=\"datacell2\"><a href=\"pafiledb.php?action=file&id=$pin->file_id&idP=$category->cat_id\" class=\"pin\">$pin->file_name</a>$newind<br><a class=\"smalltext\">» $pin->file_desc «</a></td><td width=\"10%\" class=\"datacell2\"><center>$date</center></td><td width=\"10%\" class=\"datacell2\" nowrap><center>$starsshow</center></td><td width=\"10%\" class=\"datacell2\"><center>$pin->file_dls</center></td><td width=\"10%\" class=\"datacell2\"><center>$pin->file_creator</center></td></tr>";
$z=0;
}
}
$start = trim($start);
$start = intval($start);
if (empty($start)) {
$start = 0;
}
if (empty($sortby)) { $sortby = "name"; }
if ($sortby == "name") {
$result = $pafiledb_sql->query($db, "SELECT * FROM $db[prefix]_files WHERE file_pin = '0' AND file_catid = '".intval($id)."' ORDER BY file_name ASC LIMIT $start,20", 0);
}
if ($sortby == "date") {
$result = $pafiledb_sql->query($db, "SELECT * FROM $db[prefix]_files WHERE file_pin = '0' AND file_catid = '".intval($id)."' ORDER BY file_time DESC LIMIT $start,20", 0);
}
if ($sortby == "downloads") {
$result = $pafiledb_sql->query($db, "SELECT * FROM $db[prefix]_files WHERE file_pin = '0' AND file_catid = '".intval($id)."' ORDER BY file_dls DESC LIMIT $start,20", 0);
}
if ($sortby == "rating") {
$result = $pafiledb_sql->query($db, "SELECT * FROM $db[prefix]_files WHERE file_pin = '0' AND file_catid = '".intval($id)."' ORDER BY (file_rating/file_totalvotes) DESC LIMIT $start,20", 0);
}
if ($sortby == "creator") {
$result = $pafiledb_sql->query($db, "SELECT * FROM $db[prefix]_files WHERE file_pin = '0' AND file_catid = '".intval($id)."' ORDER BY file_creator ASC LIMIT $start,20", 0);
}
$filesincat = $pafiledb_sql->query($db, "SELECT * FROM $db[prefix]_files WHERE file_catid = '".intval($id)."' AND file_pin = '0'", 2);
if ($filesincat == 0) {
$filesincat = 1;
}
/*NOT PINNED*/
while ($file = mysql_fetch_object($result)) {
$date = date("n/j/y", $file->file_time);
$ntv = $file->file_totalvotes - 1;
if ($file->file_rating == 0 or $ntv == 0) {
$rating = 0;
$starsshow="<font size=1>$str[notrate]</font>";
}
else {
$rating = round($file->file_rating/$ntv, 2);
$rating = round($rating,0);
$starsshow="";
if ($rating=='1') {
$starsshow="<img src='images/star.gif'>";
}
if ($rating=='2') {
$starsshow="<img src='images/star.gif'> <img src='images/star.gif'>";
}
if ($rating=='3') {
$starsshow="<img src='images/star.gif'> <img src='images/star.gif'> <img src='images/star.gif'>";
}
if ($rating=='4') {
$starsshow="<img src='images/star.gif'> <img src='images/star.gif'> <img src='images/star.gif'> <img src='images/star.gif'>";
}
if ($rating=='5') {
$starsshow="<img src='images/star.gif'> <img src='images/star.gif'> <img src='images/star.gif'> <img src='images/star.gif'> <img src='images/star.gif'>";
}
}
if ($file->file_posticon == "none" or $file->file_posticon == "none.gif") {
$posticon = " ";
} else {
$posticon = "<img src=\"images/posticons/$file->file_posticon\">";
}
// Popular files icons hack start
if ($file->file_dls > 100) {
$posticon = "<img src=\"images/popular.gif\">";
}
if ($file->file_dls > 500) {
$posticon = "<img src=\"images/verypopular.gif\">";
}
// Popular files icons hack end
$newind = "";
if (time() - ($config[6] * 24 * 60 * 60) < $file->file_time)
$newind = " <FONT COLOR=\"#FF0000\">$str[newfile]</FONT>";
if ($z==0) {
$filelist .= "<tr><td width=\"5%\" align=\"center\" class=\"datacell\">$posticon</td><td width=\"65%\" class=\"datacell\"><a href=\"pafiledb.php?action=file&id=$file->file_id&idP=$category->cat_id\">$file->file_name</a>$newind<br><a class=\"smalltext\">» $file->file_desc «</a></td><td width=\"10%\" class=\"datacell\"><center>$date</center></td><td width=\"10%\" class=\"datacell\" nowrap><center>$starsshow</center></td><td width=\"10%\" class=\"datacell\"><center>$file->file_dls</center></td><td width=\"10%\" class=\"datacell\"><center>$file->file_creator</center></td></tr>";
$z=1;
}
else {
$filelist .= "<tr><td width=\"5%\" align=\"center\" class=\"datacell2\">$posticon</td><td width=\"65%\" class=\"datacell2\"><a href=\"pafiledb.php?action=file&id=$file->file_id&idP=$category->cat_id\">$file->file_name</a>$newind<br><a class=\"smalltext\">» $file->file_desc «</a></td><td width=\"10%\" class=\"datacell2\"><center>$date</center></td><td width=\"10%\" class=\"datacell2\" nowrap><center>$starsshow</center></td><td width=\"10%\" class=\"datacell2\"><center>$file->file_dls</center></td><td width=\"10%\" class=\"datacell2\"><center>$file->file_creator</center></td></tr>";
$z=0;
}
}
$numpages = ceil($filesincat / 20);
if ($start + 20 < $filesincat) {
$newstart = $start + 20;
$next = "<a href=\"pafiledb.php?action=category&id=".intval($id)."&start=$newstart&sortby=$sortby\">$str[next] »</a>";
}
if ($start - 20 >= 0) {
$newstart = $start - 20;
$prev = "<a href=\"pafiledb.php?action=category&id=".intval($id)."&start=$newstart&sortby=$sortby\">« $str[prev]</a>";
}
for ($i = 0; $i < $numpages; $i++) {
$newstart = 20*$i;
$pagenum = $i + 1;
if ($newstart == $start) {
$pages .= "$pagenum ";
} else {
$pages .= "<a href=\"pafiledb.php?action=category&id=".intval($id)."&start=$newstart&sortby=$sortby\">$pagenum</a> ";
}
}
$filelist = trim($filelist);
if (!empty($filelist)) {
?>
<table border="1" cellspacing="1" width="100%" id="AutoNumber1" style="border-collapse: collapse" bordercolor="#111111" cellpadding="2">
<tr><td width="5%" class="headercell"></td><td width="65%" class="headercell"><center><?php echo $str[file]; ?></center></td><td width="10%" class="headercell"><center><?php echo $str[date]; ?></center></td><td width="10%" class="headercell"><center><?php echo $str[rating]; ?></center></td><td width="10%" class="headercell"><center><?php echo $str[dls]; ?></center></td><td width="10%" class="headercell"><center><?php echo $str[creator]; ?></center></td></tr>
<?php
echo $filelist;
?>
<form action="pafiledb.php" method="post"><input type="hidden" name="action" value="category"><input type="hidden" name="id" value="<?php echo $id; ?>">
<input type="hidden" name="start" value="<?php echo $start; ?>">
<tr><td width="100%" colspan="6" align="center" valign="middle" class="headercell"><?php echo $str[sortby]; ?>:
<select name="sortby" style="vertical-align:middle">
<option value="name"><?php echo $str[name]; ?></option>
<option value="date"><?php echo $str[date]; ?></option>
<option value="rating"><?php echo $str[rating]; ?></option>
<option value="downloads"><?php echo $str[dls]; ?></option>
<option value="creator"><?php echo $str[creator]; ?></option>
</select><input type="submit" value="<?php echo $str[sort]; ?>" style="vertical-align:middle"></center></td></tr></form>
</table>
<table border="1" cellspacing="1" width="100%" id="AutoNumber1" style="border-collapse: collapse" bordercolor="#111111" cellpadding="2">
<tr><td width="33%" class="datacell" align="right"><?php echo $prev; ?></td>
<td width="33%" class="datacell" align="center"><?php echo "$str[pagenums]: $pages"; ?></td>
<td width="34%" class="datacell" align="left"><?php echo $next; ?></td></tr>
</table>
<?php
} else {
?><table border="1" cellspacing="1" width="100%" id="AutoNumber1" style="border-collapse: collapse" bordercolor="#111111" cellpadding="2">
<tr><td width="100%" colspan="2" class="headercell"><center><b><?php echo $str[NFFound];?></b></center></td></tr>
<tr><td width="5%" class="datacell" align="center" valign="middle"><img src="styles/<?php echo $config[11]; ?>/images/info.gif" border="0"></td>
<td width="95%" class="datacell"><?php echo $str[Nfcategory];?></td></tr></table><?php
}
if ($logged == 1) { echo "</td></tr></table>"; } ?>
__________________
+======================+
شبكة تصميم لتطوير المواقع
www.tsmim.com
سكربتات حصرية - وتصاميم مميزة لموقعك
+======================+
رائع اخوانى
جزاكم الله كل الخير
__________________
سكربت مكتبة البرامج الذكية
===
[ برامج | منتدى | تنمية بشرية | Download ]
===
ديبرو ويب
ما قصرت اخي
شكرا لك