Your IP : 216.73.216.170


Current Path : /home/zqegovsj/public_html/us3.supplierlist.com/member/
Upload File :
Current File : /home/zqegovsj/public_html/us3.supplierlist.com/member/home.php

<?php 

$inc_path = "../../haibo/en/";$ua_sm_compile_dir = "webmaster/";

$ua_sm_compile_dir = "webmaster/";
require($inc_path."global.php");
require("./fckeditor/fckeditor.php") ;
require("session.php");


$tb_prefix	= $_SESSION['Version']."_";

uses("company","trade","member","membertype","access");
$membertype = new Membertypes();
$access = new Accesses();
$trade = new Trades();
$member = new Members();
$company = new Companies();
$company_id = $company->field("id","member_id=".$_SESSION['MemberID']);
if (isset($_POST['CompanyEdit'])) {
	$vals = array();
	
	$vals['keyword1'] = $_POST['webtitle'];

	$vals['main_prod'] = $_POST['webdes'];
	
	$vals['index_content'] = htmlspecialchars($_POST['index_content']);
	$vals['index_content2'] = htmlspecialchars($_POST['index_content2']);
		if(!empty($company_id)){
		$vals['modified'] = $time_stamp;
		$company->save($vals, "update", $company_id, null, " and member_id=".$_SESSION['MemberID']);
	} else {
		$vals['member_id'] = $_SESSION['MemberID'];
		$vals['created'] = $time_stamp;
		$company->save($vals);
		$last_company_id = $g_db->Insert_ID();
	}
		}
if(!empty($company_id)){
	$company->primaryKey = "id";
	$fields = $company->getFieldAliasNames();
	$fields.= ",".$company->alias_cols.",AreaProvince.name AS CompanyProvince,AreaCity.name AS CompanyCity ";


$res = $company->read2($fields,$company_id,null," and Company.member_id=".$_SESSION['MemberID']);}

$res['CompanyDescription']= stripslashes($res['CompanyDescription']);

$res['CompanyDescription']=html_entity_decode($res['CompanyDescription']);
$res['CompanyMore']= stripslashes($res['CompanyMore']);
$res['CompanyMore']=html_entity_decode($res['CompanyMore']);
$res['CompanyIndexContent']= stripslashes($res['CompanyIndexContent']);
$res['CompanyIndexContent']=html_entity_decode($res['CompanyIndexContent']);
$res['CompanyIndexContent2']= stripslashes($res['CompanyIndexContent2']);
$res['CompanyIndexContent2']=html_entity_decode($res['CompanyIndexContent2']);
$res['CompanyMainProd']= stripslashes($res['CompanyMainProd']);
$res['CompanyMainProd']=html_entity_decode($res['CompanyMainProd']);

$res['CompanyIndexContent']=html_entity_decode($res['index_content']);


editor("company_des", $res['CompanyDescription'], "FCK_NEWSCONTENT");

editor("more", $res['CompanyMore'], "FCK_NEWSCONTENT2");


editor("index_content2", $res['CompanyIndexContent2'], "FCK_NEWSCONTENT5");

editor("main_prod", $res['CompanyMainProd'], "FCK_NEWSCONTENT4");

editor("keywords", $res['CompanyKeywords'], "FCK_NEWSCONTENT6");

setvar("CompanyInfo",$res);

include("head.php");template("./newmember/home");?>