fetch1("select classid,modid,classname,islast from {$dbtbpre}enewsclass where classid='$classid'"); if(!$cr['classid']||!$cr['islast']||!$cr['modid']) { printerror("ErrorUrl","history.go(-1)"); } $noclassinfo=(int)$add['noclassinfo']; if($noclassinfo==1) { $ttids='-'; } else { $typeid=$add['typeid']; $count=count($typeid); $ttids=''; if($count) { $dh=''; for($i=0;$i<$count;$i++) { $tid=(int)$typeid[$i]; if(empty($tid)) { continue; } $ttids.=$dh.$tid; $dh=','; } if($ttids) { $ttids=','.$ttids.','; } } } $sql=$empire->query("update {$dbtbpre}enewsclassadd set ttids='$ttids' where classid='$classid'"); if($sql) { insert_dolog("classid=$classid&classname=$cr[classname]");//操作日志 printerror("SetClassInfoTypeSuccess","ClassInfoType.php?classid=$classid".hReturnEcmsHashStrHref2(0)); } else { printerror("DbError","history.go(-1)"); } } $enews=$_POST['enews']; if($enews) { hCheckEcmsRHash(); } if($enews=='SetClassInfoType') { SetClassInfoType($_POST,$logininid,$loginin); } $classid=(int)$_GET['classid']; if(!$classid) { printerror("ErrorUrl","history.go(-1)"); } $cr=$empire->fetch1("select classid,bclassid,modid,classname,islast from {$dbtbpre}enewsclass where classid='$classid'"); if(!$cr['classid']||!$cr['islast']||!$cr['modid']) { printerror("ErrorUrl","history.go(-1)"); } $caddr=$empire->fetch1("select ttids from {$dbtbpre}enewsclassadd where classid='$classid'"); $url=$cr['classname'].' > 设置标题分类'; if($cr['bclassid']) { $bcr=$empire->fetch1("select classid,classname from {$dbtbpre}enewsclass where classid='$cr[bclassid]'"); $url=$bcr['classname'].' > '.$url; } $sql=$empire->query("select typeid,tname from {$dbtbpre}enewsinfotype where mid='$cr[modid]' order by myorder,typeid"); ?>
位置:=$url?> |