示例#1
0
<?php

/**
 * 会展信息后台管理栏目修改文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	exhibition
 */
require_once '../config/config.inc.php';
require_once "../class/exhibition.class.php";
require_once '../..' . __WEBADMIN_ROOT . '/checklogin.php';
$objWebInit = new exhibition();
//数据库连接参数
$objWebInit->setDBG($arrGPdoDB);
//smarty参数
$objWebInit->arrGSmarty = $arrGSmarty;
//图片上传参数
$objWebInit->arrGPic = $arrGPic;
$objWebInit->db();
//访问权限检查
if (!$objWebInit->checkPopedomG($_SESSION['user_id'])) {
    check::AlertExit('对不起,您没有权限访问此页', -1);
}
// 取得文章信息
$arrInfo = $objWebInit->getInfo($_REQUEST['id']);
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    if (empty($_POST['type_id']) || empty($_POST['title']) || empty($_POST['intro'])) {
        check::AlertExit("错误:有必填选项没填!", -1);
示例#2
0
<?php

/**
 * 会展信息 会展信息
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	exhibition
 */
if (is_object($objWebInit)) {
    if (!isset($objexhibition)) {
        include_once __WEB_ROOT . "/exhibition/class/exhibition.class.php";
        include_once __WEB_ROOT . "/exhibition/config/var.inc.php";
        $objexhibition = new exhibition();
        $objexhibition->setDBG($arrGPdoDB);
        if (is_object($objWebInit->db)) {
            $objexhibition->db = $objWebInit->db;
        } else {
            $objexhibition->db();
        }
    }
    if (isset($arrInfo['tag']) && !empty($arrInfo['tag'])) {
        $arrTag = explode(',', $arrInfo['tag']);
        $where = array();
        foreach ($arrTag as $strTag) {
            $where[] = "'%" . $strTag . "%'";
        }
        //echo $arrInfo['id'];
        //print_r($where);
示例#3
0
<?php

/**
 * 会展信息会展信息会展信息文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	exhibition
 */
require_once '../config/config.inc.php';
require_once "../class/exhibition.class.php";
require_once '../../useradmin/checklogin.php';
$objWebInit = new exhibition();
//会展信息接参数
$objWebInit->setDBG($arrGPdoDB);
//smarty参数
$objWebInit->arrGSmarty = $arrGSmarty;
//会展信息
$objWebInit->arrGPage = $arrGPage;
//会展信息参数
$objWebInit->arrGPic = $arrGPic;
$objWebInit->db();
$arrWhere = array();
$arrLink = array();
if (isset($_GET['action'])) {
    if ($_GET['action'] == 'search') {
        // 构造会展信息会展信息数
        $arrLink[] = 'action=search';
        if (!empty($_GET['title'])) {
示例#4
0
<?php

/**
 * 会展信息会展信息会展信息
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	exhibition
 */
require_once '../config/config.inc.php';
require_once "../class/exhibition.class.php";
require_once '../../admin/checklogin.php';
$objWebInit = new exhibition();
//会展信息接参数
$objWebInit->setDBG($arrGPdoDB);
//smarty参数
$arrMOutput["template_file"] = "admin.html";
$objWebInit->arrGSmarty = $arrGSmarty;
$objWebInit->db();
//会展信息
$objWebInit->arrGPic = $arrGPic;
//会展信息检查
if (!$objWebInit->checkPopedomG($_SESSION['user_id'])) {
    check::AlertExit('会展信息会展信息会展信息页', -1);
}
if (isset($_GET['action'])) {
    switch ($_GET['action']) {
        // 会展信息页面
        case 'add':
示例#5
0
<?php

/*
 * 会展信息会展信息装文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * modified		2009-1-3
 */
include_once dirname(__FILE__) . '/config/config.inc.php';
include_once dirname(__FILE__) . '/class/exhibition.class.php';
$objWebInit = new exhibition();
//会展信息接参数
$objWebInit->setDBG($arrGPdoDB);
//smarty参数
$objWebInit->arrGSmarty = $arrGSmarty;
$objWebInit->db();
if (empty($charset)) {
    $charset = str_replace('-', '', $arrGWeb['charset']);
}
if (empty($extend)) {
    $extend = $objWebInit->db->getAttribute(PDO::ATTR_SERVER_VERSION) > '4.1' ? " DEFAULT CHARSET={$charset} " : "";
}
$intDbSummaryLen = $arrGWeb['db_summary_len'];
//会展信息数组
if (empty($strWEB_ROOT_pre)) {
    $strWEB_ROOT_pre = $arrGWeb['WEB_ROOT_pre'];
}
if (empty($strWEBADMIN_ROOT)) {
    $strWEBADMIN_ROOT = $arrGWeb['WEBADMIN_ROOT'];
示例#6
0
<?php

/**
 * 会展信息 会展信息
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	news
 */
if (is_object($objWebInit)) {
    if (!isset($objexhibition)) {
        include_once __WEB_ROOT . "/exhibition/class/exhibition.class.php";
        include_once __WEB_ROOT . "/exhibition/config/var.inc.php";
        $objexhibition = new exhibition();
        $objexhibition->setDBG($arrGPdoDB);
        if (is_object($objWebInit->db)) {
            $objexhibition->db = $objWebInit->db;
        } else {
            $objexhibition->db();
        }
    }
    $arrNewest = array();
    $arrNewest = $objexhibition->getInfoList("where pass=1", " ORDER BY clicktimes DESC,submit_date DESC,recommendflag DESC,clicktimes DESC", 0, 5, true);
    unset($arrNewest['COUNT_ROWS']);
    //print_r($arrNewest);
    // 会展信息板
    $arrMOutput["smarty_assign"]['arrNewest'] = $arrNewest;
}
示例#7
0
<?php

/**
 * 会展信息 会展信息
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	exhibition
 */
require_once 'config/config.inc.php';
require_once "class/exhibition.class.php";
$objWebInit = new exhibition();
//会展信息接参数
$objWebInit->setDBG($arrGPdoDB);
//smarty参数
$objWebInit->arrGSmarty = $arrGSmarty;
//会展信息
$objWebInit->arrGPage = $arrGPage;
$objWebInit->db();
if (!is_array($arrMType) || empty($arrMType)) {
    $arrMType = $objWebInit->getTypeList();
    $arrMType = $objWebInit->formatTypeList(0, $arrMType);
}
foreach ($arrMType as $k => $v) {
    $arrTopexhibition[$k] = array();
    if (is_array($v)) {
        $arrTopexhibition[$k]['type_title'] = $v['type_title'];
        $arrTopexhibition[$k]['type_id'] = $v['type_id'];
    } else {
示例#8
0
<?php

/**
 * 会展信息后台管理栏目新增文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	exhibition
 */
require_once '../config/config.inc.php';
require_once "../class/exhibition.class.php";
require_once '../../useradmin/checklogin.php';
$objWebInit = new exhibition();
//数据库连接参数
$objWebInit->setDBG($arrGPdoDB);
//smarty参数
$objWebInit->arrGSmarty = $arrGSmarty;
//图片上传参数
$objWebInit->arrGPic = $arrGPic;
$objWebInit->db();
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    if (empty($_POST['submitpass']) || $_POST['submitpass'] != $_SESSION['submitpasskey']) {
        exit;
    }
    if (empty($_POST['type_id']) || empty($_POST['title']) || empty($_POST['intro'])) {
        check::AlertExit("错误:有必填选项没填!", -1);
    }
    $arrTemp = explode('|', $_POST['type_id']);
    $_POST['type_id'] = $arrTemp[0];
示例#9
0
<?php

/**
 * 会展信息后台管理栏目修改文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	exhibition
 */
require_once '../config/config.inc.php';
require_once "../class/exhibition.class.php";
require_once '../../useradmin/checklogin.php';
$objWebInit = new exhibition();
//数据库连接参数
$objWebInit->setDBG($arrGPdoDB);
//smarty参数
$objWebInit->arrGSmarty = $arrGSmarty;
//图片上传参数
$objWebInit->arrGPic = $arrGPic;
$objWebInit->db();
// 取得文章信息
$arrInfo = $objWebInit->getInfo($_GET['id']);
if ($arrInfo['user_id'] != $_SESSION['user_id']) {
    check::AlertExit("错误:此信息不是您发布的,您无权修改!", -1);
}
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    if (empty($_POST['type_id']) || empty($_POST['title']) || empty($_POST['intro'])) {
        check::AlertExit("错误:有必填选项没填!", -1);
    }
示例#10
0
<?php

/**
 * 会展信息会展信息会展信息文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	exhibition
 */
require_once '../config/config.inc.php';
require_once "../class/exhibition.class.php";
require_once '../../admin/checklogin.php';
$objWebInit = new exhibition();
//数据库连接参数
$objWebInit->setDBG($arrGPdoDB);
//smarty参数
$objWebInit->arrGSmarty = $arrGSmarty;
//图片上传参数
$objWebInit->arrGPic = $arrGPic;
$objWebInit->db();
//访问权限检查
if (!$objWebInit->checkPopedomG($_SESSION['user_id'])) {
    check::AlertExit('对不起:您没有权限访问此页', -1);
}
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    if (empty($_POST['title']) || empty($_POST['intro']) || empty($_POST['type_id'])) {
        check::AlertExit("错误:加*号的为必填项!", -1);
    }
    //新图上传
示例#11
0
<?php

/**
 * 最会展信息讯文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	exhibition
 */
if (is_object($objWebInit)) {
    if (!isset($objexhibition)) {
        include_once __WEB_ROOT . "/exhibition/class/exhibition.class.php";
        include_once __WEB_ROOT . "/exhibition/config/var.inc.php";
        $objexhibition = new exhibition();
        $objexhibition->setDBG($arrGPdoDB);
        if (is_object($objWebInit->db)) {
            $objexhibition->db = $objWebInit->db;
        } else {
            $objexhibition->db();
        }
    }
    $arrexhibitionList = array();
    $arrexhibitionList = $objexhibition->getInfoList("where pass=1", "  ORDER BY recommendflag DESC,submit_date DESC", 0, 5, true, null, false);
    //print_r($arrexhibitionList);
    //print_r($arrMArea);
    // 会展信息板
    $arrMOutput['smarty_assign']['arrMArea'] = $arrMArea;
    $arrMOutput["smarty_assign"]['arrexhibitionList'] = $arrexhibitionList;
}
示例#12
0
<?php

/**
 * 会展信息 会展信息
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	exhibition
 */
require_once 'config/config.inc.php';
require_once "class/exhibition.class.php";
$objWebInit = new exhibition();
//会展信息接参数
$objWebInit->setDBG($arrGPdoDB);
$objWebInit->db();
//会展信息
$objWebInit->arrGPic = $arrGPic;
//smarty参数
if ($arrGWeb['URL_static']) {
    $arrGSmarty['caching'] = false;
} else {
    $arrGSmarty['cache_lifetime'] = 3600;
}
$objWebInit->arrGSmarty = $arrGSmarty;
if ($_GET['id'] === null) {
    exit;
}
$intID = intval($_GET['id']);
$arrInfo = $objWebInit->getInfo($intID);
示例#13
0
<?php

/**
 * 会展信息 会展信息
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	exhibition
 */
require_once 'config/config.inc.php';
require_once "class/exhibition.class.php";
$objWebInit = new exhibition();
//会展信息接参数
$objWebInit->setDBG($arrGPdoDB);
//smarty参数
$arrGSmarty['caching'] = false;
$objWebInit->arrGSmarty = $arrGSmarty;
//会展信息
$objWebInit->arrGPage = $arrGPage;
$objWebInit->db();
$arrWhere = array();
$arrLink = array();
$arrWhere[] = "pass='******'";
$strLink = '';
$isGo = false;
if (empty($_GET['page'])) {
    $isGo = true;
    $intPage = 1;
} else {