Example #1
0
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	xingfu_Introduction
 */
require_once '../config/config.inc.php';
require_once "../class/xingfu_Introduction.class.php";
require_once '../..' . __WEBADMIN_ROOT . '/checklogin.php';
$objWebInit = new xingfu_Introduction();
//访问权限检查
if (!$objWebInit->checkPopedomG($_SESSION['user_id'], 'r')) {
    check::AlertExit('对不起,您没有读权限', -1);
}
//数据库连接
$objWebInit->db();
$arrWhere = array();
$arrLink = array();
if (isset($_GET['action'])) {
    if ($_GET['action'] == 'search') {
        // 构造搜索条件和翻页参数
        $arrLink[] = 'action=search';
        if ($_GET['pass'] == '1' || $_GET['pass'] == '0') {
            $arrWhere[] = "pass='******'pass'] . "'";
            $arrLink[] = 'pass='******'pass'];
        }
        if (!empty($_GET['type_id'])) {
            $intTypeID = intval($_GET['type_id']);
            $arrWhere[] = "type_id='" . $intTypeID . "' or type_roue_id like '%:{$intTypeID}:%'";
            $arrLink[] = 'type_id=' . $intTypeID;
        }