Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Panelės 2in1

Parašė Gugiss· 2008 Bir. 5 23:06:40
#1

Kaip būtų galima šias 2 paneles sukišti į vieną. Panašiai kaip ex-fusion info_panel. Bandžiau pats bet nk nesigavo:

echo "";
$result = dbquery("SELECT * FROM ".DB_PREFIX."news WHERE ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") ORDER BY news_datestamp DESC LIMIT 0,7");
while ($data = dbarray($result)) {
$title = $data['news_subject'];
$sh_title = $title;
$n_id = $data['news_id'];
$v_id = $data['news_reads'];
$comments_n = dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id=$n_id");
$date = $data['news_datestamp'];
$n_date = showdate("%Y %B %d", $date);
$name = $data['news_cat'];

echo "<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."naujienos.php?skaityti=$n_id'><b>$sh_title</b></a> - $comments_n komentarų [$n_date]
<span class='side'></span><br><br>";
}





echo "";
$result = dbquery("SELECT * FROM ".DB_PREFIX."video WHERE ".groupaccess('video_visibility')." AND (video_start='0'||video_start<=".time().") AND (video_end='0'||video_end>=".time().") ORDER BY video_datestamp DESC LIMIT 0,7");
while ($data = dbarray($result)) {
$title = $data['video_subject'];
$sh_title = $title;
$n_id = $data['video_id'];
$v_id = $data['video_reads'];
$comments_n = dbcount("(comment_id)", "comments", "comment_type='V' AND comment_item_id=$n_id");
$date = $data['video_datestamp'];
$n_date = showdate("%Y %B %d", $date);
$name = $data['video_cat'];

echo "<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."video.php?ziureti=$n_id'><b>$sh_title</b></a> - $comments_n komentarų [$n_date]
<span class='side'></span><br><br>";
}