<?php /** * 最新 列表文件 * * @author Arthur(ArthurXF@gmail.com) * @copyright (c) 2006 by bizeway.com * @version $Id$ * @package ArthurXF * @subpackage video */ if (is_object($objWebInit)) { if (!isset($objvideo)) { include_once __WEB_ROOT . "/video/class/video.class.php"; include_once __WEB_ROOT . "/video/config/var.inc.php"; $objvideo = new video(); $objvideo->setDBG($arrGPdoDB); if (is_object($objWebInit->db)) { $objvideo->db = $objWebInit->db; } else { $objvideo->db(); } } $arrNewest = array(); $arrNewest = $objvideo->getInfoList("where pass=1", " ORDER BY clicktimes DESC,submit_date DESC", 0, 5, true); unset($arrNewest['COUNT_ROWS']); //print_r($arrNewest); // 输出到模板 $arrMOutput["smarty_assign"]['arrNewest'] = $arrNewest; }
* @copyright (c) 2006 by bizeway.com * @version $Id$ * @package ArthurXF * @subpackage video */ //调用配置文件 require_once 'config/config.inc.php'; require_once "class/video.class.php"; $objWebInit = new video(); //数据库连接参数 $objWebInit->setDBG($arrGPdoDB); //smarty参数 $objWebInit->arrGSmarty = $arrGSmarty; //翻页参数 $objWebInit->arrGPage = $arrGPage; $objWebInit->db(); //获取当前页码 分页功能使用 if (empty($_GET['page'])) { $intPage = 1; } else { $intPage = intval($_GET['page']); } $arrWhere = array(); $arrLink = array(); $arrWhere[] = "pass='******'"; //获得当前列表分类id 为空显示所有分类 if (!empty($_GET['type_id'])) { $intTypeID = intval($_GET['type_id']); $arrWhere[] = "type_id='" . $intTypeID . "'"; $arrLink[] = 'type_id=' . $intTypeID; //获取分类名称