Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Siuntimu kategorijos v7
Parašė Matulis· 2010 Rugp. 13 23:08:24
#1
Sveiki, radau siuntimu kategoriju panele bet ji skirta v6 fusionui. Man reike tokios pat paneles tik v7, visi sako kad lengva persidaryti bet niekas nepadeda, o pats fusion dar nelabai moku koduot, gal kas galit padeti ?
Kodas:
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();
Parašė Jaunelis· 2010 Rugp. 13 23:08:03
#2
o kokį errorą meta?
Parašė Matulis· 2010 Rugp. 13 23:08:09
#3
Table '********.downloads' doesn't exist Lietuviska ()
Redagavo Matulis· 2010 Rugp. 13 23:08:41
Parašė Jaunelis· 2010 Rugp. 13 23:08:08
#4
openside("Siuntinių kategorijos");
$result = dbquery("SELECT * FROM ".DB_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)", "".DB_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_DOWNLOADS."");
echo "<img src='".THEME."images/bullet.gif'> Siuntinių: [".dbresult($result, 0)."]<br>";
$result = dbquery("SELECT SUM(download_count) FROM ".DB_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();
buvau lieva įdėjas dabar turėtų veikti :)
Redagavo Jaunelis· 2010 Rugp. 13 23:08:28
Parašė Matulis· 2010 Rugp. 13 23:08:21
#5
vistiek taspats erroras :S
Parašė Jaunelis· 2010 Rugp. 13 23:08:40
#6
Prašė ir spalva paredaguoti tai va:
openside("Siuntinių kategorijos");
$result = dbquery("SELECT * FROM ".DB_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)", "".DB_DOWNLOADS."", "download_cat='".$data['download_cat_id']."'");
echo "<img src='http://eizo0x.xz.lt/images/failas.gif'> <a style='color:#000;' 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_DOWNLOADS."");
echo "<img src='".THEME."images/bullet.gif'> <span style='color:#000;'>Siuntinių: [".dbresult($result, 0)."]</span><br>";
$result = dbquery("SELECT SUM(download_count) FROM ".DB_DOWNLOADS."");
echo "<img src='".THEME."images/bullet.gif'> <span style='color:#000;'>Atsisiųsta: [".dbresult($result, 0)."]</span><br>";
} else {
echo "<center><br>\nŠiai panelei nėra turinio<br><br></center>\n";
}
closeside();
Redagavo Jaunelis· 2010 Rugp. 13 23:08:12
Parašė Matulis· 2010 Rugp. 13 23:08:43
#7
o dekui viskas veike uz tai gauni +10 :D