if($enews=="TogZt")
{
include '../'.LoadLang("pub/fun.php");
$totalnum=(int)$_POST['totalnum'];
$start=0;
$page=(int)$_POST['page'];
$page=RepPIntvar($page);
$line=(int)$_POST['pline'];//每行显示
$page_line=12;
$offset=$page*$line;
$addsql='';
if($ecms_config['db']['dbver']>=4.1)
{
$addsql=" and id not in (select id from {$dbtbpre}enewsztinfo where ztid='$ztid' and mid in (".eGetTableModids(0,$re[2])."))";
}
$query="select id,title,ismember,username,plnum,isqf,classid,totaldown,onclick,newstime,isurl,titleurl,titlepic,havehtml,truetime,lastdotime,istop,isgood,firsttitle from {$dbtbpre}ecms_".$re[2]." where ".$re[0].$addsql;
$totalquery="select count(*) as total from {$dbtbpre}ecms_".$re[2]." where ".$re[0].$addsql;
if($totalnum<1)
{
$num=$empire->gettotal($totalquery);//取得总条数
}
else
{
$num=$totalnum;
}
$query.=" order by newstime desc limit $offset,$line";
$sql=$empire->query($query);
//专题子类
$zcurl='';
$zcid=(int)$_POST['zcid'];
if($zcid)
{
$zcr=$empire->fetch1("select cname from {$dbtbpre}enewszttype where cid='$zcid'");
$zcurl=' -> '.$zcr[cname].'';
}
$url="专题: ".$re[3]."".$zcurl." -> 组合专题 (".$dbtbpre."ecms_".$re[2].")";
$returnpage=postpage($num,$line,$page_line,$start,$page,"document.ListZtInfo");
?>
位置:=$url?>
}
else
{
if(empty($ztid))
{
printerror("ErrorUrl","history.go(-1)");
}
$r=$empire->fetch1("select ztid,ztname from {$dbtbpre}enewszt where ztid='$ztid'");
if(empty($r['ztid']))
{
printerror("ErrorUrl","history.go(-1)");
}
//初始值
$togr[startid]=0;
$togr[endid]=0;
$togr[pline]=50;
$togr[searchf]=",stitle,";
$togr[doecmszt]=0;
$url="专题: ".$r[ztname]." -> 组合专题";
//--------------------操作的栏目
$fcjsfile='../../data/fc/cmsclass.js';
$class=GetFcfiletext($fcjsfile);
$togid=(int)$_GET['togid'];
if($togid)
{
$togr=$empire->fetch1("select * from {$dbtbpre}enewstogzts where togid='$togid'");
$class=str_replace("";
}
//数据表
$tables='';
$tsql=$empire->query("select tid,tbname,tname from {$dbtbpre}enewstable order by tid");
while($tr=$empire->fetch($tsql))
{
$tables.="";
}
//专题子类
$zttypes='';
$zttypesql=$empire->query("select cid,cname from {$dbtbpre}enewszttype where ztid='$ztid'");
while($zttyper=$empire->fetch($zttypesql))
{
$zttypes.="";
}
?>