$idArray[] = $row['aid'];
}
if (!isset($pageno)) {
    $pageno = 0;
}
if (empty($idArray)) {
    $idArray = '';
}
$totalpage = count($idArray);
if (isset($idArray[$pageno])) {
    $lid = $idArray[$pageno];
} else {
    ShowMsg("完成所有文件创建!", 'javascript:;');
    exit;
}
$lv = new FreeList($lid);
$ntotalpage = $lv->TotalPage;
if (empty($mkpage)) {
    $mkpage = 1;
}
if (empty($maxpagesize)) {
    $maxpagesize = 50;
}
//如果栏目的文档太多,分多批次更新
if ($ntotalpage <= $maxpagesize) {
    $lv->MakeHtml();
    $finishType = true;
} else {
    $lv->MakeHtml($mkpage, $maxpagesize);
    $finishType = false;
    $mkpage = $mkpage + $maxpagesize;
Exemple #2
0
<?php

/**
 *
 * 自由列表
 *
 * @version        $Id: freelist.php 1 15:38 2010年7月8日Z tianya $
 * @package        DedeCMS.Site
 * @copyright      Copyright (c) 2007 - 2010, DesDev, Inc.
 * @license        http://help.dedecms.com/usersguide/license.html
 * @link           http://www.dedecms.com
 */
require_once dirname(__FILE__) . "/../include/common.inc.php";
require_once DEDEINC . "/arc.freelist.class.php";
if (!empty($lid)) {
    $tid = $lid;
}
$tid = isset($tid) && is_numeric($tid) ? $tid : 0;
if ($tid == 0) {
    die(" Request Error! ");
}
$fl = new FreeList($tid);
$fl->Display();