예제 #1
0
	function Main()
	{
		$clientUser = get('u', 'int');
		if ( $clientUser != '' )
		{
			handler('cookie')->setVar('finderid', $clientUser);
			handler('cookie')->setVar('findtime', time());
		}

		$data = logic('product')->display();
				if (!$data && get('page', 'int') == 0)
		{
			header('Location: '.rewrite('?mod=subscribe&code=mail'));
			exit;
		}
		$product = $data['product'];
		$this->Title = $data['mutiView'] ? '' : $product['name'];
		$data['mutiView'] || mocod('product.view');
		$data['mutiView'] || productCurrentView($product);
				$favorited = logic('favorite')->get_one($product['id']);
				if(INDEX_DEFAULT === true && ini('settings.template_path') == 'meituan'){
			$new_product = logic('product')->GetNewList(10, true);
			if(empty($new_product)) {
				$new_product = logic('product')->GetNewList(10);
			}
		}
		include handler('template')->file($data['file']);
	}
예제 #2
0
파일: header.php 프로젝트: pf5512/phpstudy
<!doctype html>
<html>
<head>
<?='<base h'.'ref="'.ini('settings.site_url').'/" />'?>
<meta http-equiv="Content-Type" content="text/html; charset=<?=ini("settings.charset")?>" />
<meta http-equiv="X-UA-Compatible" content="Chrome=1,IE=edge" />
<title><? echo ($this->Title != '') ? $this->Title.' - ' : (ini('cplace.cnpre.enabled') ? (logic('misc')->City('name').ini('settings.tuangou_str').' - ') : ''); ?><?=ini("settings.site_name")?><?=$this->Config['page_title']?></title>
<meta name="Keywords" content="<?=ini('settings.'.(mocod()=='index.main'?'index_':'').'meta_keywords')?>" />
<meta name="Description" content="<?=ini('settings.'.(mocod()=='index.main'?'index_':'').'meta_description')?>
<? if($__p = productCurrentView()) { ?>
,<? echo strip_tags($__p['intro']); ?>
<? } ?>
" />
<script type="text/javascript">
var thisSiteURL = '<?=ini("settings.site_url")?>/';
var tuangou_str = '<?=ini("settings.tuangou_str")?>';
</script>
<link rel="shortcut icon" href="favicon.ico" />
<?=ui('loader')->css('main')?>
<?=ui('loader')->js('@jquery')?>
<?=ui('loader')->js('@common')?>
<?=ui('loader')->css('meituan')?>
<?=ui('style')->loadCSS()?>
<?=ui('loader')->js('jquery.menu-aim')?>
<script>
//   $(window).resize(function(){
//         var Bwidth = $(window).width();
//		 if (Bwidth < 1024){
//				$(".exp").addClass("r980");
//		 }else{$(".exp").removeClass("r980");}
//     });