/
www
/
server
/
Upload File
HOME
<?php ini_set('display_errors', '1'); error_reporting(E_ALL ^ E_NOTICE); session_cache_limiter('private, must-revalidate'); session_save_path("sessiondata"); @session_start(); include("configs/config.php"); include("includes/fun_ext.php"); $home_path = ""; include_once "includes/classes/db.php"; $DB = new DB(DB_SERVER,DB_USERNAME,DB_PASSWORD,DB_DATABASE,true); if ( !$DB->open() ) die($DB->error()); include("includes/session.php"); $session = new session(); $session->setPath("sess_id1"); $session->start(); include("delSession.php"); /*header*/ header(DEF_HEADER); /*獲得提交的参数*/ if (get_magic_quotes_gpc()) { if (!empty($_GET)) { $_GET = stripslashes_deep($_GET); } if (!empty($_POST)) { $_POST = stripslashes_deep($_POST); } $_COOKIE = stripslashes_deep($_COOKIE); $_REQUEST = stripslashes_deep($_REQUEST); } if(!empty($_REQUEST["return_link"])) { $_REQUEST["return_link"] = formatUrl($_REQUEST["return_link"]); } if(!empty($_GET["return_link"])) { $_GET["return_link"] = formatUrl($_GET["return_link"]); } if(!empty($_POST["return_link"])) { $_POST["return_link"] = formatUrl($_POST["return_link"]); } include_once("includes/functions/front_function.php"); include_once("includes/common_input.php"); include_once("includes/special_input.php"); include_once("configs/system_config.php"); include_once("includes/frame_function.php"); include_once("includes/classes/class_checkData.php"); include_once("includes/lang.php"); include_once("includes/lib_en.php"); include_once("includes/smarty/Smarty.class.php"); include_once('includes/class_createSmarty.php'); $var_oCreater = new CreateSmarty(); $smarty = $var_oCreater->create(); $aSystem = systemK(); $smarty->assign('aSystem',$aSystem); $sql = "select no,name from news_type order by `sort` "; $aNewsTypeMenu = getAll($sql); $smarty->assign('aNewsTypeMenu',$aNewsTypeMenu); $sql = "select * from bottom_article_type order by sort,no "; $aBottomArticleType = getAll($sql); for($i=0;$i<count($aBottomArticleType);$i++) { $r = $aBottomArticleType[$i]; $sql = "select * from bottom_article where type='".addslashes($r["no"])."' order by sort,no "; $aBottomArticle[] = getAll($sql); } //材质 $sql= "select * from product_style order by no desc "; $aCaiZhi = getAll($sql); //材质 $sql= "select * from product_color order by no desc "; $aProdColor = getAll($sql); $smarty->assign('aBottomArticle',$aBottomArticle); $smarty->assign('aBottomArticleType',$aBottomArticleType); //按空间分类 $sql = "select * from product_type1 order by no asc "; $aCiProdType1 = getTableEnum($sql); $smarty->assign('aCiProdType1',$aCiProdType1); //按风格分类 $sql = "select * from size order by no "; $afeng = getAll($sql); $smarty->assign('afeng',$afeng); // 效果分类 $sql = "select * from product_style order by sort "; $aProductStyle = getAll($sql); // 产品空间管理 $sql = "select * from product_use_room order by `sort`,no"; $aUse_to= getAll($sql); $sql = "select * from news_type order by no desc "; $aNewsType = getAll($sql); $smarty->assign('aNewsType',$aNewsType); $smarty->assign('aProdStyle',$aProdStyle); $smarty->assign('aProductStyle',$aProductStyle); $smarty->assign('aMakeType',$aMakeType); $smarty->assign('aSize',$aSize); $smarty->assign('aProdStyleleft',$aProdStyleleft); $smarty->assign('aCaiZhi',$aCaiZhi); $smarty->assign('aProdColor',$aProdColor); $smarty->assign('aUse_to',$aUse_to); $smarty->assign('aCiProdType',$aCiProdType); //卫浴第一层分类 $sql = "select * from space where 1 order by no desc limit 0,6 "; $aSpacehead= getAll($sql); $sql = csql("coupon","start_date <= '".date("Y-m-d")."' and end_date >= '".date("Y-m-d")."'","order by sort,start_date desc,end_date desc"); $aCoupon = getRow($sql); $smarty->assign('aCoupon',$aCoupon); //$web_bottom = ; $smarty->assign('aSpacehead',$aSpacehead); $smarty->assign('aWeiProdTypeK',$aWeiProdTypeK); ?>