示例#1
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/xingfu_school_Notice.class.php';
$objWebInit = new xingfu_school_Notice();
$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 = __WEBADMIN_ROOT;
}
unset($arrGWeb);
if (empty($ver_path)) {
    $ver_path = '';
示例#2
0
<?php

/**
 * 招聘中心 列表文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	xingfu_school_Notice
 */
require_once 'config/config.inc.php';
require_once "class/xingfu_school_Notice.class.php";
$objWebInit = new xingfu_school_Notice();
$objWebInit->iscached($arrMOutput);
$objWebInit->db();
if (empty($_GET['page'])) {
    $intPage = 1;
} else {
    $intPage = intval($_GET['page']);
}
$arrWhere = array();
$arrLink = array();
$arrWhere[] = "pass='******'";
$type_title = '';
if (!empty($_GET['type_id'])) {
    $intTypeID = intval($_GET['type_id']);
    $type_id = $intTypeID - 1;
    $type_title = $arrMType[$type_id]['type_title'];
    $objWebInit->fetchAllChildID($_REQUEST['type_id'], $arrMType, $arrChild);
    $typeStr = implode($arrChild['type_id'], ',');
示例#3
0
<?php

/**
 * 兴甫幼儿园_ 通知公告 列表文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	xingfu_school_Notice
 */
require_once 'config/config.inc.php';
require_once "class/xingfu_school_Notice.class.php";
$objWebInit = new xingfu_school_Notice();
$objWebInit->db();
if ($_GET['id'] === null) {
    exit;
}
$intID = intval($_GET['id']);
$arrInfo = $objWebInit->getInfo($intID);
if (!empty($arrInfo['linkurl'])) {
    header("Location:" . $arrInfo['linkurl'] . "");
}
if ($arrInfo['id'] == '' || $arrInfo['pass'] == 0) {
    echo "<script language=JavaScript>\n\t\t\talert('该页面已经删除!');\n\t\t\tparent.location='/';\n\t\t  </script>";
}
if (!empty($arrInfo['meta_Title'])) {
    $strTitle = $arrInfo['meta_Title'];
} else {
    $strTitle = $arrInfo['title'];
}
示例#4
0
<?php

/**
 * 兴甫幼儿园_ 通知公告 列表文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	xingfu_school_Notice
 */
require_once 'config/config.inc.php';
require_once "class/xingfu_school_Notice.class.php";
$objWebInit = new xingfu_school_Notice();
$objWebInit->db();
$arrWhere = array();
$arrLink = array();
$arrWhere[] = "pass='******'";
$strLink = '';
if (!empty($_REQUEST['keywords'])) {
    $strKeywords = strval(urldecode($_REQUEST['keywords']));
    if ($strKeywords[0] == '/') {
        //精确查询ID
        $strKeywords = substr($strKeywords, 1);
        if (is_numeric($strKeywords)) {
            $arrWhere[] = "id = '" . $strKeywords . "'";
        }
    } else {
        $strKeywords = strval(urldecode($_REQUEST['keywords']));
        $objSP = new SplitWord();
        $strok = $objSP->SplitRMM($strKeywords);
示例#5
0
<?php

/**
 * 兴甫幼儿园_ 通知公告后台管理栏目新增文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	bulletin
 */
require_once '../config/config.inc.php';
require_once "../class/xingfu_school_Notice.class.php";
require_once '../..' . __WEBADMIN_ROOT . '/checklogin.php';
$objWebInit = new xingfu_school_Notice();
$objWebInit->db();
//访问权限检查
if (!$objWebInit->checkPopedomG($_SESSION['user_id'], 'r')) {
    check::AlertExit('对不起,您没有读权限', -1);
}
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    if (empty($_POST['type_id']) || empty($_POST['title']) || empty($_POST['intro'])) {
        check::AlertExit("错误:有必填选项没填!", -1);
    }
    if ($_POST['title'] != '') {
        $_POST['title_md5'] = md5($_POST['title']);
    }
    //判断是否发布重复信息
    $arrTemp = $objWebInit->getInfoList("where title_md5='{$_POST['title_md5']}' and user_id = '{$_SESSION['user_id']}' and type_id='{$_POST['type_id']}'", "", 0, 1);
    if ($arrTemp['COUNT_ROWS'] != 0) {
        check::AlertExit("错误:相同的信息请不要重复发布!需要刷新排列的话,请使用列表下方“提前”选项!", -1);
示例#6
0
文件: index.php 项目: TiMoChao/xingfu
<?php

/**
 * 兴甫幼儿园_ 通知公告后台管理栏目首页文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	xingfu_school_Notice
 */
require_once '../config/config.inc.php';
require_once "../class/xingfu_school_Notice.class.php";
require_once '../..' . __WEBADMIN_ROOT . '/checklogin.php';
$objWebInit = new xingfu_school_Notice();
//访问权限检查
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'];
        }
示例#7
0
<?php

/**
 * 兴甫幼儿园_ 通知公告后台管理栏目修改文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	xingfu_school_Notice
 */
require_once '../config/config.inc.php';
require_once "../class/xingfu_school_Notice.class.php";
require_once '../..' . __WEBADMIN_ROOT . '/checklogin.php';
$objWebInit = new xingfu_school_Notice();
//访问权限检查
if (!$objWebInit->checkPopedomG($_SESSION['user_id'], 'w')) {
    check::AlertExit('对不起,您没有读权限', -1);
}
$objWebInit->db();
// 取得文章信息
$arrInfo = $objWebInit->getInfo($_REQUEST['id']);
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    if (empty($_POST['type_id']) || empty($_POST['title']) || empty($_POST['intro'])) {
        check::AlertExit("错误:有必填选项没填!", -1);
    }
    if ($_POST['title'] != '') {
        $_POST['title_md5'] = md5($_POST['title']);
    }
    //还原图片数组
    $_POST['photo'] = array();
示例#8
0
<?php

/**
 * 兴甫幼儿园_ 通知公告后台分类管理文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	xingfu_school_Notice
 */
require_once '../config/config.inc.php';
require_once "../class/xingfu_school_Notice.class.php";
require_once '../..' . __WEBADMIN_ROOT . '/checklogin.php';
$objWebInit = new xingfu_school_Notice();
$arrMOutput["template_file"] = "admin.html";
$objWebInit->db();
//访问权限检查
if (!$objWebInit->checkPopedomG($_SESSION['user_id'], 'r')) {
    check::AlertExit('对不起,您没有读权限', -1);
}
if (isset($_GET['action'])) {
    if ($_GET['action'] == 'del') {
        //访问权限检查
        if (!$objWebInit->checkPopedomG($_SESSION['user_id'], 'd')) {
            check::AlertExit('对不起,您没有删除权限', -1);
        }
    } else {
        //访问权限检查
        if (!$objWebInit->checkPopedomG($_SESSION['user_id'], 'w')) {
            check::AlertExit('对不起,您没有写权限', -1);