'','te xxt'=>'选择分类'));
$pt = $db->fetch_array($db->query("select * from ".DB_PREFIX."b2b_types where tkey = '".$db->input('product')."'"));
$tid = $pt['tid'];
$cateQuery = $db->query("select * from ".DB_PREFIX."b2b_contents c,".DB_PREFIX."b2b_group g where c.gid=g.gid and c.tid=".(int)$tid." and c.users_id = ".(int)$_GET['uid']." group by g.gid");
$cateNum = $db->num_rows($cateQuery);
if ($cateNum > 0){
for ($i=1;$i<=$cateNum;$i++){
$c = $db->fetch_array($cateQuery);
$cateArray[] = array('id'=>$c['gid'],'text'=>$c['group_title']);
?>
';
}
elseif ($cateNum > 5 && $i%5==0){
echo '
';
}
elseif ($i==$cateNum){
echo '
';
}
}
}
else {
echo '