コード例 #1
0
ファイル: member.php プロジェクト: reboxhost/phpb2b
/**
 *      [PHPB2B] Copyright (C) 2007-2099, Ualink Inc. All Rights Reserved.
 *      The contents of this file are subject to the License; you may not use this file except in compliance with the License. 
 *
 *      @version $Revision: 2258 $
 */
require "../libraries/common.inc.php";
require "session_cp.inc.php";
uses("member", "membergroup", "typeoption");
require LIB_PATH . 'time.class.php';
require PHPB2B_ROOT . 'libraries/page.class.php';
require CACHE_COMMON_PATH . "cache_type.php";
$G['membergroup'] = cache_read("membergroup");
$G['trusttype'] = cache_read("trusttype");
$typeoption = new Typeoption();
$membergroup = new Membergroup();
$member = new Members();
$page = new Pages();
$tpl_file = "member";
$conditions = array();
setvar("MembergroupOptions", $membergroup->getUsergroups());
setvar("Membergroups", $member_groups = $G['membergroup']);
setvar("Membertypes", $member_types = $_PB_CACHE['membertype']);
$genders = $typeoption->get_cache_type("gender");
foreach ($G['trusttype'] as $key => $val) {
    $tmp_trusttypes[$key] = $val['name'];
}
setvar("Trusttypes", $tmp_trusttypes);
if (isset($_POST)) {
    if (isset($_POST['del'])) {
        $member->Delete($_POST['id']);
コード例 #2
0
ファイル: company.php プロジェクト: renduples/alibtob
/**
 *      [PHPB2B] Copyright (C) 2007-2099, Ualink Inc. All Rights Reserved.
 *      The contents of this file are subject to the License; you may not use this file except in compliance with the License. 
 *
 *      @version $Revision: 2075 $
 */
require "../libraries/common.inc.php";
uses("company", "member", "area", "companytype", "attachment", "membergroup", "industry");
require LIB_PATH . 'time.class.php';
require LIB_PATH . 'page.class.php';
require CACHE_PATH . 'cache_area.php';
require CACHE_PATH . 'cache_industry.php';
require CACHE_PATH . 'cache_type.php';
require "session_cp.inc.php";
include CACHE_PATH . "cache_typeoption.php";
$membergroup = new Membergroup();
$page = new Pages();
$area = new Areas();
$industry = new Industries();
$company = new Companies();
$member = new Members();
$conditions = array();
$tpl_file = "company";
setvar('Membergroups', $membergroup->getUsergroups('define'));
setvar('AllMembergroups', $membergroup->getUsergroups('all'));
if (isset($_PB_CACHE['companytype'])) {
    setvar("CompanyTypes", $_PB_CACHE['companytype']);
}
setvar("CheckStatus", $_PB_CACHE['check_status']);
setvar("Industries", $_PB_CACHE['industry']);
setvar("Areas", $_PB_CACHE['area']);