Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Siuntiniu Panele
Parašė Noyz· 2010 Sau. 30 14:01:50
#1
openside("Siuntinių kategorijos");
$result = dbquery("SELECT * FROM ".$db_prefix."download_cats WHERE ".groupaccess('download_cat_access')." ORDER BY download_cat_name");
$rows = dbrows($result);
if ($rows != 0) {
$counter = 0; $columns = 2;
while ($data = dbarray($result)) {
if ($counter != 0 && ($counter % $columns == 0)) echo "";
$num = dbcount("(download_cat)", "downloads", "download_cat='".$data['download_cat_id']."'");
echo "<img src='http://eizo0x.xz.lt/images/failas.gif'> <a style='color:#FFF;' href='".BASEDIR."downloads.php?cat_id=".$data['download_cat_id']."'>".$data['download_cat_name']."</a> <span class='small2'>($num)</span>";
echo "<br>" ;
$counter++;
}
echo "<br>";
$result = dbquery("SELECT count(download_id) FROM ".$db_prefix."downloads");
echo "<img src='".THEME."images/bullet.gif'> Siuntinių: [".dbresult($result, 0)."]<br>";
$result = dbquery("SELECT SUM(download_count) FROM ".$db_prefix."downloads");
echo "<img src='".THEME."images/bullet.gif'> Atsisiųsta: [".dbresult($result, 0)."]<br>";
} else {
echo "<center><br>\nŠiai panelei nėra turinio<br><br></center>\n";
}
closeside();
Man reiktu, kad nerodytu kategoriju, padarykite, kad rodytu tik sita :
Siuntinių: [5]
Atsisiųsta: []
Parašė fLap· 2010 Sau. 30 14:01:19
#2
openside("Siuntinių kategorijos");
$result = dbquery("SELECT count(download_id) FROM ".$db_prefix."downloads");
echo "<img src='".THEME."images/bullet.gif'> Siuntinių: [".dbresult($result, 0)."]<br>";
$result = dbquery("SELECT SUM(download_count) FROM ".$db_prefix."downloads");
echo "<img src='".THEME."images/bullet.gif'> Atsisiųsta: [".dbresult($result, 0)."]<br>";
} else {
echo "<center><br>\nŠiai panelei nėra turinio<br><br></center>\n";
closeside();
Redagavo fLap· 2010 Sau. 30 14:01:53
Parašė Noyz· 2010 Sau. 30 14:01:54
#3
Parse error: syntax error, unexpected '}' in /home/varskenas/domains/efrag.huh.lt/public_html/administration/panel_editor.php(111) : eval()'d code on line 7
Parašė zDon· 2010 Sau. 30 14:01:03
#4
openside("Siuntinių kategorijos");
$result = dbquery("SELECT count(download_id) FROM ".$db_prefix."downloads");
echo "<img src='".THEME."images/bullet.gif'> Siuntinių: [".dbresult($result, 0)."]<br>";
$result = dbquery("SELECT SUM(download_count) FROM ".$db_prefix."downloads");
echo "<img src='".THEME."images/bullet.gif'> Atsisiųsta: [".dbresult($result, 0)."]<br>";
closeside()
Parašė Noyz· 2010 Sau. 30 14:01:37
#5
Parse error: syntax error, unexpected $end in /home/varskenas/domains/efrag.huh.lt/public_html/administration/panel_editor.php(111) : eval()'d code on line 6
:D
Parašė zDon· 2010 Sau. 30 14:01:19
#6
openside("Siuntinių kategorijos");
$result = dbquery("SELECT count(download_id) FROM ".$db_prefix."downloads");
echo "<img src='".THEME."images/bullet.gif'> Siuntinių: [".dbresult($result, 0)."]<br>";
$result = dbquery("SELECT SUM(download_count) FROM ".$db_prefix."downloads");
echo "<img src='".THEME."images/bullet.gif'> Atsisiųsta: [".dbresult($result, 0)."]<br>";
closeside();
Parašė gintulys· 2010 Sau. 30 14:01:51
#7
openside("Failai");
echo "
";
$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 "° Dainu: [".dbresult($result, 0)."]<br>";
$result = dbquery("SELECT SUM(download_count) FROM ".$db_prefix."downloads");
echo "° Atsisiusta: [".dbresult($result, 0)."]<br>";
closeside();
Redagavo gintulys· 2010 Sau. 30 14:01:43