"; $field=""; $postword='增加'; $url="数据表:[".$dbtbpre."ecms_".$tbname."] > 系统模型管理 > 增加系统模型"; if($enews=="AddM"&&$docopy) { $postword='复制'; $mid=(int)$_GET['mid']; $mtype=""; $r=$empire->fetch1("select * from {$dbtbpre}enewsmod where mid='$mid' and tid='$tid'"); $url="数据表:[".$dbtbpre."ecms_".$tbname."] > 系统模型管理 > 复制系统模型: ".$r['mname']; } //修改系统模型 if($enews=="EditM") { $postword='修改'; $mid=(int)$_GET['mid']; $mtype=""; $url="数据表:[".$dbtbpre."ecms_".$tbname."] > 系统模型管理 > 修改系统模型"; $r=$empire->fetch1("select * from {$dbtbpre}enewsmod where mid='$mid' and tid='$tid'"); } //取得字段 $no=0; $fsql=$empire->query("select f,fname,iscj,dotemp,tbdataf from {$dbtbpre}enewsf where isshow=1 and tid='$tid' order by myorder,fid"); while($fr=$empire->fetch($fsql)) { $no++; $bgcolor="ffffff"; if($no%2==0) { $bgcolor="#F8F8F8"; } $like=$field.$fr[f].$record; $slike=",".$fr[f].","; //录入项 if(strstr($r[enter],$like)) { $enterchecked=" checked"; //取得字段标识 $dor=explode($like,$r[enter]); if(strstr($dor[0],$record)) { $dor1=explode($record,$dor[0]); $last=count($dor1)-1; $fr[fname]=$dor1[$last]; } else { $fr[fname]=$dor[0]; } } else { $enterchecked=""; } //标题 if($enews=="AddM"&&($fr[f]=="title"||$fr[f]=="special.field")) { $enterchecked=" checked"; } $entercheckbox=""; //投稿项 if(strstr($r[qenter],$like)) { $qenterchecked=" checked"; } else { $qenterchecked=""; } $qentercheckbox=""; $listtempfcheckbox=""; $pagetempfcheckbox=""; if($fr['dotemp']) { //列表模板项 if(empty($fr['tbdataf']))//主表 { if(strstr($r[listtempvar],$like)) { $listtempfchecked=" checked"; } else { $listtempfchecked=""; } $listtempfcheckbox=""; } //内容模板项 if(strstr($r[tempvar],$like)) { $pagetempfchecked=" checked"; } else { $pagetempfchecked=""; } $pagetempfcheckbox=""; } //采集项 $cjcheckbox=""; if($fr[iscj]) { if(strstr($r[cj],$like)) {$cjchecked=" checked";} else {$cjchecked="";} //标题 if($enews=="AddM"&&$fr[f]=="title") { $cjchecked=" checked"; } $cjcheckbox=""; } //搜索项 $searchcheckbox=""; if($fr[f]!="special.field"&&empty($fr['tbdataf'])&&empty($fr['tbdataf'])) { if(strstr($r[searchvar],$slike)) {$searchchecked=" checked";} else {$searchchecked="";} $searchcheckbox=""; } //必填项 $mustfcheckbox=""; if($fr[f]!="special.field") { $mustfchecked=""; if(strstr($r[mustqenterf],$slike)) {$mustfchecked=" checked";} if($enews=="AddM"&&$fr[f]=="title") { $mustfchecked=" checked"; } $mustfcheckbox=""; } //结合项 $listandfcheckbox=""; if($fr[f]!="special.field"&&empty($fr['tbdataf'])) { $listandfchecked=""; if(strstr($r[listandf],$slike)) {$listandfchecked=" checked";} $listandfcheckbox=""; } //排序项 $orderfcheckbox=""; if($fr[f]!="special.field"&&empty($fr['tbdataf'])) { $orderfchecked=""; if(strstr($r[orderf],$slike)) {$orderfchecked=" checked";} $orderfcheckbox=""; } //可增加 $canaddfcheckbox=""; if($fr[f]!="special.field") { $canaddfchecked=""; if(strstr($r[canaddf],$slike)) {$canaddfchecked=" checked";} if($enews=="AddM"&&!$docopy) { $canaddfchecked=" checked"; } $canaddfcheckbox=""; } //可修改 $caneditfcheckbox=""; if($fr[f]!="special.field") { $caneditfchecked=""; if(strstr($r[caneditf],$slike)) {$caneditfchecked=" checked";} if($enews=="AddM"&&!$docopy) { $caneditfchecked=" checked"; } $caneditfcheckbox=""; } $data.="
位置:=$url?> |