| Current Path : /home/zqegovsj/public_html/us3.supplierlist.com/member/master/ |
| Current File : /home/zqegovsj/public_html/us3.supplierlist.com/member/master/user.php |
<?php
$inc_path = "../../haibo/en/";$ua_sm_compile_dir = "newmember/";
require($inc_path."global.php");
require("session.php");$tb_prefix= $_SESSION['Version']."_";
require($inc_path .APP_NAME. 'configs/db_session.php');
//ini_set('display_errors','On');
//error_reporting(E_ALL);
uses("member","membertype", "area", "company","companytype","trade", "product","industry","access","setting");
require($inc_path.APP_NAME.'include/page_admin.php');
$companytype = new Companytypes();
$keyword=new Keywords();
$setting= new Settings();
$access = new Accesses();
$industry = new Industries();
$area = new Areas();
$company = new Companies();
$trade = new Trades();
$product = new Products();
$membertype = new Membertypes();
$tpl_file = "user_index";
if ($_GET['del']!='') {
$g_db->Execute("Delete from users where id =".$_GET['del']);
}
if ($_POST['quickadd']!='') {$nowtime = time();
$exp_time = $nowtime+10*86400;
$g_db->Execute("REPLACE INTO users (member_id,username,userpass,name,department,created,email,tel,gender,fax,mobile,notes) values ('".$_SESSION['MemberID']."','".$_POST['member']['username']."','".md5($_POST['member']['passwd'])."','".$_POST['member']['name']."','".$_POST['member']['department']."','$nowtime','".$_POST['member']['email']."','".$_POST['member']['tel']."','".$_POST['member']['gender']."','".$_POST['member']['max']."','".$_POST['member']['mobile']."','".$_POST['member']['notes']."')");
}
$conditions = " member_id = ".$_SESSION['MemberID'];
$sql = "select * from users where ".$conditions;
$res = $g_db->GetArray($sql);
setvar("m",$res);
$tpl_file="user_index";
include("head.php");template("newmember/".$tpl_file);
?>