<?php
require_once 'Config.php';
/*$data=BLL_News::getOne(1,true,'id,title,picture',array('begin'=>0,'num'=>5));
print_r($data);
die;*/

/**
 * 首页类
 *
 * @author Wzb
 *        
 */
class USL_Index extends USL_Base {
	
	
	/**
	 * 构造类
	 */
	function __construct() {
		parent::__construct ();
		$this->_weizhi = "Index";
	}
	
	/**
	 * 设置变量值
	 */
	function _assignContent() {
		parent::_showComm ();
		$this->_tpl->assign ( "webName", COM_OftenFunction::setWebName () );
		$this->_tpl->assign ( "theKeyWords", $this->_configObj ['webKeywords'] );
		$this->_tpl->assign ( "theDescription", $this->_configObj ['webDescription'] );
		$this->_tpl->assign ( "sydbhd", BLL_Link::getList(1,false,'id,title,addr,picture,lilian',array('begin'=>0,'num'=>4)));//首页顶部幻灯
		$this->_tpl->assign ( "sydbhd2", BLL_Link::getList(1,false,'id,title,addr,picture,lilian1,lilian2,lilian3',array('begin'=>0,'num'=>4)));//首页顶部幻灯
		$this->_tpl->assign ( "sydbhd3", BLL_Link::getList(3,false,'id,title,service',array('begin'=>0,'num'=>1)));//首页顶部幻灯
		$this->_tpl->assign ( "sydbhd4", BLL_Link::getList(2,false,'id,title,addr,picture,lilian',array('begin'=>0,'num'=>2)));//首页顶部幻灯
		
		/* $sydbhd2=BLL_Link::getList(1,false,'id,title,addr,picture,lilian,lilian1,lilian2,lilian3',array('begin'=>0,'num'=>4));
		
		for ($i=0;$i<count($sydbhd2);$i++){
			$sydbhd2[$i]['lilian']=nl2br($sydbhd2[$i]['lilian']);
		}
		//var_dump($sydbhd2);
		//die;
		$this->_tpl->assign("sydbhd2",$sydbhd2); */
	}
}

// 实例化
$configObj = BLL_WebSet::getOne ();
$thisPage = new USL_Index ();
$thisPage->_assignContent ();
$thisPage->_tpl->display ( "Tpl/index.tpl" );

?>