".$reloadjs."window.close();"; exit(); } $classid=(int)$_GET['classid']; if(empty($class_r[$classid][classid])) { printerror("ErrorUrl","history.go(-1)"); } //验证权限 $doselfinfo=CheckLevel($logininid,$loginin,$classid,"news"); if(!$class_r[$classid][tbname]||!$class_r[$classid][classid]) { printerror("ErrorUrl","history.go(-1)"); } //非终极栏目 if(!$class_r[$classid]['islast']) { printerror("AddInfoErrorClassid","history.go(-1)"); } $bclassid=$class_r[$classid][bclassid]; $id=(int)$_GET['id']; //附件验证码 if(!$doselfinfo['doeditinfo'])//编辑权限 { printerror("NotEditInfoLevel","EditInfoSimple.php?isclose=1".$ecms_hashur['ehref']); } $filepass=$id; $ecmsfirstpost=0; //模型 $modid=$class_r[$classid][modid]; $enter=$emod_r[$modid]['enter']; //会员组 $sql1=$empire->query("select groupid,groupname from {$dbtbpre}enewsmembergroup order by level"); while($l_r=$empire->fetch($sql1)) { $ygroup.=""; } //初始化数据 $r=array(); $todaytime=date("Y-m-d H:i:s"); //-----------------------------------------修改信息 //索引表 $index_r=$empire->fetch1("select classid,id,checked from {$dbtbpre}ecms_".$class_r[$classid][tbname]."_index where id='$id' limit 1"); if(!$index_r['id']||$index_r['classid']!=$classid) { printerror("ErrorUrl","history.go(-1)"); } //返回表 $infotb=ReturnInfoMainTbname($class_r[$classid][tbname],$index_r['checked']); //主表 $r=$empire->fetch1("select * from ".$infotb." where id='$id' limit 1"); //返回表信息 $infodatatb=ReturnInfoDataTbname($class_r[$classid][tbname],$index_r['checked'],$r['stb']); //副表 $finfor=$empire->fetch1("select closepl from ".$infodatatb." where id='$id'"); $r=array_merge($r,$finfor); //签发表 if($r[isqf]) { $wfinfor=$empire->fetch1("select tstatus,checktno from {$dbtbpre}enewswfinfo where id='$id' and classid='$classid' limit 1"); } //只能编辑自己的信息 if($doselfinfo['doselfinfo']&&($r[userid]<>$logininid||$r[ismember])) { printerror("NotDoSelfinfo","EditInfoSimple.php?isclose=1".$ecms_hashur['ehref']); } //已审核信息不可修改 if($doselfinfo['docheckedit']&&$index_r['checked']) { printerror("NotEditCheckInfoLevel","EditInfoSimple.php?isclose=1".$ecms_hashur['ehref']); } //时间 $newstime=$r['newstime']; $r['newstime']=date("Y-m-d H:i:s",$r['newstime']); //链接地址 $titleurl=$r['titleurl']; if(!$r['isurl']) { $r['titleurl']=''; } //会员组 $group=str_replace(" value=".$r[groupid].">"," value=".$r[groupid]." selected>",$ygroup); //标题属性 if(strstr($r[titlefont],',')) { $tfontr=explode(',',$r[titlefont]); $r[titlecolor]=$tfontr[0]; $r[titlefont]=$tfontr[1]; } if(strstr($r[titlefont],"b|")) { $titlefontb=" checked"; } if(strstr($r[titlefont],"i|")) { $titlefonti=" checked"; } if(strstr($r[titlefont],"s|")) { $titlefonts=" checked"; } //标题分类 $cttidswhere=''; $tts=''; $caddr=$empire->fetch1("select ttids from {$dbtbpre}enewsclassadd where classid='$classid'"); if($caddr['ttids']!='-') { if($caddr['ttids']&&$caddr['ttids']!=',') { $cttidswhere=' and typeid in ('.substr($caddr['ttids'],1,-1).')'; } $ttsql=$empire->query("select typeid,tname from {$dbtbpre}enewsinfotype where mid='$modid'".$cttidswhere." order by myorder"); while($ttr=$empire->fetch($ttsql)) { $select=''; if($ttr[typeid]==$r[ttid]) { $select=' selected'; } $tts.=""; } } //栏目链接 $getcurlr['classid']=$classid; $classurl=sys_ReturnBqClassname($getcurlr,9); //当前使用的模板组 $thegid=GetDoTempGid(); $phpmyself=urlencode(eReturnSelfPage(1)); //返回头条和推荐级别名称 $ftnr=ReturnFirsttitleNameList($r['firsttitle'],$r['isgood']); ?> <?=stripSlashes($r[title])?>
快速修改信息基本属性 name=classid> name=bclassid> >
标题
$tts":""?>
属性: > 粗体 > 斜体 > 删除线        颜色:
特殊属性
信息属性: > 审核    推荐    头条
外部链接:
发布时间
标题图片 " size="45">
其它选项 置顶级别: , > 关闭评论
点击数   : 下载数   :