Parašė desire· 2008 Rugs. 13 13:09:14
#1
niekaip neiseina man pritaikyt sito script'o:
openside("Skyriai");
$result = dbquery("SELECT * FROM ".$db_prefix."news_cats ORDER BY news_cat_name");
while ($data = dbarray($result)) {
$rows = dbcount("(news_id)", "news", "news_cat='".$data['news_cat_id']."' AND ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().")");
echo "<a href='".BASEDIR."news_cats.php?cat_id=".$data['news_cat_id']."' class='side'>".$data['news_cat_name']."[$rows]</a><br />";
}
closeside();
siai panelei:
opensidex("Meniu");
echo '<div style="font-size:15px"> <b><font color="green">Sios dienos meniu:</font></b></a></div>
<p><img src="/images/kopustas.gif"> <a href="/news_cats.php?cat_id=1">Kopustu sriuba</a>';
closesidex();
reikia jog rodytu sioje paneleje "
Kopustu sriuba [naujienu_skaicius]" , bet nesuprantu kaip pritaikyt ana script'a siai panelei jog nerodytu jokiu klaidu.. :/