fetch1("select * from {$dbtbpre}enewsshop_set limit 1");
//刷新表
$changetable='';
$i=0;
$tsql=$empire->query("select tid,tbname,tname from {$dbtbpre}enewstable order by tid");
while($tr=$empire->fetch($tsql))
{
$i++;
if($i%4==0)
{
$br="
";
}
else
{
$br="";
}
$checked='';
if(stristr($r['shoptbs'],','.$tr[tbname].','))
{
$checked=' checked';
}
$changetable.="$tr[tname] ".$br;
}
//权限
$shopddgroup='';
$mgsql=$empire->query("select groupid,groupname from {$dbtbpre}enewsmembergroup order by level");
while($mgr=$empire->fetch($mgsql))
{
if($r[shopddgroupid]==$mgr[groupid])
{
$shopddgroup_select=' selected';
}
else
{
$shopddgroup_select='';
}
$shopddgroup.="";
}
db_close();
$empire=null;
?>
位置:商城参数设置 |