fetch1("select u.*,ui.* from ".$user_tablename." u LEFT JOIN {$dbtbpre}enewsmemberadd ui ON u.{$user_userid}=ui.userid where u.{$user_userid}='$muserid' limit 1"); } //增加 if($enews=="MAddInfo") { $cr=DoQCheckAddLevel($classid,$muserid,$musername,$mrnd,0,1); $mr=$empire->fetch1("select qenter,qmname from {$dbtbpre}enewsmod where mid='$cr[modid]'"); if(empty($mr['qenter'])) { printerror("NotOpenCQInfo","history.go(-1)",1); } $word="提交信息"; $ecmsfirstpost=1; $rechangeclass=" [重新選擇]"; //驗證碼 if($cr['qaddshowkey']) { $showkey=" 驗證碼 "; } //圖片 $imgwidth=0; $imgheight=0; //文件驗證碼 $filepass=time(); } else { $word="修改信息"; $ecmsfirstpost=0; $id=(int)$_GET['id']; if(empty($id)) { printerror("EmptyQinfoCid","",1); } $cr=DoQCheckAddLevel($classid,$muserid,$musername,$mrnd,1,0); $mr=$empire->fetch1("select qenter,qmname from {$dbtbpre}enewsmod where mid='$cr[modid]'"); if(empty($mr['qenter'])) { printerror("NotOpenCQInfo","history.go(-1)",1); } $r=CheckQdoinfo($classid,$id,$muserid,$cr['tbname'],$cr['adminqinfo'],1); //檢測時間 if($public_r['qeditinfotime']) { if(time()-$r['truetime']>$public_r['qeditinfotime']*60) { printerror("QEditInfoOutTime","history.go(-1)",1); } } $newstime=$r['newstime']; $r['newstime']=date("Y-m-d H:i:s",$r['newstime']); //圖片 $imgwidth=170; $imgheight=120; //文件驗證碼 $filepass=$id; } $tbname=$cr['tbname']; esetcookie("qeditinfo","dgcms"); //專題 $ztwhere=ReturnClass($class_r[$classid][featherclass]); $z_sql=$empire->query("select ztname,ztid,tbname from {$dbtbpre}enewszt where usezt=0 and (classid=0 or classid='$classid' or (".$ztwhere.")) order by ztid"); $j=0; $br=''; while($z_r=$empire->fetch($z_sql)) { $j++; if($j%8==0) { $br='
'; } else { $br=''; } $select=''; if(strstr($r[ztid],'|'.$z_r[ztid].'|')) { $select=" checked"; } $zts.="".$z_r[ztname]." ".$br; } //標題分類 $tts=''; $ttsql=$empire->query("select typeid,tname from {$dbtbpre}enewsinfotype where mid='$cr[modid]' order by myorder"); while($ttr=$empire->fetch($ttsql)) { $select=''; if($ttr[typeid]==$r[ttid]) { $select=' selected'; } $tts.=""; } //欄目 $classurl=sys_ReturnBqClassname($cr,9); $postclass="".$class_r[$classid]['classname']."".$rechangeclass; if($cr['bclassid']) { $bcr['classid']=$cr['bclassid']; $bclassurl=sys_ReturnBqClassname($bcr,9); $postclass="".$class_r[$cr['bclassid']]['classname']." > ".$postclass; } //html編輯器 if($emod_r[$mid]['editorf']&&$emod_r[$mid]['editorf']!=',') { include('../data/ecmseditor/infoeditor/fckeditor.php'); } if(empty($musername)) { $musername="游客"; } $modfile="../data/html/q".$cr['modid'].".php"; //導入模板 require(ECMS_PATH.'e/template/DoInfo/AddInfo.php'); db_close(); $empire=null; ?>大阳物影视