{php $this->pmeta('商家地图'); } {php} eimp('initJs','jquery;bootstrap;comm'); eimp('initCss','bootstrap,stpub;comm;info'); // 参数 $mods = array('company','govern','organize'); $mod = req('mod'); $mod = in_array($mod, $mods) ? $mod : 'company'; $ftype = req('ftype'); // 分页 $sfrom = "uid,company,ftype,map FROM users_{$mod}_ys "; $where = "`show`=1 AND map>'0' ".($ftype ? " AND ftype='$ftype' " : ''); $pg = new comPager($sfrom,$where,2,"atime"); $pg->set('opkey','0'); $rs = $pg->exe(); // 数据 $items = array(); $idfirst = ''; $idend = ''; if($rs){ foreach($rs as $row){ $info = array('uid'=>$row['uid'], 'title'=>$row['company']); $map = explode(',',$row['map']); $items[] = $info + $map; }} $ubase = basReq::getUri(-1,'','page|prec|ptype|pkey'); $pabar = $pg->show($idfirst,$idend,'',$ubase); {/php} {inc:"u-inc/ahead"} {inc:"u-inc/amenu"}
商家地图 {php} foreach($mods as $xmod){ echo "$xmod"; } {/php}
类别 {tag:utab=[Type][modid,ftype][limit,88]} · {=$t_title} {/tag:utab}
-
{=$pabar}
{inc:"info/a-side"}
{inc:"u-inc/afoot"}