Example #1
0
    截止至现在的新增数量</td>
  </tr>
	  <?php 
$j = 0;
$alltbpls = 0;
$count = count($tr) - 1;
for ($i = 1; $i < $count; $i++) {
    $j++;
    $bgcolor = '#FFFFFF';
    if ($j % 2 == 0) {
        $bgcolor = '';
    }
    $thistb = $tr[$i];
    $restbname = "评论表" . $thistb;
    $pltbname = 'enewspl_' . $thistb;
    $alltbpls = eGetTableRowNum($dbtbpre . $pltbname);
    $checktbpls = $empire->gettotal("select count(*) as total from " . $dbtbpre . $pltbname . " where checked=1");
    $tbpls = $alltbpls - $checktbpls;
    if ($thistb == $plr['pldeftb']) {
        $restbname = '<b>' . $restbname . '</b>';
    }
    $exp = '|' . $thistb . ',';
    $addnumr = explode($exp, $pur['lastnumpltb']);
    $addnumrt = explode('|', $addnumr[1]);
    $addnum = (int) $addnumrt[0];
    $totalalltbpls += $alltbpls;
    $totalchecktbpls += $checktbpls;
    $totaltbpls += $tbpls;
    ?>
  <tr bgcolor="<?php 
    echo $bgcolor;
Example #2
0
    $doorder = "newstime";
} elseif ($myorder == 5) {
    $doorder = "plnum";
} elseif ($myorder == 3) {
    $doorder = "onclick";
} elseif ($myorder == 4) {
    $doorder = "totaldown";
} else {
    $doorder = "id";
}
$doorder .= ' ' . $doorderby;
$search .= "&myorder={$myorder}&orderby={$orderby}";
$totalquery = "select count(*) as total from " . $infotb . $where;
//表信息数
$tbinfos = eGetTableRowNum("{$dbtbpre}ecms_" . $tbname);
$tbckinfos = eGetTableRowNum("{$dbtbpre}ecms_" . $tbname . "_check");
//取得总条数
$totalnum = intval($_GET['totalnum']);
if ($totalnum < 1) {
    if (empty($where)) {
        $num = $indexchecked == 1 ? $tbinfos : $tbckinfos;
    } else {
        $num = $empire->gettotal($totalquery);
    }
} else {
    $num = $totalnum;
}
$search1 = $search;
$search .= "&totalnum={$num}";
$returnpage = page2($num, $line, $page_line, $start, $page, $search);
$phpmyself = urlencode(eReturnSelfPage(1));
Example #3
0
  </tr>
	  <?php 
$i = 0;
$alltbinfos = 0;
while ($tr = $empire->fetch($sql)) {
    $i++;
    $bgcolor = '#FFFFFF';
    if ($i % 2 == 0) {
        $bgcolor = '';
    }
    $thistb = $tr['tid'];
    $infotbname = 'ecms_' . $tr['tbname'];
    $tbinfos = eGetTableRowNum($dbtbpre . $infotbname);
    //已审核
    $checkinfotbname = 'ecms_' . $tr['tbname'] . '_check';
    $checktbinfos = eGetTableRowNum($dbtbpre . $checkinfotbname);
    //未审核
    $qchecktbinfos = $empire->gettotal("select count(*) as total from " . $dbtbpre . $checkinfotbname . " where ismember=1");
    //投稿数
    $alltbinfos = $tbinfos + $checktbinfos;
    //总数
    $tname = $tr['tname'];
    if ($tr['isdefault']) {
        $tname = '<b>' . $tname . '</b>';
    }
    $exp = '|' . $thistb . ',';
    $addnumr = explode($exp, $pur['lastnuminfotb']);
    $addnumrt = explode('|', $addnumr[1]);
    $addnum = (int) $addnumrt[0];
    $totaltbinfos += $tbinfos;
    $totalchecktbinfos += $checktbinfos;