Example #1
0
    $line = (int) $_POST['pline'];
    //每行显示
    $page_line = 12;
    $offset = $page * $line;
    $query = "select id,title,checked,ismember,username,plnum,isqf,classid,totaldown,onclick,newstime,titleurl,groupid,newspath,filename,titlepic,havehtml,truetime,lastdotime,istop,isgood,firsttitle from {$dbtbpre}ecms_" . $re[2] . $re[0];
    $totalquery = "select count(*) as total from {$dbtbpre}ecms_" . $re[2] . $re[0];
    if ($totalnum < 1) {
        $num = $empire->gettotal($totalquery);
        //取得总条数
    } else {
        $num = $totalnum;
    }
    $query .= " order by newstime desc limit {$offset},{$line}";
    $sql = $empire->query($query);
    $url = "专题: <b>" . $re[3] . "</b>&nbsp;->&nbsp;<a href='TogZt.php?ztid=" . $_POST['ztid'] . "'>组合专题</a>&nbsp;(" . $dbtbpre . "ecms_" . $re[2] . ")";
    $returnpage = postpage($num, $line, $page_line, $start, $page, "document.ListZtInfo");
    ?>
<script>
function DelInfoid(id){
	var inid=document.ListZtInfo.inid.value;
	var dh="",cinid="";
	if(inid=="")
	{
		dh="";
	}
	else
	{
		dh=",";
	}
	cinid=","+inid+",";
	if(cinid.indexOf(","+id+",")==-1)
Example #2
0
    if ($kbwhere) {
        $add .= $and . '(' . $kbwhere . ')';
    }
}
$query = "select isurl,titleurl,classid,id,newstime,username,userid,title from {$dbtbpre}ecms_" . $tbr['tbname'] . $add;
$totalquery = "select count(*) as total from {$dbtbpre}ecms_" . $tbr['tbname'] . $add;
$totalnum = (int) $_POST['totalnum'];
if ($totalnum < 1) {
    $num = $empire->gettotal($totalquery);
    //取得总条数
} else {
    $num = $totalnum;
}
$query = $query . " order by newstime desc limit {$offset},{$line}";
$sql = $empire->query($query);
$returnpage = postpage($num, $line, $page_line, $start, $page, "document.changeinfoform");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>选择信息</title>
<link href="../adminstyle/<?php 
echo $loginadminstyleid;
?>
/adminstyle.css" rel="stylesheet" type="text/css">
<script>
function CheckAll(form)
  {
  for (var i=0;i<form.elements.length;i++)
    {