"; $field=""; $url="管理会员表单 > 增加会员表单"; $postword='增加会员表单'; if($enews=="AddMemberForm"&&$_GET['docopy']) { $fid=(int)$_GET['fid']; $ftype=""; $r=$empire->fetch1("select * from {$dbtbpre}enewsmemberform where fid='$fid'"); $url="管理会员表单 > 复制会员表单: ".$r['fname']; $postword='复制会员表单'; } //修改 if($enews=="EditMemberForm") { $fid=(int)$_GET['fid']; $ftype=""; $url="管理会员表单 > 修改会员表单"; $postword='修改会员表单'; $r=$empire->fetch1("select * from {$dbtbpre}enewsmemberform where fid='$fid'"); } //取得字段 $no=0; $fsql=$empire->query("select f,fname from {$dbtbpre}enewsmemberf 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].","; //录入项 $enterchecked=""; 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]; } } $entercheckbox=""; //前台显示项 if(strstr($r[viewenter],$like)) { $viewenterchecked=" checked"; } else { $viewenterchecked=""; } $viewentercheckbox=""; //必填项 $mustfchecked=""; if(strstr($r[mustenter],$slike)) {$mustfchecked=" checked";} $mustfcheckbox=""; //搜索项 $searchchecked=""; if(strstr($r[searchvar],$slike)) { $searchchecked=" checked"; } $searchcheckbox=""; //可增加 $canaddfchecked=""; if(strstr($r[canaddf],$slike)) { $canaddfchecked=" checked"; } if($enews=="AddMemberForm") { $canaddfchecked=" checked"; } $canaddfcheckbox=""; //可修改 $caneditfchecked=""; if(strstr($r[caneditf],$slike)) { $caneditfchecked=" checked"; } if($enews=="AddMemberForm") { $caneditfchecked=" checked"; } $caneditfcheckbox=""; $data.="
位置:=$url?> |