function content_558ccd4dd0f599_85649892($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/function.load_data.php';
        }
        ?>
   <?php 
        echo smarty_function_load_data(array('assign' => "modelist", 'table' => "module", 'limit' => "20", 'orderby' => "id asc", 'where' => "install=1 and parent_id=0"), $_smarty_tpl);
        ?>
 
   <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['modelist']->value['list'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
            ?>
  
    <?php 
            echo smarty_function_load_data(array('assign' => "defaultmenu", 'table' => "menu", 'type' => "one", 'where' => "moduleid='" . (string) $_smarty_tpl->tpl_vars['items']->value['id'] . "' and `group` = '" . (string) $_smarty_tpl->tpl_vars['admininfo']->value['group'] . "'", 'fileds' => "*", 'orderby' => "id asc"), $_smarty_tpl);
            ?>
 
     <?php 
            if (!empty($_smarty_tpl->tpl_vars['defaultmenu']->value)) {
                ?>
  	 	  <li <?php 
                if ($_smarty_tpl->tpl_vars['Taction']->value == $_smarty_tpl->tpl_vars['items']->value['name'] || $_smarty_tpl->tpl_vars['moduleparent']->value == $_smarty_tpl->tpl_vars['items']->value['id']) {
                    ?>
class="on" <?php 
                }
                ?>
>
  	 	  	<a href="<?php 
                echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/" . (string) $_smarty_tpl->tpl_vars['items']->value['name'] . "/module/" . (string) $_smarty_tpl->tpl_vars['defaultmenu']->value['name']), $_smarty_tpl);
                ?>
">
  	 	  	    <div class="lib ck<?php 
                echo $_smarty_tpl->tpl_vars['myid']->value + 1;
                ?>
"></div>
  	 	  	    <div class="libtitle"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['cnname'];
                ?>
</div>
  	 	  	 </a> 
  	    </li>  
  	   <?php 
            }
            ?>
  <?php 
        }
    }
    function content_555c48d37cc149_52096112($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include 'D:\\wmr\\lib\\Smarty\\libs\\plugins\\function.load_data.php';
        }
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> 
  用户登陆
-<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</title>
<meta name="Keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" />
<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" />
<?php 
        echo stripslashes($_smarty_tpl->tpl_vars['metadata']->value);
        ?>

<link rel="shortcut icon" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/images/favicon.ico" /> 
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/common.css"> 
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/server.css"> 

 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquerynew.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/allj.js" type="text/javascript" language="javascript"></script>
 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script> 
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/template.min.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquery.lazyload.min.js" type="text/javascript" language="javascript"></script>
 <script>
 	$(function() { 
$("img").lazyload({ 
effect : "fadeIn" 
}); 
}); 

 	</script>


 <script> 
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
	var is_static ="<?php 
        echo $_smarty_tpl->tpl_vars['is_static']->value;
        ?>
";
</script>

<!--[if lte IE 6]>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('div, ul, img, li, input , a'); 
    </script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/ie6.js" type="text/javascript"></script>
<![endif]--> 
</head> 
<body> 
<div id="toTop" style="left: 1212.5px; display: none;"></div>
<div class="top">
	 <div class="top1">
	 	 <div class="top1_show">
	 	  <div class="top1_logo"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['sitelogo']->value;
        ?>
"></a></div>
	 	  <div class="top1_menu">
	 	     <ul>
	 	     	<?php 
        if (!empty($_smarty_tpl->tpl_vars['footlink']->value)) {
            ?>
	 	     	<?php 
            $_smarty_tpl->tpl_vars['footlink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['footlink']->value), null, 0);
            ?>
	 	     		<?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['footlink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
 
			          <li class="active_li"><a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> </li>
			      <?php 
            }
            ?>
	 	     <?php 
        }
        ?>
	 	     	</ul>	
	 	  	
	 	  </div>
	 	  <div class="top1_other">
	 	  	
	 	  	<ul>
						<li style="display:none;"><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/cart"), $_smarty_tpl);
        ?>
"><img alt="<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/images/shopping.png"></a></li>
						<li style="display:none;"><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/cart"), $_smarty_tpl);
        ?>
"><span class="hc_padding">美食篮子<span id="lanzi" data="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['cartcount']->value) === null || $tmp === '' ? 0 : $tmp;
        ?>
">(<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['cartcount']->value) === null || $tmp === '' ? 0 : $tmp;
        ?>
)</span></span></a><span class="hc_head_spans">|</span></li>
						
				 <?php 
        if (!empty($_smarty_tpl->tpl_vars['member']->value['uid']) && $_smarty_tpl->tpl_vars['member']->value['group'] != 'admin') {
            ?>
 
           <li style="">
           	  <div>
           		 <a href="javascript:dropdown();"><span class="hc_padding" style="text-overflow: ellipsis; width: 50px;"><?php 
            echo $_smarty_tpl->tpl_vars['member']->value['username'];
            ?>
</span></a>
           		 <span class="hc_head_spans">|</span>
           	  </div>
	            <div class="dropdown_div hide"> 
	             <ul class="dropdown_div_ul">
	  	            <li><a style="padding: 3px 5px;" href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/index"), $_smarty_tpl);
            ?>
">个人中心</a></li>
		              <li><a style="padding: 3px 5px;" href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/collect"), $_smarty_tpl);
            ?>
">我的收藏</a></li>
		              <li><a style="padding: 3px 5px;" href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/area/useraddress"), $_smarty_tpl);
            ?>
">我的地址</a></li>
		              <li><a style="padding: 3px 5px;" href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/edituser/showaction/pwdmx"), $_smarty_tpl);
            ?>
">修改密码</a></li> 
		             <li><a style="padding: 3px 5px;" href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
            ?>
">退出登录</a></li>
		         <div class="clear"></div>
	           </ul>
	          </div>
          </li>
           <li><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
            ?>
">退出 </a></li>
		    <?php 
        } else {
            ?>
		     <li><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/login"), $_smarty_tpl);
            ?>
">登陆 </a></li>
		     <li><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/regester"), $_smarty_tpl);
            ?>
">注册 </a></li>
		     <?php 
        }
        ?>
 
		    
<script type="text/javascript">
	
	function dropdown(){
		if($('.dropdown_div').hasClass('show'))
		{
			$('.dropdown_div').removeClass('show');
			$('.dropdown_div').addClass('hide');
		}
		else if($('.dropdown_div').hasClass('hide'))
		{
			$('.dropdown_div').removeClass('hide');
			$('.dropdown_div').addClass('show');
		}else{
			$('.dropdown_div').removeClass('hide');
			$('.dropdown_div').addClass('show');
		}
	}

	$(document).ready(function(){
		$(document).click(function(){
			if($('.dropdown_div').hasClass('show'))
			{
				$('.dropdown_div').removeClass('show');
				$('.dropdown_div').addClass('hide');
			}
			});
	});
</script>					</ul>
	 	  	
	 	  	</div>
	 	 </div>
	 </div>
	 
	  <div class="top2">
	  	 <div class="top2_content">
	  	 	  <div class="hc_addr">
					   <div class="hc_addr_change"><span class="hc_change"><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/guide"), $_smarty_tpl);
        ?>
">[更改地址]</a> </span><span class="hc_address">地址:<a style="color:#777;" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
"><?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['mapname']->value) === null || $tmp === '' ? '' : $tmp;
        ?>
</a></span></div>
				  </div>
				  <div class="hc_search">
					<div class="hc_search_left"></div>
					<div class="hc_search_midd"><input id="search_input" value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['shopsearch']->value) === null || $tmp === '' ? '搜索餐厅、美食' : $tmp;
        ?>
" text="搜索餐厅、美食" onfocus="cls(this)" onblur="res(this)"   onkeyprese="pre(this)" type="text6" onkeydown="if(event.keyCode==13)search();" style="padding:0;margin-bottom:0;margin-top:1px;width: 209px;height: 26px;line-height:26px; outline:none;border:0;"  ></div>
					<div class="hc_searching"></div>
					<div class="clear"></div>
					<script type="text/javascript">
						$('.hc_searching').click(function(){
							search();
						})
						
						function search()
						{
							var name = $('#search_input').val();
							if(name != '' && name != $('#search_input').attr('text')) 
							{
								var url = siteurl+'/index.php?controller=site&action=index&shopsearch='+name; 
								location.href=url;
							}
						}
						function cls(obj)
						{
							if($(obj).attr('text') == $(obj).val())
							{
								$(obj).val('');
								$('#search_input').css('color','#000');
							}  
						}
						function res(obj)
						{
							if($(obj).val() == '')
							{
								$('#search_input').css('color','#666');
								$(obj).val($(obj).attr('text'));
							}
						}
						$(document).ready(function(){
							$('#search_input').css('color','#666');
						});
					</script>
				</div>
				  
	  	 	</div>
	 </div>
	 
</div> 

<div class="mmbg" <?php 
        if (!empty($_smarty_tpl->tpl_vars['sitebk']->value)) {
            ?>
style="background:url(<?php 
            echo $_smarty_tpl->tpl_vars['sitebk']->value;
            ?>
)"<?php 
        }
        ?>
></div> 
	
 
 	<div id="content">
 	<form id="loginForm" method="post" action="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/login"), $_smarty_tpl);
        ?>
">
  <div class="hc_content">
		
		<div class="hc_login">
			<div class="hc_login_head"><span class="hc_login_head_span">用户登录</span></div>
			<div class="hc_login_content">
				<div class="hc_login_content_left">
					<div style="height:132px;"></div>
					<div class="hc_login_div">
						<span class="hc_login_div_span">账 号 :</span>
						<input onkeydown="" class="hc_login_input" style="line-height: 38px; padding: 0 5px; margin: 0; border: 0; width: 252px; height: 38px; outline: none;" type="text" placeholder="请输入用户名" name="uname" value="">
						<p class="tip"></p>
					</div>
					<div class="hc_login_div">
						<span class="hc_login_div_span">密 码 :</span>
						<input onkeydown="" class="hc_login_input" style="line-height: 38px; padding: 0 5px; margin: 0; border: 0; width: 252px; height: 38px; outline: none;" type="password" placeholder="请输入密码" name="pwd" value="">
						<p class="tip"></p>
					</div>
          <?php 
        if ($_smarty_tpl->tpl_vars['allowedcode']->value == 1) {
            ?>
          <div class="hc_login_div">
						<span class="hc_login_div_span">验证码:</span>
						<input   style="line-height: 38px; padding: 0 5px; margin: 0; border: 1; width: 102px; height: 38px; outline: none;" type="text" placeholder="验证码" name="Captcha" value=""><img src="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/site/getCaptcha"), $_smarty_tpl);
            ?>
" id="captchaimg"><a href="javascript:freshcode();" >刷新图片</a>
						<p class="tip"></p>
					</div>
          <?php 
        }
        ?>
          
          
					<div class="hc_password"><input name="LoginForm[rememberMe]" value="1" style="margin:0; margin-right:5px; padding: 0;" type="checkbox" checked="">三十天内自动登录</div>
					<div class="hc_login_btn">
						<input type="hidden" value="do" name="tijiao">
						<div id="te_login_btn" class="login-button hc_login_btn_div ">登 录</div>
						<div class="hc_login_btn_pwd"><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/findpwd"), $_smarty_tpl);
        ?>
">找回密码?</a></div>
						<div class="clear"></div>
					</div>
					 <?php 
        echo smarty_function_load_data(array('assign' => "apiloginlist", 'table' => "otherlogin", 'fileds' => "*"), $_smarty_tpl);
        ?>
 
					 <?php 
        if (count($_smarty_tpl->tpl_vars['apiloginlist']->value['list']) > 0) {
            ?>
					<div class="hc_login_btn"> 
						
						<?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['apiloginlist']->value['list'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                ?>
						     <a href="<?php 
                echo FUNC_function(array('type' => 'url', 'link' => "/member/linktest/logintype/" . (string) $_smarty_tpl->tpl_vars['items']->value['loginname']), $_smarty_tpl);
                ?>
" target="_blank"><img src="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['logourl'];
                ?>
"></a> 
						<?php 
            }
            ?>
					 </div> 
					 <?php 
        }
        ?>
				</div>    
				<div class="hc_login_content_right">
					<div class="hc_login_content_right_div">
						<div class="hc_login_content_h_div"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/images/zhuce02.png" alt="注册<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
账号"></div>
						<div class="hc_login_content_p">现在免费注册成为<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
用户,便能建立属于你的定制菜单和开饭行踪, 分享你的饮食经验,随时收藏你的最爱餐厅,以便随时随地查阅。</div>
						<div class="hc_login_content_btn"><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/regester"), $_smarty_tpl);
        ?>
">现在注册</a></div>

					</div>

				</div>
				<div class="clear"></div>
			</div>

		</div>



	</div>
</form>
<script type="text/javascript">
	$('.login-button').click(function(){
		$('#loginForm').submit();
	})
</script>
</div> 
 

<div id="footer">
	
<div class="hc_btm_div">
		<div class="hc_btm_contact">
		   <?php 
        if (!empty($_smarty_tpl->tpl_vars['toplink']->value)) {
            ?>
	 	      <?php 
            $_smarty_tpl->tpl_vars['toplink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['toplink']->value), null, 0);
            ?>
		  	  <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['toplink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
 
			         <a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> | 
			    <?php 
            }
            ?>
			<?php 
        }
        ?>

		</div>
		<div class="hc_btm_info">@2008-2012 <?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['beian']->value;
        echo stripslashes($_smarty_tpl->tpl_vars['footerdata']->value);
        ?>
</div>
	</div>	
	
	
 </div> 
<div style="position: absolute; top: -1970px; left: -1970px;"> 
</div>
<div id="serverdiv">
    	<ul>
    	  <li><a href="#" id="a_product" class="nav_a">快速导航</a>
    	  	 
    	  	</li>
    	  <li >
    	  	 <a id="a_serve" herf="javascript:void(0)" class="nav_a" >在线客服</a> 
    	      <div class="outserdiv">
    	  	 	    <table id="serve_list" style="">
    	  	 	    	<tbody> 
    	  	 	    		 
    	  	 	    		  <tr style="display: table-row;"><td>
    	  	 	    					<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=18707554858&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:18707554858:51" alt="点击这里给我发消息" title="点击这里给我发消息"/></a>
    	  	 	    					</td>
    	  	 	    			</tr>
    	  	 	    			 
    	  	 	    			</tbody>
    	  	 	    	</table>
    	  	 	</div>	
    	  </li>	
    	  <li><a id="a_share" herf="javascript:void(0)" class="nav_a">分享到</a> 
    	  	<div class="outserdiv">
    	  	 <table id="bdshare" class="bdshare_t bds_tools get-codes-bdshare" style="background-color: rgb(255, 255, 255); border: 1px solid rgb(144, 218, 148);">
    	  	 	<tbody>
    	  	 		<tr><td colspan="2" style="height:3px;">&nbsp;</td></tr>
    	  	 		<tr><td height=23px><a class="bds_qzone" href="#">QQ空间</a></td><td><a class="bds_tsina" href="#">新浪微博</a></td></tr>
    	  	 		<tr><td height=23px><a class="bds_tqq" href="#">腾讯微博</a></td><td><a class="bds_renren" href="#">人人网</a></td></tr>
    	  	 		<tr><td height=23px><a class="bds_baidu" href="#">百度搜藏</a></td><td><a class="bds_kaixin001" href="#">开心网</a></td></tr>
    	  	 		<tr><td height=23px><a class="bds_tqf" href="#">腾讯朋友</a></td><td><a class="bds_hi" href="#">百度空间</a></td></tr>
    	  	 		<tr><td height=23px><a class="bds_douban" href="#">豆瓣网</a></td><td><a class="bds_tsohu" href="#">搜狐微博</a></td></tr>
    	  	 		<tr><td height=23px><a class="bds_qq" href="#">QQ收藏</a></td><td><a class="bds_taobao" href="#">我的淘宝</a></td></tr>
    	  	 		<tr><td height=23px><a class="bds_t163" href="#">网易微博</a></td><td><span class="bds_more">更多</span></td></tr>
    	  	 		<tr><td colspan="2" style="padding:2px;">&nbsp;<div id="to_baidu_index" style="background-color: rgb(144, 218, 148); background-position: initial initial; background-repeat: initial initial;"><img src="http://x.xnit.net/js/../images/tobaidu.png" width="156" height="25"></div><div class="bdaddtocitebtn bdaddtocitebtn-small" style="display:none;"></div></td></tr><tr><td colspan="2"></td></tr></tbody></table>
 
    	  	</div>
    	  	 </li>	
    	  <li><a id="a_backtop" herf="javascript:void(0)" class="nav_a" >回到顶部</a> </li>	
    	  <li><a id="a_qrcode" herf="javascript:void(0)" class="nav_a" >下载APP</a>
    	  	<div class="outserdiv" style="width:150px;background-color:#fff;display:none;">
    	  		<div><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/images/chart.png" style="width:150px;height:150px;"></div>
    	  		<div style="padding-bottom:10px;"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/waimairen.apk" style="color:blue;">手动下载</a></div>
    	  	</div>
    	  	
    	  	</li>	
    	  <li id="close_all"><div id="close_img_bg" style="background-color: rgb(144, 218, 148); background-position: initial initial; background-repeat: initial initial;"><div id="close_img" title="点击收起"></div></div> </li>	
    	</ul>
</div>
<div id="open_img_bg" style="display:none;">
	<div id="open_img" title="点击展开" style=""></div>
</div>
 
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/sharea.js" type="text/javascript" language="javascript"></script>



</body>
</html>





<?php 
    }
    function content_555c4699c73bb1_17905638($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include 'D:\\wmr\\lib\\Smarty\\libs\\plugins\\function.load_data.php';
        }
        ?>
  
    <?php 
        if ($_smarty_tpl->tpl_vars['moduleparent']->value > 0) {
            ?>
 
           <?php 
            echo smarty_function_load_data(array('assign' => "moduleall", 'table' => "module", 'limit' => "20", 'orderby' => "id asc", 'where' => "id ='" . (string) $_smarty_tpl->tpl_vars['moduleparent']->value . "' or parent_id = '" . (string) $_smarty_tpl->tpl_vars['moduleparent']->value . "'"), $_smarty_tpl);
            ?>
 
          <?php 
            $_smarty_tpl->tpl_vars['itv'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['itv']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['moduleall']->value['list'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['itv']->key => $_smarty_tpl->tpl_vars['itv']->value) {
                $_smarty_tpl->tpl_vars['itv']->_loop = true;
                ?>
  
          
                <?php 
                echo smarty_function_load_data(array('assign' => "menulist", 'table' => "menu", 'limit' => "20", 'orderby' => "id asc", 'where' => "moduleid ='" . (string) $_smarty_tpl->tpl_vars['itv']->value['id'] . "' and `group` = " . (string) $_smarty_tpl->tpl_vars['admininfo']->value['group']), $_smarty_tpl);
                ?>
 
                 <?php 
                $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['items']->_loop = false;
                $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['menulist']->value['list'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                    $_smarty_tpl->tpl_vars['items']->_loop = true;
                    $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                    ?>
   
   	 	    	            	<li><div class="leftarrow"></div><a href="<?php 
                    echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/" . (string) $_smarty_tpl->tpl_vars['itv']->value['name'] . "/module/" . (string) $_smarty_tpl->tpl_vars['items']->value['name']), $_smarty_tpl);
                    ?>
" <?php 
                    if ($_smarty_tpl->tpl_vars['Taction']->value == $_smarty_tpl->tpl_vars['itv']->value['name'] && $_smarty_tpl->tpl_vars['items']->value['name'] == $_smarty_tpl->tpl_vars['tmodule']->value) {
                        ?>
class="on"<?php 
                    }
                    ?>
><?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['cnname'];
                    ?>
</a></li>
                 <?php 
                }
                ?>
          <?php 
            }
            ?>
 
    <?php 
        } else {
            ?>
 
        <?php 
            echo smarty_function_load_data(array('assign' => "moduleall", 'table' => "module", 'limit' => "20", 'orderby' => "id asc", 'where' => "id ='" . (string) $_smarty_tpl->tpl_vars['moduleid']->value . "' or parent_id = '" . (string) $_smarty_tpl->tpl_vars['moduleid']->value . "'"), $_smarty_tpl);
            ?>
 
          <?php 
            $_smarty_tpl->tpl_vars['itv'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['itv']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['moduleall']->value['list'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['itv']->key => $_smarty_tpl->tpl_vars['itv']->value) {
                $_smarty_tpl->tpl_vars['itv']->_loop = true;
                ?>
  
                <?php 
                echo smarty_function_load_data(array('assign' => "menulist", 'table' => "menu", 'limit' => "20", 'orderby' => "id asc", 'where' => "moduleid ='" . (string) $_smarty_tpl->tpl_vars['itv']->value['id'] . "' and `group` = " . (string) $_smarty_tpl->tpl_vars['admininfo']->value['group']), $_smarty_tpl);
                ?>
 
                 <?php 
                $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['items']->_loop = false;
                $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['menulist']->value['list'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                    $_smarty_tpl->tpl_vars['items']->_loop = true;
                    $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                    ?>
   
   	 	    	            	<li><div class="leftarrow"></div><a href="<?php 
                    echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/" . (string) $_smarty_tpl->tpl_vars['itv']->value['name'] . "/module/" . (string) $_smarty_tpl->tpl_vars['items']->value['name']), $_smarty_tpl);
                    ?>
" <?php 
                    if ($_smarty_tpl->tpl_vars['Taction']->value == $_smarty_tpl->tpl_vars['itv']->value['name'] && $_smarty_tpl->tpl_vars['items']->value['name'] == $_smarty_tpl->tpl_vars['tmodule']->value) {
                        ?>
class="on"<?php 
                    }
                    ?>
><?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['cnname'];
                    ?>
</a></li>
                 <?php 
                }
                ?>
          <?php 
            }
            ?>
 
    <?php 
        }
        ?>
    
    
    
  
 <?php 
    }
    function content_555c46a0c62286_85685532($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include 'D:\\wmr\\lib\\Smarty\\libs\\plugins\\modifier.date_format.php';
        }
        if (!is_callable('smarty_function_load_data')) {
            include 'D:\\wmr\\lib\\Smarty\\libs\\plugins\\function.load_data.php';
        }
        ?>
 <html xmlns="http://www.w3.org/1999/xhtml"><head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
<meta http-equiv="Content-Language" content="zh-CN"> 
<meta content="all" name="robots"> 
<meta name="description" content=""> 
<meta content="" name="keywords"> 
<title>后台管理中心 </title>  
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/admin1.css"> 
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquery.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/public.js" type="text/javascript" language="javascript"></script>
 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/template.min.js" type="text/javascript" language="javascript"></script>

<script>
	var menu = null;
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
	var is_static ="<?php 
        echo $_smarty_tpl->tpl_vars['is_static']->value;
        ?>
";
	if(screen.width > 1359){
		
		$('.newtop').css('width',screen.width);
		$('.newmain').css('width',screen.width);
		$('.newfoot').css('width',screen.width);
	}  
</script> 
</head> 
<body> 
<div id="cat_zhe" class="cart_zhe" style="display:none;"></div>
<div id="cat_tj" class="cart_out_cat" style="display:none;"> 数据提交中..</div>
<div class="newtop">
	  <div class="newadddiv">
	  <div class="newlogo">
	  	  <div class="imglogo"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
" target="_blank"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/images/admin/logo.png"> </a></div>
	  </div>
	  <div class="newtopnav">
	  	 <ul>
	  	  <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tempdir']->value . "/public/admin_module.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>
 
	  	 	<ul>
	  	
	  </div>
	</div>
</div> 
<div style="clear:both;"></div>
<div class="newmain">
	<!-- 提示导航-->
   <div class="top_nav">
	    <div class="nav2 datainfo">
	    	<?php 
        echo smarty_modifier_date_format(time(), "%Y-%m-%d");
        ?>
  
	    </div>
	    <div class="nav2 positioninfo" id="positionname2">
	    	网站首页
	    </div>
	    <div class="nav2 orderinfo">
	    	您有今天有0 个订单待审核
	    </div>
   </div>
   <!-- 主内容区-->
   <div class="newmain_all">
   	 <!-- 主内左区-->
   	 <div class="left_content">
   	 	   <!-- 主内左区用户信息-->
   	 	   <div class="userinfo">
   	 	   	   <div class="user_area">
   	 	   	   	      <div class="user_name">
   	 	   	   	      	<?php 
        echo $_smarty_tpl->tpl_vars['admininfo']->value['username'];
        ?>

   	 	   	   	      </div>
   	 	   	   	      <div class="content_url">
   	 	   	   	      	 <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/adminloginout"), $_smarty_tpl);
        ?>
" class="out">退出</a> 
   	 	   	   	      	 <a onClick="modifypwd();" href="#">修改密码</a>
   	 	   	   	      </div>
   	 	   	  </div>
   	 	   	  <div class="now_name" id="nowactioninfo">
   	 	   	    	网站首页
   	 	   	    </div>
   	 	   </div>
   	 	   <!-- 主内左区导航条-->
   	 	    <div class="left_nav">
   	 	    	  <ul> 
   	 	    	  	
   	 	    	  	
   	 	    	  	 <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tempdir']->value . "/public/admin_menu.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

   	 	    	 
   	 	    	     <li style="text-align:center;"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
" style="color:#0076cf;" target="_blank">返回网站首页</a></li>
   	 	    	  </ul>
   	 	    </div>
   	 	    <div class="left_navend">
   	 	    </div>
   	 	    <!-- 主内左区天气预报-->
   	 	    <div class="weather" id="weatherinfo" style="display:none;">
   	 	    	 <div class="todayweacher">
   	 	    	      <div class="weacher_left">
   	 	    	      	 <div id="wtoday_img"> </div>
   	 	    	      	 <div><span id="wcity" style="padding-right:5px;"></span><span id="wqihou"></span></div>
   	 	    	      </div>
   	 	    	      <div class="weacher_right" id="wwendu">
   	 	    	      	 
   	 	    	      </div>	 
   	 	    	 </div>
   	 	    	 <div style="clear:both;">
   	 	    	 	   <div class="tom">
   	 	    	 	   	    <div id="tom_1" class="tom_img"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_day"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_wendu"></div>
   	 	    	 	   	
   	 	    	 	   	</div>
   	 	    	 	   <div class="tom">
   	 	    	 	   	    <div id="tom_tom" class="tom_img"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_tday"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_twendu"></div>
   	 	    	 	   	</div>
   	 	    	 </div>
   	 	    </div>
   	 	     
   	  </div>
   	  
 
 
  
 
 
 <div class="right_content">
	<div class="show_content_m">
   	        	 <div class="show_content_m_ti">
   	        	 	   <div class="showtop_t" id="positionname">添加管理员</div>
   	        	 </div>
   	        	 <div class="show_content_m_t2">
   	        	 	
   	        	 	
   <div style="width:auto;overflow-x:hidden;overflow-y:auto"> 
          <div class="tags">
           <?php 
        echo smarty_function_load_data(array('assign' => "info", 'table' => "admin", 'where' => "`uid`=" . (string) $_smarty_tpl->tpl_vars['id']->value, 'type' => "one"), $_smarty_tpl);
        ?>
 
          <div id="tagscontent">
            <form method="post" name="form1" action="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/member/module/saveadmin/datatype/json"), $_smarty_tpl);
        ?>
" onsubmit="return subform('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/member/module/adminlist"), $_smarty_tpl);
        ?>
',this);">
              <div>
                <table border="0" cellspacing="2" cellpadding="4" class="list" name="table" id="table" width="100%">
                  <tbody>
                    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="ffffff">
                      <td class="left">管理员名称</td>
                      <td><input type="text" name="username" id="username" value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['info']->value['username']) === null || $tmp === '' ? '' : $tmp;
        ?>
" class="skey" style="width:150px;" <?php 
        if (!empty($_smarty_tpl->tpl_vars['info']->value)) {
            ?>
 readonly<?php 
        }
        ?>
></td>
                    </tr>
                    
                    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="ffffff">
                      <td class="left">新密码</td>
                      <td><input type="password" name="password" id="password" value="" class="skey" style="width:250px;"></td>
                    </tr>
                    
                     <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="ffffff">
                      <td class="left" valign="top">所在用户分组</td>
                      <td>  
                      <select name="groupid">
                      	 <?php 
        echo smarty_function_load_data(array('assign' => "grouplist", 'table' => "group", 'fileds' => "*", 'limit' => "10"), $_smarty_tpl);
        ?>
  
                      	<?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['grouplist']->value['list'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
            ?>
  
                      	<?php 
            if ($_smarty_tpl->tpl_vars['items']->value['type'] == 'admin') {
                ?>
                      	   <option value="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
" <?php 
                if ($_smarty_tpl->tpl_vars['info']->value['groupid'] == $_smarty_tpl->tpl_vars['items']->value['id']) {
                    ?>
selected<?php 
                }
                ?>
><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['name'];
                ?>
</option>
                      	<?php 
            }
            ?>
                      	<?php 
        }
        ?>
 
                      </select>
                      	</td>
                    </tr>
                    <input type="hidden" name="uid" id="uid" value="<?php 
        echo $_smarty_tpl->tpl_vars['info']->value['uid'];
        ?>
" class="skey" style="width:150px;">
                   
                  </tbody>
                </table>
              </div>
              <div class="blank20"></div>
              <input type="hidden" name="tijiao" id="tijiao" value="do" class="skey" style="width:250px;">
              <input type="hidden" name="saction" id="saction" value="siteset" class="skey" style="width:250px;">
               <input type="submit" value="确认提交" class="button">  
            </form>
          </div>
        </div>
        <div class="blank20"></div> 
      
      </div>
      <div class="clear"></div>
    </div>
   
   
    </div> 
<script>	 
function checkword(flag)
{ 
	 
	$("input[name='limit[]']").attr("checked",flag); 
}
</script>

   	        	 	
               <div class="show_content_m_t3">
   	        	 </div>
   	        	 
   	       </div>
   	       <!-- show_content_m结束-->


   	  </div>
   	  <!-- right_content 结束-->
   	  
   </div>
   <!-- newmain_all 结束-->
</div>	
	
<!--newmain 结束-->
















<div style="clear:both;"></div>
<div class="newfoot">
	
	  &#20851;&#27880;&#22909;&#36164;&#28304;&#20851;&#27880;&#25105;&#20204;&#65306;&#119;&#119;&#119;&#46;&#77;&#120;&#56;&#48;&#48;&#46;&#99;&#111;&#109;
</div>	
<script>
$(function(){ 
 $('.show_page a').wrap('<li></li>');
 $('.show_page').find('.current').eq(0).parent().css({'background':'#f60'}); 
});
   
</script>
</body>
</html>





<?php 
    }
    function content_555d72210b2541_42079900($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include '/data/www/xshc/wmr/lib/Smarty/libs/plugins/modifier.date_format.php';
        }
        if (!is_callable('smarty_function_load_data')) {
            include '/data/www/xshc/wmr/lib/Smarty/libs/plugins/function.load_data.php';
        }
        ?>
 <html xmlns="http://www.w3.org/1999/xhtml"><head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
<meta http-equiv="Content-Language" content="zh-CN"> 
<meta content="all" name="robots"> 
<meta name="description" content=""> 
<meta content="" name="keywords"> 
<title>后台管理中心 </title>  
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/admin1.css"> 
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquery.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/public.js" type="text/javascript" language="javascript"></script>
 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/template.min.js" type="text/javascript" language="javascript"></script>

<script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/plugins/iframeTools.js"></script>
 
<script>
	var menu = null;
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
	var is_static ="<?php 
        echo $_smarty_tpl->tpl_vars['is_static']->value;
        ?>
";
	if(screen.width > 1359){
		
		$('.newtop').css('width',screen.width);
		$('.newmain').css('width',screen.width);
		$('.newfoot').css('width',screen.width);
	}  
</script> 
</head> 
<body> 
<div id="cat_zhe" class="cart_zhe" style="display:none;"></div>
<div id="cat_tj" class="cart_out_cat" style="display:none;"> 数据提交中..</div>
<div class="newtop">
	  <div class="newadddiv">
	  <div class="newlogo">
	  	  <div class="imglogo"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
" target="_blank"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/images/admin/logo.png"> </a></div>
	  </div>
	  <div class="newtopnav">
	  	 <ul>
	  	  <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tempdir']->value . "/public/admin_module.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>
 
	  	 	<ul>
	  	
	  </div>
	</div>
</div> 
<div style="clear:both;"></div>
<div class="newmain">
	<!-- 提示导航-->
   <div class="top_nav">
	    <div class="nav2 datainfo">
	    	<?php 
        echo smarty_modifier_date_format(time(), "%Y-%m-%d");
        ?>
  
	    </div>
	    <div class="nav2 positioninfo" id="positionname2">
	    	网站首页
	    </div>
	    <div class="nav2 orderinfo">
	    	您有今天有0 个订单待审核
	    </div>
   </div>
   <!-- 主内容区-->
   <div class="newmain_all">
   	 <!-- 主内左区-->
   	 <div class="left_content">
   	 	   <!-- 主内左区用户信息-->
   	 	   <div class="userinfo">
   	 	   	   <div class="user_area">
   	 	   	   	      <div class="user_name">
   	 	   	   	      	<?php 
        echo $_smarty_tpl->tpl_vars['admininfo']->value['username'];
        ?>

   	 	   	   	      </div>
   	 	   	   	      <div class="content_url">
   	 	   	   	      	 <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/adminloginout"), $_smarty_tpl);
        ?>
" class="out">退出</a> 
   	 	   	   	      	 <a onClick="modifypwd();" href="#">修改密码</a>
   	 	   	   	      </div>
   	 	   	  </div>
   	 	   	  <div class="now_name" id="nowactioninfo">
   	 	   	    	网站首页
   	 	   	    </div>
   	 	   </div>
   	 	   <!-- 主内左区导航条-->
   	 	    <div class="left_nav">
   	 	    	  <ul> 
   	 	    	  	
   	 	    	  	
   	 	    	  	 <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tempdir']->value . "/public/admin_menu.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

   	 	    	 
   	 	    	     <li style="text-align:center;"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
" style="color:#0076cf;" target="_blank">返回网站首页</a></li>
   	 	    	  </ul>
   	 	    </div>
   	 	    <div class="left_navend">
   	 	    </div>
   	 	    <!-- 主内左区天气预报-->
   	 	    <div class="weather" id="weatherinfo" style="display:none;">
   	 	    	 <div class="todayweacher">
   	 	    	      <div class="weacher_left">
   	 	    	      	 <div id="wtoday_img"> </div>
   	 	    	      	 <div><span id="wcity" style="padding-right:5px;"></span><span id="wqihou"></span></div>
   	 	    	      </div>
   	 	    	      <div class="weacher_right" id="wwendu">
   	 	    	      	 
   	 	    	      </div>	 
   	 	    	 </div>
   	 	    	 <div style="clear:both;">
   	 	    	 	   <div class="tom">
   	 	    	 	   	    <div id="tom_1" class="tom_img"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_day"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_wendu"></div>
   	 	    	 	   	
   	 	    	 	   	</div>
   	 	    	 	   <div class="tom">
   	 	    	 	   	    <div id="tom_tom" class="tom_img"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_tday"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_twendu"></div>
   	 	    	 	   	</div>
   	 	    	 </div>
   	 	    </div>
   	 	     
   	  </div>
   	  
 
 
  
 
 
 <div class="right_content">
	<div class="show_content_m">
   	        	 <div class="show_content_m_ti">
   	        	 	   <div class="showtop_t" id="positionname">店铺列表</div>
   	        	 </div>
   	        	 <div class="show_content_m_t2">
   	        	 	
   	        	 	

      <div style="width:auto;overflow-x:hidden;overflow-y:auto">  
      	 
      	<div class="search">
      		 
            
            <div class="search_content">
            	 
            	 <form method="get" name="form1" action="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/shop/module/adminshoplist"), $_smarty_tpl);
        ?>
">
            	   <input type="hidden" name="controller" value="adminpage">
            	   <input type="hidden" name="action" value="module">
            	   <input type="hidden" name="module" value="adminshoplist">
            	   <label>店铺名</label>
            	   <input type="text" name="shopname" value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['shopname']->value) === null || $tmp === '' ? '' : $tmp;
        ?>
"> 
            	   <label>用户名:</label>
            	   <input type="text" name="username" value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['username']->value) === null || $tmp === '' ? '' : $tmp;
        ?>
">                 
                  <label>手机:</label>
            	   <input type="text" name="phone" value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['phone']->value) === null || $tmp === '' ? '' : $tmp;
        ?>
">    
            	  
            	    <input type="submit" value="提交查询" class="button">  
            	 </form>
            </div>       
        
      	</div>
      	
      	
           <div class="tags">

      	  
          <div id="tagscontent">

            <div id="con_one_1">

              <div class="table_td" style="margin-top:10px;">

              <form method="post" action="" onsubmit="return remind();"  id="delform">

                  <table border="0" cellspacing="2" cellpadding="4" class="list" name="table" id="table" width="100%">

                    <thead>

                      <tr>

                        <th width="60px"><input type="checkbox" id="chkall" name="chkall" onclick="checkall()"></th>

                        <th align="center">店铺名称</th>

                        <th align="center">会员名称</th> 

                        <th align="center">设置店铺标签</th> 
                        <th align="center">是否营业</th>
                       
                        <th align="center">佣金</th>
                        <th align="center">排序</th>
                        <th align="center">有效时间</th>
                        <th align="center">操作</th>

                      </tr>

                    </thead> 

                     <tbody>

                     <?php 
        echo smarty_function_load_data(array('assign' => "list", 'table' => "shop", 'showpage' => "true", 'where' => "is_pass='******' " . (string) $_smarty_tpl->tpl_vars['where']->value), $_smarty_tpl);
        ?>
 
                      <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['list']->value['list'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
 
                      <tr class="s_out" onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff"> 
                        <td align="center" ><input type="checkbox" name="id[]" value="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
"></td> 
                        <td align="center"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['shopname'];
            ?>
[<font color=red><?php 
            echo $_smarty_tpl->tpl_vars['shoptype']->value[$_smarty_tpl->tpl_vars['items']->value['shoptype']];
            ?>
</font>]</td> 
                        <td align="center"> 
                        	<?php 
            echo smarty_function_load_data(array('assign' => "userinfo", 'table' => "member", 'type' => "one", 'where' => "uid='" . (string) $_smarty_tpl->tpl_vars['items']->value['uid'] . "'", 'fileds' => "username"), $_smarty_tpl);
            ?>
 
                          	<?php 
            echo $_smarty_tpl->tpl_vars['userinfo']->value['username'];
            ?>
  
                        	</td> 
                        <td align="center">
                        <a onclick="starttask('<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
','<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['shopname'];
            ?>
');" href="#">设置</a> &nbsp;&nbsp;<a onclick="setps('<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
','<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['shopname'];
            ?>
');" href="#">通知方式</a></td>  
                        <td align="center"><?php 
            if ($_smarty_tpl->tpl_vars['items']->value['is_open'] == 1) {
                ?>
是<?php 
            } else {
                ?>
否<?php 
            }
            ?>
</td> 
                   
                         <td align="center"><?php 
            if ($_smarty_tpl->tpl_vars['items']->value['yjin'] == '0') {
                ?>
默认比例<?php 
                echo $_smarty_tpl->tpl_vars['yjin']->value;
            } else {
                echo $_smarty_tpl->tpl_vars['items']->value['yjin'];
            }
            ?>
<a onclick="setyjin('<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
','<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['shopname'];
            ?>
','<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['yjin'];
            ?>
','<?php 
            echo $_smarty_tpl->tpl_vars['yjin']->value;
            ?>
');" href="#">设置</a></td>
                        <td align="center"><input type="text" name="pxinput" data="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
" value="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['sort'];
            ?>
" style="width:30px;padding:0px;"></td>
                        <td align="center"><a href="#" onclick="doshow('<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
','<?php 
            echo intval(($_smarty_tpl->tpl_vars['items']->value['endtime'] - time()) / 86400);
            ?>
');"> <?php 
            if ($_smarty_tpl->tpl_vars['items']->value['endtime'] > 0) {
                ?>
    <?php 
                echo intval(($_smarty_tpl->tpl_vars['items']->value['endtime'] - time()) / 86400);
                ?>
    <?php 
            } else {
                ?>
设置 <?php 
            }
            ?>
</a></td>
                         <td align="center"><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/shop/module/resetdefualt/shopid/" . (string) $_smarty_tpl->tpl_vars['items']->value['id']), $_smarty_tpl);
            ?>
" target="_blank"><img src="<?php 
            echo $_smarty_tpl->tpl_vars['siteurl']->value;
            ?>
/templates/<?php 
            echo $_smarty_tpl->tpl_vars['tempdir']->value;
            ?>
/public/images/admin/but.png"></a></td> 
                      </tr> 
                       <?php 
        }
        ?>
 

                    </tbody> 

                  </table>

                <div class="blank20"></div>

                 
                </form>

                <div class="page_newc">
                 	     <div class="select_page">
                 	      
                 	     	
                 	     	
                 	     	</div>
                       <div class="show_page"><ul><?php 
        echo $_smarty_tpl->tpl_vars['list']->value['pagecontent'];
        ?>
</ul></div>
                 </div>

                <div class="blank20"></div>

              </div>

            </div>

          </div>

        </div>

        
  </div>
  
  
  
  
  
 
</div>  
<script>
	 	var dialogs ;
	 function starttask(shopid,shopname)
	 {
	 	 dialogs = art.dialog.open(siteurl+'/index.php?controller=adminpage&action=shop&module=shopbiaoqian&id='+shopid,{height:'300px',width:'500px'},false);
	 	 dialogs.title('编辑店铺'+shopname+'展示标签'); 
	 }
	 
function uploadsucess(linkurl){
 	dialogs.close(); 
 	window.location.reload(); 
}
function uploaderror(msg){
	 alert(msg); 
}
function setyjin(shopid,shopname,myongjin,defaultyj)
{
	var mytj = myongjin==0?defaultyj:myongjin;
  var	htmls = '<form method="post" id="subyj" action="#" style="text-align:center;"><table>';
	htmls += '<tbody><tr>';
	htmls += '<td height="50px">佣金比例:</td>';
	htmls += '<td> <input type="text" name="yjin" value="'+mytj+'" style="width:100px;"></td></tr>';
	htmls += '</tbody></table> ';
  htmls += '<input type="hidden" value="'+shopid+'" name="shopid"> ';
	htmls += '<input type="button" value="确认提交" class="button" id="buttonsubyj" ></form>';
  art.dialog({
    id: 'testID4',
    title:'设置'+shopname+'佣金',
    content: htmls
  });
} 
$('#buttonsubyj').live('click',function(){ 
	$.post('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/shop/module/savesetshopyjin/datatype/json"), $_smarty_tpl);
        ?>
', $('#subyj').serialize() ,function (data, textStatus){  
			if(data.error == false){
     	  	diasucces('操作成功','');
     	}else{
     		if(data.error == true)
     		{
     			diaerror(data.msg); 
     		}else{
     			diaerror(data); 
     		}
     	} 
	 }, 'json'); 
});
$("input[name='pxinput']").live("change", function() {   
	$.post('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/shop/module/adminshoppx/datatype/json"), $_smarty_tpl);
        ?>
', {'id':$(this).attr('data'),'pxid':$(this).val()},function (data, textStatus){  
			if(data.error == false){
     		diasucces('操作成功',newurl);
     	}else{
     		if(data.error == true)
     		{
     			diaerror(data.msg); 
     		}else{
     			diaerror(data); 
     		}
     	} 
	 }, 'json'); 
});
function doshow(shopid,shoptian){
var	htmls = '<form method="post" id="doshwoform" action="#" style="text-align:center;"><table>';
	htmls += '<tbody><tr>';
	htmls += '<td height="50px">有效天数:</td>';
	htmls += '<td> <input type="text" name="mysetclosetime" value="'+shoptian+'" style="width:100px;"></td></tr>';
	htmls += '</tbody></table> ';
  htmls += '<input type="hidden" value="'+shopid+'" name="shopid"> ';
	htmls += '<input type="button" value="确认提交" class="button" id="dosetclosetime" ></form>';
  art.dialog({
    id: 'testID3',
    title:'设置开店有效时间',
    content: htmls
  });
}
$('#dosetclosetime').live('click',function(){ 
	$.post('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/shop/module/shopactivetime/datatype/json"), $_smarty_tpl);
        ?>
', $('#doshwoform').serialize() ,function (data, textStatus){  
			if(data.error == false){
     		diasucces('操作成功','');
     	}else{
     		if(data.error == true)
     		{
     			diaerror(data.msg); 
     		}else{
     			diaerror(data); 
     		}
     	} 
	 }, 'json'); 
});
function setps(shopid,shopname)
{
	 	 dialogs = art.dialog.open(siteurl+'/index.php?controller=adminpage&action=shop&module=setnotice&shopid='+shopid);
	 	 dialogs.title('设置店铺'+shopname+'配送方式'); 
} 	 
</script>
<!--newmain 结束-->

   	        	 	
               <div class="show_content_m_t3">
   	        	 </div>
   	        	 
   	       </div>
   	       <!-- show_content_m结束-->


   	  </div>
   	  <!-- right_content 结束-->
   	  
   </div>
   <!-- newmain_all 结束-->
</div>	
	
<!--newmain 结束-->
















<div style="clear:both;"></div>
<div class="newfoot">
	
	  &#20851;&#27880;&#22909;&#36164;&#28304;&#20851;&#27880;&#25105;&#20204;&#65306;&#119;&#119;&#119;&#46;&#77;&#120;&#56;&#48;&#48;&#46;&#99;&#111;&#109;
</div>	
<script>
$(function(){ 
 $('.show_page a').wrap('<li></li>');
 $('.show_page').find('.current').eq(0).parent().css({'background':'#f60'}); 
});
   
</script>
</body>
</html>





<?php 
    }
    function content_559388eebe7849_79218510($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/function.load_data.php';
        }
        ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>商家管理中心-<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</title>
<meta name="Keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" />
<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/commom.css" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/shangjiaAdmin.css" />

<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquerynew.js" type="text/javascript" language="javascript"></script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/allj.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script>

  <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/js/kindeditor/kindeditor.js" type="text/javascript" language="javascript"></script>
  <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/plugins/iframeTools.js"></script>
    <script>
  	var mynomenu='baseset';
  	</script>
 
<script>
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
    $(function(){
      
      $('.conWaiSet').height( $('.conleft').height() );
        $('.header ul li').click(function(){
            $(this).addClass('li_active').siblings().removeClass('li_active');
        });
   
        $('.waimaiset').children().children('img').remove();

        $('.shopSetTop').remove();
        $('.waimaiset li').click(function(){
            $(this).addClass('li_active').siblings().removeClass('li_active');
        });
         

        
    });
</script>
<!--[if lte IE 6]>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('div, ul, img, li, input , a');
        $('#footer').css('display','none');
    </script>
<![endif]-->
</head>
<body>
<?php 
        echo smarty_function_load_data(array('assign' => "shopinfo", 'table' => "shop", 'where' => "`id`=" . (string) $_smarty_tpl->tpl_vars['adminshopid']->value, 'type' => "one"), $_smarty_tpl);
        ?>

<!---<div style="position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: -1;background:url(<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/background.png);"></div>
header start-->
	<div class="header">
    	<ul>
        	<li class="li_active">
               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺管理</a>
            </li>
            <li>
               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a>
            </li>
            <li>
              <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/fastfood"), $_smarty_tpl);
        ?>
">快速下单</a>
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
        ?>
');">
                内容管理
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');">
                会员中心
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">
                退出
            </li>
        </ul>
                 <div class="cl"></div>
</div>
        <!--    <div class="topRight fr">
                <span onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
        ?>
');" class="curbtn">内容管理</span>
                    <span  onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');" class="curbtn">会员中心 </span>
                    <span class="username curbtn" onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">退出</span>

            </div>
            <div class="cl"></div>


            <div class="shangjiaTop">
            	<div class="sjgl">

                </div>

            </div>
        </div>

    </div>-->
    <!---header end
    <script>
	$(function(){
		var clientWidth = document.body.clientWidth;
		/*alert(clientWidth);*/
	/*	if( clientWidth<=1347 ){

			$(".content").css("width","1240px");
			$(".conleft").removeClass("content_left");

		}*/
	});
</script>
 以上是公共的头部部分-->

  <!---content start-->
	<div class="content">
   	 	<!---content left start-->
		<div class="conleft"><!-- content_left -->
        	<div class="nav">
            	<ul>
                	<li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
');" data="baseset"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/dpsz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺设置</a></li>
                    <li onclick="openlink('<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
');" data="basemenu"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/cdgl.png" /></div><a href="<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
">菜单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
');" data="baseorder"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddgl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
');" data="baseordertj"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddtj.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
">订单统计</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
');" data="basearea"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/psqy.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
">配送区域</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
');"  data="basecx"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/xxgz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
">促销规则</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/lygl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
">留言评价</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/wechat.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
">微信管理</a></li>

                </ul>

            </div>
        </div>
       <!---content left end-->





           
  
   <div class="conWaiSet fr">
        	
            <div class="shopSetTop">
            	<span>店铺设置</span>
            </div> 
            	  <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tempdir']->value . "/shop/usereditmenu.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>
  
             <div class="cl"></div>  
             
             
             
             
 <form id="loginForm" method="post" action="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/usershopinstro"), $_smarty_tpl);
        ?>
" >
       		<div class="jutiSet">
       			
       			 
       		  	
       		       <table width="100%" border="0"> 
                      <tr> 
                        <td><script>KE.show({id:'intr_info',allowFileManager : true,imageUploadJson:'<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/other/saveupload"), $_smarty_tpl);
        ?>
',fileManagerJson:'<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/other/saveupload"), $_smarty_tpl);
        ?>
',items:['source','|', 'justifyleft', 'justifycenter', 'justifyright','justifyfull', 'insertorderedlist', 'insertunorderedlist', '|', 'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold','italic', 'underline', 'removeformat', '|', 'image', 'advtable', 'hr','link', 'unlink']});</script><textarea name="intr_info" id="intr_info" style='width:100%; height:500px;'><?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['intr_info'];
        ?>
</textarea></td>
                      </tr> 
                      <tr> 
                      	  <input type="hidden" name="uid" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['id'];
        ?>
">
                        <td >&nbsp;                            	</td>
                      </tr>
                 </table>
       		  	
       		  	<div class="settijiao"> 
                        	<input class="xuanze_right" type="submit" name=""  value="点击提交"/>
                     
                        <div class="cl"></div>
                    </div>
       		  </div>
       </form>
<div class="cl"></div>


</div>
   
 







       </div>




<!--以下是公共的底部部分-->

    <div class="footer">
    	<div class="foot1">
        <center>
        	<div class="db">
        	   <?php 
        if (!empty($_smarty_tpl->tpl_vars['toplink']->value)) {
            ?>
	 	      <?php 
            $_smarty_tpl->tpl_vars['toplink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['toplink']->value), null, 0);
            ?>
		  	  <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['toplink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
			         <a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> |
			    <?php 
            }
            ?>
			<?php 
        }
        ?>

            </div></center>
            <div class="cl"></div>
        </div>
        <div class="foot2">
        	<p>@2008-2012 <?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['beian']->value;
        ?>
 <?php 
        echo stripslashes($_smarty_tpl->tpl_vars['footerdata']->value);
        ?>
</p>
        </div>
    </div>

 <script>

				$(function(){

			  	if("undefined" != typeof mynomenu){
					   var allobj = $('.nav').find('li');
					  $.each(allobj, function(i, newobj) {
					  	if($(this).attr('data') == mynomenu){
					  	   $(this).addClass('on').siblings().removeClass('on');
					  	 }
					  	//alert($(this).attr('data'));

					  });
				 	}
					$(".nav ul li").click(function(){
					    	$(this).addClass('on').siblings().removeClass('on');

					});
				});
				function openlink(newlinkes){
					window.location.href=newlinkes;
				}
</script>

</body>
</html>
<?php 
    }
    function content_558d04674a46b5_46092910($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/function.load_data.php';
        }
        if (!is_callable('smarty_modifier_date_format')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/modifier.date_format.php';
        }
        ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>商家管理中心-<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</title>
<meta name="Keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" />
<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/commom.css" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/shangjiaAdmin.css" />

<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquerynew.js" type="text/javascript" language="javascript"></script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/allj.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script>

<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquery.PrintArea.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/datepicker/WdatePicker.js" type="text/javascript" language="javascript"></script>
   <script>
  	var mynomenu='baseorder';
  	</script>
 
<script>
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
    $(function(){
      
      $('.conWaiSet').height( $('.conleft').height() );
        $('.header ul li').click(function(){
            $(this).addClass('li_active').siblings().removeClass('li_active');
        });
   
        $('.waimaiset').children().children('img').remove();

        $('.shopSetTop').remove();
        $('.waimaiset li').click(function(){
            $(this).addClass('li_active').siblings().removeClass('li_active');
        });
         

        
    });
</script>
<!--[if lte IE 6]>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('div, ul, img, li, input , a');
        $('#footer').css('display','none');
    </script>
<![endif]-->
</head>
<body>
<?php 
        echo smarty_function_load_data(array('assign' => "shopinfo", 'table' => "shop", 'where' => "`id`=" . (string) $_smarty_tpl->tpl_vars['adminshopid']->value, 'type' => "one"), $_smarty_tpl);
        ?>

<!---<div style="position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: -1;background:url(<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/background.png);"></div>
header start-->
	<div class="header">
    	<ul>
        	<li class="li_active">
               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺管理</a>
            </li>
            <li>
               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a>
            </li>
            <li>
              <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/fastfood"), $_smarty_tpl);
        ?>
">快速下单</a>
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
        ?>
');">
                内容管理
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');">
                会员中心
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">
                退出
            </li>
        </ul>
                 <div class="cl"></div>
</div>
        <!--    <div class="topRight fr">
                <span onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
        ?>
');" class="curbtn">内容管理</span>
                    <span  onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');" class="curbtn">会员中心 </span>
                    <span class="username curbtn" onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">退出</span>

            </div>
            <div class="cl"></div>


            <div class="shangjiaTop">
            	<div class="sjgl">

                </div>

            </div>
        </div>

    </div>-->
    <!---header end
    <script>
	$(function(){
		var clientWidth = document.body.clientWidth;
		/*alert(clientWidth);*/
	/*	if( clientWidth<=1347 ){

			$(".content").css("width","1240px");
			$(".conleft").removeClass("content_left");

		}*/
	});
</script>
 以上是公共的头部部分-->

  <!---content start-->
	<div class="content">
   	 	<!---content left start-->
		<div class="conleft"><!-- content_left -->
        	<div class="nav">
            	<ul>
                	<li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
');" data="baseset"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/dpsz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺设置</a></li>
                    <li onclick="openlink('<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
');" data="basemenu"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/cdgl.png" /></div><a href="<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
">菜单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
');" data="baseorder"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddgl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
');" data="baseordertj"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddtj.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
">订单统计</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
');" data="basearea"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/psqy.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
">配送区域</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
');"  data="basecx"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/xxgz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
">促销规则</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/lygl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
">留言评价</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/wechat.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
">微信管理</a></li>

                </ul>

            </div>
        </div>
       <!---content left end-->





           


  <!---content right start-->
  <div class="conWaiSet fr">
    <div class="shopSetTop"> <span>订单查询</span> </div>
    <div class="selOrder">
      <div class="autoRe" id="showztai" udata="<?php 
        echo $_smarty_tpl->tpl_vars['hidecount']->value;
        ?>
"  data="20" > 自动刷新倒计时<span>0</span>秒 </div>
      <div class="refresh_set">
        <div  class="refset" onclick="refreshorder();"> <img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/sdsx.png" /><span>手动刷新</span> </div>
        <div class="refset" onclick="palywav();"> <img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/lstx.png" /><span>铃声提醒</span> </div>
        <div class="refset" id="startwave" 	 > <img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/start.png"  /><span>开启</span> </div>
        <div class="refset"  id="closetwave"  > <img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/close.png"/><span>关闭</span> </div>

      </div>
      <div class="cl"></div>
    </div>
    <div class="cl"></div>
  <!--  <script>

				$(function(){
					$(".waimaiset .jbset").click(function(){
						$(this).css('background','#19b4ea').siblings().css('background','');

					});

				});
                </script>-->
    <form action="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
" method="post">
      <div class="order_search" style="background:transparent;">
        <label class="chaxun">查询类型:</label>
        <label>
          <input type="radio" value="1" name="orderSource" <?php 
        if ($_smarty_tpl->tpl_vars['orderSource']->value == 1) {
            ?>
checked<?php 
        }
        ?>
  />
          网站订单</label>
        <label>
          <input type="radio" value="2" name="orderSource" <?php 
        if ($_smarty_tpl->tpl_vars['orderSource']->value == 2) {
            ?>
checked<?php 
        }
        ?>
  />
          电话订单</label>
        <label>
          <input type="radio" value="3" name="orderSource" <?php 
        if ($_smarty_tpl->tpl_vars['orderSource']->value == 3) {
            ?>
checked<?php 
        }
        ?>
  />
          待确认订单</label>
        <label>
          <input type="radio" value="4" name="orderSource" <?php 
        if ($_smarty_tpl->tpl_vars['orderSource']->value == 4) {
            ?>
checked<?php 
        }
        ?>
   />
          待发货订单</label>
        <label>
          <input type="radio" value="5" name="orderSource" <?php 
        if ($_smarty_tpl->tpl_vars['orderSource']->value == 5) {
            ?>
checked<?php 
        }
        ?>
   />
          已发货订单</label>
        <label>选择日期
          <input class="xzrq" type="text" name="starttime" id="starttime" value="<?php 
        echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['starttime']->value, "%Y-%m-%d");
        ?>
"  onFocus="WdatePicker({isShowClear:false,readOnly:true});" />
        </label>
        <label>
          <input class="searchBg" type="submit" name="" value="" />
        </label>
        
      </div>
    </form>
    <div class="orderList">

      <div class="orderspan"> 共计<span class="numOrder"><?php 
        echo $_smarty_tpl->tpl_vars['tongji']->value['shuliang'];
        ?>
</span>张订单,成功订单金额<span class="seccost"><?php 
        echo $_smarty_tpl->tpl_vars['tongji']->value['allcost'];
        ?>
</span>元 </div>

      <div id="all_area">
      	<!--订单循环-->
       <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['list']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
            ?>
      <div class="singleOrder" id="order_area_<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
">
        <div class="singleOrder_title">
          <div class="orderNum"> <span><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['daycode'];
            ?>
</span> </div>
          <div class="order_xx"> <span style=" margin-left:26px;"><span class="oxx">订单号</span>:<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['dno'];
            ?>
<span style="color:red"><?php 
            if ($_smarty_tpl->tpl_vars['items']->value['is_goshop'] == 1) {
                ?>
(订座)<?php 
            } else {
                ?>
(外卖)<?php 
            }
            ?>
</span></span> <span style=" margin-left:30px;"><span class="oxx">下单时间</span>:<?php 
            echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['items']->value['addtime'], "%Y-%m-%d %H:%M:%S");
            ?>
</span><span style=" margin-left:30px;"><span class="oxx">状态</span>:
              <?php 
            if ($_smarty_tpl->tpl_vars['items']->value['is_make'] == 0) {
                ?>
                待确认制作
               <?php 
            } elseif ($_smarty_tpl->tpl_vars['items']->value['is_make'] == 1) {
                ?>
                 <?php 
                echo $_smarty_tpl->tpl_vars['buyerstatus']->value[$_smarty_tpl->tpl_vars['items']->value['status']];
                ?>

                <?php 
            } else {
                ?>
                   取消制作
                <?php 
            }
            ?>




          	</span> </div>
          <div class="showorderdet curbtn" onclick="showdet('<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
',this);">+</div>
        </div>
        <div class="order_details" id="order_det<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
">
          <table class="order_listli" style="font-size: 14px; margin-top: 5px; text-align: left; margin-left: 20px;" width="898" align="center" border="" cellpadding="0" cellspacing="0" bordercolor="#6596a9" >
            <tr>
              <td><div>支付方式: <span><?php 
            echo $_smarty_tpl->tpl_vars['paytypearr']->value[$_smarty_tpl->tpl_vars['items']->value['paytype']];
            ?>
(<?php 
            if ($_smarty_tpl->tpl_vars['items']->value['paystatus'] == 1) {
                ?>
已付<?php 
            } else {
                ?>
未付<?php 
            }
            ?>
) <font color=red><?php 
            echo $_smarty_tpl->tpl_vars['backarray']->value[$_smarty_tpl->tpl_vars['items']->value['is_reback']];
            ?>
</font></span></div></td>
              <td><div>订单状态: <span><?php 
            echo $_smarty_tpl->tpl_vars['buyerstatus']->value[$_smarty_tpl->tpl_vars['items']->value['status']];
            ?>
</span></div></td>
              <td><div><?php 
            if ($_smarty_tpl->tpl_vars['items']->value['is_goshop'] == 1) {
                ?>
消费时间<?php 
            } else {
                ?>
配送时间<?php 
            }
            ?>
: <span><?php 
            echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['items']->value['posttime'], "%Y-%m-%d %H:%M:%S");
            ?>
</span></div></td>
              <td><div>配送: <span><?php 
            if ($_smarty_tpl->tpl_vars['items']->value['pstype'] == 1) {
                ?>
店铺<?php 
            } else {
                ?>
网站<?php 
            }
            ?>
</span></div></td>
            </tr>
            <tr>
              <td><div>顾客电话: <span><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['buyerphone'];
            ?>
</span></div></td>
              <td><div>顾客地址: <span><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['buyeraddress'];
            ?>
</span></div></td>
              <?php 
            if ($_smarty_tpl->tpl_vars['items']->value['is_goshop'] == 1) {
                ?>
              <td><div>联系人: <span><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['buyername'];
                ?>
</span></div></td>
              <td><div> <?php 
                $_smarty_tpl->tpl_vars['showother'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['items']->value['othertext']), null, 0);
                ?>
                             <?php 
                $_smarty_tpl->tpl_vars['itc'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['itc']->_loop = false;
                $_smarty_tpl->tpl_vars['mytest'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['showother']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['itc']->key => $_smarty_tpl->tpl_vars['itc']->value) {
                    $_smarty_tpl->tpl_vars['itc']->_loop = true;
                    $_smarty_tpl->tpl_vars['mytest']->value = $_smarty_tpl->tpl_vars['itc']->key;
                    ?>
                            <font color=red> <?php 
                    echo $_smarty_tpl->tpl_vars['mytest']->value;
                    ?>
:<?php 
                    echo $_smarty_tpl->tpl_vars['itc']->value;
                    ?>
 </font>
                             <?php 
                }
                ?>
</td></div></td>
              <?php 
            } else {
                ?>
              <td colspan="2"><div>联系人: <span><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['buyername'];
                ?>
</span></div></td>
              <?php 
            }
            ?>
            </tr>
            <tr>
              <td colspan="4"><div>订单备注: <span><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['content'];
            ?>
</span></div></td>
            </tr>
            <tr>
              <td  colspan="1"><div>审核参考: <span> <?php 
            if (empty($_smarty_tpl->tpl_vars['items']->value['buyeruid'])) {
                ?>
游客<?php 
            } else {
                ?>
成交次数:<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['maijiagoumaishu'];
            }
            ?>
</span></div></td>
              <td colspan="3"><div>下单IP: <span><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['ipaddress'];
            ?>
</span></div></td>
            </tr>
          </table>
          <div class="order_alllist">
            <table style="font-size: 14px; margin-top: 5px; text-align: left; margin-left: 20px;" width="898" align="center" border="1" cellpadding="0" cellspacing="0" bordercolor="#6596a9" >
              <tr>
                  <td style=" font-weight:bold;" width="55%">美食篮子</td>
                  <td style=" font-size:14px; color:#ffffff; font-weight:bold; font-family:"微软雅黑";"  align="center">单价</td>
                  <td style=" font-size:14px; color:#ffffff; font-weight:bold; font-family:"微软雅黑";"  align="center" align="center"> 数量 </td>
                  <td style=" font-size:14px; color:#ffffff; font-weight:bold; font-family:"微软雅黑";"  align="center" align="center">总价  </td>
              </tr>
               <?php 
            $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['value']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['items']->value['detlist'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) {
                $_smarty_tpl->tpl_vars['value']->_loop = true;
                ?>
              <tr>
                <td style=" font-weight:bold;"  width="55%"><?php 
                echo $_smarty_tpl->tpl_vars['value']->value['goodsname'];
                if ($_smarty_tpl->tpl_vars['value']->value['is_send'] == 1) {
                    ?>
<font color=red>[赠品]</font><?php 
                }
                if ($_smarty_tpl->tpl_vars['value']->value['shopid'] == 0) {
                    ?>
<font color=blue>[商城]</font><?php 
                }
                ?>
</td>
                <td style=" font-size:14px; color:#ffffff; font-weight:bold; font-family:"微软雅黑";"  align="center"><?php 
                echo $_smarty_tpl->tpl_vars['value']->value['goodscost'];
                ?>
</td>
                  <td style=" font-size:14px; color:#ffffff; font-weight:bold; font-family:"微软雅黑";"  align="center" align="center"><?php 
                echo $_smarty_tpl->tpl_vars['value']->value['goodscount'];
                ?>
</td>
                  <td style=" font-size:14px; color:#ffffff; font-weight:bold; font-family:"微软雅黑";"  align="center" align="center"><?php 
                echo $_smarty_tpl->tpl_vars['value']->value['goodscount'] * $_smarty_tpl->tpl_vars['value']->value['goodscost'];
                ?>
  </td>
              </tr>
               <?php 
            }
            ?>
              <tr>
                <td style=" font-weight:bold;" colspan="4">
                	<?php 
            if ($_smarty_tpl->tpl_vars['items']->value['scoredown'] > 0) {
                ?>
 <span class="info_name">积分:<font color=red><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['scoredown'];
                ?>
</font>个</span><?php 
            }
            ?>
                               	  <span class="info_name">配送费:<font color=red><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['shopps'];
            ?>
</font>元</span>
                               	 <?php 
            if ($_smarty_tpl->tpl_vars['items']->value['yhjcost'] > 0) {
                ?>
<span class="info_name ml20">优惠券金额:<font color=red><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['yhjcost'];
                ?>
</font>元</span><?php 
            }
            ?>
                               	<?php 
            if ($_smarty_tpl->tpl_vars['items']->value['cxcost'] > 0) {
                ?>
 <span class="info_name ml20">促销优惠:<font color=red><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['cxcost'];
                ?>
</font>元</span><?php 
            }
            ?>
                               	 <?php 
            if ($_smarty_tpl->tpl_vars['items']->value['bagcost'] > 0) {
                ?>
<span class="info_name ml20">打包费:<font color=red><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['bagcost'];
                ?>
</font>元</span><?php 
            }
            ?>
                               	 <span class="info_name ml20">应收金额:<font color=red><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['allcost'];
            ?>
</font>元</span>
                </td>
              </tr>
            </table>
            <div class="order_bottom"  id="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
">
            		<?php 
            if ($_smarty_tpl->tpl_vars['items']->value['status'] == 1) {
                ?>
       		              	   <?php 
                if ($_smarty_tpl->tpl_vars['items']->value['is_make'] == 0) {
                    ?>
                                  	<span onclick="unmakeorder(<?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['id'];
                    ?>
);" class="curbtn"><img src="<?php 
                    echo $_smarty_tpl->tpl_vars['siteurl']->value;
                    ?>
/templates/<?php 
                    echo $_smarty_tpl->tpl_vars['tempdir']->value;
                    ?>
/public/shopcenter/images/buzhizuo.png" /></span>

                              	<span  onclick="makeorder(<?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['id'];
                    ?>
);" class="curbtn"><img src="<?php 
                    echo $_smarty_tpl->tpl_vars['siteurl']->value;
                    ?>
/templates/<?php 
                    echo $_smarty_tpl->tpl_vars['tempdir']->value;
                    ?>
/public/shopcenter/images/zhizuodingdan.png" /></span>
                              	 <?php 
                } elseif ($_smarty_tpl->tpl_vars['items']->value['is_make'] == 1) {
                    ?>
                              	 <span onclick="sendorder(<?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['id'];
                    ?>
);" class="curbtn"><img src="<?php 
                    echo $_smarty_tpl->tpl_vars['siteurl']->value;
                    ?>
/templates/<?php 
                    echo $_smarty_tpl->tpl_vars['tempdir']->value;
                    ?>
/public/shopcenter/images/peisongfahuo.png" /></span>
                               	<?php 
                } elseif ($_smarty_tpl->tpl_vars['items']->value['is_make'] == 2) {
                    ?>
       		              	       订单取消制作
       		              	   <?php 
                }
                ?>
       		      <?php 
            }
            ?>

            	<span onclick="printorder(<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
);" class="curbtn"><img src="<?php 
            echo $_smarty_tpl->tpl_vars['siteurl']->value;
            ?>
/templates/<?php 
            echo $_smarty_tpl->tpl_vars['tempdir']->value;
            ?>
/public/shopcenter/images/dayindingdan.png" /></span>
            	<?php 
            if ($_smarty_tpl->tpl_vars['items']->value['status'] == 2) {
                ?>
            	   <span class="curbtn" onclick="wancheng(<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
);"  ><img src="<?php 
                echo $_smarty_tpl->tpl_vars['siteurl']->value;
                ?>
/templates/<?php 
                echo $_smarty_tpl->tpl_vars['tempdir']->value;
                ?>
/public/shopcenter/images/wanchengdingdan.png" /></span>
            	<?php 
            }
            ?>
            </div>
          </div>
        </div>
      </div>
      <?php 
        }
        ?>

      <!---订单循环-->
    </div>

    </div>
  </div>
  <div class="cl"></div>

  <!---content right end--->







<div id="print_area" style="display:none;"></div>
<div id="palywave" style="display:none;"></div>
 <script>
 	<?php 
        if ($_smarty_tpl->tpl_vars['playwave']->value != 2) {
            ?>
 	var playwave = true;
 	<?php 
        } else {
            ?>
 		var playwave = false;
 	<?php 
        }
        ?>
				$(function(){
					 if(playwave == true){
					 	$('#startwave').css('background','#ec7501');
					}else{
						$('#closetwave').css('background','#ec7501');
					}
					$("#startwave").click(function(){
						$(this).css('background','#ec7501');//.siblings().css('background','');
						$('#closetwave').css('background','');
						playwave =   true;
						ajaxback('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/wavecontrol/type/openwave/datatype/json"), $_smarty_tpl);
        ?>
','');
					});
					$("#closetwave").click(function(){
						$(this).css('background','#ec7501');//.siblings().css('background','');
							$('#startwave').css('background','');
								playwave = false;
					    	ajaxback('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/wavecontrol/type/closewave/datatype/json"), $_smarty_tpl);
        ?>
','');

					});

				});
function refreshorder(){
	window.location.reload();
}
</script>
<script type="text/javascript">
	 function showdet(order,obj){
	 	var checkobj = $('#order_det'+order).is(":hidden");
	 	if(checkobj ==  false){
	 		 $(obj).text('+');
	 		 $('#order_det'+order).hide();
	 	}else{
	 		$(obj).text('-');
	 		$('#order_det'+order).show();
	 	}

	}
	 function unorder(orderid,dno)
	 {
	 	   var dialog =  art.dialog({
	 	   	id:'coslid',
        title:'取消订单'+dno,
           content: '<div>关闭订单理由</div><div><textarea name="reason" id="reason" style="height:40px;"></textarea></div><div class="btn_wuxiao hc_listfoods_menus_foods hcl_food_lists_cont_div_order2 hcl_food_lists_cont_div_order4 hc_listfoods_menus_foods2" style="width:65px;float:left;" onclick="sureclose('+orderid+');">提交关闭</div>'
        });
	 }
	 function sureclose(orderid)
	 {
	 	  var reasons = $('#reason').val();
	 	  if(reasons == undefined || reasons == '')
	 	  {
	 	  	alert('关闭理由不能为空');
	 	  }else{
	 	    myajax('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shopcontrol/controlname/unorder/datatype/json"), $_smarty_tpl);
        ?>
',{'orderid':orderid,'reason':reasons});
	 	 }
	 }
	 function makeorder(orderid){

	 	  if(confirm('订单已审核通过,确认制作吗?')){
		        myajax('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shopcontrol/controlname/makeorder/datatype/json"), $_smarty_tpl);
        ?>
',{'orderid':orderid});
		  }



	 }
	 function wancheng(orderid){
	 	 if(confirm('订单操作确认完成该订单吗?')){
		        myajax('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shopcontrol/controlname/wancheng/datatype/json"), $_smarty_tpl);
        ?>
',{'orderid':orderid});
		  }
	}
	 function unmakeorder(orderid){

	 	  if(confirm('订单已审核通过,取消不制作吗?')){
		       myajax('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shopcontrol/controlname/unmakeorder/datatype/json"), $_smarty_tpl);
        ?>
',{'orderid':orderid});
		  }

	 }
	 function sendorder(orderid)
	{
		if(confirm('订单已审核通过,确认发货吗?')){
		   myajax('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shopcontrol/controlname/sendorder/datatype/json"), $_smarty_tpl);
        ?>
',{'orderid':orderid});
		}
	}
	function shenhe(orderid)
	{
		if(confirm('通过审核,此订单将生效吗?')){
		   myajax('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shopcontrol/controlname/shenhe/datatype/json"), $_smarty_tpl);
        ?>
',{'orderid':orderid});
		}
	}
	function delorder(orderid)
	{
		if(confirm('彻底删除订单吗?')){
		   myajax('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shopcontrol/controlname/delorder/datatype/json"), $_smarty_tpl);
        ?>
',{'orderid':orderid});
		}
	}
	function printorder(orderid)
	{
		$('#print_area').html('');
	 $('#order_area_'+orderid).clone().appendTo($('#print_area'));
	 $("#print_area").find('.order_bottom').remove();
	  $("#print_area").printArea();
	//	$('#print_area').html($('#order_area_'+orderid).html());
    //	 $("#print_area").find('.print_noshow').remove();
  }
  function print_all_area()
  {
  	$('#print_area').html($('#all_area').html());
	  $("#print_area").find('.order_bottom').remove();
	  $("#print_area").printArea();
  }
</script>
<script>

$(function(){
	setTimeout("get_status()",1000);
});
function get_status(){//<span id="timeshow" data="20" style="color:#666;"></div>
	//alert('xxx');
	var timeaction =  $('#showztai').attr('data');


	if(timeaction == 0){
	$('#showztai').text('检测订单..');
	 var url = siteurl+'/index.php?controller=order&action=ajaxcheckshoporder&datatype=json&random=@random@';
	 $.ajax({
       type: 'POST',
       async:false,
       url: url.replace('@random@', 1+Math.round(Math.random()*1000)),
       data: {},
      dataType: 'json',success: function(content) {
      	if(content.error == true)
      	{
      		$('#showztai').text('未获取到新订单');
      		$('#showztai').attr('data','20');

      		setTimeout("get_status()",1000);
      	}else if(content.error == false)
      	{
      		  var checkNum = Number($('#showztai').attr('udata'));
      		  var ccNumber = Number(content.msg);
      		  if(ccNumber > checkNum){
      		  	palywav();
      		  }else{
      		  	 $('#showztai').text('未获取到新订单');
      	     	$('#showztai').attr('data','20');

      	      	setTimeout("get_status()",1000);
      		  }

      	}else{
      	 $('#showztai').text('未获取到新订单');
      		$('#showztai').attr('data','20');

      		setTimeout("get_status()",1000);
      	}

		  },
      error: function(content) {
      $('#showztai').text('未获取到新订单');
      		$('#showztai').attr('data','20');

      		setTimeout("get_status()",1000);
	   }
   });
 }else{
 	var nowtime = Number(timeaction)-1;
 	$('#showztai').attr('data',nowtime);
 	$('#showztai').html('自动刷新倒计时<span>'+nowtime+'</span>秒');
 	setTimeout("get_status()",1000);

 }

}
function palywav(){
	if(playwave == true){
if(navigator.userAgent.indexOf("Chrome") > -1){
$('#palywave').html('<audio src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/upload/wave.mp3" type="audio/mp3" autoplay=”autoplay” hidden="true"></audio>');
}else if(navigator.userAgent.indexOf("Firefox")!=-1){
$('#palywave').html('<embed src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/upload/wave.mp3" type="audio/mp3" hidden="true" loop="false" mastersound></embed>');
}else if(navigator.appName.indexOf("Microsoft Internet Explorer")!=-1 && document.all){
$('#palywave').html('<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"><param name="AutoStart" value="1" /><param name="Src" value="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/upload/wave.mp3" /></object>');
}else if(navigator.appName.indexOf("Opera")!=-1){
$('#palywave').html('<embed src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/upload/wave.mp3" type="audio/mpeg" loop="false"></embed>');
}else{
$('#palywave').html('<embed src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/upload/wave.mp3" type="audio/mp3" hidden="true" loop="false" mastersound></embed>');
}
}

  // $('#palywave').html('<embed id=cct src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/wave.wav" loop="0" autostart="true" hidden="true"></embed>');
   setTimeout("playon()",3000);
}
function playon(){
	//$('#cct').load("<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/upload/wave.mp3");

 	location.reload();
}
</script>
 







       </div>




<!--以下是公共的底部部分-->

    <div class="footer">
    	<div class="foot1">
        <center>
        	<div class="db">
        	   <?php 
        if (!empty($_smarty_tpl->tpl_vars['toplink']->value)) {
            ?>
	 	      <?php 
            $_smarty_tpl->tpl_vars['toplink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['toplink']->value), null, 0);
            ?>
		  	  <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['toplink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
			         <a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> |
			    <?php 
            }
            ?>
			<?php 
        }
        ?>

            </div></center>
            <div class="cl"></div>
        </div>
        <div class="foot2">
        	<p>@2008-2012 <?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['beian']->value;
        ?>
 <?php 
        echo stripslashes($_smarty_tpl->tpl_vars['footerdata']->value);
        ?>
</p>
        </div>
    </div>

 <script>

				$(function(){

			  	if("undefined" != typeof mynomenu){
					   var allobj = $('.nav').find('li');
					  $.each(allobj, function(i, newobj) {
					  	if($(this).attr('data') == mynomenu){
					  	   $(this).addClass('on').siblings().removeClass('on');
					  	 }
					  	//alert($(this).attr('data'));

					  });
				 	}
					$(".nav ul li").click(function(){
					    	$(this).addClass('on').siblings().removeClass('on');

					});
				});
				function openlink(newlinkes){
					window.location.href=newlinkes;
				}
</script>

</body>
</html>
<?php 
    }
    function content_555d71d7e6e4a2_60751339($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include '/data/www/xshc/wmr/lib/Smarty/libs/plugins/function.load_data.php';
        }
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">  
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> 选择区域-<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</title>
<meta name="Keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" />
<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" /> 
<link rel="shortcut icon" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/images/favicon.ico" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/login_index.css" />
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquerynew.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/bootstrap.min.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquery.cookie.js" type="text/javascript" language="javascript"></script>
 <script>
 	var siteurl = '<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
';
 	</script>
 	<!--[if lte IE 6]>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('div, ul, img, li, input , a'); 
    </script>
 
<![endif]--> 
</head>
<body>
<div class="hc_index_login">
	<div class="hc_index_login_up">
		<div class="hc_index_login_cont  hc_index_login_cont_animate">
			<div style="height:1px;"></div>
			<div class="hc_index_login_logo">
				<div class="hc_index_login_logo_newImg"></div>
				<div class="hc_index_login_logo_newFont">
				
				</div>

 



			</div>

		</div>



	</div>

	<div class="hc_bg_line"></div>

	<div class="hc_index_login_down">

		<div class="hc_index_login_cont">

			<div class="hc_city_change">

				<div class="hc_city_change_div">

				
				<ul>
				
					 <?php 
        echo smarty_function_load_data(array('assign' => "list", 'table' => "area", 'fileds' => "*", 'where' => "parent_id = 0", 'limit' => 100), $_smarty_tpl);
        ?>
   
					 <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['list']->value['list'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
            ?>
 
					<li class="li_area" area_id="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
">
             
            <?php 
            if (!in_array($_smarty_tpl->tpl_vars['items']->value['id'], $_smarty_tpl->tpl_vars['parent_ids']->value)) {
                ?>
<a href="<?php 
                echo FUNC_function(array('type' => 'url', 'link' => "/site/setlocationlink/areaid/" . (string) $_smarty_tpl->tpl_vars['items']->value['id']), $_smarty_tpl);
                ?>
"><?php 
            }
            ?>
 
						<div rel="tooltip" data-placement="bottom" data-original-title="即将开放" class="hc_city_change_div_yuan">

							<div class="hc_city_change_div_yuan_img" style="background: url('<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['imgurl'];
            ?>
') no-repeat;"></div>

							<div class="hc_city_change_div_yuan_span area_name"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['name'];
            ?>
</div>

						</div>
                <?php 
            if (!in_array($_smarty_tpl->tpl_vars['items']->value['id'], $_smarty_tpl->tpl_vars['parent_ids']->value)) {
                ?>
</a><?php 
            }
            ?>
					</li>
					 <?php 
        }
        ?>
 
					 

					<div class="clear"></div>

				</ul>

				</div>

			</div>

		</div>
<script>
$(function(){

	var guidelength = $(".hc_index_login_cont .hc_city_change_div li").length;
	$(".hc_index_login_cont").css('width',Number(guidelength)*233);
	
});

</script>
		<div class="hc_login_inputs">

			<div class="hc_login_inputs_serch">

				<div class="dropup" style="position: relative;">

						<ul id="search_result_list" class="dropdown-menu" role="menu" aria-labelledby="dLabel">

						    

					  	</ul>

					</div>

				<div class="hc_login_inputs_serch_box">

					<input type="text2" class="gsearch_input" placeholder="输入写字楼查找" onkeydown="if(event.keyCode==13)beginSearch()" />

				</div>

				<div class="hc_login_inputs_serch_btn"></div>

				<div class="clear"></div>

			</div>

			


			<div class="hc_login_inputs_info">

				<div class="hc_login_inputs_login"></div>

				<div class="hc_login_inputs_addrs"></div>

			</div>

			
		</div>

	</div>



</div>



	<div class="hc_index_login_pupops_box hidden" id="popup_box_1">

		<div class="hc_index_login_pupops_box_top">

			<div class="hc_index_login_pupops_box_top_div">

				<div class="hc_login_pupops_head hc_login_pupops_head_left"><span class="city_n1 rt_2_city"><?php 
        echo $_smarty_tpl->tpl_vars['cityname']->value;
        ?>
</span></div>

				<div class="hc_login_pupops_head_img"></div>

				<div class="hc_login_pupops_head hc_login_pupops_head_left2"><span class="area_n1 hc_login_pupops_head_color"></span></div>

				

				<div class="hc_login_pupops_daX" id="rt2_city_area"></div>

				<div class="clear"></div>

			</div>

		</div>

		<div class="hc_index_login_pupops_box_midd">

			<div class="hc_login_pupopsBox_content" id="hc_login_pupopsBox_content1">

				<div class="hc_login_pupopsBox_content_index">

					<div class="hc_login_pupopsBox_content_index_div">

						<ul>
   
							<li class="hc_login_pupopsBox_content_index_div_li_hover"><a class="hc_pchoose hc_login_pupopsBox_content_index_div_li_a_hover" href="">全部</a></li>
							<li><a class="hc_pchoose" href="">A</a></li>
							<li><a class="hc_pchoose" href="">B</a></li>
							<div class="clear"></div>

						</ul>

					</div>
				</div>

				<div class="hc_PupopsLists">
					<div class="hc_PupopsLists_div" style="overflow-y: auto;">
						<ul>
							<div class="clear"></div>
						</ul>
					</div>
				</div>
			</div>

		</div>

		<div class="hc_index_login_pupops_box_btm"></div>

	</div>



	<div class="hc_index_login_pupops_box hidden" id="popup_box_2">

		<div class="hc_index_login_pupops_box_top">

			<div class="hc_index_login_pupops_box_top_div">

				<div class="hc_login_pupops_head hc_login_pupops_head_left"><span class="city_n1 rt_2_city"><?php 
        echo $_smarty_tpl->tpl_vars['cityname']->value;
        ?>
</span></div>

				<div class="hc_login_pupops_head_img"></div>

				<div class="hc_login_pupops_head hc_login_pupops_head_left2"><span class="area_n1 rt_2_area"></span></div>

				<div class="hc_login_pupops_head_img"></div>

				<div class="hc_login_pupops_head hc_login_pupops_head_left2"><span class="build_n1 hc_login_pupops_head_color"></span></div>

				<div class="hc_login_pupops_daX" id="rt2_box_dsc"></div>

				<div class="clear"></div>

			</div>

		</div>

		<div class="hc_index_login_pupops_box_midd">

			<div class="hc_login_pupopsBox_content" id="hc_login_pupopsBox_content2">

				<div class="hc_PupopsLists">

					<div class="hc_PupopsLists_div" style="overflow-y: auto;">

						<ul>

			

							<li style="border-right: 0; width:130px;"><a href="">莲花一村</a></li>



							<div class="clear"></div>



						</ul>



					</div>

				</div>



			</div>

		</div>

		<div class="hc_index_login_pupops_box_btm"></div>
	</div>

	<div class="hc_index_login_pupops_box hidden" id="popup_box_3">
		<div class="hc_index_login_pupops_box_top">
			<div class="hc_index_login_pupops_box_top_div">
				<div class="hc_login_pupops_head hc_login_pupops_head_left hc_login_pupops_head_color">我的地址</div>
				<div class="hc_login_pupops_daX" id="rt3_box_dsc"></div>
				<div class="clear"></div>
			</div>
		</div>

		<div class="hc_index_login_pupops_box_midd">

			<div class="hc_login_pupopsBox_content">

				<div class="hc_PupopsLists">

					<div class="hc_PupopsLists_div" style="overflow-y: auto;">

						<ul id="my_addr_list">

						</ul>
					</div>

				</div>
			</div>
		</div>

		<div class="hc_index_login_pupops_box_btm"></div>
	</div>
	
	<div class="loading_c hidden">
		<img alt="loading" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/images/loading43.gif" border="0" width="37px" height="37px" />
	</div>

	<ul class="hidden">
		<li id="loading_rt_li" style="margin-left:5px;"><img alt="loading" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/images/loading18.gif" width="16px" height="16px" />查找中,请稍候</li>
	</ul>

	<div class="mingshows">
		<div class="mingshows_a2" style="display:none;"></div>
		<div class="mingshows_t2" style="display:none;"></div>
	</div>
 
<script>
var $isFirstGuide = 0;
</script>


<script>

var returnFromIndex = 1;
function showText1(){
	$(".hc_index_login_logo_clouds").fadeIn("slow");
}

function showPrmoto1()
{
	$(".hc_index_login_logo_arrow").fadeIn("slow", showText1);
}

function showText2(){
	$(".mingshows_t2").fadeIn("slow");
}


function showPrmoto2()
{
	if ($isFirstGuide != 1)
	{
		return;
	}
	$(".mingshows_a2").fadeIn("slow", showText2);
}


$(document).ready(function(){
	if (document.all)
	{
		$(".hc_index_login_logo_clouds").css("background", "");
		$(".hc_index_login_logo_arrow").css("background", "");

		$(".mingshows_t2").css("background", "");
		$(".mingshows_a2").css("background", "");

	   
		
	}
	 showPrmoto1();
});


function HookFirstCharSel_Landmark()

{

	$(".sel_fa_lm").click(function(){

		var fchar = $(this).html();

		

		$(".lm_fa_active").removeClass("lm_fa_active");

		$(this).addClass("lm_fa_active");



		$("#item_list_ul_lm").html("");



		if (fchar == "全部")
		{
			$("#item_list_ul_lm").html( $("#item_list_ul_lm_data").html());
		}
		else
		{
			var index = 1;
			$("#item_list_ul_lm_data .pos_lmc_li").each(function(){
				if ($(this).attr("fa") == fchar)
				{
					var liv = $(this).closest("li").clone();
					if (index % 4 == 0) {
						liv.css("border-right", "0");

						liv.css("width", "130px");

					}

					else {

						liv.removeAttr("style");

					}

					index += 1;

					$("#item_list_ul_lm").append( liv );

				}

			});

		}

                 HookLanmarkMouseEvent();
	});
}

function HookFirstCharSel() 
{ 
	$(".sel_fa_dsc").click(function(){ 
		var fchar = $(this).html(); 
		$(".dsc_fa_active").removeClass("dsc_fa_active"); 
		$(this).addClass("dsc_fa_active"); 
		$("#item_list_ul_dsc").html(""); 
		if (fchar == "全部") 
		{ 
			$("#item_list_ul_dsc").html( $("#item_list_ul_dsc_data").html()); 
		} 
		else 
		{ 
			var index = 1; 
			$("#item_list_ul_dsc_data .pos_dsc_li").each(function(){ 
				if ($(this).attr("fa") == fchar) 
				{ 
					var liv = $(this).closest("li").clone(); 
					if (index % 4 == 0) { 
						liv.css("border-right", "0"); 
						liv.css("width", "130px"); 
					} 
					else { 
						liv.removeAttr("style"); 
					} 
					index += 1; 
					$("#item_list_ul_dsc").append( liv ); 
				} 
			}); 
		} 
		HookDscMouseEvent(); 
	});

} 
function beginSearch(){
	$(".gsearch_input").trigger("change");
}

$(".hc_index_login").click(function(){ 
	$(".dropup").removeClass("open"); 
});



$(".hc_login_inputs_serch_btn").click(function(){ 
	$(".gsearch_input").trigger("change"); 
	return false; 
});



$(".gsearch_input").change(function(){ 
	var s = $(this).val(); 
	if (s == "")
	{
		return;
	} 
	$(".dropup").addClass("open"); 
	$('#search_result_list').html(""); 
	var li_loading = $("#loading_rt_li").clone(); 
	$('#search_result_list').append(li_loading); 
	var url = '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/searchposition"), $_smarty_tpl);
        ?>
'; 
	$.post(url, {'position':s},function (data, textStatus){ 
			$('#search_result_list').html(data); 
		}, 'html');

});



$("#rt2_city_area").click(function(){
clearDiscId();
	$(".dropup").removeClass("open");  
	$('#popup_box_1').fadeOut(); 
	$('body').attr('class',''); 
	$('.modal-backdrop.fade.in').remove();
	$(".mingshows").css("display", "none"); 
	$(".li_area").removeClass('area_nclc'); 
	$(".li_area").removeClass('area_clc'); 
	$(".li_area").removeAttr('style');

});



$("#rt2_box_dsc").click(function(){ 
	clearDiscId();
	$('#popup_box_2').fadeOut(); 
	$('#popup_box_1').fadeIn(); 
});



$("#rt3_box_dsc").click(function(){

clearDiscId();
	$('#popup_box_3').fadeOut();

	$('body').attr('class','');

	$('.modal-backdrop.fade.in').remove();

	

});







function HookLanmarkMouseEvent()
{
    $(".pos_lmc_li").unbind();
	$(".pos_lmc_li").click(function(){

		var lm_id = $(this).attr('lm_id');

		var lm_name = $(this).html();

			$(".build_n1").html($(this).html()); 
		$('#popup_box_1').fadeOut(); 
		$('#popup_box_2').fadeIn();
		showPrmoto2(); 
		
		var url = '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/searchdet"), $_smarty_tpl);
        ?>
'; 
		var did = lm_id; 
		setDicId(did);  
		$('#popup_box_2 .hc_login_pupopsBox_content').html(""); 
		var loadingBox = $(".loading_c").clone(); 
		loadingBox.removeClass("hidden"); 
		$('#popup_box_2 .hc_login_pupopsBox_content').append(loadingBox); 
		$.post(url, {'id':did},function (data, textStatus){  
		  	 document.getElementById('hc_login_pupopsBox_content2').innerHTML=data; 
		  	  HookFirstCharSel_Landmark(); 
			  	HookLanmarkMouseEvent(); 
			}, 'html');

	});

}

function HookDscMouseEvent()
{

	$(".pos_dsc_li").unbind();

	$(".pos_dsc_li").click(function(){
 
     
		$(".build_n1").html($(this).html()); 
		$('#popup_box_1').fadeOut(); 
		$('#popup_box_2').fadeIn();
		showPrmoto2(); 
		
		var url = '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/searchdet"), $_smarty_tpl);
        ?>
'; 
		var did = $(this).attr('dsc_id'); 
		setDicId(did);  
		$('#popup_box_2 .hc_login_pupopsBox_content').html(""); 
		var loadingBox = $(".loading_c").clone(); 
		loadingBox.removeClass("hidden"); 
		$('#popup_box_2 .hc_login_pupopsBox_content').append(loadingBox); 
		$.post(url, {'id':did},function (data, textStatus){  
		  	 document.getElementById('hc_login_pupopsBox_content2').innerHTML=data; 
		  	  HookFirstCharSel_Landmark(); 
			  	HookLanmarkMouseEvent(); 
			}, 'html');

	});

}



function showPopupBox_Dsc()

{



}



$(".li_area").click(function(){
 
	var aid = $(this).attr('area_id'); 
	$(".area_n1").html($(this).find(".area_name").html()); 
	var pt = $(this).position();
	var mleft = pt.left;
	$(this).addClass("area_clc");
	//$(".li_area").removeClass("area_op");
	$(".li_area").addClass('area_nclc');
	$(this).removeClass("area_nclc");
	$(this).css("left", mleft.toString() + "px");
	$(".area_nclc").fadeOut();
	// animate end

	$(this).animate({left:"237.5px"},'normal' , function(){

	$('#popup_box_1').fadeIn();
	$('body').append('<div class="modal-backdrop fade in"></div>').attr('class','modal-open');
	var url = '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/searchchild"), $_smarty_tpl);
        ?>
'; 
	$('#popup_box_1 .hc_login_pupopsBox_content').html("");

	var loadingBox = $(".loading_c").clone();
	loadingBox.removeClass("hidden");

	$('#popup_box_1 .hc_login_pupopsBox_content').append(loadingBox);
	$.post(url, {'id':aid},function (data, textStatus){
		document.getElementById('hc_login_pupopsBox_content1').innerHTML=data;
		HookFirstCharSel();
		HookDscMouseEvent();

		if (returnFromIndex == 1)
		{
			var lastDscId = getDisId();
			if (lastDscId != -1)
			{
			 
				$('.pos_dsc_li').each(function(){
						if ($(this).attr('dsc_id') == lastDscId)
						{
							 
							$(this).trigger('click');
						}
					});
				 
			}
		}

	}, 'html');
}); 
 

});



$(".cityli").mouseout(function(){

	if (!bClicked)

	{

		$(this).addClass("city_op");

	}

	

});



$(".area_pic_fr").mouseenter(function(){

	$(this).find(".area_img_on").css("top", "0");

});



$(".area_pic_fr").mouseleave(function(){

	$(this).find(".area_img_on").css("top", "111px");

});

function clearDiscId()
{
	$.cookie('his_disc', null);
}

function setDicId(id)
{   
	$.cookie('his_disc', id, {expires:90});
}

function getDisId()
{
	var id = $.cookie('his_disc');  
	if (id != null && id !='null' && id != undefined)
	{
		return id;
	}
	else
	{ 
		return -1;
	}
}

function addHisttoryAddress(name, id){

	var newAddr = name.toString() + ":" + id.toString();

	var addrs = $.cookie('his_addrs');

	if (addrs != null) {

		var ar = addrs.split("|");

		ar.push(newAddr);

	}

	else {

		var ar = new Array();

		ar.push(newAddr);

	}



	var ss = ar.join("|");



	while (ar.length >  16) {

		ar.shift();

	}

	$.cookie('his_addrs', ss, {expires:90});
}



function getHistoryAddress(){

	$("#my_addr_list").html("");

	var arr = new Array();

	var addrs = $.cookie('his_addrs');

	if (addrs != null) {

		var ar = addrs.split("|");

		var index = 1;

		for(var i in ar){

    		var info = ar[i].split(":");

    		var addr_name = info[0];

    		var addr_id = info[1];



    		var a1 = $("<a></a>");

    		a1.html(addr_name);

    		var url = "/index.php?r=pos/set&lm_id="+addr_id.toString();

    		a1.attr("href", url);



    		var li1 = $("<li></li>");

    		li1.append(a1);



    		if (index % 4 == 0) {

					li1.css("border-right", "0");

					li1.css("width", "130px");

			}

			else {

					li1.removeAttr("style");

			}

			index += 1;



    		$("#my_addr_list").append(li1);

		}

	}

	

}



$(".hc_login_inputs_addrs").click(function(){

	$('#popup_box_3').fadeIn();

	$('body').append('<div class="modal-backdrop fade in"></div>').attr('class','modal-open');



	getHistoryAddress();

});



$(".hc_login_inputs_info_addrs_div").click(function(){

	$('#popup_box_3').fadeIn();

	$('body').append('<div class="modal-backdrop fade in"></div>').attr('class','modal-open');;



	getHistoryAddress();

});



$(".hc_login_inputs_login").click(function(){

	window.location.href = '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/login"), $_smarty_tpl);
        ?>
';  

}); 



$(".rt_2_city").click(function(){

	$('#popup_box_2').fadeOut();

	clearDiscId();
	$("#rt2_city_area").trigger("click");

});



$(".rt_2_area").click(function(){

	clearDiscId();
	$("#rt2_box_dsc").trigger("click");

});

</script>







<script type="text/javascript">



$(document).ready(function()

{

	var body_height = $(window).height(); //浏览器当前窗口可视区域高度

	if(body_height<=590){

		$('.hc_index_login_logo').css('margin-top','5px');

		$('.hc_index_login_logo').css('padding-bottom','25px');

	

	}else if(590<body_height&& body_height<= 640){

		$('.hc_index_login_logo').css('margin-top','15px');

		$('.hc_index_login_logo').css('padding-bottom','25px');

	}else if(640 < body_height && body_height <= 720){

		$('.hc_index_login_logo').css('margin-top','40px')

		$('.hc_index_login_logo').css('padding-bottom','45px');

	

	}else if(720 < body_height && body_height <= 840){

		$('.hc_index_login_logo').css('margin-top','80px');

	

	}else if(body_height>840){

		$('.hc_index_login_logo').css('margin-top','160px');

	

	}



})

</script>



<script type="text/javascript">
	$('.hc_city_change_div_yuan').click(function(){ 
		$('.hc_city_change_div_yuan').addClass('hc_city_change_div_yuan_filter');

	},function(){
		$('hc_city_change_div_yuan').removeClass('hc_city_change_div_yuan_filter');
	})
</script>

<script type="text/javascript">
//placeholder IE8
var _placeholderSupport = function() {
    var t = document.createElement("input");
    t.type = "text";
    return (typeof t.placeholder !== "undefined");
}();

window.onload = function() {
    var arrInputs = document.getElementsByTagName("input");
    for (var i = 0; i < arrInputs.length; i++) {
        var curInput = arrInputs[i];
        if (!curInput.type || curInput.type == "" || curInput.type == "text")
            HandlePlaceholder(curInput);
    }
};
 
function HandlePlaceholder(oTextbox) {
    if (!_placeholderSupport) {
        var curPlaceholder = oTextbox.getAttribute("placeholder");
        if (curPlaceholder && curPlaceholder.length > 0) {
            oTextbox.value = curPlaceholder;
            oTextbox.setAttribute("old_color", oTextbox.style.color);
            oTextbox.style.color = "#c0c0c0";
            oTextbox.onfocus = function() {
                this.style.color = this.getAttribute("old_color");
                if (this.value === curPlaceholder)
                    this.value = "";
            };
            oTextbox.onblur = function() {
                if (this.value === "") {
                    this.style.color = "#c0c0c0";
                    this.value = curPlaceholder;
                }
            }
        }
    }
}

$(document).ready(function(){
	if (returnFromIndex == 1)
	{
		var lastDscId = getDisId(); 
		if (lastDscId != -1)
		{
			/****  ***/
			for(var i=0;i<$('.li_area').length;i++)
			{
				 /*
				if($('.li_area').eq(i).attr('area_id')== "<?php 
        echo $_smarty_tpl->tpl_vars['newaddress']->value['parent_id'];
        ?>
")
				{
					$(".li_area").eq(i).trigger('click');
					break;
				} */
			}
			
		}
	}

	$(".hc_city_change_div_yuan").mouseenter(function(){
		 //$(this).tooltip('show');
		});

});
</script>




</body>

</html><?php 
    }
    function content_555c46b57868a8_53958527($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include 'D:\\wmr\\lib\\Smarty\\libs\\plugins\\function.load_data.php';
        }
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> <?php 
        echo $_smarty_tpl->tpl_vars['mapname']->value;
        ?>
-附近商家列表-<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</title>
<meta name="Keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" />
<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" />
<?php 
        echo stripslashes($_smarty_tpl->tpl_vars['metadata']->value);
        ?>

<link rel="shortcut icon" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/images/favicon.ico" /> 
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/common.css"> 
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/server.css"> 
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/shouye.css"> 
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/food_menu.css"> 
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquerynew.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/allj.js" type="text/javascript" language="javascript"></script>
 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script> 
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/template.min.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquery.lazyload.min.js" type="text/javascript" language="javascript"></script>
 <script>
 	$(function() { 
$("img").lazyload({ 
effect : "fadeIn" 
}); 
}); 

 	</script>

 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquery.cookie.js" type="text/javascript" language="javascript"></script> 
 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/slides.jquery.js"> </script>
 <script>
	$(function(){
			$('#bannerBox').slides({
				preload: true,
				preloadImage: '/upload/images/shop/loading.gif',
				play: 5000,
				pause: 2500,
				hoverPause: true,
				generatePagination:false
			});
		});

</script>


 <script> 
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
	var is_static ="<?php 
        echo $_smarty_tpl->tpl_vars['is_static']->value;
        ?>
";
</script>

<!--[if lte IE 6]>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('div, ul, img, li, input , a'); 
    </script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/ie6.js" type="text/javascript"></script>
<![endif]--> 
</head> 
<body> 
<div id="toTop" style="left: 1212.5px; display: none;"></div>
<div class="top">
	 <div class="top1">
	 	 <div class="top1_show">
	 	  <div class="top1_logo"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['sitelogo']->value;
        ?>
"></a></div>
	 	  <div class="top1_menu">
	 	     <ul>
	 	     	<?php 
        if (!empty($_smarty_tpl->tpl_vars['footlink']->value)) {
            ?>
	 	     	<?php 
            $_smarty_tpl->tpl_vars['footlink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['footlink']->value), null, 0);
            ?>
	 	     		<?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['footlink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
 
			          <li class="active_li"><a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> </li>
			      <?php 
            }
            ?>
	 	     <?php 
        }
        ?>
	 	     	</ul>	
	 	  	
	 	  </div>
	 	  <div class="top1_other">
	 	  	
	 	  	<ul>
						<li style="display:none;"><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/cart"), $_smarty_tpl);
        ?>
"><img alt="<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/images/shopping.png"></a></li>
						<li style="display:none;"><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/cart"), $_smarty_tpl);
        ?>
"><span class="hc_padding">美食篮子<span id="lanzi" data="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['cartcount']->value) === null || $tmp === '' ? 0 : $tmp;
        ?>
">(<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['cartcount']->value) === null || $tmp === '' ? 0 : $tmp;
        ?>
)</span></span></a><span class="hc_head_spans">|</span></li>
						
				 <?php 
        if (!empty($_smarty_tpl->tpl_vars['member']->value['uid']) && $_smarty_tpl->tpl_vars['member']->value['group'] != 'admin') {
            ?>
 
           <li style="">
           	  <div>
           		 <a href="javascript:dropdown();"><span class="hc_padding" style="text-overflow: ellipsis; width: 50px;"><?php 
            echo $_smarty_tpl->tpl_vars['member']->value['username'];
            ?>
</span></a>
           		 <span class="hc_head_spans">|</span>
           	  </div>
	            <div class="dropdown_div hide"> 
	             <ul class="dropdown_div_ul">
	  	            <li><a style="padding: 3px 5px;" href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/index"), $_smarty_tpl);
            ?>
">个人中心</a></li>
		              <li><a style="padding: 3px 5px;" href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/collect"), $_smarty_tpl);
            ?>
">我的收藏</a></li>
		              <li><a style="padding: 3px 5px;" href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/area/useraddress"), $_smarty_tpl);
            ?>
">我的地址</a></li>
		              <li><a style="padding: 3px 5px;" href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/edituser/showaction/pwdmx"), $_smarty_tpl);
            ?>
">修改密码</a></li> 
		             <li><a style="padding: 3px 5px;" href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
            ?>
">退出登录</a></li>
		         <div class="clear"></div>
	           </ul>
	          </div>
          </li>
           <li><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
            ?>
">退出 </a></li>
		    <?php 
        } else {
            ?>
		     <li><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/login"), $_smarty_tpl);
            ?>
">登陆 </a></li>
		     <li><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/regester"), $_smarty_tpl);
            ?>
">注册 </a></li>
		     <?php 
        }
        ?>
 
		    
<script type="text/javascript">
	
	function dropdown(){
		if($('.dropdown_div').hasClass('show'))
		{
			$('.dropdown_div').removeClass('show');
			$('.dropdown_div').addClass('hide');
		}
		else if($('.dropdown_div').hasClass('hide'))
		{
			$('.dropdown_div').removeClass('hide');
			$('.dropdown_div').addClass('show');
		}else{
			$('.dropdown_div').removeClass('hide');
			$('.dropdown_div').addClass('show');
		}
	}

	$(document).ready(function(){
		$(document).click(function(){
			if($('.dropdown_div').hasClass('show'))
			{
				$('.dropdown_div').removeClass('show');
				$('.dropdown_div').addClass('hide');
			}
			});
	});
</script>					</ul>
	 	  	
	 	  	</div>
	 	 </div>
	 </div>
	 
	  <div class="top2">
	  	 <div class="top2_content">
	  	 	  <div class="hc_addr">
					   <div class="hc_addr_change"><span class="hc_change"><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/guide"), $_smarty_tpl);
        ?>
">[更改地址]</a> </span><span class="hc_address">地址:<a style="color:#777;" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
"><?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['mapname']->value) === null || $tmp === '' ? '' : $tmp;
        ?>
</a></span></div>
				  </div>
				  <div class="hc_search">
					<div class="hc_search_left"></div>
					<div class="hc_search_midd"><input id="search_input" value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['shopsearch']->value) === null || $tmp === '' ? '搜索餐厅、美食' : $tmp;
        ?>
" text="搜索餐厅、美食" onfocus="cls(this)" onblur="res(this)"   onkeyprese="pre(this)" type="text6" onkeydown="if(event.keyCode==13)search();" style="padding:0;margin-bottom:0;margin-top:1px;width: 209px;height: 26px;line-height:26px; outline:none;border:0;"  ></div>
					<div class="hc_searching"></div>
					<div class="clear"></div>
					<script type="text/javascript">
						$('.hc_searching').click(function(){
							search();
						})
						
						function search()
						{
							var name = $('#search_input').val();
							if(name != '' && name != $('#search_input').attr('text')) 
							{
								var url = siteurl+'/index.php?controller=site&action=index&shopsearch='+name; 
								location.href=url;
							}
						}
						function cls(obj)
						{
							if($(obj).attr('text') == $(obj).val())
							{
								$(obj).val('');
								$('#search_input').css('color','#000');
							}  
						}
						function res(obj)
						{
							if($(obj).val() == '')
							{
								$('#search_input').css('color','#666');
								$(obj).val($(obj).attr('text'));
							}
						}
						$(document).ready(function(){
							$('#search_input').css('color','#666');
						});
					</script>
				</div>
				  
	  	 	</div>
	 </div>
	 
</div> 

<div class="mmbg" <?php 
        if (!empty($_smarty_tpl->tpl_vars['sitebk']->value)) {
            ?>
style="background:url(<?php 
            echo $_smarty_tpl->tpl_vars['sitebk']->value;
            ?>
)"<?php 
        }
        ?>
></div> 
	

 
 
<div id="content">
	<div class="hc_content">  
        
  <div class="hc_advertising">
     <div id="bannerBox">
					 <div  class="slides_container" style="height:90px;">
					 	 <?php 
        echo smarty_function_load_data(array('assign' => "lunbo", 'table' => "adv", 'fileds' => "*", 'limit' => "5", 'where' => "advtype='lunbo' and module='" . (string) $_smarty_tpl->tpl_vars['sitetemp']->value . "'"), $_smarty_tpl);
        ?>
  
							<?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['lunbo']->value['list'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
			        	   <a href="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['linkurl'];
            ?>
" target="_blank"><img src="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['img'];
            ?>
" width="1000" height="90"></a> 
				      <?php 
        }
        ?>
 
				    </div>
					 
		 </div>
	</div>

 <div id="collectlist"> 
 	<?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tempdir']->value . "/site/collect.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

 </div> 
 <div class="hc_shop_list">
			<div class="hc_shop_head">
				<div class="hc_shop_head_left">
					<div class="hc_shop_h">店铺筛选</div>
					<div class="hc_shop_fenduan">
						<div id="qisongjia" qisongjia_val="4" class="hc_shop_frist">起送价</div>
						<div class="hc_shop_scale">
							<div class="hc_shop_scale_up">
								<div qisongjia_val="4" class="qisongjia_click hc_shop_scale_img hc_shop_scale_img_margin hc_shop_scale_images"></div>
								<div qisongjia_val="10" class="qisongjia_click hc_shop_scale_img hc_shop_scale_img_margin"></div>
								<div qisongjia_val="20" class="qisongjia_click hc_shop_scale_img hc_shop_scale_img_margin"></div>
								<div qisongjia_val="30" class="qisongjia_click hc_shop_scale_img"></div>
								<div class="clear"></div>
							</div>
							<div class="hc_shop_scale_span" style="margin-left:0px;">
								<div qisongjia_val="4" class="qisongjia_click hc_shop_scale_price hc_shop_scale_img_margin hc_shop_scale_price_hover">全</div>
								<div qisongjia_val="10" class="qisongjia_click hc_shop_scale_price hc_shop_scale_img_margin">10</div>
								<div qisongjia_val="20" class="qisongjia_click hc_shop_scale_price hc_shop_scale_img_margin">20</div>
								<div qisongjia_val="30" class="qisongjia_click hc_shop_scale_price">30</div>
								<div class="clear"></div>
							</div>
						</div>
						<div class="clear"></div>
					</div>

					<div class="clear"></div>
				</div>
				<div class="hc_shop_head_right"></div>
				<div class="clear"></div>
				<div class="hc_changes_menu_div">
					<ul>
						<li><div id="all" class="hc_changes_menu_div_active hc_changes_menu_div_active_hover"><span class="hc_changes_menu_div_active_span">全部</span></div></li> 
					               	<?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['attrinfo']->value[0]['det'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
   
											             	<li><div class="menu-xuanze-img hc_changes_menu_div_active" style_id="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
"><span class="hc_changes_menu_div_active_span"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['name'];
            ?>
</span></div></li>
				                  <?php 
        }
        ?>
		 
					    	<div class="clear"></div>
					</ul>
				</div>
			</div> 
			<div class="hc_shop_list_div">
				<ul id="shopList">
					
						<?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['shoplist']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
 
					
					 <li  qisongjia="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['limitcost'];
            ?>
" fengwei_id="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['servertype'];
            ?>
" isyingye="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['is_open'];
            ?>
" id="menu-list-box_<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
" shop_id="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
" class="menu-list-box hc_collection_div_border_right_bottom">
						<div class="hc_shop_list_box">
							
							<div class="hc_shop_list_box_left">
								<div class="hc_shop_list_box_img">
								  <div class="hc_shop_list_box_img_div">
									   <a target="_blank" href="<?php 
            ob_start();
            echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
            $_tmp1 = ob_get_clean();
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp1), $_smarty_tpl);
            ?>
"><img atl="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['shopname'];
            ?>
" src="<?php 
            echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shoplogo']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['shoplogo']->value : $tmp;
            ?>
"></a>
								  </div>
								</div>
								<a target="_blank" class="a1" href="<?php 
            ob_start();
            echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
            $_tmp2 = ob_get_clean();
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp2), $_smarty_tpl);
            ?>
"><div class="hc_shop_list_box_span">
									<?php 
            $_smarty_tpl->tpl_vars['itat'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['itat']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['mainattr']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['itat']->key => $_smarty_tpl->tpl_vars['itat']->value) {
                $_smarty_tpl->tpl_vars['itat']->_loop = true;
                ?>
									  <?php 
                if ($_smarty_tpl->tpl_vars['itat']->value['type'] == 'input') {
                    ?>
									     <?php 
                    $_smarty_tpl->tpl_vars['itcc'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['itcc']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['itat']->value['det'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['itcc']->key => $_smarty_tpl->tpl_vars['itcc']->value) {
                        $_smarty_tpl->tpl_vars['itcc']->_loop = true;
                        ?>
									       
									          <?php 
                        $_smarty_tpl->tpl_vars['itaa'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['itaa']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['items']->value['attrdet'];
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['itaa']->key => $_smarty_tpl->tpl_vars['itaa']->value) {
                            $_smarty_tpl->tpl_vars['itaa']->_loop = true;
                            ?>
									             <?php 
                            if ($_smarty_tpl->tpl_vars['itcc']->value['parent_id'] == $_smarty_tpl->tpl_vars['itaa']->value['firstattr']) {
                                ?>
									                 <?php 
                                echo $_smarty_tpl->tpl_vars['itaa']->value['value'];
                                ?>

									             <?php 
                            }
                            ?>
									          <?php 
                        }
                        ?>
									     <?php 
                    }
                    ?>
									  <?php 
                }
                ?>
     
									<?php 
            }
            ?>
 
									</div></a>
							</div>
							
							<div class="hc_shop_list_box_right">
								<div class="hc_list_box_head" style="width: 90px;overflow: hidden;height: 20px;">
								    <a target="_blank" class="hc_list_box_head_a_hover" href="<?php 
            ob_start();
            echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
            $_tmp3 = ob_get_clean();
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp3), $_smarty_tpl);
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['shopname'];
            ?>
</a>
								</div>
								<a target="_blank" class="a1" href="<?php 
            ob_start();
            echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
            $_tmp4 = ob_get_clean();
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp4), $_smarty_tpl);
            ?>
"> 
							  <div class="hc_xinxin">
								  <div class="hc_xinxin_div"> 
									   <?php 
            if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['loop'])) {
                unset($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']);
            }
            $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['name'] = 'loop';
            $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['items']->value['point']) ? count($_loop) : max(0, (int) $_loop);
            unset($_loop);
            $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show'] = true;
            $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'];
            $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'] = 1;
            $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'] - 1;
            if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show']) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'];
                if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] == 0) {
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show'] = false;
                }
            } else {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] = 0;
            }
            if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show']) {
                for ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration']++) {
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'];
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'];
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'];
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] == 1;
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'];
                    ?>
 
                  	 <div class="hc_xinxin_div_float"><img alt="star" src="<?php 
                    echo $_smarty_tpl->tpl_vars['siteurl']->value;
                    ?>
/templates/<?php 
                    echo $_smarty_tpl->tpl_vars['tempdir']->value;
                    ?>
/public/images/xinxin01.png"></div>
                     <?php 
                }
            }
            ?>
 
                     <div class="clear"></div>
								  </div>
								<div class="hc_comment"> 
									<div class="hc_xinxin_div_float"><img alt="评论" src="<?php 
            echo $_smarty_tpl->tpl_vars['siteurl']->value;
            ?>
/templates/<?php 
            echo $_smarty_tpl->tpl_vars['tempdir']->value;
            ?>
/public/images/comment.png"></div>
									<div class="hc_xinxin_div_float"><span style="margin-left:3px;"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['pointcount'];
            ?>
</span></div> 
									<div class="clear"></div>
								</div>
								<div class="clear"></div>
							</div>
							
							
              <div class="hc_action">
              	<?php 
            $_smarty_tpl->tpl_vars['itat'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['itat']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['mainattr']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['itat']->key => $_smarty_tpl->tpl_vars['itat']->value) {
                $_smarty_tpl->tpl_vars['itat']->_loop = true;
                ?>
									  <?php 
                if ($_smarty_tpl->tpl_vars['itat']->value['type'] == 'img') {
                    ?>
 
									          <?php 
                    $_smarty_tpl->tpl_vars['itaa'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['itaa']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['items']->value['attrdet'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['itaa']->key => $_smarty_tpl->tpl_vars['itaa']->value) {
                        $_smarty_tpl->tpl_vars['itaa']->_loop = true;
                        ?>
									             <?php 
                        if ($_smarty_tpl->tpl_vars['itat']->value['id'] == $_smarty_tpl->tpl_vars['itaa']->value['firstattr']) {
                            ?>
 
									                 <img alt="<?php 
                            echo $_smarty_tpl->tpl_vars['itat']->value['name'];
                            ?>
" class="hc_action_img" src="<?php 
                            echo $_smarty_tpl->tpl_vars['itaa']->value['value'];
                            ?>
" title="<?php 
                            echo $_smarty_tpl->tpl_vars['itat']->value['instro'];
                            ?>
">  
									             <?php 
                        }
                        ?>
									          <?php 
                    }
                    ?>
 
									  <?php 
                }
                ?>
     
									<?php 
            }
            ?>
              </div> 
               
              <div class="hc_order"> 
              <?php 
            if ($_smarty_tpl->tpl_vars['items']->value['opentype'] == 1) {
                ?>
                    <span class="gray_font" title="店铺已过营业时间,打烊中">已打烊</span>
              <?php 
            } elseif ($_smarty_tpl->tpl_vars['items']->value['opentype'] == 2) {
                ?>
               <span class="hc_order_box" title="接受预定中。">营业中</span>
                <span class="gray_font">
              	<?php 
                $_smarty_tpl->tpl_vars['itat'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['itat']->_loop = false;
                $_smarty_tpl->tpl_vars['mykey'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['mainattr']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['itat']->key => $_smarty_tpl->tpl_vars['itat']->value) {
                    $_smarty_tpl->tpl_vars['itat']->_loop = true;
                    $_smarty_tpl->tpl_vars['mykey']->value = $_smarty_tpl->tpl_vars['itat']->key;
                    ?>
									   <?php 
                    if ($_smarty_tpl->tpl_vars['mykey']->value == 0) {
                        ?>
									   <?php 
                        $_smarty_tpl->tpl_vars['ckey'] = new Smarty_variable("0", null, 0);
                        ?>
  
									          <?php 
                        $_smarty_tpl->tpl_vars['itaa'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['itaa']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['items']->value['attrdet'];
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['itaa']->key => $_smarty_tpl->tpl_vars['itaa']->value) {
                            $_smarty_tpl->tpl_vars['itaa']->_loop = true;
                            ?>
									             <?php 
                            if ($_smarty_tpl->tpl_vars['itat']->value['id'] == $_smarty_tpl->tpl_vars['itaa']->value['firstattr']) {
                                ?>
 
									                 <?php 
                                echo $_smarty_tpl->tpl_vars['itaa']->value['value'];
                                ?>

									             <?php 
                            }
                            ?>
									          <?php 
                        }
                        ?>
 
									    <?php 
                    }
                    ?>
     
									<?php 
                }
                ?>
						     </span>
              <?php 
            } elseif ($_smarty_tpl->tpl_vars['items']->value['opentype'] == 3) {
                ?>
                        <span class="hc_order_box" title="接受预定中。">接受预定</span>
              	         <span class="hc_order_span"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['newstartime'];
                ?>
开送</span>
              <?php 
            } elseif ($_smarty_tpl->tpl_vars['items']->value['opentype'] == 4) {
                ?>
                 <span class="gray_font" title="店铺已过营业时间,打烊中">停止营业</span>
              <?php 
            } else {
                ?>
                   <span class="gray_font" title="店铺已过营业时间,打烊中">已打烊</span>
              <?php 
            }
            ?>
 
              
              	 
              </div>					 </a>
							<div class="fav_font_div" style="display: none;"> </div>
					
					</div>
				  <div class="clear"></div>
					<a class="hcl_collection_btn" onclick="return collect(this);" href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/addcollect/collectid/" . (string) $_smarty_tpl->tpl_vars['items']->value['id'] . "/datatype/json"), $_smarty_tpl);
            ?>
"></a>
				  </div>
		  </li> 
					
					<div class="shopview_div" id="shopview_div_<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
" style="display: none;">
                 		<div class="loading"><img src="<?php 
            echo $_smarty_tpl->tpl_vars['siteurl']->value;
            ?>
/templates/<?php 
            echo $_smarty_tpl->tpl_vars['tempdir']->value;
            ?>
/public/images/loading43.gif" width="38" height="38"></div>
          	</div> 
          	<?php 
        }
        ?>
          	<div class="clear"></div>
				 </ul>
			</div>

		</div>
<div class="hc_app">
	<ul>
		
	 <?php 
        echo smarty_function_load_data(array('assign' => "advlist", 'table' => "adv", 'fileds' => "*", 'where' => "advtype='other1' and module='" . (string) $_smarty_tpl->tpl_vars['sitetemp']->value . "' ", 'limit' => "5"), $_smarty_tpl);
        ?>
  
	 <?php 
        if (count($_smarty_tpl->tpl_vars['advlist']->value['list']) > 0) {
            ?>
	   <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['advlist']->value['list'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                ?>
		  <li style="height:119px;width:200px">
		     <a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['linkurl'];
                ?>
" target="_blank"><img src="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['img'];
                ?>
" width="200px" height="119px"></a>
	    </li>
	  <?php 
            }
            ?>
		<?php 
        }
        ?>
		
		
	</ul>
	<div class="clear"></div>
</div>

<div id="hc_shop_list2" class="hc_shop_list">
			<div class="hc_shop_head">
				<div class="hc_shop_head_left">
					<div class="hc_shop_h">更多店铺</div>
					<div class="clear"></div>
				</div>
				<div class="hc_shop_head_right"></div>
				<div class="clear"></div>
				<div class="hc_changes_menu_div">
				</div>
			</div>

			<div class="hc_shop_list_div">
				<ul id="shopList2">
					 
				</ul>
			</div>

</div> 
	
	
		
<script type="text/javascript">
 $(function(){
		var myaddressid = '<?php 
        echo $_smarty_tpl->tpl_vars['myaddress']->value;
        ?>
';
		if(myaddressid == null|| myaddressid==''){
			 window.location.href= '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/guide"), $_smarty_tpl);
        ?>
';
		}
	});
$(document).ready(function(){
	var newCell = $('#shopList').html();
	$('#shopList2').append($(newCell));
	$('#shopList2 .menu-list-box').mouseenter(function(){
		$(this).find('.hc_shop_list_box').addClass('hc_shop_list_box_hover');
		$(this).find('.fav_font_div').show();
		$(".cuSelBox2").removeClass("cuSelBox2");
		$(this).addClass("cuSelBox2");
		$(this).find('.hc_shop_list_box .hcl_collection_btn').find('.hcl_collection_btn').addClass('hcl_collection_btn_hover');
		var item = $(this);
		setTimeout(function(){show_shop_view2(item);},500);
	});
	$('#shopList2 .menu-list-box').mouseleave(function(){	
		$(this).removeClass("cuSelBox2");	
		$(this).find('.hc_shop_list_box').removeClass('hc_shop_list_box_hover');
		$(this).find('.fav_font_div').hide();
		$(this).find('.hc_shop_list_box .hcl_collection_btn').find('.hcl_collection_btn').removeClass('hcl_collection_btn_hover');
		hide_shop_view2($(this));
	});

	shopheight();
})
function shopheight(){
	var numshopli = $('#shopList li').length;
	var numa = Math.ceil(numshopli/5); 
	$('#shopList').css('height',Number(numa)*101);
	numshopli = $('#shopList2 li').length;
	 numa = Math.ceil(numshopli/5);
	$('#shopList2').css('height',Number(numa)*101);
}
$('#shopList .menu-list-box').mouseenter(function(){
	$(this).find('.hc_shop_list_box').addClass('hc_shop_list_box_hover');
	$(this).find('.fav_font_div').show();
	$(this).find('.hc_shop_list_box .hcl_collection_btn').addClass('hcl_collection_btn_hover');
	$(".cuSelBox").removeClass("cuSelBox");
	$(this).addClass("cuSelBox");
	var item = $(this);
	setTimeout(function(){show_shop_view1(item);},500);
});
$('#shopList .menu-list-box').mouseleave(function(){
	$(this).removeClass("cuSelBox");
	$(this).find('.hc_shop_list_box').removeClass('hc_shop_list_box_hover');
	$(this).find('.fav_font_div').hide();
	$(this).find('.hc_shop_list_box .hcl_collection_btn').removeClass('hcl_collection_btn_hover');
	hide_shop_view1($(this));
});
$('#shopList .hc_shop_list_div').mouseleave(function(){
	$('#shopList .hc_shop_list_div .shopview_div').hide();
});

$('#shopList2 .hc_shop_list_div').mouseleave(function(){
	$('#shopList2 .hc_shop_list_div .shopview_div').hide();
});

function show_shop_view1(obj) {	
	var shop_id = $(obj).attr('shop_id');
	var cur_shop_id = $(".cuSelBox").attr('shop_id');
	if (shop_id != cur_shop_id) {
		return;
	}
	var offset = $('#shopList #menu-list-box_'+shop_id).offset();
	var windowWidth = $(window).width();
	var windowHeight = $(window).height();

	var shopviewHeight = $('#shopList #shopview_div_'+shop_id).height();

	 $('#shopList .shopview_div').hide();
	 $('#shopList .shopview_div .hc_popups_sanjiao').removeClass('hc_popups_sanjiao_left').removeClass('hc_popups_sanjiao_right').addClass('hc_popups_sanjiao_top');

	 if(windowWidth-offset.left > 600)
	 {
		 $('#shopList #shopview_div_'+shop_id+' .hc_popups_sanjiao').addClass('hc_popups_sanjiao_left');
		 $('#shopList #shopview_div_'+shop_id).css('top',offset.top).css('left',offset.left+$('#shopList #menu-list-box_'+shop_id).width());

		 if(windowHeight - offset.top < shopviewHeight)
		 {
			 $('#shopList #shopview_div_'+shop_id+' .hc_popups_sanjiao').removeClass('hc_popups_sanjiao_top').addClass('hc_popups_sanjiao_bottom');
			 $('#shopList #shopview_div_'+shop_id).css('top',offset.top - shopviewHeight + 100);
		 }
	 }
	 else
	 {
		 $('#shopList #shopview_div_'+shop_id+' .hc_popups_sanjiao').addClass('hc_popups_sanjiao_right');
		 $('#shopList #shopview_div_'+shop_id).css('top',offset.top).css('left',offset.left-350);

		 if(windowHeight - offset.top < shopviewHeight)
		 {
			 $('#shopList #shopview_div_'+shop_id+' .hc_popups_sanjiao').removeClass('hc_popups_sanjiao_top').addClass('hc_popups_sanjiao_bottom');
			 $('#shopList #shopview_div_'+shop_id).css('top',offset.top - shopviewHeight + 100);
		 }
	 }

	 $('#shopList #shopview_div_'+shop_id).show();
	
	if($('#shopList #ShopView_'+shop_id).length == 0) {
	 
		 var url = '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/ajaxshopinfo"), $_smarty_tpl);
        ?>
'; 
		 $('#shopList .loading').show();
		 $.post(url, {shop_id:shop_id},function (data, textStatus){ 
			 if($('#shopList #ShopView_'+shop_id).length == 0) {
				 $('#shopList .loading').hide();
			 	 $('#shopList #shopview_div_'+shop_id).append(data);
			 	show_shop_view1(obj);
			 }
			}, 'html');
			 
	}
}

function hide_shop_view1(obj) {
	$('#shopList .shopview_div').hide();
	var shop_id = $(obj).attr('shopid');
	$('#shopList #shopview_div_'+shop_id).hide();
}

$('.menu-xuanze-img').click(function(){
	fenweiChange($(this));
});

function fenweiChange(obj){
	$('.menu-xuanze-img').removeClass('hc_changes_menu_div_active_hover');

	$(obj).addClass('hc_changes_menu_div_active_hover');

	updateFengwei();
}

function updateFengwei()
{
	$('#all').removeClass('hc_changes_menu_div_active_hover');
	
	$('#shopList .menu-list-box').each(function(i){
		$(this).hide();
	});

	var qisongjia = $('#qisongjia').attr('qisongjia_val');
	
	var bool = false;

	var selected_style_id = '';

	$('.menu-xuanze-img').each(function(i){
		var style_id = $(this).attr('style_id');
		
		if($(this).hasClass('hc_changes_menu_div_active_hover'))
		{
			selected_style_id = style_id;
			bool = true;
			
			$('#shopList .menu-list-box').each(function(j){
				var fengwei_id = $(this).attr('fengwei_id').split(',');
				var my_qisongjia = $(this).attr('qisongjia');
				
				if(in_array(style_id,fengwei_id))
				{
					if(qisongjia == 4){
						$(this).show();
					}
					else
					{
						if(parseInt(my_qisongjia)<=qisongjia)
						{
							$(this).show();
						}
						else
						{
							$(this).hide();
						}
					}
				}
			})
		}
		else
		{
			$('#shopList .menu-list-box').each(function(j){
				var fengwei_id = $(this).attr('fengwei_id').split(',');
				if(!in_array(selected_style_id,fengwei_id))
				{
					$(this).hide();
				}
			})
		}
	})
	if(bool==false)
	{
		allChange($("#all"));
	}
	showOtherArea();
}

function in_array(e,arr)
{
	for(i=0;i<arr.length;i++)
	{
		if(arr[i] == e)
		return true;
	}
	return false;
}

function showOtherArea()
{
	var ids = new Array();
	 
	$('#shopList .menu-list-box').each(function(i){
		if($(this).is(":hidden")){
			ids.push($(this).attr('id'));
		}
	});
	var allnum = $('#shopList li').length;//总数量
	var downnum = ids.length;//下移数量
	var numshopli = Number(allnum) - Number(downnum);
	var numa = Math.ceil(numshopli/5); 
	$('#shopList').css('height',Number(numa)*101); 
	 numa = Math.ceil(downnum/5);
	$('#shopList2').css('height',Number(numa)*101);
	 
	if(ids.length > 0)
	{
		$('#hc_shop_list2').show();
		$('#shopList2 .menu-list-box').hide();
		for(var j=0;j<ids.length;j++){
			$('#shopList2 #'+ids[j]).show();
		}
	}
	else
	{
		$('#hc_shop_list2').hide();
	}
	/***自动计算高度***/
}

$("#all").click(function(){
	allChange($(this));
});

function allChange(obj)
{
	if(!$(obj).hasClass('hc_changes_menu_div_active_hover'))
	{
		$(obj).addClass('hc_changes_menu_div_active_hover');
	}
	$(".menu-xuanze-img").removeClass('hc_changes_menu_div_active_hover');
		
		var qisongjia = $('#qisongjia').attr('qisongjia_val');
		$('#shopList .menu-list-box').each(function(i){
			var my_qisongjia = $(this).attr('qisongjia');
			
			if(qisongjia == 4){
				$(this).show();
			}
			else
			{
				if(parseInt(my_qisongjia)<=qisongjia)
				{
					$(this).show();
				}
				else
				{
					$(this).hide();
				}
			}
				
		});
	showOtherArea();
}

function getNowData()
{
	if($('#all').hasClass('hc_changes_menu_div_active_hover'))
	{
		return '2';
	}
	else
	{
		return '3';
	}
}

$('.qisongjia_click').click(function(){
	var qisongjia = $(this).attr('qisongjia_val');
	$('#qisongjia').attr('qisongjia_val',qisongjia);
	
	$('.hc_shop_scale_img').removeClass('hc_shop_scale_images');
	$('.hc_shop_scale_price').removeClass('hc_shop_scale_price_hover');

	$('.hc_shop_scale_img').each(function(){
		if($(this).attr('qisongjia_val')==qisongjia)
		{
			$(this).addClass('hc_shop_scale_images');
		}
	})
	$('.hc_shop_scale_price').each(function(){
		if($(this).attr('qisongjia_val')==qisongjia)
		{
			$(this).addClass('hc_shop_scale_price_hover');
		}
	})

	var type = getNowData();
	if(type=='2')
	{
		allChange($('#all'));
	}
	else
	{
		updateFengwei();
	}
})

function show_shop_view2(obj) {
	var shop_id = $(obj).attr('shop_id');
	var cur_shop_id = $(".cuSelBox2").attr('shop_id');
	if (shop_id != cur_shop_id) {
		return;
	}
	var offset = $('#shopList2 #menu-list-box_'+shop_id).offset();
	var windowWidth = $(window).width();
	var windowHeight = $(window).height();

	var shopviewHeight = $('#shopList2 #shopview_div_'+shop_id).height();

	 $('#shopList2 .shopview_div').hide();
	 $('#shopList2 .shopview_div .hc_popups_sanjiao').removeClass('hc_popups_sanjiao_left').removeClass('hc_popups_sanjiao_right').addClass('hc_popups_sanjiao_top');

	 if(windowWidth-offset.left > 600)
	 {
		 $('#shopList2 #shopview_div_'+shop_id+' .hc_popups_sanjiao').addClass('hc_popups_sanjiao_left');
		 $('#shopList2 #shopview_div_'+shop_id).css('top',offset.top).css('left',offset.left+$('#shopList2 #menu-list-box_'+shop_id).width());

		 if(windowHeight - offset.top < shopviewHeight)
		 {
			 $('#shopList2 #shopview_div_'+shop_id+' .hc_popups_sanjiao').removeClass('hc_popups_sanjiao_top').addClass('hc_popups_sanjiao_bottom');
			 $('#shopList2 #shopview_div_'+shop_id).css('top',offset.top - shopviewHeight + 100);
		 }
	 }
	 else
	 {
		 $('#shopList2 #shopview_div_'+shop_id+' .hc_popups_sanjiao').addClass('hc_popups_sanjiao_right');
		 $('#shopList2 #shopview_div_'+shop_id).css('top',offset.top).css('left',offset.left-350);

		 if(windowHeight - offset.top < shopviewHeight)
		 {
			 $('#shopList2 #shopview_div_'+shop_id+' .hc_popups_sanjiao').removeClass('hc_popups_sanjiao_top').addClass('hc_popups_sanjiao_bottom');
			 $('#shopList2 #shopview_div_'+shop_id).css('top',offset.top - shopviewHeight + 100);
		 }
	 }

	 $('#shopList2 #shopview_div_'+shop_id).show();
	
	if($('#shopList2 #ShopView_'+shop_id).length == 0) {
		 var url = '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/ajaxshopinfo"), $_smarty_tpl);
        ?>
';  
		 $('#shopList2 .loading').show();
		 $.post(url, {shop_id:shop_id},function (data, textStatus){
			 if($('#shopList2 #ShopView_'+shop_id).length == 0) {
				 $('#shopList2 .loading').hide();
			 	 $('#shopList2 #shopview_div_'+shop_id).append(data);
			 	show_shop_view2(obj);
			 }
			}, 'html');
	}
}

function hide_shop_view2(obj) {
	$('#shopList2 .shopview_div').hide();
	var shop_id = $(obj).attr('shopid');
	$('#shopList2 #shopview_div_'+shop_id).hide();
} 
</script>




</div>
	
</div>
</div>
</div>
 

<div id="footer">
	
<div class="hc_btm_div">
		<div class="hc_btm_contact">
		   <?php 
        if (!empty($_smarty_tpl->tpl_vars['toplink']->value)) {
            ?>
	 	      <?php 
            $_smarty_tpl->tpl_vars['toplink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['toplink']->value), null, 0);
            ?>
		  	  <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['toplink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
 
			         <a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> | 
			    <?php 
            }
            ?>
			<?php 
        }
        ?>

		</div>
		<div class="hc_btm_info">@2008-2012 <?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['beian']->value;
        echo stripslashes($_smarty_tpl->tpl_vars['footerdata']->value);
        ?>
</div>
	</div>	
	
	
 </div> 
<div style="position: absolute; top: -1970px; left: -1970px;"> 
</div>
<div id="serverdiv">
    	<ul>
    	  <li><a href="#" id="a_product" class="nav_a">快速导航</a>
    	  	 
    	  	</li>
    	  <li >
    	  	 <a id="a_serve" herf="javascript:void(0)" class="nav_a" >在线客服</a> 
    	      <div class="outserdiv">
    	  	 	    <table id="serve_list" style="">
    	  	 	    	<tbody> 
    	  	 	    		 
    	  	 	    		  <tr style="display: table-row;"><td>
    	  	 	    					<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=18707554858&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:18707554858:51" alt="点击这里给我发消息" title="点击这里给我发消息"/></a>
    	  	 	    					</td>
    	  	 	    			</tr>
    	  	 	    			 
    	  	 	    			</tbody>
    	  	 	    	</table>
    	  	 	</div>	
    	  </li>	
    	  <li><a id="a_share" herf="javascript:void(0)" class="nav_a">分享到</a> 
    	  	<div class="outserdiv">
    	  	 <table id="bdshare" class="bdshare_t bds_tools get-codes-bdshare" style="background-color: rgb(255, 255, 255); border: 1px solid rgb(144, 218, 148);">
    	  	 	<tbody>
    	  	 		<tr><td colspan="2" style="height:3px;">&nbsp;</td></tr>
    	  	 		<tr><td height=23px><a class="bds_qzone" href="#">QQ空间</a></td><td><a class="bds_tsina" href="#">新浪微博</a></td></tr>
    	  	 		<tr><td height=23px><a class="bds_tqq" href="#">腾讯微博</a></td><td><a class="bds_renren" href="#">人人网</a></td></tr>
    	  	 		<tr><td height=23px><a class="bds_baidu" href="#">百度搜藏</a></td><td><a class="bds_kaixin001" href="#">开心网</a></td></tr>
    	  	 		<tr><td height=23px><a class="bds_tqf" href="#">腾讯朋友</a></td><td><a class="bds_hi" href="#">百度空间</a></td></tr>
    	  	 		<tr><td height=23px><a class="bds_douban" href="#">豆瓣网</a></td><td><a class="bds_tsohu" href="#">搜狐微博</a></td></tr>
    	  	 		<tr><td height=23px><a class="bds_qq" href="#">QQ收藏</a></td><td><a class="bds_taobao" href="#">我的淘宝</a></td></tr>
    	  	 		<tr><td height=23px><a class="bds_t163" href="#">网易微博</a></td><td><span class="bds_more">更多</span></td></tr>
    	  	 		<tr><td colspan="2" style="padding:2px;">&nbsp;<div id="to_baidu_index" style="background-color: rgb(144, 218, 148); background-position: initial initial; background-repeat: initial initial;"><img src="http://x.xnit.net/js/../images/tobaidu.png" width="156" height="25"></div><div class="bdaddtocitebtn bdaddtocitebtn-small" style="display:none;"></div></td></tr><tr><td colspan="2"></td></tr></tbody></table>
 
    	  	</div>
    	  	 </li>	
    	  <li><a id="a_backtop" herf="javascript:void(0)" class="nav_a" >回到顶部</a> </li>	
    	  <li><a id="a_qrcode" herf="javascript:void(0)" class="nav_a" >下载APP</a>
    	  	<div class="outserdiv" style="width:150px;background-color:#fff;display:none;">
    	  		<div><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/images/chart.png" style="width:150px;height:150px;"></div>
    	  		<div style="padding-bottom:10px;"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/waimairen.apk" style="color:blue;">手动下载</a></div>
    	  	</div>
    	  	
    	  	</li>	
    	  <li id="close_all"><div id="close_img_bg" style="background-color: rgb(144, 218, 148); background-position: initial initial; background-repeat: initial initial;"><div id="close_img" title="点击收起"></div></div> </li>	
    	</ul>
</div>
<div id="open_img_bg" style="display:none;">
	<div id="open_img" title="点击展开" style=""></div>
</div>
 
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/sharea.js" type="text/javascript" language="javascript"></script>



</body>
</html>





<?php 
    }
    function content_558d046b02aeb7_01954411($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/function.load_data.php';
        }
        ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>商家管理中心-<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</title>
<meta name="Keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" />
<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/commom.css" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/shangjiaAdmin.css" />

<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquerynew.js" type="text/javascript" language="javascript"></script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/allj.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script>

<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquery.PrintArea.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/datepicker/WdatePicker.js" type="text/javascript" language="javascript"></script>
    <script>
  	var mynomenu='baseordertj';
  	</script>
 
<script>
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
    $(function(){
      
      $('.conWaiSet').height( $('.conleft').height() );
        $('.header ul li').click(function(){
            $(this).addClass('li_active').siblings().removeClass('li_active');
        });
   
        $('.waimaiset').children().children('img').remove();

        $('.shopSetTop').remove();
        $('.waimaiset li').click(function(){
            $(this).addClass('li_active').siblings().removeClass('li_active');
        });
         

        
    });
</script>
<!--[if lte IE 6]>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('div, ul, img, li, input , a');
        $('#footer').css('display','none');
    </script>
<![endif]-->
</head>
<body>
<?php 
        echo smarty_function_load_data(array('assign' => "shopinfo", 'table' => "shop", 'where' => "`id`=" . (string) $_smarty_tpl->tpl_vars['adminshopid']->value, 'type' => "one"), $_smarty_tpl);
        ?>

<!---<div style="position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: -1;background:url(<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/background.png);"></div>
header start-->
	<div class="header">
    	<ul>
        	<li class="li_active">
               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺管理</a>
            </li>
            <li>
               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a>
            </li>
            <li>
              <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/fastfood"), $_smarty_tpl);
        ?>
">快速下单</a>
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
        ?>
');">
                内容管理
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');">
                会员中心
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">
                退出
            </li>
        </ul>
                 <div class="cl"></div>
</div>
        <!--    <div class="topRight fr">
                <span onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
        ?>
');" class="curbtn">内容管理</span>
                    <span  onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');" class="curbtn">会员中心 </span>
                    <span class="username curbtn" onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">退出</span>

            </div>
            <div class="cl"></div>


            <div class="shangjiaTop">
            	<div class="sjgl">

                </div>

            </div>
        </div>

    </div>-->
    <!---header end
    <script>
	$(function(){
		var clientWidth = document.body.clientWidth;
		/*alert(clientWidth);*/
	/*	if( clientWidth<=1347 ){

			$(".content").css("width","1240px");
			$(".conleft").removeClass("content_left");

		}*/
	});
</script>
 以上是公共的头部部分-->

  <!---content start-->
	<div class="content">
   	 	<!---content left start-->
		<div class="conleft"><!-- content_left -->
        	<div class="nav">
            	<ul>
                	<li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
');" data="baseset"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/dpsz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺设置</a></li>
                    <li onclick="openlink('<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
');" data="basemenu"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/cdgl.png" /></div><a href="<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
">菜单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
');" data="baseorder"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddgl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
');" data="baseordertj"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddtj.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
">订单统计</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
');" data="basearea"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/psqy.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
">配送区域</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
');"  data="basecx"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/xxgz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
">促销规则</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/lygl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
">留言评价</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/wechat.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
">微信管理</a></li>

                </ul>

            </div>
        </div>
       <!---content left end-->





           
 <!---content right start--->
  <div class="conWaiSet fr">
    <div class="shopSetTop"> <span>订单统计</span> </div>
    <div class="orderTongji">
      <div class="sjser" style="font-weight:none;">商家订单统计查询</div>
      <form action="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
" method="post" id="chafrom">  
      <div style="background:#311f16;">
      <span>年份 :
      <select name="year" onchange="selectyear();">
      	<option selected="selected" value="0">所有</option>
      	<?php 
        if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['loop'])) {
            unset($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']);
        }
        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['name'] = 'loop';
        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['startyear']->value) ? count($_loop) : max(0, (int) $_loop);
        unset($_loop);
        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'] = (int) 1 == 0 ? 1 : (int) 1;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['max'] = (int) 10;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show'] = true;
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['max'] < 0) {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'];
        }
        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'] - 1;
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show']) {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] = min(ceil(($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['start'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['start'] + 1) / abs($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'])), $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['max']);
            if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] == 0) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show'] = false;
            }
        } else {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] = 0;
        }
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show']) {
            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration']++) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] == 1;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'];
                ?>
 
      	<option value="<?php 
                echo $_smarty_tpl->tpl_vars['startyear']->value - $_smarty_tpl->getVariable('smarty')->value['section']['loop']['index'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['startyear']->value - $_smarty_tpl->getVariable('smarty')->value['section']['loop']['index'];
                ?>
</option>
        <?php 
            }
        }
        ?>
      	 
      </select>
      
      </span>
      <span id="showmonth"> 
      	
      	<!-- 月份:
      <select name="month" onchange="selectmonth">
      	<option selected="selected" value="">全年</option>
        <option value="">1</option>
        <option value="">2</option>
        <option value="">3</option>
        <option value="">4</option>
      </select>  -->
      </span>
      <span id="showday">
      	<!--日:
      <select name="day">
      	<option selected="selected" value="">全年</option>
        <option value="">1</option>
        <option value="">2</option>
        <option value="">3</option>
        <option value="">4</option>
      </select>
      -->
      </span>
      <span>订单数:<span class="ddnum"><?php 
        echo $_smarty_tpl->tpl_vars['allnum']->value;
        ?>
单</span></span>
       <span>交易额:<span class="ddnum"><?php 
        echo $_smarty_tpl->tpl_vars['allsum']->value;
        ?>
元</span></span>
       <span class="tingjiSer curbtn" id="dosubmit"></span>
       
       </div>
       </form>  
      <div class="cl"></div>
    </div>
    <div class="cl"></div>
    <div class="caidanSet"> 
      	
      <!---留言管理----->
    
        <div class="mes_box" style="display:block;" id="liuyan">        
            <table cellpadding="0" cellspacing="0" width="100%">
              <tbody>
                <tr>
                 <th width="10%">时  间</th>
                 <th width="10%">订单数量</th>
                  <th width="10%">在线付款</th>
                   <th width="10%">线下支付</th>
                    <th width="10%">使用优惠券</th>
                     <th width="10%">店铺优惠</th>
                      <th width="10%">使用积分</th>
                       <th width="10%">打包费</th>
                        <th width="10%">配送费</th>
                         <th width="10%">商品总价</th>
                         
                </tr>
                <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['list']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
                <tr>
                  <td><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['name'];
            ?>
</td>
                  <td><?php 
            echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['orderNum']) === null || $tmp === '' ? '0' : $tmp;
            ?>
</td>
                  <td><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['online'];
            ?>
</td>
                  <td><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['unline'];
            ?>
</td>
                  <td><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['yhjcost'];
            ?>
</td>
                  <td><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['cxcost'];
            ?>
</td>
                  <td><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['score'];
            ?>
</td>
                  <td><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['bagcost'];
            ?>
</td>
                  <td><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['pscost'];
            ?>
</td>
                  <td><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['goodscost'];
            ?>
</td>
                </tr>
                <?php 
        }
        ?>
             
              </tbody>
            </table>
         
        </div>
        
        
       
   
    </div>
  </div>
  <div class="cl"></div>
  
  <!---content right end---> 
 
 <script>
 	var nowyear = '<?php 
        echo $_smarty_tpl->tpl_vars['year']->value;
        ?>
';
 	var nowmonth = '<?php 
        echo $_smarty_tpl->tpl_vars['month']->value;
        ?>
'; 
$(function(){
 	 	$('#dosubmit').click(function(){
 	 		$('#chafrom').submit();
    });
    $("select[name='year']").val(nowyear);//find("option[text='"+nowyear+"']").attr("selected",true);
    selectyear();
}); 

function selectyear(){
   var nowyear = $("select[name='year']").find("option:selected").val(); 
   if(nowyear == 0){
      $('#showmonth').html('');
      $('#showday').html('');
   }else{
   	  var htmls='月份: <select name="month" > <option selected="selected" value="0">全年</option>';
   	  for(var i=1;i< 13;i++){
   	  	htmls+='<option value="'+i+'">'+i+'</option>';
   	  } 
      htmls+='</select>';
      $('#showmonth').html(htmls);
       $("select[name='month']").val(nowmonth);
     //  selectmonth();
   }
} 
function getDays(nowyear,nowmonth){ 
var y = nowyear;
var m = nowmonth;
if(m == 2){
return y % 4 == 0 ? 29 : 28;
}else if(m == 1 || m == 3 || m == 5 || m == 7 || m == 8 || m == 10 || m == 12){
return 31;
}else{
return 30;
}
}
 	</script>
 
 
 
 







       </div>




<!--以下是公共的底部部分-->

    <div class="footer">
    	<div class="foot1">
        <center>
        	<div class="db">
        	   <?php 
        if (!empty($_smarty_tpl->tpl_vars['toplink']->value)) {
            ?>
	 	      <?php 
            $_smarty_tpl->tpl_vars['toplink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['toplink']->value), null, 0);
            ?>
		  	  <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['toplink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
			         <a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> |
			    <?php 
            }
            ?>
			<?php 
        }
        ?>

            </div></center>
            <div class="cl"></div>
        </div>
        <div class="foot2">
        	<p>@2008-2012 <?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['beian']->value;
        ?>
 <?php 
        echo stripslashes($_smarty_tpl->tpl_vars['footerdata']->value);
        ?>
</p>
        </div>
    </div>

 <script>

				$(function(){

			  	if("undefined" != typeof mynomenu){
					   var allobj = $('.nav').find('li');
					  $.each(allobj, function(i, newobj) {
					  	if($(this).attr('data') == mynomenu){
					  	   $(this).addClass('on').siblings().removeClass('on');
					  	 }
					  	//alert($(this).attr('data'));

					  });
				 	}
					$(".nav ul li").click(function(){
					    	$(this).addClass('on').siblings().removeClass('on');

					});
				});
				function openlink(newlinkes){
					window.location.href=newlinkes;
				}
</script>

</body>
</html>
<?php 
    }
    function content_55822647f06aa7_27233462($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/function.load_data.php';
        }
        if (!is_callable('smarty_modifier_date_format')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/modifier.date_format.php';
        }
        ?>
<!DOCTYPE html>
<html>
<head>
   <meta charset="UTF-8">  
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
	<!--<title><?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</title>--> 
	<title><?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['shopname'];
        ?>
</title> 
	 
	<link rel="stylesheet"  href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/wxsite/css/public.css">    
 
<link rel="stylesheet"  href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/wxsite/css/shopshow.css">   

	<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/wxsite/js/jquery.js"></script> 
  <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/wxsite/js/public.js"></script>  
   <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/wxsite/js/swipe.js"></script> 
    <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/wxsite/js/iscroll.js"></script> 
  
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/wxsite/js/jquery-1.11.2.min.js"></script>
  <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/wxsite/js/wxshop.js"></script>  
   <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/wxsite/js/cart.js"></script> 
   <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/wxsite/js/goodsdetail.js"></script> 
                <!--  jquery-mobile  Begin -->
 <!--  <link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/wxsite/css/jquery.mobile-1.3.2.min.css">

<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/wxsite/js/jquery.mobile-1.3.2.min.js"></script> -->
                <!--  jquery-mobile  End -->
<script>
     var shopid = <?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['id'];
        ?>
;
     var checknext = false;
     var shoplimitcost = '<?php 
        echo $_smarty_tpl->tpl_vars['shopdet']->value['limitcost'];
        ?>
';
      $(function(){ 
  
      $('#addload').remove();
       
         freshcart();
         $('.righ_l_b_btn_moren').on("click", function() {  
              if(checknext ==  false){ 
                checknext = true;
                 addonedish($(this).attr('data-id'),$(this).attr('data-shopid'),1,this);
                 setTimeout("myyanchi()", 500 );
                 $(this).hide();
                 $(this).next(".righ_l_b_btn_hover").show();
              }
             flyelem($(this),$('#footer'));//飞入购物车
          }); 

           $('.right_l_btn_left').on("click", function() {   
              if(checknext ==  false){ 
                  checknext = true;
                 removeonedish($(this).attr('data-id'),$(this).attr('data-shopid'),1,this);
                 setTimeout("myyanchi()", 500 );
              }
          
          }); 
/*
//  Begin

window.onload=function()
{
//alert('“你刷新了页面!”');
$.mobile.changePage($('.right_list_box:nth-child(1)'),{transition:'',reverse:true});
} 
  $('.right_list_box').each(function(){
  $(this).on({
    'swipeleft':function(){
      if($(this).next().index() < $(this).parent().children().length-1){
       $.mobile.changePage($(this).next(),{transition:''});
       $('.sortitemclick').eq($(this).index()+1).addClass('active');
       $('.sortitemclick').eq($(this).index()+1).siblings().removeClass('active');
      }
    },
    'swiperight':function(){
      if($(this).prev().index() >= 0){
        $.mobile.changePage($(this).prev(),{transition:'',reverse:true});
        $('.sortitemclick').eq($(this).index()-1).addClass('active');
       $('.sortitemclick').eq($(this).index()-1).siblings().removeClass('active');
      }
    }
  });
});

 $('.sortitemclick:nth-child(1)').addClass('active');
           $('.sortitemclick').click(function(){
              $(this).addClass('active');
              $(this).siblings().removeClass('active');
              $.mobile.changePage($('.right_list_box').eq($(this).index()));
            });
 //  End

   */

 //头部导航切换  
   var pageLength = $('.pageheader ul > li').length;
     if( pageLength % 2 == 0 ){
       $( '.pageheader ul' ).children().css({
        'width':'50%',
        'float':'left'
      });
     }
     else{
      $( '.pageheader ul' ).children().width('100%');
     }
   $( '.pageheader ul' ).children().eq(0).addClass('active');
  $( '.pageheader ul' ).children().click(function(){
    $(this).addClass('active').siblings().removeClass('active');
  });
     
     $('.sortitemclick').click(function(){
        //$(this).addClass('active').siblings().removeClass('active');
        $('body,html').animate({
          scrollTop: $('.right_list_box').eq($(this).index()).offset().top 
        },500);
       // $.mobile.changePage($('.right_list_box').eq($(this).index()));

      });
 $('.sortitemclick').eq(0).css('border-top','none').addClass('active').siblings().removeClass('active');
$('.right_list_box').children('div:last-child').addClass('right_list_box_body_active');

setInterval(function(){
  scroll();//页面滚动,选项卡切换
  showlimit();//底部导航起送价和下单页面切换
  //move_up();//回到顶部
},100);
payinshop();
$('#pay_cover .delete').click(function(){
  $('#pay_cover').hide();
});
$('.move_up').click(function(){
            //$(window).scrollTop(0);
            $('body,html').animate({scrollTop:0},500);
          });


      $('.right_l_btn_right').on("click", function() {   
           if(checknext ==  false){ 
               checknext = true;
               addonedish($(this).attr('data-id'),$(this).attr('data-shopid'),1,this);
               setTimeout("myyanchi()", 500 );
            }
            flyelem($(this),$('#footer'));//飞入购物车
          }); 

          $(".member_center").on("click",function(){
           var shopid=$(this).attr("shop_id");
           window.location.href = siteurl+'/index.php?controller=wxsite&action=login&shopid='+shopid;
              
          });

         $(".myorder").on("click",function(){
              window.location.href = siteurl+'/index.php?controller=wxsite&action=order';
          });
      /*   
         footer1.hide();
         footer2.show();
            */
    });
/* var footer1 = $('#footer').children('div').eq(0);
 var footer2 = $('#footer').children('div').eq(1);*/
   function showfooter1(){
        $('#footer').children('div').eq(0).fadeIn('slow').siblings().fadeOut('fast');
      };
      function showfooter2(){
        $('#footer').children('div').eq(1).fadeIn('slow').siblings().fadeOut('fast');
      }
      
    function myyanchi(){
      
        checknext = false;
    };

    function payinshop(){
  $('#pay_prince').click(function(){
    $('#hide_block').fadeToggle();
    $('#footer').fadeToggle();
    $('#hide_block').height( $('#footer').height() );
  }); 

  $('#hide_block input[type="button"]').click(function(){
     $('#pay_cover').show();
  });
};
    
   
    
/*    function sortitdemclick(doid){  
      // var scroptop= $('#listto_'+doid).offset().top-40;// checktype == '1'?Number($("#sort_sh_"+doid).offset().top)-81:Number($("#sort_sh_"+doid).offset().top)-162;
     // alert(doid);
      //right_list
      var defaultheight = 0;
      var listobj = $('.right_list_box');
      for(var i=0;i<$(listobj).length;i++){
       
        if($(listobj).eq(i).attr('data') == doid){
         
           break;
        }else{
           defaultheight = Number(defaultheight)+Number($(listobj).eq(i).height());
         }
      }
     
      scroll2.scrollTo(0,Number(defaultheight)*-1,200,false); 
      scroll2.refresh();
     //  myScroll.scrollToElement(doid,500);
      // $("html,body").animate({scrollTop:scroptop},2000); 
      // alert($('.dish_type_w').offset().top); 
    } */
  
    
      </script>

<script> 
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
	var is_static ="<?php 
        echo $_smarty_tpl->tpl_vars['is_static']->value;
        ?>
";
	var taction = "<?php 
        echo $_smarty_tpl->tpl_vars['Taction']->value;
        ?>
"; 
</script>

<script>
//飞入购物车  Begin
function flyelem(begin,end){
  var flyElm = $('<div></div>');                      
     flyElm.css({
     'z-index': 9000,
      'position': 'absolute',
      'top':begin.parent().offset().top  +'px',
      'left': begin.parent().offset().left  +'px',
      'width': 35+'px',
      'height': 35 +'px',
      'border-radius':35+'px',
      'background':'#ff6000',
      'opacity':1
     })
    $('body').append(flyElm);
        flyElm.animate({
          opacity:0,
          top:end.offset().top,  
          left:end.offset().left,
          width:0,
          height:0,
        });
  setTimeout(function(){$(flyElm).remove();},300);  
};
//飞入购物车  End

//滚动页面时左侧导航切换  Begin
function scroll(){
    var length = $('#transition .right_list').children().length;
    var lengthLi = $('.sortitemclick').length;
    var children = $('#transition .right_list').children();
    var scrolltop = $(window).scrollTop();
    var offsettop = [];
    var item = [];
    var height = $('#transition .right_list').children().children('h3').height();
   
    for( var i=0;i<length;i++ ){
      offsettop.push( children.eq(i).offset().top );
      item.push( children.eq(i).children('h3').clone() );

      if( $('#transition .right_list').children(i).height() == height ){
        $('#transition .right_list > div:nth-of-type(1)').eq(i).html(''+$('#goodslist > li').eq(i).children('h3').text()+'添加中,敬请期待...');
        $('#transition .right_list > div:nth-of-type(1)').eq(i).css({
          'text-align':'center',
          'color':'#ff6000',
          'font-size':'16px'
        });
        $('#transition .right_list').children(i).css({
        'min-height':$(window).height()
        });
      }
      else{
        $('#goodslist').children(i).css({
        'min-height':$('#goodslist').children(i).height()
        });
      }
    }

    $('#transition .right_list').children().eq(length-1).css({
    'min-height':$(window).height()
    });
    
    if( lengthLi % 2 == 0 ){
      $('.sortitemclick:even').css({
        'border':'none'
      });
    }
    else{
      $('.sortitemclick:odd').css({
        'border':'none'
      });
    }

    for( var i=0;i<length;i++ ){
     if( scrolltop >= offsettop[i] ){
       $('.right_list_box_h3_fixed').hide();
       $('.right_list_box_h3_fixed').eq(i).show();
       item[i].appendTo( children.eq(i) );
       if (item[i].length > 1) { item[i].remove(); }
        item[i].addClass('right_list_box_h3_fixed');
        $('.sortitemclick').eq(i).addClass('active').siblings().removeClass('active');
       }
    }
};
//滚动页面时左侧导航切换  End

//回到顶部  Begin
function move_up(){
  if($(window).scrollTop() > 200){
          $('.move_up').fadeIn();
        }
        else{
          $('.move_up').fadeOut();
        }  
};
//回到顶部  End

//底部导航起送价和选好了切换   Begin
function showlimit(){
  if( !isNaN($('#showlimit').html()) ){
            $('#showlimit').fadeOut('fast');
            $('#footer div:nth-of-type(1) input').fadeIn('slow');
         }
         else{
          $('#showlimit').fadeIn('fast');
          $('#footer div:nth-of-type(1) input').hide();
         }

        if($('#total_count').html() != 0){
            showfooter2();
           // $('#footer').addClass('footer2').removeClass('footer1');
          }
          else{
            showfooter1();
           // $('#footer').addClass('footer1').removeClass('footer2');
          }
};
//底部导航起送价和选好了切换 End
var scroll1, scroll2,scroll3;
function loaded() {
  //scroll1 = new iScroll('standard',{hScrollbar:false, vScrollbar:false,bounce:false});
//  scroll2 = new iScroll('transition', {hScroll:false,hScrollbar:false, vScrollbar:false,bounce:false});
  //scroll3 = new iScroll('shopdeinfo',{hScrollbar:false, vScrollbar:false,bounce:false});
}
var gundong = 0;
function show_btn(shownow,hidenow,nowobj){
     
       var obj =  $(window).width();
       $(nowobj).addClass('redli').siblings().removeClass('redli');
       $('#'+shownow).addClass('redli');
       $('#'+hidenow).removeClass('redli');
      if(shownow == 'shopinfo'){ 
          $('#shopdeinfo').show();
          $('#standard').hide();
          $('#transition').hide();
          scroll3.refresh();
      }else{ 
        $('#shopdeinfo').hide();
        $('#standard').show();
          $('#transition').show();
           
      }   
     }
//document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
document.addEventListener('DOMContentLoaded', loaded, false);


</script>



 

 
</head>
<body> 
<div id="loading" style="display: none;"><div class="loadingbox"><section class="ffffbox"><div class="loadingpice"></div></section></div></div> 
<div id="hallist"> 
	
	
	 
<!--
<div style="display:none;" class="changetop" id="header"> 
  <ul class="box_inline"> 
    <li class="liwd50 redli" onclick="show_btn('goodslistidv','shopinfo',this);">
       菜单分类
    </li>
    <li class="liwd50" onclick="show_btn('shopinfo','goodslistidv',this);">
       店铺详情
    </li> 
  </ul> 
</div> -->
<div class="pageheader">
  <ul>
    <li><a onclick="dolink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/wxsite/shopshow/id/" . (string) $_smarty_tpl->tpl_vars['id']->value), $_smarty_tpl);
        ?>
');">外卖</a></li>
    <?php 
        if ($_smarty_tpl->tpl_vars['shopdet']->value['is_goshop'] == 1) {
            ?>
    <li><a onclick="dolink('<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/wxsite/plateshow/id/" . (string) $_smarty_tpl->tpl_vars['id']->value), $_smarty_tpl);
            ?>
');">订位</a></li>
    <?php 
        }
        ?>
  </ul>
</div>
<div id="standard">
   <div class="scroller">
     <ul>
      <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['goodstype']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
         <li class="sortitemclick" data="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
">
           <i></i><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['name'];
            ?>

         </li>
      <?php 
        }
        ?>
 
    </ul>
  </div>
</div>
 
<div id="transition">
   <ul class="scroller right_list">
      <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['goodstype']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
         <li class="right_list_box" id="listto_<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
" data="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
"><!-- data-role="page"data-ajax="false"-->
            <h3><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['name'];
            ?>
</h3>
            <?php 
            $_smarty_tpl->tpl_vars['itv'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['itv']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['items']->value['det'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['itv']->key => $_smarty_tpl->tpl_vars['itv']->value) {
                $_smarty_tpl->tpl_vars['itv']->_loop = true;
                ?>
            <div class="right_list_box_body" id="gidli_<?php 
                echo $_smarty_tpl->tpl_vars['itv']->value['id'];
                ?>
" typeid="<?php 
                echo $_smarty_tpl->tpl_vars['itv']->value['typeid'];
                ?>
" data-price="<?php 
                echo $_smarty_tpl->tpl_vars['itv']->value['cost'];
                ?>
">
                <input type="hidden" name="hiddesc" value="2302">
                <img src="<?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['itv']->value['img']) === null || $tmp === '' ? '../upload/shop/grey.gif' : $tmp;
                ?>
" class="right_list_box_img scrollLoading" onclick="gotoDtail('<?php 
                echo $_smarty_tpl->tpl_vars['itv']->value['id'];
                ?>
');"/>
                <div class="right_bottom_wrap">
                <h4><?php 
                echo $_smarty_tpl->tpl_vars['itv']->value['name'];
                ?>
</h4>
                <p>
                  ¥ <lable> <?php 
                echo $_smarty_tpl->tpl_vars['itv']->value['cost'];
                ?>
</lable>
                   <del><?php 
                if ($_smarty_tpl->tpl_vars['itv']->value['prime_cost'] !== '0.00') {
                    ?>
                  原价
                  <?php 
                    echo $_smarty_tpl->tpl_vars['itv']->value['prime_cost'];
                    ?>
  
                 <?php 
                }
                ?>
</del>
                  <span class="itv_count">剩余 <?php 
                echo $_smarty_tpl->tpl_vars['itv']->value['daycount'] - $_smarty_tpl->tpl_vars['itv']->value['stock'];
                ?>
 份</span>
                </p>
                
          <div class="righ_l_b_btn">
            <big class="righ_l_b_btn_moren" data-id="<?php 
                echo $_smarty_tpl->tpl_vars['itv']->value['id'];
                ?>
" data-shopid="<?php 
                echo $_smarty_tpl->tpl_vars['itv']->value['shopid'];
                ?>
" id="gid_<?php 
                echo $_smarty_tpl->tpl_vars['itv']->value['id'];
                ?>
" data-price="<?php 
                echo $_smarty_tpl->tpl_vars['itv']->value['cost'];
                ?>
" typeid="<?php 
                echo $_smarty_tpl->tpl_vars['itv']->value['typeid'];
                ?>
">+</big>
            <ul class="righ_l_b_btn_hover" style="display:none;">
               <li class="right_l_btn_left" data-id="<?php 
                echo $_smarty_tpl->tpl_vars['itv']->value['id'];
                ?>
" data-shopid="<?php 
                echo $_smarty_tpl->tpl_vars['itv']->value['shopid'];
                ?>
">-</li>
               <li class="right_l_btn_nub" id="gshu_<?php 
                echo $_smarty_tpl->tpl_vars['itv']->value['id'];
                ?>
">0</li>
               <li class="right_l_btn_right" id="gid_<?php 
                echo $_smarty_tpl->tpl_vars['itv']->value['goods_id'];
                ?>
" data-price="<?php 
                echo $_smarty_tpl->tpl_vars['itv']->value['cost'];
                ?>
" typeid="<?php 
                echo $_smarty_tpl->tpl_vars['itv']->value['typeid'];
                ?>
" data-id="<?php 
                echo $_smarty_tpl->tpl_vars['itv']->value['id'];
                ?>
" data-shopid="<?php 
                echo $_smarty_tpl->tpl_vars['itv']->value['shopid'];
                ?>
">+</li>
            </ul>
          </div>
          </div>
            </div>
            
            <?php 
            }
            ?>

       <!--      <div class="clear"></div> -->
         </li>
           <?php 
        }
        ?>

   </ul>
     <div class="move_up">
  <!--   <span>回到顶部</span>  -->
     </div>
     <div class="pay_inshop">
    <div id="pay_prince"></div>
    <div id="hide_block" style="display:none">
        <input type="text" name="order_price" placeholder="请输入金额" id="order_price"/>
        <input type="button" value="直接付款"/>
    </div>
    <ul id="pay_cover">
      <li><h3>请选择支付方式:</h3><span class="delete"></span></li>
      <li>
        <label>
          <input type=radio name="order_way" checked="checked" value="wechat"/><span>微信支付</span>
        </label>
      </li>
      <li>
        <label>
          <input type=radio name="order_way" value="alipay"/><span>支付宝</span>
        </label>
      </li><!--
      <li><span>请输入金额:</span><input type="text" name="order_price" id="order_price"/></li>-->
      <li><button id="go_to_pay"  onclick="pay_prince();">确认付款</button></li>
    </ul>
</div>
</div>
<div id="shopdeinfo">
     <div class="scroller">
      <!--店铺--> 
      <div id="shopinfo">
      <div class="shopyuan">
           <div class="box_inline">
              <div class="box_left"><img src="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['shopinfo']->value['shoplogo']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['shoplogo']->value : $tmp;
        ?>
"></div>
              <div class="box_right">
               <div><?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['shopname'];
        ?>
 [<?php 
        if ($_smarty_tpl->tpl_vars['openinfo']->value['opentype'] != 2 && $_smarty_tpl->tpl_vars['openinfo']->value['opentype'] != 3) {
            ?>
打烊<?php 
        } else {
            ?>
营业<?php 
        }
        ?>
] </div>
               <div><?php 
        if ($_smarty_tpl->tpl_vars['psinfo']->value['pstype'] == 1) {
            ?>
店铺配送<?php 
        } else {
            ?>
网站配送<?php 
        }
        ?>
</div>  
                <div> 
                  <i class="glyphicon glyphicon-star <?php 
        if ($_smarty_tpl->tpl_vars['shopinfo']->value['point'] > 0) {
            ?>
on<?php 
        } else {
            ?>
off<?php 
        }
        ?>
"></i>
                  <i class="glyphicon glyphicon-star <?php 
        if ($_smarty_tpl->tpl_vars['shopinfo']->value['point'] > 1) {
            ?>
on<?php 
        } else {
            ?>
off<?php 
        }
        ?>
"></i>
                  <i class="glyphicon glyphicon-star <?php 
        if ($_smarty_tpl->tpl_vars['shopinfo']->value['point'] > 2) {
            ?>
on<?php 
        } else {
            ?>
off<?php 
        }
        ?>
"></i>
                  <i class="glyphicon glyphicon-star <?php 
        if ($_smarty_tpl->tpl_vars['shopinfo']->value['point'] > 3) {
            ?>
on<?php 
        } else {
            ?>
off<?php 
        }
        ?>
"></i>
                  <i class="glyphicon glyphicon-star <?php 
        if ($_smarty_tpl->tpl_vars['shopinfo']->value['point'] > 4) {
            ?>
on<?php 
        } else {
            ?>
off<?php 
        }
        ?>
"></i> <?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['point'];
        ?>
.0                <span>(<?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['pointcount'];
        ?>
)</span>&nbsp;&nbsp;&nbsp;
               </div> 
              </div> 
           </div>
           <div class="box_inline">
                 <div class="sendMessage" onclick="sendMessage();">
                    <div>&nbsp;
                      <?php 
        $_smarty_tpl->tpl_vars['itat'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['itat']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['mainattr']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['itat']->key => $_smarty_tpl->tpl_vars['itat']->value) {
            $_smarty_tpl->tpl_vars['itat']->_loop = true;
            ?>
                                <?php 
            if ($_smarty_tpl->tpl_vars['itat']->value['type'] == 'input') {
                ?>
                                   <?php 
                $_smarty_tpl->tpl_vars['itcc'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['itcc']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['itat']->value['det'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['itcc']->key => $_smarty_tpl->tpl_vars['itcc']->value) {
                    $_smarty_tpl->tpl_vars['itcc']->_loop = true;
                    ?>
                                     
                                        <?php 
                    $_smarty_tpl->tpl_vars['itaa'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['itaa']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['shopattr']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['itaa']->key => $_smarty_tpl->tpl_vars['itaa']->value) {
                        $_smarty_tpl->tpl_vars['itaa']->_loop = true;
                        ?>
                                           <?php 
                        if ($_smarty_tpl->tpl_vars['itcc']->value['parent_id'] == $_smarty_tpl->tpl_vars['itaa']->value['firstattr']) {
                            ?>
                                               <?php 
                            echo $_smarty_tpl->tpl_vars['itaa']->value['value'];
                            ?>

                                           <?php 
                        }
                        ?>
                                        <?php 
                    }
                    ?>
                                   <?php 
                }
                ?>
                                <?php 
            }
            ?>
     
                        <?php 
        }
        ?>
 </div>
                    <div>送达</div> 
                 </div>
                 <div class="sendMessage">
                   <div><?php 
        echo $_smarty_tpl->tpl_vars['shopdet']->value['limitcost'];
        ?>
</div>
                    <div>起送价/元</div>  
 
                 </div>
                 <div class="sendMessage">
                  <div><?php 
        echo $_smarty_tpl->tpl_vars['psinfo']->value['pscost'];
        ?>
</div>
                    <div>配送费/元</div>    
                  
                 </div>
           </div>
      </div>
      <div class="shopyuan">
            <div class="box_header">
              营业时间
            </div>
            <div class="box_header">
              <?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['starttime'];
        ?>

            </div>
      </div>
       <div class="shopyuan">
            <div class="box_header">
              店铺地址
            </div>
            <div class="box_header">
              <?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['address'];
        ?>

            </div>
      </div>
      <div class="shopyuan">
            <div class="box_header">
              店铺评价
            </div>
            <div class="box_header">
                <ul class="liststyle1">
            <?php 
        echo smarty_function_load_data(array('assign' => "comentlist", 'table' => "comment", 'fileds' => "*", 'limit' => "10", 'orderby' => " id desc", 'where' => "is_show=0"), $_smarty_tpl);
        ?>
  
            <?php 
        if (count($_smarty_tpl->tpl_vars['comentlist']->value['list']) > 0) {
            ?>
              <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['mykey'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['comentlist']->value['list'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['mykey']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
               <li class="touchend"  >
                  <div class="liwd50"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['content'];
                ?>
</div>
                  <div class="liwd50">
                        <div><?php 
                echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['items']->value['addtime'], "%Y-%m-%d %H:%M:%S");
                ?>
</div>
                        <div> <i class="glyphicon glyphicon-star <?php 
                if ($_smarty_tpl->tpl_vars['items']->value['point'] > 0) {
                    ?>
on<?php 
                } else {
                    ?>
off<?php 
                }
                ?>
"></i>
                    <i class="glyphicon glyphicon-star <?php 
                if ($_smarty_tpl->tpl_vars['items']->value['point'] > 1) {
                    ?>
on<?php 
                } else {
                    ?>
off<?php 
                }
                ?>
"></i>
                    <i class="glyphicon glyphicon-star <?php 
                if ($_smarty_tpl->tpl_vars['items']->value['point'] > 2) {
                    ?>
on<?php 
                } else {
                    ?>
off<?php 
                }
                ?>
"></i>
                    <i class="glyphicon glyphicon-star <?php 
                if ($_smarty_tpl->tpl_vars['items']->value['point'] > 3) {
                    ?>
on<?php 
                } else {
                    ?>
off<?php 
                }
                ?>
"></i>
                    <i class="glyphicon glyphicon-star <?php 
                if ($_smarty_tpl->tpl_vars['items']->value['point'] > 4) {
                    ?>
on<?php 
                } else {
                    ?>
off<?php 
                }
                ?>
"></i></div>
                   </div> 
               </li>
             <?php 
            }
            ?>
            <?php 
        } else {
            ?>
          <li class="touchend">
               <div>暂无评价</div>
          </li>
           <?php 
        }
        ?>
         
        </ul> 
            </div>
      </div>
       
   </div>
   
      <!--店铺-->
    
    </div>
</div>
<div class="mealList_foot" id="footer">
     <!--   <a href="#" onclick="delshopcart()" class="b">清空</a> -->
     <div>
       <a class="member_center" shop_id="<?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['id'];
        ?>
"><i class="nav_icon-user"></i>个人中心</a>
       <a class="myorder" ><i class="nav_icon-menu"></i>我的订单</a>
       <a class='a' onclick="dolink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/wxsite/shopcart/id/" . (string) $_smarty_tpl->tpl_vars['id']->value), $_smarty_tpl);
        ?>
');"><i class="nav_icon-shopingcar"></i>购物车
        <span class="total_count" id="total_count">0</span>
       </a> 
     </div> 
     <div>
       <span><i class="nav_icon-shopingcar"></i><big id="total_count2"> 0 </big>
       <a href="#" onclick="delshopcart()" class="b">清空</a>
        </span>
       <span>共计: ¥ <big id="total_money">0</big>元</span>
       <span id="showlimit"></span>
       <span onclick="dolink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/wxsite/shopcart/id/" . (string) $_smarty_tpl->tpl_vars['id']->value), $_smarty_tpl);
        ?>
');">选好了</span>
    </div>    
</div>
 
  
  
</div>
 <script>
 	$(function(){  
 	   $('#loading').hide(); 
  });
  </script>
</body>
</html>
 <?php 
    }
    function content_555d3b691de644_28669408($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include 'D:\\wmr\\lib\\Smarty\\libs\\plugins\\function.load_data.php';
        }
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> 商家管理中心-<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</title>
<meta name="Keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" />
<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" />  
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/commom.css" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/shangjiaAdmin.css" />

<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquerynew.js" type="text/javascript" language="javascript"></script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/allj.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script>

 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/plugins/iframeTools.js"></script>
   <script>
  	var mynomenu='baseset';
  	</script>
 
<script> 
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
"; 
</script>
<!--[if lte IE 6]>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('div, ul, img, li, input , a');
        $('#footer').css('display','none');
    </script>
<![endif]--> 
</head>
<body> 
<?php 
        echo smarty_function_load_data(array('assign' => "shopinfo", 'table' => "shop", 'where' => "`id`=" . (string) $_smarty_tpl->tpl_vars['adminshopid']->value, 'type' => "one"), $_smarty_tpl);
        ?>
 
<div style="position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: -1;background:url(<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/background.png);"></div>
<!---header start--->
	<div class="header">
    	<div class="top">
        	<div class="topLeft fl">
            	<ul class="fr">
                	<li><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺管理</a></li> 
                    <li><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a></li>
                    <li><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/fastfood"), $_smarty_tpl);
        ?>
">快速下单</a></li>
                </ul>
                 <div class="cl"></div>
            </div>
            <div class="topRight fr">
            	
                    <span  style="color: #c7c7c7;font-size: 14px;padding: 5px;" onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');" class="curbtn">会员中心 </span>
                    <span class="username curbtn" onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">退出<img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/usernameBg.png" /></span>
                 
                
            </div>
            <div class="cl"></div>
            
            
            <div class="shangjiaTop">
            	<div class="sjgl">
                	
                </div>
            	
            </div>
        </div>
    	
    </div>
    <!---header end--->
    <script>
	$(function(){
		var clientWidth = document.body.clientWidth;
		/*alert(clientWidth);*/
		if( clientWidth<=1347 ){
			
			$(".content").css("width","1240px");
			$(".conleft").removeClass("content_left");
			
		}
	});
</script>
 <!------以上是公共的头部部分------->
 
  <!---content start--->
	<div class="content">
   	 	<!---content left start--->
		<div class="conleft content_left fl">
        	<div class="nav">
            	<ul>
                	<li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
');" data="baseset"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/dpsz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺设置</a></li>
                    <li onclick="openlink('<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
');" data="basemenu"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/cdgl.png" /></div><a href="<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
">菜单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
');" data="baseorder"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddgl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
');" data="baseordertj"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddtj.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
">订单统计</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
');" data="basearea"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/psqy.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
">配送区域</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
');"  data="basecx"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/xxgz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
">促销规则</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/lygl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
">留言评价</a></li>
                    
                    
                </ul>
               
            </div>
        </div>	
       <!---content left end---> 
       
       
       
       
       
           
 
   <div class="conWaiSet fr">
        	
            <div class="shopSetTop">
            	<span>店铺设置</span>
            </div> 
            	  <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tempdir']->value . "/shop/usereditmenu.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>
  
             <div class="cl"></div>  
                  
                <form id="loginForm" method="post" action="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/savefastfood"), $_smarty_tpl);
        ?>
">
                 <div class="jutiSet">
        			   <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>是否支持预定:</span>
                        </div>
                        <div class="xuanze_right">
                        <input type="radio"<?php 
        if ($_smarty_tpl->tpl_vars['shopfast']->value['is_orderbefore'] == 1) {
            ?>
 checked<?php 
        }
        ?>
 name="is_orderbefore" id="" value="1" />是 <input type="radio" name="is_orderbefore" id="" value="0" <?php 
        if ($_smarty_tpl->tpl_vars['shopfast']->value['is_orderbefore'] == 0) {
            ?>
 checked<?php 
        }
        ?>
/>否 <span id="befortime" <?php 
        if ($_smarty_tpl->tpl_vars['shopfast']->value['is_orderbefore'] == 1) {
            ?>
style="display:inline-block;" <?php 
        } else {
            ?>
style="display:none;"<?php 
        }
        ?>
>,可预定天数<input type="text"  name="befortime" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopfast']->value['befortime'];
        ?>
" class="ttext" style="width:50px;">0表示只支持当天</span>
                        </div>
                        <div class="cl"></div>
                    </div>
                    
                    <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>起送价:</span>
                        </div>
                        <div class="xuanze_right">
                        	<input type="text" style=" background:#e0f5ff;width:55px; height:29px;" name="limitcost" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopfast']->value['limitcost'];
        ?>
" />&nbsp;&nbsp;&nbsp;元起
                        </div>
                        <div class="cl"></div>
                    </div>
                    
                    
                    <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>起送说明:</span>
                        </div>
                        <div class="dianpu_right">
                        	<input type="text" style="width:569px; "  value="<?php 
        echo $_smarty_tpl->tpl_vars['shopfast']->value['limitstro'];
        ?>
"  name="limitstro" />
                            
                        </div>
                        <div class="cl"></div>
                    </div>
                    
                    <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>制作时间:</span>
                        </div>
                        <div class="xuanze_right">
                        	<input type="text" style=" background:#e0f5ff;width:55px; height:29px;"  name="maketime" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopfast']->value['maketime'];
        ?>
"  />&nbsp;&nbsp;&nbsp;分钟
                        </div>
                        <div class="cl"></div>
                    </div>
                    
                    
                    <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>人均消费:</span>
                        </div>
                        <div class="xuanze_right">
                        	<input type="text" style=" background:#e0f5ff;width:55px; height:29px;"  name="personcost" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopfast']->value['personcost'];
        ?>
"  />&nbsp;&nbsp;&nbsp;元
                        </div>
                        <div class="cl"></div>
                    </div>
                    
                    <div class="serxuanze" id="pssset">
                    	<div class="xuanze_left">
                        	<span>配送方式:</span>
                        </div>
                        <div class="xuanze_right">
                        	<?php 
        if ($_smarty_tpl->tpl_vars['opensitesend']->value == 1) {
            ?>
<input type="radio" value="0" name="sendtype" <?php 
            if (empty($_smarty_tpl->tpl_vars['shopfast']->value['sendtype'])) {
                ?>
 checked<?php 
            }
            ?>
>网站配送 <?php 
        }
        ?>
                        	          <?php 
        if ($_smarty_tpl->tpl_vars['openshopsend']->value == 1) {
            ?>
 <input type="radio" value="1" name="sendtype" <?php 
            if ($_smarty_tpl->tpl_vars['shopfast']->value['sendtype'] == 1) {
                ?>
 checked<?php 
            }
            ?>
>店铺自行配送  <?php 
        }
        ?>
 
                        </div>
                        <div class="cl"></div>
                    </div>
                    <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>定位最大半径:</span>
                        </div>
                        <div class="xuanze_right">
                        	<input type="text" style=" background:#e0f5ff;width:55px; height:29px;"  name="pradius" value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['shopfast']->value['pradius']) === null || $tmp === '' ? 1 : $tmp;
        ?>
"  />&nbsp;&nbsp;&nbsp;千米 用户位置和商家距离小于最大定位半径则显示
                        </div>
                        <div class="cl"></div>
                    </div>
                     
                    
                    
                     
                    
                     
                      <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['attrlist']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
                       <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['name'];
            ?>
:</span>
                        </div>
                        <div class="xuanze_right"> 
                        	<?php 
            $_smarty_tpl->tpl_vars['itv'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['itv']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['items']->value['det'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['itv']->key => $_smarty_tpl->tpl_vars['itv']->value) {
                $_smarty_tpl->tpl_vars['itv']->_loop = true;
                ?>
 
                        	      <?php 
                if ($_smarty_tpl->tpl_vars['items']->value['type'] == 'input') {
                    ?>
                        	         <?php 
                    $_smarty_tpl->tpl_vars['shownow'] = new Smarty_variable($_smarty_tpl->tpl_vars['items']->value['id'] . '-0', null, 0);
                    ?>
   
                        	         <input type="input" value="<?php 
                    echo ($tmp = @$_smarty_tpl->tpl_vars['myattr']->value[$_smarty_tpl->tpl_vars['shownow']->value]) === null || $tmp === '' ? '' : $tmp;
                    ?>
" name="mydata<?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['id'];
                    ?>
" class="text" style=" background:#e0f5ff;width:200px; height:29px;margin-top:5px;">
                        	      <?php 
                } elseif ($_smarty_tpl->tpl_vars['items']->value['type'] == 'img') {
                    ?>
                        	        <?php 
                    $_smarty_tpl->tpl_vars['shownow'] = new Smarty_variable($_smarty_tpl->tpl_vars['items']->value['id'] . '-', null, 0);
                    ?>
   
                        	         <?php 
                    $_smarty_tpl->tpl_vars['shownow1'] = new Smarty_variable($_smarty_tpl->tpl_vars['shownow']->value . $_smarty_tpl->tpl_vars['itv']->value['id'], null, 0);
                    ?>
  
                        	         <input type="checkbox" value="<?php 
                    echo $_smarty_tpl->tpl_vars['itv']->value['id'];
                    ?>
" name="mydata<?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['id'];
                    ?>
[]"  <?php 
                    if (isset($_smarty_tpl->tpl_vars['myattr']->value[$_smarty_tpl->tpl_vars['shownow1']->value])) {
                        ?>
checked<?php 
                    }
                    ?>
 ><img src="<?php 
                    echo $_smarty_tpl->tpl_vars['itv']->value['name'];
                    ?>
" width=30px> 
                        	      <?php 
                } elseif ($_smarty_tpl->tpl_vars['items']->value['type'] == 'checkbox') {
                    ?>
                        	         <?php 
                    $_smarty_tpl->tpl_vars['shownow'] = new Smarty_variable($_smarty_tpl->tpl_vars['items']->value['id'] . '-', null, 0);
                    ?>
   
                        	         <?php 
                    $_smarty_tpl->tpl_vars['shownow1'] = new Smarty_variable($_smarty_tpl->tpl_vars['shownow']->value . $_smarty_tpl->tpl_vars['itv']->value['id'], null, 0);
                    ?>
                        	         <input type="checkbox" value="<?php 
                    echo $_smarty_tpl->tpl_vars['itv']->value['id'];
                    ?>
" name="mydata<?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['id'];
                    ?>
[]" <?php 
                    if (isset($_smarty_tpl->tpl_vars['myattr']->value[$_smarty_tpl->tpl_vars['shownow1']->value])) {
                        ?>
checked<?php 
                    }
                    ?>
 ><?php 
                    echo $_smarty_tpl->tpl_vars['itv']->value['name'];
                    ?>
 
                        	      <?php 
                } elseif ($_smarty_tpl->tpl_vars['items']->value['type'] == 'radio') {
                    ?>
                        	           <?php 
                    $_smarty_tpl->tpl_vars['shownow'] = new Smarty_variable($_smarty_tpl->tpl_vars['items']->value['id'] . '-', null, 0);
                    ?>
   
                        	         <?php 
                    $_smarty_tpl->tpl_vars['shownow1'] = new Smarty_variable($_smarty_tpl->tpl_vars['shownow']->value . $_smarty_tpl->tpl_vars['itv']->value['id'], null, 0);
                    ?>
  
                        	           <input type="radio" value="<?php 
                    echo $_smarty_tpl->tpl_vars['itv']->value['id'];
                    ?>
" name="mydata<?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['id'];
                    ?>
" <?php 
                    if (isset($_smarty_tpl->tpl_vars['myattr']->value[$_smarty_tpl->tpl_vars['shownow1']->value])) {
                        ?>
checked<?php 
                    }
                    ?>
><?php 
                    echo $_smarty_tpl->tpl_vars['itv']->value['name'];
                    ?>
  
                        	      <?php 
                }
                ?>
                        	      
                        	<?php 
            }
            ?>
 
                        	 </div>
                        <div class="cl"></div>
                    </div>
                      <?php 
        }
        ?>
                    
                    
                    
                    
                    
                  	 <div class="settijiao">
                    	
                       
                        	<input class="xuanze_right" type="submit" name=""  value="" />
                     
                        <div class="cl"></div>
                    </div>
                    
                    
       			 </div>
              </form>  
                
                
        </div>
        <div class="cl"></div>
        
        
</div>
 
 
 
 
 
 
 
 
 
 
<script type="text/javascript">
	         <?php 
        $_smarty_tpl->tpl_vars['shoppsset'] = new Smarty_variable($_smarty_tpl->tpl_vars['defaultset']->value, null, 0);
        ?>
           <?php 
        if (!empty($_smarty_tpl->tpl_vars['shopfast']->value['sendset'])) {
            ?>
 
	 	           <?php 
            $_smarty_tpl->tpl_vars['shoppsset'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['shopfast']->value['sendset']), null, 0);
            ?>
	 	       <?php 
        }
        ?>
 
 $(function(){ 
 	 var myset=  $("input[name='sendtype']:checked").val();
 	 if(myset ==  1){
 	 	    showhtml();
 	 }
 	 
 });
 function showhtml(){
 	 <?php 
        $_smarty_tpl->tpl_vars['pssetinfo'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['psset']->value), null, 0);
        ?>
;
 	 var locationtype = '<?php 
        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['locationtype'];
        ?>
';
 	 if(locationtype == 1){
 	 	var otherhtml = '';
 	 	  <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_smarty_tpl->tpl_vars['mykey'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['pestypearr']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            $_smarty_tpl->tpl_vars['mykey']->value = $_smarty_tpl->tpl_vars['items']->key;
            ?>
 	 	  <?php 
            if ($_smarty_tpl->tpl_vars['mykey']->value != 2) {
                ?>
 	 	     otherhtml += '<input type="radio" value="<?php 
                echo $_smarty_tpl->tpl_vars['mykey']->value;
                ?>
"  <?php 
                if ($_smarty_tpl->tpl_vars['shoppsset']->value['pstype'] == $_smarty_tpl->tpl_vars['mykey']->value) {
                    ?>
checked<?php 
                }
                ?>
 name="pstype"> <?php 
                echo $_smarty_tpl->tpl_vars['items']->value;
                ?>
';
 	 	   <?php 
            }
            ?>
 	 	  <?php 
        }
        ?>
 	 	  //<div class="serxuanze" id="pstype"><div class="xuanze_left"> <span>计费方式:</span> </div> <div class="xuanze_right">  </div> <div class="cl"></div>  </div>
 	 	  $('#pssset').after('<div class="serxuanze" id="pstype"><div class="xuanze_left"> <span>计费方式:</span> </div> <div class="xuanze_right"> '+otherhtml+' </div> <div class="cl"></div>  </div>');
 	 }else{
 	 	 var otherhtml = '';
 	 	 <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_smarty_tpl->tpl_vars['mykey'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['pestypearr']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            $_smarty_tpl->tpl_vars['mykey']->value = $_smarty_tpl->tpl_vars['items']->key;
            ?>
 	 	  <?php 
            if ($_smarty_tpl->tpl_vars['mykey']->value != 4) {
                ?>
 	 	     otherhtml += '<input type="radio" value="<?php 
                echo $_smarty_tpl->tpl_vars['mykey']->value;
                ?>
" <?php 
                if ($_smarty_tpl->tpl_vars['shoppsset']->value['pstype'] == $_smarty_tpl->tpl_vars['mykey']->value) {
                    ?>
checked<?php 
                }
                ?>
  name="pstype"> <?php 
                echo $_smarty_tpl->tpl_vars['items']->value;
                ?>
';
 	 	   <?php 
            }
            ?>
 	 	  <?php 
        }
        ?>
 	 	  $('#pssset').after('<div class="serxuanze" id="pstype"><div class="xuanze_left"> <span>计费方式:</span> </div> <div class="xuanze_right"> '+otherhtml+' </div> <div class="cl"></div>  </div>');
 	 }
 	 $('input:radio[name="pstype"]:checked').trigger("click");  
 }
 $("input[name='pstype']").live("click", function() {   
 	   $('.feetr').remove();
  	 var myset=  $("input[name='pstype']:checked").val();
  	 var otherhtml = '';
 	   if(myset ==  1){//店铺统一配送费
 	   	 
 	   	
 	   	 
 	   	 
 	   	 
 	   	 
 	       otherhtml ='<div class="serxuanze feetr"><div class="xuanze_left"><span>配送费:</span></div><div class="xuanze_right"> <input type="text" style=" background:#e0f5ff;width:55px; height:29px;"  name="psvalue1" value="<?php 
        echo $_smarty_tpl->tpl_vars['shoppsset']->value['psvalue1'];
        ?>
"  />&nbsp;&nbsp;&nbsp;元  </div> <div class="cl"></div>  </div>';
 	 	     
 	   }else if(myset == 2){//店铺区域设置配送费
 	   
 	   }else if(myset == 3){//不计算配送费
 	   }
 	   else if(myset == 4){//百度地图测算配送费
 	   	otherhtml ='';
 	   }else{
 	    otherhtml ='<div class="serxuanze feetr"><div class="xuanze_left"><span>基础配送费:</span></div><div class="xuanze_right"> <input type="text" style=" background:#e0f5ff;width:55px; height:29px;"  name="psvalue1" value="<?php 
        echo $_smarty_tpl->tpl_vars['shoppsset']->value['psvalue1'];
        ?>
"  />&nbsp;&nbsp;&nbsp;元  </div> <div class="cl"></div>  </div>';
 	    otherhtml +=' <div class="serxuanze feetr"><div class="xuanze_left"><span>自增费:</span></div><div class="xuanze_right"> <input type="text" style=" background:#e0f5ff;width:55px; height:29px;"  name="psvalue2" value="<?php 
        echo $_smarty_tpl->tpl_vars['shoppsset']->value['psvalue2'];
        ?>
"  />&nbsp;&nbsp;&nbsp;元  </div> <div class="cl"></div>  </div>';
 	   }
 	   $('#pstype').after(otherhtml);
  });
 
  $("input[name='sendtype']").live("click", function() {   
  	 var myset=  $("input[name='sendtype']:checked").val();
 	   if(myset ==  1){
 	 	    showhtml();
 	  }else{
 	    $('.feetr').remove();
 	    $('#pstype').remove();
 	  }
  });
	function openfast(){
	  if(confirm('确定开启外卖操作吗?')){
	  	$("input[name='openshopfast']").attr("checked",false);
	  	myajax('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/startshop/datatype/json"), $_smarty_tpl);
        ?>
',{opentype:'shopfast'});
	   }else{
	   	$("input[name='openshopfast']").attr("checked",false);
	  }
	}
	function closefast(){
		if(confirm('确定关闭外卖操作吗?\n 对应商品数据将会清空')){
	  	$("input[name='openshopfast']").attr("checked",true);
	  	myajax('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/closeshop/datatype/json"), $_smarty_tpl);
        ?>
',{opentype:'shopfast'})
	   }else{
	   	$("input[name='openshopfast']").attr("checked",true);
	  }
	}
	$("input[name='is_orderbefore']").click(function(){
		  var checkid =  $("input[name='is_orderbefore']:checked").val();
		 //befortime
		 if(checkid == 1){
		 	$('#befortime').show();
		 }else{
		 	 $('#befortime').hide();
		 	 $("input[name='befortime']").val('0');
		 }
		  
	}); 
	$('.hc_login_btn_div').click(function(){
		$('#loginForm').submit(); 
	}) 
</script> 
  
       
       
       
       
       
       
       
       </div>
    



<!------以下是公共的底部部分------->

    <div class="footer">
    	<div class="foot1">
        <center>
        	<div class="db">
        	   <?php 
        if (!empty($_smarty_tpl->tpl_vars['toplink']->value)) {
            ?>
	 	      <?php 
            $_smarty_tpl->tpl_vars['toplink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['toplink']->value), null, 0);
            ?>
		  	  <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['toplink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
 
			         <a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> | 
			    <?php 
            }
            ?>
			<?php 
        }
        ?>
 
         
            </div></center>
            <div class="cl"></div>
        </div>
        <div class="foot2">
        	<p>@2008-2012 <?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['beian']->value;
        ?>
 <?php 
        echo stripslashes($_smarty_tpl->tpl_vars['footerdata']->value);
        ?>
</p>
        </div>
    </div>
 
 <script>
                	
				$(function(){
					 
			  	if("undefined" != typeof mynomenu){
					   var allobj = $('.nav').find('li');
					  $.each(allobj, function(i, newobj) {
					  	if($(this).attr('data') == mynomenu){
					  	   $(this).addClass('on');
					  	 }
					  	//alert($(this).attr('data'));
					   	  
					  });
				 	}
					$(".nav ul li").click(function(){
					    	$(this).addClass('on').siblings().removeClass('on');
						
					});	 
				});
				function openlink(newlinkes){
					window.location.href=newlinkes;
				}
</script> 
  
</body>
</html><?php 
    }
    function content_5594ebda2d5775_66551854($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/function.load_data.php';
        }
        if (!is_callable('smarty_modifier_date_format')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/modifier.date_format.php';
        }
        ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>商家管理中心-<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</title>
<meta name="Keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" />
<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/commom.css" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/shangjiaAdmin.css" />

<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquerynew.js" type="text/javascript" language="javascript"></script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/allj.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script>

<script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/plugins/iframeTools.js"></script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/datepicker/WdatePicker.js" type="text/javascript" language="javascript"></script>
<script>
  	  var mynomenu='basecx';
  </script>

<script>
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
    $(function(){
      
      $('.conWaiSet').height( $('.conleft').height() );
        $('.header ul li').click(function(){
            $(this).addClass('li_active').siblings().removeClass('li_active');
        });
   
        $('.waimaiset').children().children('img').remove();

        $('.shopSetTop').remove();
        $('.waimaiset li').click(function(){
            $(this).addClass('li_active').siblings().removeClass('li_active');
        });
         

        
    });
</script>
<!--[if lte IE 6]>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('div, ul, img, li, input , a');
        $('#footer').css('display','none');
    </script>
<![endif]-->
</head>
<body>
<?php 
        echo smarty_function_load_data(array('assign' => "shopinfo", 'table' => "shop", 'where' => "`id`=" . (string) $_smarty_tpl->tpl_vars['adminshopid']->value, 'type' => "one"), $_smarty_tpl);
        ?>

<!---<div style="position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: -1;background:url(<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/background.png);"></div>
header start-->
	<div class="header">
    	<ul>
        	<li class="li_active">
               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺管理</a>
            </li>
            <li>
               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a>
            </li>
            <li>
              <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/fastfood"), $_smarty_tpl);
        ?>
">快速下单</a>
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
        ?>
');">
                内容管理
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');">
                会员中心
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">
                退出
            </li>
        </ul>
                 <div class="cl"></div>
</div>
        <!--    <div class="topRight fr">
                <span onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
        ?>
');" class="curbtn">内容管理</span>
                    <span  onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');" class="curbtn">会员中心 </span>
                    <span class="username curbtn" onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">退出</span>

            </div>
            <div class="cl"></div>


            <div class="shangjiaTop">
            	<div class="sjgl">

                </div>

            </div>
        </div>

    </div>-->
    <!---header end
    <script>
	$(function(){
		var clientWidth = document.body.clientWidth;
		/*alert(clientWidth);*/
	/*	if( clientWidth<=1347 ){

			$(".content").css("width","1240px");
			$(".conleft").removeClass("content_left");

		}*/
	});
</script>
 以上是公共的头部部分-->

  <!---content start-->
	<div class="content">
   	 	<!---content left start-->
		<div class="conleft"><!-- content_left -->
        	<div class="nav">
            	<ul>
                	<li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
');" data="baseset"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/dpsz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺设置</a></li>
                    <li onclick="openlink('<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
');" data="basemenu"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/cdgl.png" /></div><a href="<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
">菜单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
');" data="baseorder"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddgl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
');" data="baseordertj"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddtj.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
">订单统计</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
');" data="basearea"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/psqy.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
">配送区域</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
');"  data="basecx"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/xxgz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
">促销规则</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/lygl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
">留言评价</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/wechat.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
">微信管理</a></li>

                </ul>

            </div>
        </div>
       <!---content left end-->





           
  <!---content right start-->
        <div class="conWaiSet fr">

            <div class="shopSetTop">
            	<span><?php 
        if (empty($_smarty_tpl->tpl_vars['cxinfo']->value)) {
            ?>
添加<?php 
        } else {
            ?>
编辑<?php 
        }
        ?>
促销规则列表</span>
            </div>
           <form id="loginForm" method="post" action="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/savecxrule/datatype/json"), $_smarty_tpl);
        ?>
" >
                 <div class="jutiSet">
                    <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>促销标题:</span>
                        </div>
                        <div class="xuanze_right">
                        	<input type="text" id="name" name="name" value="<?php 
        echo $_smarty_tpl->tpl_vars['cxinfo']->value['name'];
        ?>
">

                        </div>
                        <div class="cl"></div>
                    </div>
                    <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>订单总金额限制:</span>
                        </div>
                        <div class="xuanze_right"  >
                        	<input type="text" id="limitcontent" name="limitcontent" value="<?php 
        echo $_smarty_tpl->tpl_vars['cxinfo']->value['limitcontent'];
        ?>
" >

                        </div>
                        <div class="cl"></div>
                    </div>

                    <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>具体时间:</span>
                        </div>
                        <div class="xuanze_right">
                        		<input type="radio" name="limittype" value="1" checked>不限制
                        	<input type="radio" name="limittype" value="2" <?php 
        if ($_smarty_tpl->tpl_vars['cxinfo']->value['limittype'] == 2) {
            ?>
checked<?php 
        }
        ?>
>每周星期
                        	<input type="radio" name="limittype" value="3" <?php 
        if ($_smarty_tpl->tpl_vars['cxinfo']->value['limittype'] == 3) {
            ?>
checked<?php 
        }
        ?>
>每天时间段
                            <input type="radio" name="limittype" value="4" <?php 
        if ($_smarty_tpl->tpl_vars['cxinfo']->value['limittype'] == 4) {
            ?>
checked<?php 
        }
        ?>
>按提前天数

                        </div>
                        <div class="cl"></div>
                    </div>

                    <div class="serxuanze" id="limittime1" style="display:none;">
                    	<div class="xuanze_left">
                        	<span>选择星期:</span>
                        </div>
                        <div class="xuanze_right">
                        	<?php 
        $_smarty_tpl->tpl_vars['mysign'] = new Smarty_variable(explode(",", $_smarty_tpl->tpl_vars['cxinfo']->value['limittime']), null, 0);
        ?>
                        	<?php 
        $_smarty_tpl->tpl_vars['signshu'] = new Smarty_variable("1", null, 0);
        ?>
                          <?php 
        if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['loop'])) {
            unset($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']);
        }
        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['name'] = 'loop';
        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'] = is_array($_loop = 7) ? count($_loop) : max(0, (int) $_loop);
        unset($_loop);
        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show'] = true;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'];
        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'] = 1;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'] - 1;
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show']) {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'];
            if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] == 0) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show'] = false;
            }
        } else {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] = 0;
        }
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show']) {
            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration']++) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] == 1;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'];
                ?>
                  	          <input type="checkbox" name="limittime1[]" value="<?php 
                echo $_smarty_tpl->tpl_vars['signshu']->value;
                ?>
" <?php 
                if (in_array($_smarty_tpl->tpl_vars['signshu']->value, $_smarty_tpl->tpl_vars['mysign']->value)) {
                    ?>
checked<?php 
                }
                ?>
> 星期<?php 
                if ($_smarty_tpl->tpl_vars['signshu']->value == 7) {
                    ?>
天<?php 
                } else {
                    echo $_smarty_tpl->tpl_vars['signshu']->value;
                }
                ?>
                  	          <?php 
                $_smarty_tpl->tpl_vars['signshu'] = new Smarty_variable($_smarty_tpl->tpl_vars['signshu']->value + 1, null, 0);
                ?>
                         <?php 
            }
        }
        ?>
                        </div>
                        <div class="cl"></div>
                    </div>

                    <div id="limittime2">


                    	<?php 
        $_smarty_tpl->tpl_vars['mysign'] = new Smarty_variable(explode(",", $_smarty_tpl->tpl_vars['cxinfo']->value['limittime']), null, 0);
        ?>
                        	  	<?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['mysign']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>

                        	  	    <?php 
            $_smarty_tpl->tpl_vars['dotime'] = new Smarty_variable(explode("-", $_smarty_tpl->tpl_vars['items']->value), null, 0);
            ?>
                        	  	    <?php 
            if (count($_smarty_tpl->tpl_vars['dotime']->value) > 1) {
                ?>
                        	  	     <div class="serxuanze">
                    	  <div class="xuanze_left">
                        	<span>时间段:</span>
                        </div>
                        <div class="xuanze_right">
                        	  	    从<input  name="limittime2[]" value="<?php 
                echo $_smarty_tpl->tpl_vars['dotime']->value[0];
                ?>
" class="ttext" type="text">
                        	  	    至<input  name="limittime22[]" value="<?php 
                echo $_smarty_tpl->tpl_vars['dotime']->value[1];
                ?>
" class="ttext" type="text"><a href="#" onclick="removetime2(this);">移除</a>
                        	  	    </div>
                         <div class="cl"></div>
                      </div>
                        	  	    <?php 
            }
            ?>

                        	  	 <?php 
        }
        ?>

                       <div class="serxuanze">
                    	  <div class="xuanze_left">
                        	<span>时间段:</span>
                        </div>
                        <div class="xuanze_right">
                        	  	    从<input  name="limittime2[]" value="" class="ttext" type="text">
                        	  	    至<input  name="limittime22[]" value="" class="ttext" type="text"><a href="#" onclick="removetime2(this);">移除</a>
                        	  	    </div>
                         <div class="cl"></div>
                      </div>
                    	<div class="serxuanze" id="addduan">
                    	  <div class="xuanze_left">
                        	<span>增加时间段</span>
                        </div>
                        <div class="xuanze_right">
                        	  例如:从08:00至11:00   <a href="#" onclick="addtimedo(this)">增加时间段</a>
                        </div>
                         <div class="cl"></div>
                      </div>

                    </div>

                    <div class="serxuanze" id="limittime3" style="display:none;">
                        <div class="xuanze_left">
                            <span>提前天数:</span>
                        </div>
                        <div class="xuanze_right">
                            <input type="text" value="<?php 
        echo $_smarty_tpl->tpl_vars['cxinfo']->value['limittime'];
        ?>
" name="limittime3" class="ttext"/>天
                        </div>
                        <div class="cl"></div>
                    </div>


                      <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>促销类型:</span>
                        </div>
                        <div class="xuanze_right">
                        	<select name="controltype" id="controltype" onchange="changetxt(this)">
    	                        <option value="1" data1="赠品数量" data="请录入赠品库存数量" selected >送赠品 </option>
    	                        <option value="2" data1="减费用金额" data=""  <?php 
        if ($_smarty_tpl->tpl_vars['cxinfo']->value['controltype'] == 2) {
            ?>
selected<?php 
        }
        ?>
>减费用</option>
    	                        <option value="3" data1="折扣" data="假如9折请录入90" <?php 
        if ($_smarty_tpl->tpl_vars['cxinfo']->value['controltype'] == 3) {
            ?>
selected<?php 
        }
        ?>
>折扣</option>
    	                        <option value="4" data1="免配送费" data="免配送费" <?php 
        if ($_smarty_tpl->tpl_vars['cxinfo']->value['controltype'] == 4) {
            ?>
selected<?php 
        }
        ?>
>免配送费</option>
    	                    </select>
                        </div>
                        <div class="cl"></div>
                    </div>

                      <div class="serxuanze" id="showpresenttitle">
                    	<div class="xuanze_left">
                        	<span>赠品名称:</span>
                        </div>
                        <div class="xuanze_right">
                        	<input type="text" id="presenttitle" name="presenttitle" value="<?php 
        echo $_smarty_tpl->tpl_vars['cxinfo']->value['presenttitle'];
        ?>
">

                        </div>
                        <div class="cl"></div>
                    </div>

                       <div class="serxuanze" id="showdefualt">
                    	<div class="xuanze_left">
                        	<span><font id="cctitle">xxx</font>:</span>
                        </div>
                        <div class="xuanze_right">
                        	<input id="controlcontent" name="controlcontent" value="<?php 
        echo $_smarty_tpl->tpl_vars['cxinfo']->value['controlcontent'];
        ?>
" class="ttext" type="text"><font id="ccmiaoshu">xxx</font>
                        </div>
                        <div class="cl"></div>
                    </div>



                      <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>生效时间:</span>
                        </div>
                        <div class="xuanze_right">
                        从 <input class="Wdate datefmt" type="text" name="starttime" id="starttime" value="<?php 
        echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['cxinfo']->value['starttime'], "%Y-%m-%d");
        ?>
"  onFocus="WdatePicker({isShowClear:false,readOnly:true});" />
                        	至 <input class="Wdate datefmt" type="text" name="endtime" id="endtime" value="<?php 
        echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['cxinfo']->value['endtime'], "%Y-%m-%d");
        ?>
"  onFocus="WdatePicker({isShowClear:false,readOnly:true});" />

                        </div>
                        <div class="cl"></div>
                    </div>

                    <div class="serxuanze">
                        <div class="xuanze_left">
                            <span>适用范围:</span>
                        </div>
                        <div class="xuanze_right">
                            <input type="checkbox" name="is_waimai" value="1" <?php 
        if ($_smarty_tpl->tpl_vars['is_waimai']->value == 1) {
            ?>
checked<?php 
        }
        ?>
 />外卖
                            <input type="checkbox" name="is_goshop" value="1" <?php 
        if ($_smarty_tpl->tpl_vars['is_goshop']->value == 1) {
            ?>
checked<?php 
        }
        ?>
 />堂吃
                        </div>
                        <div class="cl"></div>
                    </div>

                    <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>是否启用:</span>
                        </div>
                        <div class="xuanze_right">
                        	<input type="radio" name="status" value="1" checked>已启用
                        	<input type="radio" name="status" value="0" <?php 
        if ($_smarty_tpl->tpl_vars['cxinfo']->value['status'] == 0) {
            ?>
checked<?php 
        }
        ?>
>未启用
                        </div>
                        <div class="cl"></div>
                    </div>


                   <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>促销标签:</span>
                        </div>
                        <div class="xuanze_right">
                        	<?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['cxsignlist']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
                        	<input type="radio" name="signid" value="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
" <?php 
            if ($_smarty_tpl->tpl_vars['items']->value['id'] == $_smarty_tpl->tpl_vars['cxinfo']->value['signid']) {
                ?>
checked<?php 
            }
            ?>
><img src="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['imgurl'];
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['name'];
            ?>

                        	<?php 
        }
        ?>
                        </div>
                        <div class="cl"></div>
                    </div>


                   <input type="hidden" name="cxid" value="<?php 
        echo $_smarty_tpl->tpl_vars['cxinfo']->value['id'];
        ?>
">

                  	 <div class="settijiao">

                          <div class="xuanze_right hc_login_btn_div"></div>


                        <div class="cl"></div>
                    </div>


       			 </div>
       			 </form>



        </div>
        <div class="cl"></div>




<script type="text/javascript">
	$(function(){
		$("input[name='limittype']:checked").trigger("click");
		$('#controltype').trigger('change');
	});
	function addtimedo(obj){
		var contentdata = '<div class="serxuanze"><div class="xuanze_left"><span>时间段:</span></div>   <div class="xuanze_right">   从<input  name="limittime2[]" value="" class="ttext" type="text"> 至<input  name="limittime22[]" value="" class="ttext" type="text"><a href="#" onclick="removetime2(this);">移除</a>  </div>  <div class="cl"></div>  </div>';
		$('#addduan').before(contentdata);
	}
	function removetime2(obj){
		$(obj).parent().parent().remove();
	}
	$("input[name='limittype']").click(function(){
		var dovalue = $(this).val();
		if(dovalue ==  2){
			 $('#limittime1').show();
			 $('#limittime2').hide();
             $('#limittime3').hide();
		}else if (dovalue == 3){
			 //if(dovalue == 3){
			 $('#limittime1').hide();
			  $('#limittime2').show();
              $('#limittime3').hide();
        }else if (dovalue == 4) {
              $('#limittime1').hide();
              $('#limittime2').hide();
              $('#limittime3').show();
		}else{
			 $('#limittime1').hide();
			  $('#limittime2').hide();
              $('#limittime3').hide();
		}
	});
	function changetxt(obj){
		var findvalue = $(obj).find("option:selected").val();
		var doobj = $(obj).find("option:selected");
		$('#showdefualt').show();
		if(findvalue == 1){
			 $('#showpresenttitle').show();
		}else{
			$('#showpresenttitle').hide();
		}
		if(findvalue == 4){
		  $('#showdefualt').hide();
		}
		$('#cctitle').text($(doobj).attr('data1'));
		$('#ccmiaoshu').text($(doobj).attr('data'));
	}
	$('.hc_login_btn_div').click(function(){
		//$('#loginForm').submit();
	  subform('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
',$('#loginForm'));
	});

</script>








       </div>




<!--以下是公共的底部部分-->

    <div class="footer">
    	<div class="foot1">
        <center>
        	<div class="db">
        	   <?php 
        if (!empty($_smarty_tpl->tpl_vars['toplink']->value)) {
            ?>
	 	      <?php 
            $_smarty_tpl->tpl_vars['toplink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['toplink']->value), null, 0);
            ?>
		  	  <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['toplink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
			         <a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> |
			    <?php 
            }
            ?>
			<?php 
        }
        ?>

            </div></center>
            <div class="cl"></div>
        </div>
        <div class="foot2">
        	<p>@2008-2012 <?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['beian']->value;
        ?>
 <?php 
        echo stripslashes($_smarty_tpl->tpl_vars['footerdata']->value);
        ?>
</p>
        </div>
    </div>

 <script>

				$(function(){

			  	if("undefined" != typeof mynomenu){
					   var allobj = $('.nav').find('li');
					  $.each(allobj, function(i, newobj) {
					  	if($(this).attr('data') == mynomenu){
					  	   $(this).addClass('on').siblings().removeClass('on');
					  	 }
					  	//alert($(this).attr('data'));

					  });
				 	}
					$(".nav ul li").click(function(){
					    	$(this).addClass('on').siblings().removeClass('on');

					});
				});
				function openlink(newlinkes){
					window.location.href=newlinkes;
				}
</script>

</body>
</html>
<?php 
    }
    function content_555d71e0850687_75899849($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include '/data/www/xshc/wmr/lib/Smarty/libs/plugins/function.load_data.php';
        }
        ?>
 
<div class="hc_login_pupopsBox_content_index">
	<div class="hc_login_pupopsBox_content_index_div">
		<ul>
			<li class="hc_login_pupopsBox_content_index_div_li_hover">
				<a class="hc_pchoose hc_login_pupopsBox_content_index_div_li_a_hover sel_fa_dsc" href="javascript:void(0)">全部</a>
			</li>
			 <?php 
        echo smarty_function_load_data(array('assign' => "pinglist", 'table' => "area", 'fileds' => "pin", 'limit' => "100", 'where' => "parent_id = " . (string) $_smarty_tpl->tpl_vars['id']->value . " GROUP BY pin", 'orderby' => " orderid asc"), $_smarty_tpl);
        ?>
 
			 <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['pinglist']->value['list'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
 
							<li><a class="hc_pchoose sel_fa_dsc" href="javascript:void(0)"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['pin'];
            ?>
</a></li>
	    <?php 
        }
        ?>
						 
			
			</ul>
		</div>
</div>
 

<div class="hc_PupopsLists">
	<div class="hc_PupopsLists_div" style="overflow-y: auto;">
		<ul id="item_list_ul_dsc">
			<?php 
        echo smarty_function_load_data(array('assign' => "list", 'table' => "area", 'fileds' => "*", 'limit' => "100", 'where' => "parent_id = " . (string) $_smarty_tpl->tpl_vars['id']->value, 'orderby' => " orderid asc"), $_smarty_tpl);
        ?>
 
			<?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['list']->value['list'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
            ?>
				 <li <?php 
            if ($_smarty_tpl->tpl_vars['myid']->value % 4 == 3) {
                ?>
style="border-right: 0; width:130px;"<?php 
            }
            ?>
> <a <?php 
            if ($_smarty_tpl->tpl_vars['myid']->value % 4 == 3) {
                ?>
style="border-right: 0; width:130px;"<?php 
            }
            ?>
 class="pos_dsc_li" <?php 
            if (!in_array($_smarty_tpl->tpl_vars['items']->value['id'], $_smarty_tpl->tpl_vars['parent_ids']->value)) {
                ?>
 href="<?php 
                echo FUNC_function(array('type' => 'url', 'link' => "/site/setlocationlink/areaid/" . (string) $_smarty_tpl->tpl_vars['items']->value['id']), $_smarty_tpl);
                ?>
" <?php 
            } else {
                ?>
 href="javascript:void(0)"<?php 
            }
            ?>
  dsc_id="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
" fa="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['pin'];
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['name'];
            ?>
</a></li>
		  <?php 
        }
        ?>
 
													 
		</ul>

	</div>

	<ul id="item_list_ul_dsc_data" class="hidden">
							<?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['list']->value['list'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
            ?>
				        <li <?php 
            if ($_smarty_tpl->tpl_vars['myid']->value % 4 == 3) {
                ?>
style="border-right: 0; width:130px;"<?php 
            }
            ?>
> 
				          <a <?php 
            if ($_smarty_tpl->tpl_vars['myid']->value % 4 == 3) {
                ?>
style="border-right: 0; width:130px;"<?php 
            }
            ?>
 class="pos_dsc_li"  <?php 
            if (!in_array($_smarty_tpl->tpl_vars['items']->value['id'], $_smarty_tpl->tpl_vars['parent_ids']->value)) {
                ?>
 href="<?php 
                echo FUNC_function(array('type' => 'url', 'link' => "/site/setlocationlink/areaid/" . (string) $_smarty_tpl->tpl_vars['items']->value['id']), $_smarty_tpl);
                ?>
" <?php 
            } else {
                ?>
 href="javascript:void(0)"<?php 
            }
            ?>
  dsc_id="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
" fa="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['pin'];
            ?>
">
				          	<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['name'];
            ?>

				          </a>
				        </li>
		          <?php 
        }
        ?>
  </ul>
</div> <?php 
    }
    function content_558d0486acef82_57677554($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/function.load_data.php';
        }
        ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>商家管理中心-<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</title>
<meta name="Keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" />
<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/commom.css" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/shangjiaAdmin.css" />

<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquerynew.js" type="text/javascript" language="javascript"></script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/allj.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script>

 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/plugins/iframeTools.js"></script>
   <script> 
  	var mynomenu='baseset';
        $(function(){
              hide_div();
            $("input[name='is_goshop']").click(function(){
               hide_div();
            })
        })
        function hide_div(){
             if ( $("input[name='is_goshop']").attr("checked")=="checked") {
                    $(".in_shop").show();
                }else{
                    $(".in_shop").hide();
                }
        }
  	</script>
 
<script>
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
    $(function(){
      
      $('.conWaiSet').height( $('.conleft').height() );
        $('.header ul li').click(function(){
            $(this).addClass('li_active').siblings().removeClass('li_active');
        });
   
        $('.waimaiset').children().children('img').remove();

        $('.shopSetTop').remove();
        $('.waimaiset li').click(function(){
            $(this).addClass('li_active').siblings().removeClass('li_active');
        });
         

        
    });
</script>
<!--[if lte IE 6]>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('div, ul, img, li, input , a');
        $('#footer').css('display','none');
    </script>
<![endif]-->
</head>
<body>
<?php 
        echo smarty_function_load_data(array('assign' => "shopinfo", 'table' => "shop", 'where' => "`id`=" . (string) $_smarty_tpl->tpl_vars['adminshopid']->value, 'type' => "one"), $_smarty_tpl);
        ?>

<!---<div style="position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: -1;background:url(<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/background.png);"></div>
header start-->
	<div class="header">
    	<ul>
        	<li class="li_active">
               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺管理</a>
            </li>
            <li>
               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a>
            </li>
            <li>
              <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/fastfood"), $_smarty_tpl);
        ?>
">快速下单</a>
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
        ?>
');">
                内容管理
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');">
                会员中心
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">
                退出
            </li>
        </ul>
                 <div class="cl"></div>
</div>
        <!--    <div class="topRight fr">
                <span onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
        ?>
');" class="curbtn">内容管理</span>
                    <span  onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');" class="curbtn">会员中心 </span>
                    <span class="username curbtn" onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">退出</span>

            </div>
            <div class="cl"></div>


            <div class="shangjiaTop">
            	<div class="sjgl">

                </div>

            </div>
        </div>

    </div>-->
    <!---header end
    <script>
	$(function(){
		var clientWidth = document.body.clientWidth;
		/*alert(clientWidth);*/
	/*	if( clientWidth<=1347 ){

			$(".content").css("width","1240px");
			$(".conleft").removeClass("content_left");

		}*/
	});
</script>
 以上是公共的头部部分-->

  <!---content start-->
	<div class="content">
   	 	<!---content left start-->
		<div class="conleft"><!-- content_left -->
        	<div class="nav">
            	<ul>
                	<li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
');" data="baseset"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/dpsz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺设置</a></li>
                    <li onclick="openlink('<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
');" data="basemenu"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/cdgl.png" /></div><a href="<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
">菜单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
');" data="baseorder"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddgl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
');" data="baseordertj"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddtj.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
">订单统计</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
');" data="basearea"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/psqy.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
">配送区域</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
');"  data="basecx"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/xxgz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
">促销规则</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/lygl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
">留言评价</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/wechat.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
">微信管理</a></li>

                </ul>

            </div>
        </div>
       <!---content left end-->





           

   <div class="conWaiSet">

            <div class="shopSetTop">
            	<span>店铺设置</span>
            </div>
            	  <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tempdir']->value . "/shop/usereditmenu.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

             <div class="cl"></div>

                <form id="loginForm" method="post" action="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/savefastfood"), $_smarty_tpl);
        ?>
">
                 <div class="jutiSet">
                     
                      <div class="serxuanze">
                        <div class="xuanze_left">
                            <span>业务类型:</span>
                        </div>
                        <div class="xuanze_right">
                           <input type="checkbox"<?php 
        if (!isset($_smarty_tpl->tpl_vars['shopfast']) || !is_array($_smarty_tpl->tpl_vars['shopfast']->value)) {
            $_smarty_tpl->createLocalArrayVariable('shopfast');
        }
        if ($_smarty_tpl->tpl_vars['shopfast']->value['is_waimai'] = 1) {
            ?>
checked<?php 
        }
        ?>
 value="1" name="is_waimai"> 外卖
                           <input type="checkbox"<?php 
        if ($_smarty_tpl->tpl_vars['shopfast']->value['is_goshop'] == 1) {
            ?>
checked<?php 
        }
        ?>
 value="1" name="is_goshop">点菜订位
                        </div>
                        <div class="cl"></div>
                    </div>
                    
                     <!---->
                     
                      <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['attrlist']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
                       <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['name'];
            ?>
</span>
                        </div>
                        <div class="xuanze_right">
                        	<?php 
            $_smarty_tpl->tpl_vars['itv'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['itv']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['items']->value['det'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['itv']->key => $_smarty_tpl->tpl_vars['itv']->value) {
                $_smarty_tpl->tpl_vars['itv']->_loop = true;
                ?>
                        	      <?php 
                if ($_smarty_tpl->tpl_vars['items']->value['type'] == 'input') {
                    ?>
                        	         <?php 
                    $_smarty_tpl->tpl_vars['shownow'] = new Smarty_variable($_smarty_tpl->tpl_vars['items']->value['id'] . '-0', null, 0);
                    ?>
                        	         <input type="input" value="<?php 
                    echo ($tmp = @$_smarty_tpl->tpl_vars['myattr']->value[$_smarty_tpl->tpl_vars['shownow']->value]) === null || $tmp === '' ? '' : $tmp;
                    ?>
" name="mydata<?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['id'];
                    ?>
" class="text">分钟
                        	      <?php 
                } elseif ($_smarty_tpl->tpl_vars['items']->value['type'] == 'img') {
                    ?>
                        	        <?php 
                    $_smarty_tpl->tpl_vars['shownow'] = new Smarty_variable($_smarty_tpl->tpl_vars['items']->value['id'] . '-', null, 0);
                    ?>
                        	         <?php 
                    $_smarty_tpl->tpl_vars['shownow1'] = new Smarty_variable($_smarty_tpl->tpl_vars['shownow']->value . $_smarty_tpl->tpl_vars['itv']->value['id'], null, 0);
                    ?>
                        	       <input type="checkbox" value="<?php 
                    echo $_smarty_tpl->tpl_vars['itv']->value['id'];
                    ?>
" name="mydata<?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['id'];
                    ?>
[]"  <?php 
                    if (isset($_smarty_tpl->tpl_vars['myattr']->value[$_smarty_tpl->tpl_vars['shownow1']->value])) {
                        ?>
checked<?php 
                    }
                    ?>
 ><img src="<?php 
                    echo $_smarty_tpl->tpl_vars['itv']->value['name'];
                    ?>
" width=30px>
                        	      <?php 
                } elseif ($_smarty_tpl->tpl_vars['items']->value['type'] == 'checkbox') {
                    ?>
                        	         <?php 
                    $_smarty_tpl->tpl_vars['shownow'] = new Smarty_variable($_smarty_tpl->tpl_vars['items']->value['id'] . '-', null, 0);
                    ?>
                        	         <?php 
                    $_smarty_tpl->tpl_vars['shownow1'] = new Smarty_variable($_smarty_tpl->tpl_vars['shownow']->value . $_smarty_tpl->tpl_vars['itv']->value['id'], null, 0);
                    ?>
                        	         <input type="checkbox" value="<?php 
                    echo $_smarty_tpl->tpl_vars['itv']->value['id'];
                    ?>
" name="mydata<?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['id'];
                    ?>
[]" <?php 
                    if (isset($_smarty_tpl->tpl_vars['myattr']->value[$_smarty_tpl->tpl_vars['shownow1']->value])) {
                        ?>
checked<?php 
                    }
                    ?>
 ><?php 
                    echo $_smarty_tpl->tpl_vars['itv']->value['name'];
                    ?>

                        	      <?php 
                } elseif ($_smarty_tpl->tpl_vars['items']->value['type'] == 'radio') {
                    ?>
                        	           <?php 
                    $_smarty_tpl->tpl_vars['shownow'] = new Smarty_variable($_smarty_tpl->tpl_vars['items']->value['id'] . '-', null, 0);
                    ?>
                        	         <?php 
                    $_smarty_tpl->tpl_vars['shownow1'] = new Smarty_variable($_smarty_tpl->tpl_vars['shownow']->value . $_smarty_tpl->tpl_vars['itv']->value['id'], null, 0);
                    ?>
                        	           <input type="radio" value="<?php 
                    echo $_smarty_tpl->tpl_vars['itv']->value['id'];
                    ?>
" name="mydata<?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['id'];
                    ?>
" <?php 
                    if (isset($_smarty_tpl->tpl_vars['myattr']->value[$_smarty_tpl->tpl_vars['shownow1']->value])) {
                        ?>
checked<?php 
                    }
                    ?>
><?php 
                    echo $_smarty_tpl->tpl_vars['itv']->value['name'];
                    ?>

                        	      <?php 
                }
                ?>

                        	<?php 
            }
            ?>
                        	 </div>
                           
                           
                        <div class="cl"></div>
                    </div>
                      <?php 
        }
        ?>

                       <!---->
                   
                      <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>是否支持预定(外卖)</span>
                        </div>
                        <div class="xuanze_right">
                        <input type="radio"<?php 
        if ($_smarty_tpl->tpl_vars['shopfast']->value['is_orderbefore'] == 1) {
            ?>
 checked<?php 
        }
        ?>
 name="is_orderbefore" id="" value="1" />是 <input type="radio" name="is_orderbefore" id="" value="0" <?php 
        if ($_smarty_tpl->tpl_vars['shopfast']->value['is_orderbefore'] == 0) {
            ?>
 checked<?php 
        }
        ?>
/>否 <span id="befortime" <?php 
        if ($_smarty_tpl->tpl_vars['shopfast']->value['is_orderbefore'] == 1) {
            ?>
style="display:inline-block;" <?php 
        } else {
            ?>
style="display:none;"<?php 
        }
        ?>
>,可预定天数<input type="text"  name="befortime" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopfast']->value['befortime'];
        ?>
" class="ttext">0表示只支持当天</span>
                        </div>
                        <div class="cl"></div>
                    </div>
                     <!---->
                      <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>制作时间(外卖)</span>
                        </div>
                        <div class="xuanze_right">
                        	<input type="text" name="maketime" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopfast']->value['maketime'];
        ?>
"  />分钟
                        </div>
                        <div class="cl"></div>
                    </div>

                        <!---->
                         <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>人均消费(外卖)</span>
                        </div>
                        <div class="xuanze_right">
                        	<input type="text" name="personcost" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopfast']->value['personcost'];
        ?>
"  />元
                        </div>
                        <div class="cl"></div>
                    </div>
                       
                    
                          <!---->

                    <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>起送价(外卖)</span>
                        </div>
                        <div class="xuanze_right">
                        	<input type="text"name="limitcost" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopfast']->value['limitcost'];
        ?>
" />元起
                        </div>
                        <div class="cl"></div>
                    </div>


                    <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>起送说明(外卖)</span>
                        </div>
                        <div class="dianpu_right">
                        	<input type="text" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopfast']->value['limitstro'];
        ?>
"  name="limitstro" />

                        </div>
                        <div class="cl"></div>
                    </div>
                        <!---->
                    <div class="serxuanze">
                    	<div class="xuanze_left">
                       <span>配送时间段(外卖)</span>
                        </div>
                        <div class="xuanze_right">
                        	<div>

                        		 <?php 
        $_smarty_tpl->tpl_vars['foo'] = new Smarty_variable(explode("|", $_smarty_tpl->tpl_vars['shopinfo']->value['starttime']), null, 0);
        ?>
                        	 <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['foo']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
            ?>
                        	 <?php 
            if (!empty($_smarty_tpl->tpl_vars['items']->value)) {
                ?>
                        	     <?php 
                $_smarty_tpl->tpl_vars['newtime'] = new Smarty_variable(explode("-", $_smarty_tpl->tpl_vars['items']->value), null, 0);
                ?>

                        	     <?php 
                if (!empty($_smarty_tpl->tpl_vars['newtime']->value[0])) {
                    ?>
                        	         <?php 
                    $_smarty_tpl->tpl_vars['dettime'] = new Smarty_variable(explode(":", $_smarty_tpl->tpl_vars['newtime']->value[0]), null, 0);
                    ?>
                        	         <?php 
                    $_smarty_tpl->createLocalArrayVariable('newtimedata', null, 0);
                    $_smarty_tpl->tpl_vars['newtimedata']->value[] = $_smarty_tpl->tpl_vars['dettime']->value[0];
                    ?>
                        	         <?php 
                    $_smarty_tpl->createLocalArrayVariable('newtimedata', null, 0);
                    $_smarty_tpl->tpl_vars['newtimedata']->value[] = $_smarty_tpl->tpl_vars['dettime']->value[1];
                    ?>
                        	     <?php 
                }
                ?>
                        	     <?php 
                if (!empty($_smarty_tpl->tpl_vars['newtime']->value[1])) {
                    ?>
                        	         <?php 
                    $_smarty_tpl->tpl_vars['dettime'] = new Smarty_variable(explode(":", $_smarty_tpl->tpl_vars['newtime']->value[1]), null, 0);
                    ?>
                        	         <?php 
                    $_smarty_tpl->createLocalArrayVariable('newtimedata', null, 0);
                    $_smarty_tpl->tpl_vars['newtimedata']->value[] = $_smarty_tpl->tpl_vars['dettime']->value[0];
                    ?>
                        	         <?php 
                    $_smarty_tpl->createLocalArrayVariable('newtimedata', null, 0);
                    $_smarty_tpl->tpl_vars['newtimedata']->value[] = $_smarty_tpl->tpl_vars['dettime']->value[1];
                    ?>
                        	     <?php 
                }
                ?>
                        	   <?php 
            }
            ?>
                        	  <?php 
        }
        ?>
					               	<span>上午
					               	<input type="text" name="dotime[]" value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['morning_offer1']->value[0]) === null || $tmp === '' ? '' : $tmp;
        ?>
" /> : <input type="text" name="dotime[]"  value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['morning_offer1']->value[1]) === null || $tmp === '' ? '' : $tmp;
        ?>
"/>
                            ---<input type="text" name="dotime[]" value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['morning_offer2']->value[0]) === null || $tmp === '' ? '' : $tmp;
        ?>
"/> : <input type="text" name="dotime[]"   value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['morning_offer2']->value[1]) === null || $tmp === '' ? '' : $tmp;
        ?>
"  />
                         </span><span>
                            下午<input type="text" name="dotime[]" value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['afternoon_offer1']->value[0]) === null || $tmp === '' ? '' : $tmp;
        ?>
" /> : <input type="text" name="dotime[]"  value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['afternoon_offer1']->value[1]) === null || $tmp === '' ? '' : $tmp;
        ?>
"/>
                            ---<input type="text" name="dotime[]"   value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['afternoon_offer2']->value[0]) === null || $tmp === '' ? '' : $tmp;
        ?>
" /> : <input type="text" name="dotime[]"  value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['afternoon_offer2']->value[1]) === null || $tmp === '' ? '' : $tmp;
        ?>
"/></span>
                          </div>
                        </div>
                        <div class="cl"></div>
                     </div>
                        <!---->
                        <!---->
                         <div class="serxuanze">
                        <div class="xuanze_left">
                            <span>配送时间间隔(外卖)</span>
                        </div>

                        <div class="xuanze_right">
                            <input type="text" name="interval" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopfast']->value['interval'];
        ?>
"  />默认为30分钟
                        </div>
                        <!---->
                        <div class="cl"></div>
                    </div>
                   
                    <div class="serxuanze">
                        <div class="xuanze_left">
                            <span>当天下单截至时间(外卖)</span>
                        </div>

                        <div class="xuanze_right">
                            <input type="text" class="times" name="asoftime" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopfast']->value['asoftime'];
        ?>
"/>格式(09:00)
                        </div>
                        <div class="cl"></div>
                      </div>
                        <!---->
                       
                     <div class="serxuanze" id="pssset">
                    	<div class="xuanze_left">
                        	<span>配送方式(外卖)</span>
                        </div>
                        <div class="xuanze_right">
                        	
                            <label for="pssset1">
                               <?php 
        if ($_smarty_tpl->tpl_vars['opensitesend']->value == 1) {
            ?>
                                <input id="pssset1" type="radio" value="0" name="sendtype" <?php 
            if (empty($_smarty_tpl->tpl_vars['shopfast']->value['sendtype'])) {
                ?>
 checked<?php 
            }
            ?>
>网站配送 <?php 
        }
        ?>
                            </label>
                            <label for="pssset2">
                                <?php 
        if ($_smarty_tpl->tpl_vars['openshopsend']->value == 1) {
            ?>
 <input id="pssset2" type="radio" value="1" name="sendtype" <?php 
            if ($_smarty_tpl->tpl_vars['shopfast']->value['sendtype'] == 1) {
                ?>
 checked<?php 
            }
            ?>
>店铺自行配送  <?php 
        }
        ?>
                            </label>
                        	          
                        </div>
                        <div class="cl"></div>
                    </div>
                        <!---->
                          
                    <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>定位最大半径</span>
                        </div>
                        <div class="xuanze_right">
                        	<input type="text" name="pradius" value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['shopfast']->value['pradius']) === null || $tmp === '' ? 1 : $tmp;
        ?>
"  />千米 用户位置和商家距离小于最大定位半径则显示
                        </div>
                        <div class="cl"></div>
                    </div>
                        <!---->
                        
                            <!---->
                          <div class="serxuanze in_shop">
                    	<div class="xuanze_left">
                        	<span>是否支持预定(堂食)</span>
                        </div>
                        <div class="xuanze_right">
                        <input type="radio"<?php 
        if ($_smarty_tpl->tpl_vars['shopfast']->value['is_orderbefore_inshop'] == 1) {
            ?>
 checked<?php 
        }
        ?>
 name="is_orderbefore_inshop" id="" value="1" />是 <input type="radio" name="is_orderbefore_inshop" id="" value="0" <?php 
        if ($_smarty_tpl->tpl_vars['shopfast']->value['is_orderbefore_inshop'] == 0) {
            ?>
 checked<?php 
        }
        ?>
/>否 <span id="befortime_inshop" <?php 
        if ($_smarty_tpl->tpl_vars['shopfast']->value['is_orderbefore_inshop'] == 1) {
            ?>
style="display:inline-block;" <?php 
        } else {
            ?>
style="display:none;"<?php 
        }
        ?>
>,可预定天数<input type="text"  name="befortime_inshop" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopfast']->value['befortime_inshop'];
        ?>
" class="ttext">0表示只支持当天</span>
                        </div>
                        <div class="cl"></div>
                    </div>
                          <!---->
                     <!---->
                      <div class="serxuanze in_shop">
                        <div class="xuanze_left">
                            <span>桌位最大座位数:</span>
                        </div>
                        <div class="xuanze_right">
                           <input type="text" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopfast']->value['personcount'];
        ?>
" name="personcount"> 人

                        </div>
                        <div class="cl"></div>
                    </div>
                     <!---->
        			 
                    <div class="serxuanze in_shop">
                    	<div class="xuanze_left">
                       <span>到店消费时间段</span>
                        </div>
                        <div class="xuanze_right">
                        	<div>

                        		 <?php 
        $_smarty_tpl->tpl_vars['foo'] = new Smarty_variable(explode("|", $_smarty_tpl->tpl_vars['shopinfo']->value['starttime']), null, 0);
        ?>
                        	 <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['foo']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
            ?>
                        	 <?php 
            if (!empty($_smarty_tpl->tpl_vars['items']->value)) {
                ?>
                        	     <?php 
                $_smarty_tpl->tpl_vars['newtime'] = new Smarty_variable(explode("-", $_smarty_tpl->tpl_vars['items']->value), null, 0);
                ?>

                        	     <?php 
                if (!empty($_smarty_tpl->tpl_vars['newtime']->value[0])) {
                    ?>
                        	         <?php 
                    $_smarty_tpl->tpl_vars['dettime'] = new Smarty_variable(explode(":", $_smarty_tpl->tpl_vars['newtime']->value[0]), null, 0);
                    ?>
                        	         <?php 
                    $_smarty_tpl->createLocalArrayVariable('newtimedata', null, 0);
                    $_smarty_tpl->tpl_vars['newtimedata']->value[] = $_smarty_tpl->tpl_vars['dettime']->value[0];
                    ?>
                        	         <?php 
                    $_smarty_tpl->createLocalArrayVariable('newtimedata', null, 0);
                    $_smarty_tpl->tpl_vars['newtimedata']->value[] = $_smarty_tpl->tpl_vars['dettime']->value[1];
                    ?>
                        	     <?php 
                }
                ?>
                        	     <?php 
                if (!empty($_smarty_tpl->tpl_vars['newtime']->value[1])) {
                    ?>
                        	         <?php 
                    $_smarty_tpl->tpl_vars['dettime'] = new Smarty_variable(explode(":", $_smarty_tpl->tpl_vars['newtime']->value[1]), null, 0);
                    ?>
                        	         <?php 
                    $_smarty_tpl->createLocalArrayVariable('newtimedata', null, 0);
                    $_smarty_tpl->tpl_vars['newtimedata']->value[] = $_smarty_tpl->tpl_vars['dettime']->value[0];
                    ?>
                        	         <?php 
                    $_smarty_tpl->createLocalArrayVariable('newtimedata', null, 0);
                    $_smarty_tpl->tpl_vars['newtimedata']->value[] = $_smarty_tpl->tpl_vars['dettime']->value[1];
                    ?>
                        	     <?php 
                }
                ?>
                        	   <?php 
            }
            ?>
                        	  <?php 
        }
        ?>
					              <span>上午
					               	<input type="text" name="dotime2[]" value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['morning_inshop1']->value[0]) === null || $tmp === '' ? '' : $tmp;
        ?>
" /> : <input type="text" name="dotime2[]"  value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['morning_inshop1']->value[1]) === null || $tmp === '' ? '' : $tmp;
        ?>
"/>
                            ---<input type="text" name="dotime2[]" value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['morning_inshop2']->value[0]) === null || $tmp === '' ? '' : $tmp;
        ?>
"/> : <input type="text" name="dotime2[]"   value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['morning_inshop2']->value[1]) === null || $tmp === '' ? '' : $tmp;
        ?>
"  />
                         </span><span>
                            下午<input type="text" name="dotime2[]" value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['afternoon_inshop1']->value[0]) === null || $tmp === '' ? '' : $tmp;
        ?>
" /> : <input type="text" name="dotime2[]"  value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['afternoon_inshop1']->value[1]) === null || $tmp === '' ? '' : $tmp;
        ?>
"/>
                            ---<input type="text" name="dotime2[]"   value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['afternoon_inshop2']->value[0]) === null || $tmp === '' ? '' : $tmp;
        ?>
" /> : <input type="text" name="dotime2[]"  value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['afternoon_inshop2']->value[1]) === null || $tmp === '' ? '' : $tmp;
        ?>
"/></span>
                          </div>
                        </div>
                        <div class="cl"></div>
                     </div>
                        <!---->
                    <div class="serxuanze in_shop">
                        <div class="xuanze_left">
                            <span>到店消费间隔</span>
                        </div>

                        <div class="xuanze_right">
                            <input type="text" name="interval_inshop" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopfast']->value['interval_inshop'];
        ?>
"  />默认30分钟
                        </div>
                        <div class="cl"></div>
                      </div>
                       <div class="settijiao">


                        	<input class="xuanze_right" type="submit" name=""  value="点击提交" />

                        <div class="cl"></div>
                    </div>


       			 </div>
              </form>


        </div>
        <div class="cl"></div>


</div>

<div class="cl"></div>
<script type="text/javascript">
	         <?php 
        $_smarty_tpl->tpl_vars['shoppsset'] = new Smarty_variable($_smarty_tpl->tpl_vars['defaultset']->value, null, 0);
        ?>
           <?php 
        if (!empty($_smarty_tpl->tpl_vars['shopfast']->value['sendset'])) {
            ?>
	 	           <?php 
            $_smarty_tpl->tpl_vars['shoppsset'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['shopfast']->value['sendset']), null, 0);
            ?>
                           
	 	       <?php 
        }
        ?>
 $(function(){



 	 var myset=  $("input[name='sendtype']:checked").val();
 	 if(myset ==  1){
 	 	    showhtml();
            $('#pstype').css({
                'height':'70px'
            });

            $('#pstype').children().eq(0).css({
                'line-height':'70px'
            });
            $('#pstype').children().eq(0).children('span').css({
                'line-height':'75px',
                'font-size':'16px'
            });
            
            $('#pstype').children().eq(1).css({
                'padding-left':'20px'
            });
            $('#pstype').children().css({
                'height':'100%',
                'line-height':'30px',
                'text-align':'left'
            });
           $('<br/>').insertBefore( $('#pstype').children('.xuanze_right').children("input").eq(3) );
            //alert( $('#pstype').children('.xuanze_right').children("input[value='3']").next() );
 	 }

 });
 function showhtml(){
 	 <?php 
        $_smarty_tpl->tpl_vars['pssetinfo'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['psset']->value), null, 0);
        ?>
;
 	 var locationtype = '<?php 
        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['locationtype'];
        ?>
';
 	 if(locationtype == 1){
 	 	var otherhtml = '';
 	 	  <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_smarty_tpl->tpl_vars['mykey'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['pestypearr']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            $_smarty_tpl->tpl_vars['mykey']->value = $_smarty_tpl->tpl_vars['items']->key;
            ?>
 	 	  <?php 
            if ($_smarty_tpl->tpl_vars['mykey']->value != 2) {
                ?>
 	 	     otherhtml += '<input type="radio" value="<?php 
                echo $_smarty_tpl->tpl_vars['mykey']->value;
                ?>
"  <?php 
                if ($_smarty_tpl->tpl_vars['shoppsset']->value['pstype'] == $_smarty_tpl->tpl_vars['mykey']->value) {
                    ?>
checked<?php 
                }
                ?>
 name="pstype"> <?php 
                echo $_smarty_tpl->tpl_vars['items']->value;
                ?>
';
 	 	   <?php 
            }
            ?>
 	 	  <?php 
        }
        ?>
 	 	  //<div class="serxuanze" id="pstype"><div class="xuanze_left"> <span>计费方式</span> </div> <div class="xuanze_right">  </div> <div class="cl"></div>  </div>
 	 	  $('#pssset').after('<div class="serxuanze" id="pstype"><div class="xuanze_left"> <span>计费方式</span> </div> <div class="xuanze_right"> '+otherhtml+' </div> <div class="cl"></div>  </div>');
 	 }else{
 	 	 var otherhtml = '';
 	 	 <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_smarty_tpl->tpl_vars['mykey'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['pestypearr']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            $_smarty_tpl->tpl_vars['mykey']->value = $_smarty_tpl->tpl_vars['items']->key;
            ?>
 	 	  <?php 
            if ($_smarty_tpl->tpl_vars['mykey']->value != 4) {
                ?>
   
 	 	     otherhtml += '<input type="radio" value="<?php 
                echo $_smarty_tpl->tpl_vars['mykey']->value;
                ?>
" <?php 
                if ($_smarty_tpl->tpl_vars['shoppsset']->value['pstype'] == $_smarty_tpl->tpl_vars['mykey']->value) {
                    ?>
checked<?php 
                }
                ?>
  name="pstype"> <?php 
                echo $_smarty_tpl->tpl_vars['items']->value;
                ?>
';
 	 	   <?php 
            }
            ?>
 
 	 	  <?php 
        }
        ?>
 
 	 	  $('#pssset').after('<div class="serxuanze" id="pstype"><div class="xuanze_left"> <span>计费方式(外卖)</span> </div> <div class="xuanze_right"> '+otherhtml+' </div> <div class="cl"></div>  </div>');
 	 }
 	 $('input:radio[name="pstype"]:checked').trigger("click");
 }
 $("input[name='pstype']").live("click", function() {
 	   $('.feetr').remove();
  	 var myset=  $("input[name='pstype']:checked").val();
  	 var otherhtml = '';
 	   if(myset ==  1){//店铺统一配送费






 	       otherhtml ='<div class="serxuanze feetr active"><div class="xuanze_left"><span>配送费</span></div><div class="xuanze_right" style="width:400px;"> <input type="text" name="psvalue1" value="<?php 
        echo $_smarty_tpl->tpl_vars['shoppsset']->value['psvalue1'];
        ?>
"  />元  </div> <div class="cl"></div>  </div>';

 	   }else if(myset == 2){//店铺区域设置配送费

 	   }else if(myset == 3){//不计算配送费
 	   }
 	   else if(myset == 4){//百度地图测算配送费
 	   	otherhtml ='';
 	   }else if(myset == 5){
 	    otherhtml ='<div class="serxuanze feetr active"><div class="xuanze_left"><span>基础配送费</span></div><div class="xuanze_right" style="width:400px;"> <input type="text" name="psvalue1" value="<?php 
        echo $_smarty_tpl->tpl_vars['shoppsset']->value['psvalue1'];
        ?>
"  />元  </div> <div class="cl"></div>  </div>';
 	    otherhtml +=' <div class="serxuanze feetr active"><div class="xuanze_left"><span>自增费</span></div><div class="xuanze_right" style="width:400px;"> <input type="text" name="psvalue2" value="<?php 
        echo $_smarty_tpl->tpl_vars['shoppsset']->value['psvalue2'];
        ?>
"  />元  </div> <div class="cl"></div>  </div>';
 	   }else if (myset == 6) {
              otherhtml ='<div class="serxuanze feetr active"><div class="xuanze_left"><span>未满</span></div><div class="xuanze_right" style="width:400px;"> <input type="text" name="psvalue1" value="<?php 
        echo $_smarty_tpl->tpl_vars['shoppsset']->value['psvalue1'];
        ?>
"  />元  </div> <div class="cl"></div>  </div>';
 	    otherhtml +=' <div class="serxuanze feetr active"><div class="xuanze_left"><span>需付</span></div><div class="xuanze_right" style="width:400px;"> <input type="text" name="psvalue2" value="<?php 
        echo $_smarty_tpl->tpl_vars['shoppsset']->value['psvalue2'];
        ?>
"  />元  </div> <div class="cl"></div>  </div>';
        
        }
 	   $('#pstype').after(otherhtml);
       $('.feetr').css({
        'margin-left':$('#pstype').children().eq(0).width()+'px'
       });
       $('.feetr .xuanze_right').width( $('#pstype').children().eq(1).width() - $('.feetr').children().eq(0).width() );
  });

  $("input[name='sendtype']").live("click", function() {
  	 var myset=  $("input[name='sendtype']:checked").val();
 	   if(myset ==  1){
 	 	    showhtml();

 	  }else{
 	    $('.feetr').remove();
 	    $('#pstype').remove();
 	  }
  });
	function openfast(){
	  if(confirm('确定开启外卖操作吗?')){
	  	$("input[name='openshopfast']").attr("checked",false);
	  	myajax('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/startshop/datatype/json"), $_smarty_tpl);
        ?>
',{opentype:'shopfast'});
	   }else{
	   	$("input[name='openshopfast']").attr("checked",false);
	  }
	}
	function closefast(){
		if(confirm('确定关闭外卖操作吗?\n 对应商品数据将会清空')){
	  	$("input[name='openshopfast']").attr("checked",true);
	  	myajax('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/closeshop/datatype/json"), $_smarty_tpl);
        ?>
',{opentype:'shopfast'})
	   }else{
	   	$("input[name='openshopfast']").attr("checked",true);
	  }
	}
	$("input[name='is_orderbefore']").click(function(){
		  var checkid =  $("input[name='is_orderbefore']:checked").val();
		 //befortime
		 if(checkid == 1){
		 	$('#befortime').show();
		 }else{
		 	 $('#befortime').hide();
		 	 $("input[name='befortime']").val('0');
		 }

	});
        $("input[name='is_orderbefore_inshop']").click(function(){
		  var checkid =  $("input[name='is_orderbefore_inshop']:checked").val();
		 //befortime
		 if(checkid == 1){
		 	$('#befortime_inshop').show();
		 }else{
		 	 $('#befortime_inshop').hide();
		 	 $("input[name='befortime_inshop']").val('0');
		 }

	});
	$('.hc_login_btn_div').click(function(){
		$('#loginForm').submit();
	})
</script>
 







       </div>




<!--以下是公共的底部部分-->

    <div class="footer">
    	<div class="foot1">
        <center>
        	<div class="db">
        	   <?php 
        if (!empty($_smarty_tpl->tpl_vars['toplink']->value)) {
            ?>
	 	      <?php 
            $_smarty_tpl->tpl_vars['toplink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['toplink']->value), null, 0);
            ?>
		  	  <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['toplink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
			         <a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> |
			    <?php 
            }
            ?>
			<?php 
        }
        ?>

            </div></center>
            <div class="cl"></div>
        </div>
        <div class="foot2">
        	<p>@2008-2012 <?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['beian']->value;
        ?>
 <?php 
        echo stripslashes($_smarty_tpl->tpl_vars['footerdata']->value);
        ?>
</p>
        </div>
    </div>

 <script>

				$(function(){

			  	if("undefined" != typeof mynomenu){
					   var allobj = $('.nav').find('li');
					  $.each(allobj, function(i, newobj) {
					  	if($(this).attr('data') == mynomenu){
					  	   $(this).addClass('on').siblings().removeClass('on');
					  	 }
					  	//alert($(this).attr('data'));

					  });
				 	}
					$(".nav ul li").click(function(){
					    	$(this).addClass('on').siblings().removeClass('on');

					});
				});
				function openlink(newlinkes){
					window.location.href=newlinkes;
				}
</script>

</body>
</html>
<?php 
    }
    function content_559240b557eec9_62185988($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/function.load_data.php';
        }
        ?>
<!DOCTYPE html>
<html> 
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>用户注册-<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</title>
<meta name="Keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" />
<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" />
<?php 
        echo stripslashes($_smarty_tpl->tpl_vars['metadata']->value);
        ?>

<link rel="shortcut icon" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/images/favicon.ico" /> 
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/common.css"> 
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/server.css"> 
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/memberlogin.css">
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquerynew.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/allj.js" type="text/javascript" language="javascript"></script>
 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script> 
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/template.min.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquery.lazyload.min.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/regestercode.js"></script>
 <script>
     var regestercode=0;
 	$(function() { 
  $("img").lazyload({ 
  effect : "fadeIn" 
  }); 
 //Header二维码显示与隐藏  Begin
 $('.views_main_header ul > li:nth-of-type(5) span:nth-child(1)').on({
 	'mouseover':function(){
 	$('.views_main_header ul > li:nth-of-type(5) span:nth-child(3)').fadeIn();
 },
 'mouseout':function(){
 	$('.views_main_header ul > li:nth-of-type(5) span:nth-child(3)').fadeOut();
 }
});
 //Header二维码显示与隐藏  End  


//Header点击添加高亮  Begin
$('.views_main_header ul > li:nth-of-type(4) ol li:nth-of-type(1)').addClass('active');

 $('.views_main_header ul > li:nth-of-type(2) span').click(function(){
    $(this).parent().addClass('active');
    $(this).parent().siblings().children().children().removeClass('active');
 });

 $('.views_main_header ul > li:nth-of-type(4) ol li').click(function(){
    $(this).addClass('active').siblings().removeClass('active');
    $(this).parent().parent().siblings().removeClass('active');
    $('#cover').fadeOut();
    $('.views_main_login_sign_wrap').removeClass('views_main_login_sign_one_transition');
 });
//Header点击添加高亮  End

//用户登录后,显示当前用户的信息列表 Begin
 if($('.person_content').children('span').eq(0).text().length != 0){
    $('.person_content').on({  
    	'mouseover':function(){
    		$(this).children('span').eq(1).fadeIn();
        $('.person_name').text($(this).children('span').eq(0).text());
          $(this).children('span').eq(2).fadeIn('slow');
    	},
    	'mouseleave':function(){
    		$(this).children('span').eq(1).fadeOut();
        $(this).children('span').eq(2).fadeOut('fast');
    	}
    });
  }
//用户登录后,显示当前用户的信息列表 End

//用户未登录,显示登录注册也面 Begin
  else{
      var uid = <?php 
        echo $_smarty_tpl->tpl_vars['member']->value['uid'];
        ?>

      if (uid > 0) {
            $('.person_content').children('span').eq(0).text('个人中心');
            $(".person_content").on("click",function(){
         window.location.href=siteurl+'/index.php?controller=member&action=base';  
            })
      }else{
          
           $('.person_content').children('span').eq(0).text('登录 注册');
        $('.person_content').on( 
      'click',function(){
        $('.views_main_login_sign_wrap').addClass('views_main_login_sign_one_transition');
        $('.views_main_login_sign_one').show();
        $('.views_main_login_sign_two').hide();
        $('.views_main_login_sign_three').hide();
        $('#cover').fadeIn();
      }
    );
    
      }
    
  }
//用户未登录,显示登录注册也面 End

//用户未登录,登录注册页面切换 Begin
$('.views_main_header ul > li:nth-child(2) ol li:nth-child(1)').click(function() {
      var value=$("#mobile_check").val();
      var order_check=$("#order_check").val();
      if(value==1||order_check!=="no"){
         location.href= "http://shop.xiaoshuhaochi.com/member/index";
      }else{
        $('.views_main_login_sign_one').fadeIn();
      $('#cover').fadeIn();
      }
    });
    $('#sign_now,.sign_now').click(function() {
        $('.views_main_login_sign_two').fadeIn();
        $('.views_main_login_sign_one').fadeOut();
        $('.views_main_login_sign_three').fadeOut();
    });
    $("#fogot_password").click(function(){
      
         $('.views_main_login_sign_one').fadeOut();
         $(".views_main_login_sign_three").fadeIn();
    })
    $('#login_now').click(function() {
        $('.views_main_login_sign_one').fadeIn();
        $('.views_main_login_sign_two').fadeOut();
    });
    $('#fogetpass').click(function() {
        $('.views_main_login_sign_three').fadeIn();
        $('.views_main_login_sign_one').fadeOut();
    });
//用户未登录,登录注册页面切换 End


//点击❌退出当前页面  Begin
    $('.delete').click(function() {
        $('.views_main_detail').fadeOut();
        $('#cover').fadeOut();
        $('.views_main_login_sign_wrap').removeClass('views_main_login_sign_one_transition');
        $('.general_notice').fadeOut();
    });
//点击❌退出当前页面  End



//点击发送验证码倒计时 Begin
var count = 60;
var timer;
var reg = /^[0-9]*$/;
$('#send_code').click(function(){
  if($('#phone').val().length == 11 && reg.test($('#phone').val()) ){
    timer = setInterval(countDownaaaa,1000); 
  }
});
//验证码
function countDownaaaa(){
  count --;
  if(count == 0 ){
    $('#send_code').css({
      'background':'#ff6000',
      'color':'#fff'
    }); 
   $('#send_code').val('获取验证码').removeAttr('disabled');
    clearInterval(timer);
    count = 60;
    
  }
  else{
    $('#send_code').css({
      'background':'#ccc',
      'color':'#999'
    });
  $('#send_code').attr('disabled',true);
  $('#send_code').val('('+count+')'+'重新发送');
  }
};
//点击发送验证码倒计时 End


}); 

//登录
 function login_btn () {
         var url = siteurl+'/index.php?controller=member&action=login';
         var uname = $("#login_cell").val();
         var pwd = $("#login_password").val();
         var info = {'uname':uname,'pwd':pwd,'logintype':'html5'}; 
         var  url = siteurl+'/index.php?controller=member&action=login&datatype=json&random=@random@' 
        $.ajax({ 
            url: url.replace('@random@', 1+Math.round(Math.random()*1000)), 
            dataType: "json", 
            data:info, 
            success:function(content) {  
            	$('#loading').toggle(); 
            	if(content.msg ==  false){
                        alert("登陆成功");
            		 window.location.href= siteurl+'/index.php?controller=site&action=index&shoid='+shopid;
            	}else{ 
            	   alert(content.msg);
                   $("#cover").hide();
              }
            	
            }, 
            error:function(){ 
            	$('#loading').toggle();

            } 
         });  
 }
  //注册
  function savepwd(){  

		   $('#loading').show();
      var info = {'tname':$('.mobile_email_reg').val(),'phone':$('.mobile_email_reg').val(),'pwd':$('.password_reg').val(),'pwd2':$('.repassword_reg').val(),'checklogin':'******','phoneyan':$('.code').val(),'regestercode':'1'};
               
		  var url = '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/saveregester/random/@random@/datatype/json"), $_smarty_tpl);
        ?>
'; 
		  var backdata = ajaxback(url,info); 
		  if(backdata.flag == false){ 
		      window.location.href = siteurl+'/index.php?controller=site&action=member';
		  }else{
		  	$('#loading').hide();
		     alert(backdata.content);
		  }
		  
	}
        //忘记密码
        function changepwd(){  
            
	
         var phone = $("#mobile_email").val();
         var code = $("#code").val();
         var newpwd = $("#password").val();
         var newpwd2 = $("#repassword").val();
         var info = {'phone':phone,'code':code,'newpwd':newpwd,'newpwd2':newpwd2}
  	 	  var  url = siteurl+'/index.php?controller=member&action=saveuser&controlname=repwd&datatype=json&random=@random@' 
  	 	   $.ajax({ 
            url: url.replace('@random@', 1+Math.round(Math.random()*1000)), 
            dataType: "json", 
            data:info, 
            success:function(content) {  
            alert("修改成功");
             window.location.href= siteurl+'/index.php?controller=site&action=index';
            	if(content.msg ==  false){
            		 window.location.href= siteurl+'/index.php?controller=wxsite&action=member&shoid='+shopid;
            	}else{ 
            	   alert(content.msg);
                  // $("#loading").hide();
              }
            	
            }, 
            error:function(){ 
            	//$('#loading').toggle();

            } 
         });
		  
	}
</script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/regestercode.js" type="text/javascript" language="javascript"></script> 

 <script> 
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
	var is_static ="<?php 
        echo $_smarty_tpl->tpl_vars['is_static']->value;
        ?>
";
	var controllername= '<?php 
        echo $_smarty_tpl->tpl_vars['controlname']->value;
        ?>
';
</script>

<!--[if lte IE 6]>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('div, ul, img, li, input , a'); 
    </script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/ie6.js" type="text/javascript"></script>
<![endif]--> 
</head> 
<body> 
<div id="toTop" style="left: 1212.5px; display: none;"></div>



<!--
<div class="top">
	 <div class="top_a">
	 	  <div class="top_a_show">
	 	  	<div class="top_a_show_l">
	 	  		  <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/index"), $_smarty_tpl);
        ?>
" class=""><span class="topmcbck"></span> <div style="padding-left:25px;">欢迎光临<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</div></a>
	 	  	</div>
	 	  	<div class="top_a_show_r">
	 	  		<?php 
        if (empty($_smarty_tpl->tpl_vars['member']->value['uid'])) {
            ?>
	 	  		 <div class="top_a_show_span"><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/regester"), $_smarty_tpl);
            ?>
">注册</a></div>
	 	  		 <div class="top_a_show_span">|</div>
	 	  		 <div class="top_a_show_span"><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/login"), $_smarty_tpl);
            ?>
">登陆</a></div>
	 	  		 <div class="top_a_show_span">|</div>
	 	  		 	 <a href="#">  <div class="sina"></div> </a>
	 	  		 <a href="#">  <div class="qq"></div> </a>
	 	  		 <?php 
        } else {
            ?>
	 	  		  <div class="top_a_show_span"><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
            ?>
">退出登陆</a></div>
	 	  		 <div class="top_a_show_span">|</div>
	 	  		  <div class="top_a_show_span"><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/order/usersorder"), $_smarty_tpl);
            ?>
">个人中心</a></div>
	 	  		 <div class="top_a_show_span">|</div>
	 	  		  <div class="top_a_show_span"><?php 
            echo $_smarty_tpl->tpl_vars['member']->value['username'];
            ?>
</div> 
	 	  		 <?php 
        }
        ?>
	 	  	
	 	  		
	 	  		 
	 	  		 
	 	  	</div>
	 	  </div>
  </div>
	 <div class="top1">
	 	 <div class="top1_show">
	 	 	
	 	  <div class="top1_logo"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['sitelogo']->value;
        ?>
"></a></div>
	 	  <div class="top1_menu">
	 	     <ul>
	 	     	<?php 
        if (!empty($_smarty_tpl->tpl_vars['footlink']->value)) {
            ?>
	 	     	<?php 
            $_smarty_tpl->tpl_vars['footlink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['footlink']->value), null, 0);
            ?>
	 	     		<?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['footlink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
 
			          <li class="active_li" data="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> </li>
			      <?php 
            }
            ?>
	 	     <?php 
        }
        ?>
	 	     	</ul>	
	 	  	
	 	  </div>
	 	   
	 	   
	 	   
	 	 </div>
	 </div>
</div> 
  -->
<div class="mmbg" style="background:url(../upload/images/regesterbk.jpg) no-repeat;"></div> 

 
 <div class="new_regester">
   <h3 class="regester_top">用户注册</h3>
   <div class="regester_middle">
   	  <div class="rm_li">
   	     <ul>
   	     	  <li>
                 <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/regester"), $_smarty_tpl);
        ?>
">手机号注册</a> 	
              </li>
   	     	  <li  class="active">
                 <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/yregester"), $_smarty_tpl);
        ?>
">邮箱注册</a> 	
              </li> 
              <li class="rm_rt">
                已有帐号?<a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/login"), $_smarty_tpl);
        ?>
">马上登陆</a>|<a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/findpwd"), $_smarty_tpl);
        ?>
">找回密码</a>
               </li>
   	     	</ul> 	
   	  </div>
   	 <!-- <div class="rm_rt">已有帐号?<a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/login"), $_smarty_tpl);
        ?>
">马上登陆</a>|<a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/findpwd"), $_smarty_tpl);
        ?>
">找回密码</a></div> -->
   </div>
   <div class="regester_bottomss">
   	  <div class="rbm_l_p">
   	  	<form id="regForm" method="post" action="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/saveregester/datatype/json"), $_smarty_tpl);
        ?>
">
         <ul>
   	  	   <li>
   	  	   	<!--  <label><font color=red>*</font>邮箱:</label>  -->
   	  	   	  <input type="text" name="email" id="email" placeholder="请输入邮箱账号">
   	  	   	  <span id="email_tips"></span>
   	  	   </li>
   	  	   
   	  	   <!--   <li  id="showgetcode">
   	  	 	  <label>&nbsp;</label> 
   	  	   	  <input type="button" value="发送验证码" name="inputgetcheck" onclick="clickyanzheng();" class="inputgetcheck" id="dosendbtn" time="0"> 
   	  	   </li> -->
   	  	   
   	  	    <li id="showinputcode">
   	  	   <!--	  <label><font color=red>*</font>验证码:</label>  -->
   	  	   	  <input type="text" name="phoneyan" id="phoneyan"placeholder="请输入邮箱验证码">
                 <input type="button" value="发送验证码" name="inputgetcheck" onclick="clickyanzheng();" class="inputgetcheck" id="dosendbtn" time="0"> 
   	  	   	  <span id="phoneyan_tips"></span>
   	  	   </li>
   	  	   
   	  	   
   	  	<!--  <div class="mem_regester_inputdiv">
   	  	   	  <label><font color=red>*</font>帐号:</label>  
   	  	   	  <input type="text" name="tname" id="tname" style="width:200px;">
   	  	   	  <span id="tname_tips"></span>
   	  	   </div>  -->
   	  	   
   	  	    <li>
   	  	  <!-- 	  <label><font color=red>*</font>登陆密码:</label>  -->
   	  	   	  <input type="password" name="pwd" id="pwd" placeholder="请输入密码">
   	  	   	  <span id="pwd_tips"></span>
   	  	   </li>
   	  	   
   	  	   
   	  	    <li>
   	  	  <!-- 	  <label><font color=red>*</font>确认密码:</label>  -->
   	  	   	  <input type="password" name="pwd2" id="pwd2" placeholder="请再次输入密码">
   	  	   	  <span id="pwd2_tips"></span>
   	  	   </li>
   	  	   <?php 
        if ($_smarty_tpl->tpl_vars['allowedcode']->value == 1) {
            ?>
   	  	    <li id="imgcode">
   	  	   	  <label><font color=red>*</font>验证码:</label>
   	  	   	  <input type="text"  name="Captcha" id="Captcha" style="width:100px;"><img src="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/site/getCaptcha"), $_smarty_tpl);
            ?>
" id="captchaimg" style="height:30px;"><a href="javascript:freshcode();" >刷新图片</a>
   	  	   	  <span id="Captcha_tips"></span>
   	  	   </li> 
   	  	   <?php 
        }
        ?>
   	  	   <li>
   	  	  <!-- 	  <label>&nbsp;</label>  -->
   	  	      	<input name="reg[agree]" type="checkbox" checked="" disabled> 我接受<a target="_blank" href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/single/show/xieyi"), $_smarty_tpl);
        ?>
"><?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
服务条款和协议</a>
   	  	   </li>
   	  	   
   	  	    <li>
   	  	<!--   	  <label>&nbsp;</label>  -->
   	  	      <div class="button_new_regester login-button login-button">同意协议并注册</div>
   	  	   </li>
            </ul>
   	  	</form>
   	  </div> 
   </div>
    <ul class="right_btm_re">
   	   	
   	   	  <li class="apilogin">  
   	   	  	  <?php 
        echo smarty_function_load_data(array('assign' => "apiloginlist", 'table' => "otherlogin", 'fileds' => "*", 'limit' => "10"), $_smarty_tpl);
        ?>
 
					    <?php 
        if (count($_smarty_tpl->tpl_vars['apiloginlist']->value['list']) > 0) {
            ?>
				 
						   <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['apiloginlist']->value['list'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                ?>
                      <a href="<?php 
                echo FUNC_function(array('type' => 'url', 'link' => "/member/linktest/logintype/" . (string) $_smarty_tpl->tpl_vars['items']->value['loginname']), $_smarty_tpl);
                ?>
" target="_blank">
                         <img src="/upload/images/<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['loginname'];
                ?>
.jpg">
                      </a> 
						   <?php 
            }
            ?>
				 
					    <?php 
        }
        ?>
   	   	  	
   	     	</li>
   	     	<li class="apibottom">
   	     		已有帐户<a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/login"), $_smarty_tpl);
        ?>
">立即登陆</a>
   	     	</li>
   	  </ul>
  
 </div>
 

 
 
 
 	 
 	<script>
   	     		 $('.rm_li li').hover(function(){
   	     		 	$(this).addClass('hover').siblings().removeClass('hover');
 	           });
   	     		</script>
<script type="text/javascript">
var regestercode = '<?php 
        echo $_smarty_tpl->tpl_vars['regestercode']->value;
        ?>
';
$('.login-button').click(function(){ 
	subform('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
',$('#regForm'));
})
$(".hc_login_input").change(function(j){
		var v=$(this).val();
		var p=$(this).attr("name"); 
		switch(p){
		case "email":
			var patrn= /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
			if(!patrn.exec(v)){ 
				 alert('邮箱格式错误'); 
			}else{ 
				$.ajax({
				type: "POST",
				url: "<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/checkemail/datatype/json"), $_smarty_tpl);
        ?>
",
				dataType: "json",
				data: "uname=" + v,
				success: function(msg){     
					if(msg.error ==true){ 
						$('[name="email"]').val('');
						alert(msg.msg);
					 } 
					}
				});			
			}
		break;
		case "tname":
		 	var patrn=/[u4e00-u9fa5]/;  
			if(v == '' ||v == null){
			  alert('用户名不能为空'); 
			}else{
				$.ajax({
				type: "POST",
				url: "<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/checkname/datatype/json"), $_smarty_tpl);
        ?>
",
				dataType: "json",
				data: "uname=" + v,
				success: function(msg){ 
					if(msg.error==true){ 
						$('[name="tname"]').val('');
						alert(msg.msg);
					  //alert('此用户名已注册过'); 
					 }
					}
				});	
			}
		break; 
		case "pwd":
			var patrn=/(.){4,16}/;  
			if(!patrn.exec(v)){
				 alert('密码是4-16位的字母、数字,区分大小写');  
			 } 
		break;
		}
	});

</script> 
 

<div id="footer" style="display:none;">
	
<div class="hc_btm_div">
		<div class="hc_btm_contact">
		   <?php 
        if (!empty($_smarty_tpl->tpl_vars['toplink']->value)) {
            ?>
	 	      <?php 
            $_smarty_tpl->tpl_vars['toplink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['toplink']->value), null, 0);
            ?>
		  	  <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['toplink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
 
			         <a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> | 
			    <?php 
            }
            ?>
			<?php 
        }
        ?>

		</div>
		<div class="hc_btm_info">@2008-2012 <?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['beian']->value;
        echo stripslashes($_smarty_tpl->tpl_vars['footerdata']->value);
        ?>
</div>
	</div>	
	
	
 </div> 
<div style="position: absolute; top: -1970px; left: -1970px;"> 
</div>  
</body>
</html><?php 
    }
    function content_55937da28b90d8_95785113($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/function.load_data.php';
        }
        if (!is_callable('smarty_modifier_date_format')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/modifier.date_format.php';
        }
        ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>商家管理中心-<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</title>
<meta name="Keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" />
<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/commom.css" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/shangjiaAdmin.css" />

<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquerynew.js" type="text/javascript" language="javascript"></script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/allj.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script>

 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/plugins/iframeTools.js"></script>
 <script>
  	  var mynomenu='basecx';
  </script> 

<script>
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
    $(function(){
      
      $('.conWaiSet').height( $('.conleft').height() );
        $('.header ul li').click(function(){
            $(this).addClass('li_active').siblings().removeClass('li_active');
        });
   
        $('.waimaiset').children().children('img').remove();

        $('.shopSetTop').remove();
        $('.waimaiset li').click(function(){
            $(this).addClass('li_active').siblings().removeClass('li_active');
        });
         

        
    });
</script>
<!--[if lte IE 6]>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('div, ul, img, li, input , a');
        $('#footer').css('display','none');
    </script>
<![endif]-->
</head>
<body>
<?php 
        echo smarty_function_load_data(array('assign' => "shopinfo", 'table' => "shop", 'where' => "`id`=" . (string) $_smarty_tpl->tpl_vars['adminshopid']->value, 'type' => "one"), $_smarty_tpl);
        ?>

<!---<div style="position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: -1;background:url(<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/background.png);"></div>
header start-->
	<div class="header">
    	<ul>
        	<li class="li_active">
               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺管理</a>
            </li>
            <li>
               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a>
            </li>
            <li>
              <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/fastfood"), $_smarty_tpl);
        ?>
">快速下单</a>
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
        ?>
');">
                内容管理
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');">
                会员中心
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">
                退出
            </li>
        </ul>
                 <div class="cl"></div>
</div>
        <!--    <div class="topRight fr">
                <span onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
        ?>
');" class="curbtn">内容管理</span>
                    <span  onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');" class="curbtn">会员中心 </span>
                    <span class="username curbtn" onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">退出</span>

            </div>
            <div class="cl"></div>


            <div class="shangjiaTop">
            	<div class="sjgl">

                </div>

            </div>
        </div>

    </div>-->
    <!---header end
    <script>
	$(function(){
		var clientWidth = document.body.clientWidth;
		/*alert(clientWidth);*/
	/*	if( clientWidth<=1347 ){

			$(".content").css("width","1240px");
			$(".conleft").removeClass("content_left");

		}*/
	});
</script>
 以上是公共的头部部分-->

  <!---content start-->
	<div class="content">
   	 	<!---content left start-->
		<div class="conleft"><!-- content_left -->
        	<div class="nav">
            	<ul>
                	<li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
');" data="baseset"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/dpsz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺设置</a></li>
                    <li onclick="openlink('<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
');" data="basemenu"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/cdgl.png" /></div><a href="<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
">菜单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
');" data="baseorder"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddgl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
');" data="baseordertj"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddtj.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
">订单统计</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
');" data="basearea"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/psqy.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
">配送区域</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
');"  data="basecx"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/xxgz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
">促销规则</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/lygl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
">留言评价</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/wechat.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
">微信管理</a></li>

                </ul>

            </div>
        </div>
       <!---content left end-->





           
 
 
 
  <!--content right start--> 
        <div class="conWaiSet fr">
        	
            <div class="shopSetTop">
            	<span>促销规则列表</span>
            </div>
            
        <!--    <div class="cxruleset">
                    <div class="cxruleButton" onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/addcxrule"), $_smarty_tpl);
        ?>
');">添加促销规则
                    </div>
            </div>
             <div class="cl"></div>-->
                       
                <form action="" method="post">
                 <div class="caidanSet">
        			
                	<div class="div_orderList">
                    	
                        <div class="cxrule_show">
                    
                        <div class="cxrule_show_goodli">
                            <div class="cxrule_goodname">
                                <span>促销名称</span>
                            </div>
                            <div class="cxrule_shuoming">
                                 <span>规则说明</span>
                            </div>
                            <div class="cxrule_pri">
                                 <span>开始时间</span>
                            </div>
                            <div class="cxrule_d">
                                 <span>结束时间</span>
                            </div>
                            <div class="cxrule_day_num">
                                 <span>状态</span>
                            </div>
                             <div class="cxruleset">
                                <div class="cxruleButton" onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/addcxrule"), $_smarty_tpl);
        ?>
');">添加促销规则
                                </div>
                            </div>
                        </div>
                        
                        <div class="cl"></div>
                        
                        
                    	<div class="cxrule_list	">
                       		 
                          	 <?php 
        echo smarty_function_load_data(array('assign' => "list", 'table' => "rule", 'fileds' => "*", 'limit' => "100", 'where' => "shopid = " . (string) $_smarty_tpl->tpl_vars['shopinfo']->value['id']), $_smarty_tpl);
        ?>
 
                <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['list']->value['list'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
            ?>
  
                          
                          <div class="cxrule_goodlist">
                            <div class="cxrule_name">
                                <span><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['name'];
            ?>
</span>
                            </div>
                            <div class="cxrule_sm">
                                 <span id="showrule_<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
" data=""></span>
                            </div>
                            <div class="cxrule_price">
                                 <span><?php 
            echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['items']->value['starttime'], "%Y-%m-%d");
            ?>
</span>
                            </div>
                            <div class="cxrule_dbf">
                                 <span><?php 
            echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['items']->value['endtime'], "%Y-%m-%d");
            ?>
</span>
                            </div>
                            <div class="cxrule_dayNum">
                                 <span> <?php 
            if ($_smarty_tpl->tpl_vars['items']->value['status'] == 1) {
                ?>
开启中<?php 
            } else {
                ?>
未开启<?php 
            }
            ?>
</span>
                            </div>
                             <div class="cxrule_caozuo">
                                 <span style=" background:#27a9e3; padding:8px; color:#fff;"><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/addcxrule/id/" . (string) $_smarty_tpl->tpl_vars['items']->value['id']), $_smarty_tpl);
            ?>
">编辑</a></span>
                                  <span style=" background:#ec7501; padding:8px; color:#fff;"><a onclick="return remind(this);"href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/delcxrule/cxid/" . (string) $_smarty_tpl->tpl_vars['items']->value['id'] . "/datatype/json"), $_smarty_tpl);
            ?>
"> 删除</a></span>
                            </div>
                          </div>
                    
                        
                        
                     <?php 
        }
        ?>
 
                      
                      
                    </div>
                        <div class="cl"></div>
                        
                        
                    </div>
                    	
                        
                        
                        
                    </div>
                    
       			 </div>
                 
                 
              </form>  
                
                
        </div>
        <div class="cl"></div>
        
        
       
        
        
        <!---content right end---> 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
<script>
	var alllist = <?php 
        echo json_encode($_smarty_tpl->tpl_vars['list']->value['list']);
        ?>
;
$(function(){  
	$.each(alllist,function(i,field){ 
		var showcontent = '';
		
		if(field.limitcontent > 0){
			showcontent += '订单总价大于'+field.limitcontent+'元';
		}else{
			showcontent +='所有订单';
		} 
		if(field.limittype ==  2){
			showcontent ='每周(星期'+field.limittime+'),'+showcontent;
		} 
		if(field.limittype == 3){
			showcontent ='每天在'+field.limittime+'时间段,'+showcontent;
		}
		if(field.controltype ==  1){
			showcontent +='赠送:'+field.presenttitle+'库存还剩'+field.controlcontent+'件';
		}
		if(field.controltype ==  2){
			showcontent +='优惠:'+field.controlcontent+'元';
		}
		if(field.controltype ==  3){
			var times = field.controlcontent*0.1;
			showcontent +='折扣:'+times+'折';
		}
		if(field.controltype ==  4){
			showcontent +='免配送费';
		}
		 
		
		 $('#showrule_'+field.id).text(showcontent);
	});
	
});
	
	
	
	
	
	
</script>








       </div>




<!--以下是公共的底部部分-->

    <div class="footer">
    	<div class="foot1">
        <center>
        	<div class="db">
        	   <?php 
        if (!empty($_smarty_tpl->tpl_vars['toplink']->value)) {
            ?>
	 	      <?php 
            $_smarty_tpl->tpl_vars['toplink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['toplink']->value), null, 0);
            ?>
		  	  <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['toplink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
			         <a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> |
			    <?php 
            }
            ?>
			<?php 
        }
        ?>

            </div></center>
            <div class="cl"></div>
        </div>
        <div class="foot2">
        	<p>@2008-2012 <?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['beian']->value;
        ?>
 <?php 
        echo stripslashes($_smarty_tpl->tpl_vars['footerdata']->value);
        ?>
</p>
        </div>
    </div>

 <script>

				$(function(){

			  	if("undefined" != typeof mynomenu){
					   var allobj = $('.nav').find('li');
					  $.each(allobj, function(i, newobj) {
					  	if($(this).attr('data') == mynomenu){
					  	   $(this).addClass('on').siblings().removeClass('on');
					  	 }
					  	//alert($(this).attr('data'));

					  });
				 	}
					$(".nav ul li").click(function(){
					    	$(this).addClass('on').siblings().removeClass('on');

					});
				});
				function openlink(newlinkes){
					window.location.href=newlinkes;
				}
</script>

</body>
</html>
<?php 
    }
    function content_55921577379357_41173624($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/modifier.date_format.php';
        }
        if (!is_callable('smarty_function_load_data')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/function.load_data.php';
        }
        ?>
<!DOCTYPE HTML>
<html>
<head> 
<meta charset="utf-8"/> 
<meta http-equiv="Content-Language" content="zh-CN"> 
<meta content="all" name="robots"> 
<meta name="description" content=""> 
<meta content="" name="keywords"> 
<title>小树好吃后台管理中心</title>  
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/admin1.css"> 
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquery.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/public.js" type="text/javascript" language="javascript"></script>
 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/template.min.js" type="text/javascript" language="javascript"></script>

<script>
	var menu = null;
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
	var is_static ="<?php 
        echo $_smarty_tpl->tpl_vars['is_static']->value;
        ?>
";
	/*if(screen.width > 1359){
		
		$('.newtop').css('width',screen.width);
		$('.newmain').css('width',screen.width);
		$('.newfoot').css('width',screen.width);
	} */
</script> 
</head> 
<body> 
<div id="cat_zhe" class="cart_zhe" style="display:none;"></div>
<div id="cat_tj" class="cart_out_cat" style="display:none;"> 数据提交中..</div>
<div class="newtop">
	  <div class="newadddiv">
	  <div class="newlogo">
	  	  <div class="imglogo"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
" target="_blank"><!--<img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/images/admin/logo.png">-->小树好吃后台管理系统</a></div>
	  </div>
	  <div class="newtopnav">
	  	 <ul>
	  	  <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tempdir']->value . "/public/admin_module.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>
 
	  	 	<ul>
	  	
	  </div>
	</div>
</div> 
<div style="clear:both;"></div>
<div class="newmain">
	<!-- 提示导航--
   <div class="top_nav">
	    <div class="nav2 datainfo">
	    	<?php 
        echo smarty_modifier_date_format(time(), "%Y-%m-%d");
        ?>
  
	    </div>
	    <div class="nav2 positioninfo" id="positionname2">
	    	网站首页
	    </div>
	    <div class="nav2 orderinfo">
	    	您有今天有 0 个订单待审核
	    </div>
   </div> -->
   <!-- 主内容区-->
   <div class="newmain_all">
   	 <!-- 主内左区-->
   	 <div class="left_content">
   	 	   <!-- 主内左区用户信息-->
   	 	   <div class="userinfo">
   	 	   	   <div class="user_area">
   	 	   	   	     用户名: <div class="user_name">
   	 	   	   	      	<?php 
        echo $_smarty_tpl->tpl_vars['admininfo']->value['username'];
        ?>

   	 	   	   	      </div>
   	 	   	   	      
   	 	   	  </div>
   	 	   	<!--  <div class="now_name" id="nowactioninfo">
   	 	   	    	网站首页
   	 	   	    </div> -->
                   <!--提示导航 Begin-->
                   <ul class="top_nav">
                      <li>日期:
                        <span class="nav2 datainfo">
                          <?php 
        echo smarty_modifier_date_format(time(), "%Y-%m-%d");
        ?>

                        </span>  
                      </li>
                      <!--<li>位置:
                        <span class="nav2 positioninfo" id="positionname2">网站首页</span>
                      </li>-->
                      <li class="nav2 orderinfo">
                        您有今天有 0 个订单待审核
                      </li>
                  </ul>
                  <!--提示导航 End-->
                  <div class="content_url">
                               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/adminloginout"), $_smarty_tpl);
        ?>
" class="out">退出登录</a> 
                               <a onClick="modifypwd();" href="#">修改密码</a>
                           </div>
   	 	   </div>
   	 	   <!-- 主内左区导航条-->
   	 	    <div class="left_nav">
   	 	    	  <ul> 
   	 	    	  	
   	 	    	  	
   	 	    	  	 <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tempdir']->value . "/public/admin_menu.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

   	 	    	 
   	 	    	     <li><a href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
" target="_blank">返回网站首页</a></li>
   	 	    	  </ul>
   	 	    </div>

   	 	    <div class="left_navend">
   	 	    </div>
   	 	    <!-- 主内左区天气预报-->
   	 	    <div class="weather" id="weatherinfo" style="display:none;">
   	 	    	 <div class="todayweacher">
   	 	    	      <div class="weacher_left">
   	 	    	      	 <div id="wtoday_img"> </div>
   	 	    	      	 <div><span id="wcity" style="padding-right:5px;"></span><span id="wqihou"></span></div>
   	 	    	      </div>
   	 	    	      <div class="weacher_right" id="wwendu">
   	 	    	      	 
   	 	    	      </div>	 
   	 	    	 </div>
   	 	    	 <div style="clear:both;">
   	 	    	 	   <div class="tom">
   	 	    	 	   	    <div id="tom_1" class="tom_img"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_day"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_wendu"></div>
   	 	    	 	   	
   	 	    	 	   	</div>
   	 	    	 	   <div class="tom">
   	 	    	 	   	    <div id="tom_tom" class="tom_img"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_tday"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_twendu"></div>
   	 	    	 	   	</div>
   	 	    	 </div>
   	 	    </div>
   	 	     
   	  </div>
   	  
 
 
  
 
 
 <div class="right_content">
	<div class="show_content_m">
   	        <!--	 <div class="show_content_m_ti">
   	        	 	   <div class="showtop_t" id="positionname">模块管理</div>
   	        	 </div>  -->
   	        	 <div class="show_content_m_t2">
   	        	 	
   	        	 	
   	        	 	
      <div style="width:auto;overflow-x:hidden;overflow-y:auto"> 
      	 
           <div class="tags">  
          <div id="tagscontent">

            <div id="con_one_1">

              <div class="table_td"  >

              <form method="post" action="" onsubmit="return remind();"  id="delform">

                  <table border="0" cellspacing="2" cellpadding="4" class="list" name="table" id="table" width="100%">

                    <thead>

                      <tr>

                        <th width="60px"><input type="checkbox" id="chkall" name="chkall" onclick="checkall()"></th>

                        <th align="center">文件名</th>

                        <th align="center">中文说明</th> 
                         <th align="center">上级模块</th> 
                        <th align="center">是否安装</th>  
                       
                        <th align="center">操作</th>

                      </tr>

                    </thead> 

                     <tbody>
                      <?php 
        echo smarty_function_load_data(array('assign' => "list", 'table' => "module", 'showpage' => "true", 'orderby' => "id asc"), $_smarty_tpl);
        ?>
 
                      <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['list']->value['list'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
 
                      <tr class="s_out" onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff"> 
                        <td align="center" ><input type="checkbox" name="id[]" value="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
"></td> 
                        <td align="center"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['name'];
            ?>
</td> 
                        <td align="center"> <?php 
            echo $_smarty_tpl->tpl_vars['items']->value['cnname'];
            ?>
 </td> 
                         <td align="center"> <?php 
            if ($_smarty_tpl->tpl_vars['items']->value['parent_id'] == 0) {
                ?>
主模块<?php 
            } else {
                ?>
 <?php 
                echo smarty_function_load_data(array('assign' => "parent", 'table' => "module", 'type' => "one", 'where' => "id ='" . (string) $_smarty_tpl->tpl_vars['items']->value['parent_id'] . "'"), $_smarty_tpl);
                ?>
 <?php 
                echo $_smarty_tpl->tpl_vars['parent']->value['cnname'];
                ?>
 <?php 
            }
            ?>
 </td>  
                         <td align="center"><?php 
            if ($_smarty_tpl->tpl_vars['items']->value['install'] == 1) {
                ?>
已安装<?php 
            } else {
                ?>
未安装<?php 
            }
            ?>
</td> 
                        <td align="center"> 
                        	<a onclick="return remind(this);" href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/system/module/delmodule/id/" . (string) $_smarty_tpl->tpl_vars['items']->value['id'] . "/datatype/json"), $_smarty_tpl);
            ?>
"><img src="<?php 
            echo $_smarty_tpl->tpl_vars['siteurl']->value;
            ?>
/templates/<?php 
            echo $_smarty_tpl->tpl_vars['tempdir']->value;
            ?>
/public/images/admin/del.jpg"></a></td> 
                      </tr> 
                       <?php 
        }
        ?>
 

                    </tbody> 

                  </table>

                <div class="blank20"></div> 
                </form>
                 <div class="page_newc">
                 	     <div class="select_page">
                 	        <a onclick="addmodule();" href="javascript:;" class="delurl">添加新模块</a> 
                 	     	</div>
                       <div class="show_page"><ul><?php 
        echo $_smarty_tpl->tpl_vars['list']->value['pagecontent'];
        ?>
</ul></div>
                 </div>

                <div class="blank20"></div>

              </div>

            </div>

          </div>

        </div>
      </div> 
 </div> 
 <script>
 	   function addmodule(){
 	    var optionhtml = '';
 	     <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['list']->value['list'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
 
 	     <?php 
            if ($_smarty_tpl->tpl_vars['items']->value['parent_id'] == 0) {
                ?>
 	     optionhtml +='<option value="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['name'];
                ?>
</option>';
 	     <?php 
            }
            ?>
 	      <?php 
        }
        ?>
 
 	    var	htmls = '<form method="post" id="doshwoform" action="#" style="text-align:center;"><table>';
        	htmls += '<tbody><tr>';
         	htmls += '<td height="30px">文件名:</td>';
         	htmls += '<td> <input type="text" name="name" value="" style="width:100px;"></td></tr>';
         	htmls += '<tr><td height="30px">模块中文名:</td><td> <input type="text" name="cnname" value="" style="width:100px;"></td></tr>';
         	htmls += '<tr><td height="30px">是否是主模块:</td><td> <input type="radio" name="is_man" value="1"  >主模块<input type="radio" name="is_man" value="2"  >子模块</td></tr>';
         	htmls += '<tr style="" id="showsubt" height="30px"><td height="20px">选择上级模块:</td><td><select name="parent_id">'+optionhtml+'</select></td></tr>';
        	htmls += '</tbody></table> ';
          htmls += '<input type="hidden" value="" name="shopid"> ';
         	htmls += '<input type="button" value="确认提交" class="button" id="dosetclosetime" ></form>';
          art.dialog({
             id: 'testID3',
              title:'新增加模块',
               content: htmls
          });
     }
     
  $("input[name='is_man']").live("click", function() {   
  	var objvalue =   $("input[name='is_man']:checked").val();
  	if(objvalue == "1"){
  		 $('#showsubt').hide();
  	}else{
  		$('#showsubt').show();
  	}
  }); 
$('#dosetclosetime').live('click',function(){ 

	$.post('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/system/module/savemodule/datatype/json"), $_smarty_tpl);
        ?>
', {'name':$('input[name="name"]').val(),'cnname':$('input[name="cnname"]').val(),'is_main':$("input[name='is_man']:checked").val(),'parent_id':$("select[name='parent_id']").find("option:selected").val()} ,function (data, textStatus){  
			if(data.error == false){
     		diasucces('操作成功','');
     	}else{
     		if(data.error == true)
     		{
     			diaerror(data.msg); 
     		}else{
     			diaerror(data); 
     		}
     	} 
	 }, 'json'); 
});
 </script>

   	        	 </div>	
               <div class="show_content_m_t3">
   	        	 
   	        	 </div>
   	       </div>
   	       <!-- show_content_m结束-->


   	  </div>
   	  <!-- right_content 结束-->
   	  
   </div>
   <!-- newmain_all 结束-->
</div>	
	
<!--newmain 结束-->
















<div style="clear:both;"></div>
<div class="newfoot">
	
	  &#20851;&#27880;&#22909;&#36164;&#28304;&#20851;&#27880;&#25105;&#20204;&#65306;&#119;&#119;&#119;&#46;&#77;&#120;&#56;&#48;&#48;&#46;&#99;&#111;&#109;
</div>	
<script>
$(function(){ 

$('#tagscontent table').Attr({
  'cellpadding':0,
  'cellspacing':0
});


var height = $('.left_content').height();
 $('.right_content').height(height);

$('#con_one_1 .table_td').removeAttr('style');
$('#tagscontent td:last-child a img').hide();
$('#tagscontent td:last-child a:nth-child(1) img').parent('a').addClass('first');
$('#tagscontent td:last-child a:nth-child(2) img').parent('a').addClass('after');
 $('.show_page a').wrap('<li></li>');
 $('.show_page').find('.current').eq(0).parent().css({'background':'#f60'}); 
});
   
</script>
</body>
</html>





<?php 
    }
    function content_555d722bab6199_83212551($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include '/data/www/xshc/wmr/lib/Smarty/libs/plugins/function.load_data.php';
        }
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> 商家管理中心-<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</title>
<meta name="Keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" />
<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" />  
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/commom.css" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/shangjiaAdmin.css" />

<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquerynew.js" type="text/javascript" language="javascript"></script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/allj.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script>

  <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/plugins/iframeTools.js"></script>
  <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/template.min.js"></script>
  <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/ajaxfileupload.js"> </script>
  <script>
  	var mynomenu='baseset';
  	</script>

<script> 
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
"; 
</script>
<!--[if lte IE 6]>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('div, ul, img, li, input , a');
        $('#footer').css('display','none');
    </script>
<![endif]--> 
</head>
<body> 
<?php 
        echo smarty_function_load_data(array('assign' => "shopinfo", 'table' => "shop", 'where' => "`id`=" . (string) $_smarty_tpl->tpl_vars['adminshopid']->value, 'type' => "one"), $_smarty_tpl);
        ?>
 
<div style="position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: -1;background:url(<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/background.png);"></div>
<!---header start--->
	<div class="header">
    	<div class="top">
        	<div class="topLeft fl">
            	<ul class="fr">
                	<li><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺管理</a></li> 
                    <li><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a></li>
                    <li><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/fastfood"), $_smarty_tpl);
        ?>
">快速下单</a></li>
                </ul>
                 <div class="cl"></div>
            </div>
            <div class="topRight fr">
            	
                    <span  style="color: #c7c7c7;font-size: 14px;padding: 5px;" onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');" class="curbtn">会员中心 </span>
                    <span class="username curbtn" onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">退出<img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/usernameBg.png" /></span>
                 
                
            </div>
            <div class="cl"></div>
            
            
            <div class="shangjiaTop">
            	<div class="sjgl">
                	
                </div>
            	
            </div>
        </div>
    	
    </div>
    <!---header end--->
    <script>
	$(function(){
		var clientWidth = document.body.clientWidth;
		/*alert(clientWidth);*/
		if( clientWidth<=1347 ){
			
			$(".content").css("width","1240px");
			$(".conleft").removeClass("content_left");
			
		}
	});
</script>
 <!------以上是公共的头部部分------->
 
  <!---content start--->
	<div class="content">
   	 	<!---content left start--->
		<div class="conleft content_left fl">
        	<div class="nav">
            	<ul>
                	<li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
');" data="baseset"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/dpsz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺设置</a></li>
                    <li onclick="openlink('<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
');" data="basemenu"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/cdgl.png" /></div><a href="<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
">菜单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
');" data="baseorder"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddgl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
');" data="baseordertj"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddtj.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
">订单统计</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
');" data="basearea"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/psqy.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
">配送区域</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
');"  data="basecx"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/xxgz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
">促销规则</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/lygl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
">留言评价</a></li>
                    
                    
                </ul>
               
            </div>
        </div>	
       <!---content left end---> 
       
       
       
       
       
           
  <!---content right start---> 
  
  
  <div class="conWaiSet fr">
        	
            <div class="shopSetTop">
            	<span>店铺设置</span>
            </div> 
            	  <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tempdir']->value . "/shop/usereditmenu.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>
  
             <div class="cl"></div>  
                <form id="loginForm" method="post" action="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shopcenter/savebase"), $_smarty_tpl);
        ?>
">
                 <div class="jutiSet">
        		     	<div class="serxuanze">
                    		<div class="xuanze_left">
                        	<span>店铺名字:</span>
                        </div>
                        <div class="dianpu_right" style="width:387px;">
                        	<input type="text" style="width:387px;" id="shopname" name="shopname" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['shopname'];
        ?>
"    />
                            
                        </div>
                        <div class="cl"></div>
                    </div>
                    <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>接单电话:</span>
                        </div>
                        <div class="dianpu_right" style="width:387px;">
                        	<input type="text" style="width:387px;"  id="phone" name="phone" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['phone'];
        ?>
"     />
                            
                        </div>
                        <div class="cl"></div>
                    </div>
                    <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>店铺负责人电话:</span>
                        </div>
                        <div class="dianpu_right" style="width:387px;">
                        	<input type="text" style="width:387px; "  id="maphone" name="maphone" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['maphone'];
        ?>
"  />
                            
                        </div>
                        <div class="cl"></div>
                    </div>
                    
                    <div class="upimg">
                    	<div class="file_img">
                        	 <img src="<?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['shoplogo'];
        ?>
" width="136" height="130" id="imgshow" <?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoplogo'])) {
            ?>
 style="display:none;"<?php 
        }
        ?>
>  
                        </div>
                        <div class="file_xxiang">
                        	<input type="hidden" name="shoplogo" id="shoplogo" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['shoplogo'];
        ?>
" class="skey" style="width:150px;" > 
                     <div id="div-headpicUpload" style="display:block;"> 
		                  <form id="form1" name="form1" method="post"  enctype="multipart/form-data" target="ifr-headpic-upload" onsubmit="return checkImagetype('1');">    
		                  	<div class=""> 
		               		<input name="head" type="file" id="imgFile" style="width:70px;float:left;" name="imgFile" onchange="$('#input1').val($(this).val())"  class="curbtn">
		               		<input id="submitImg" type="button" value="上传" class="ss_sc curbtn" style="width:40px;float:left; border:1px solid #ccc;background-color:white;height:22px;line-height:12px;margin-top:5px;margin-left:20px;" >   
		               	</div>  
		               </form> 
		             </div>
		                         <div class="cl"></div>
                        </div>
                    </div>
                    
                    
                    <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>店铺地址:</span>
                        </div>
                        <div class="dianpu_right">
                        	<input type="text" style="width:569px; " id="address" name="address" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['address'];
        ?>
" />
                            
                        </div>
                        <div class="cl"></div>
                    </div>
                    <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>店铺访问地址:</span>
                        </div>
                        <div class="dianpu_right">
                        	<input type="text" style="width:569px; " id="shortname" name="shortname" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['shortname'];
        ?>
"  />
                            
                        </div>
                        <div class="cl"></div>
                    </div>
                    <div class="serxuanze" style=" width:767px;">
                    	<div class="xuanze_left">
                        	<span>百度坐标:</span>
                        </div>
                        <div class="dianpu_right" style="width:498px; margin-right:0px; padding-right:0px;">
                        	<input type="text" style="width:488px; " name="baidumap" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['lng'];
        ?>
,<?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['lat'];
        ?>
"  />
                            
                        </div>
                        <div class="geiquAdd curbtn fr" onclick="biaoji();" >
                        	给取地址
                        </div>
                        <div class="cl"></div>
                    </div>
                    <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>邮箱地址:</span>
                        </div>
                        <div class="dianpu_right">
                        	<input type="text" style="width:569px;" id="email" name="email" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['email'];
        ?>
" />
                            
                        </div>
                        <div class="cl"></div>
                    </div>
                    <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>无线打印机IMEI号:</span>
                        </div>
                        <div class="dianpu_right">
                        	<input type="text" style="width:569px; " id="IMEI" name="IMEI" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['IMEI'];
        ?>
" />
                            
                        </div>
                        <div class="cl"></div>
                    </div>
                    
                    <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>营业时间:</span>
                        </div>
                        <div class="xuanze_right" style="width:589px;"> 
                        	<div style="text-align:center;vertical-align: middle;line-height:40px;width: 569px;"> 
                         
                        		 <?php 
        $_smarty_tpl->tpl_vars['foo'] = new Smarty_variable(explode("|", $_smarty_tpl->tpl_vars['shopinfo']->value['starttime']), null, 0);
        ?>
 
                        	 <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['foo']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
            ?>
 
                        	 <?php 
            if (!empty($_smarty_tpl->tpl_vars['items']->value)) {
                ?>
                        	     <?php 
                $_smarty_tpl->tpl_vars['newtime'] = new Smarty_variable(explode("-", $_smarty_tpl->tpl_vars['items']->value), null, 0);
                ?>
 
                        	     
                        	     <?php 
                if (!empty($_smarty_tpl->tpl_vars['newtime']->value[0])) {
                    ?>
                        	         <?php 
                    $_smarty_tpl->tpl_vars['dettime'] = new Smarty_variable(explode(":", $_smarty_tpl->tpl_vars['newtime']->value[0]), null, 0);
                    ?>
 
                        	         <?php 
                    $_smarty_tpl->createLocalArrayVariable('newtimedata', null, 0);
                    $_smarty_tpl->tpl_vars['newtimedata']->value[] = $_smarty_tpl->tpl_vars['dettime']->value[0];
                    ?>
                        	         <?php 
                    $_smarty_tpl->createLocalArrayVariable('newtimedata', null, 0);
                    $_smarty_tpl->tpl_vars['newtimedata']->value[] = $_smarty_tpl->tpl_vars['dettime']->value[1];
                    ?>
 
                        	     <?php 
                }
                ?>
                        	     <?php 
                if (!empty($_smarty_tpl->tpl_vars['newtime']->value[1])) {
                    ?>
                        	         <?php 
                    $_smarty_tpl->tpl_vars['dettime'] = new Smarty_variable(explode(":", $_smarty_tpl->tpl_vars['newtime']->value[1]), null, 0);
                    ?>
 
                        	         <?php 
                    $_smarty_tpl->createLocalArrayVariable('newtimedata', null, 0);
                    $_smarty_tpl->tpl_vars['newtimedata']->value[] = $_smarty_tpl->tpl_vars['dettime']->value[0];
                    ?>
                        	         <?php 
                    $_smarty_tpl->createLocalArrayVariable('newtimedata', null, 0);
                    $_smarty_tpl->tpl_vars['newtimedata']->value[] = $_smarty_tpl->tpl_vars['dettime']->value[1];
                    ?>
 
                        	     <?php 
                }
                ?>
                        	   <?php 
            }
            ?>
                        	  <?php 
        }
        ?>
                        		
                        		
					               	早&nbsp;&nbsp;&nbsp;&nbsp; 
					               	<input type="text" style=" background:#e0f5ff; width:27px; height: 15px;line-height: 15px;" name="dotime[]" value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['newtimedata']->value[0]) === null || $tmp === '' ? '' : $tmp;
        ?>
" />&nbsp;
                            :<input type="text" style="  background:#e0f5ff;width:27px; height: 15px;line-height: 15px;" name="dotime[]"  value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['newtimedata']->value[1]) === null || $tmp === '' ? '' : $tmp;
        ?>
"/>&nbsp;&nbsp;
                            ---&nbsp;&nbsp;<input type="text" style="  background:#e0f5ff;width:27px; height: 15px;line-height: 15px;" name="dotime[]" value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['newtimedata']->value[2]) === null || $tmp === '' ? '' : $tmp;
        ?>
"/>&nbsp;
                            :<input type="text" style=" background:#e0f5ff; width:27px; height: 15px;line-height: 15px;" name="dotime[]"   value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['newtimedata']->value[3]) === null || $tmp === '' ? '' : $tmp;
        ?>
"  />						
                         <span style=" margin-left:60px;"></span>   
                            晚&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" style=" background:#e0f5ff; width:27px; height: 15px;line-height: 15px;" name="dotime[]" value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['newtimedata']->value[4]) === null || $tmp === '' ? '' : $tmp;
        ?>
" />&nbsp;
                            :<input type="text" style=" background:#e0f5ff; width:27px; height: 15px;line-height: 15px;" name="dotime[]"  value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['newtimedata']->value[5]) === null || $tmp === '' ? '' : $tmp;
        ?>
"/>&nbsp;&nbsp;
                            ---&nbsp;&nbsp;<input type="text" style=" background:#e0f5ff; width:27px; height: 15px;line-height: 15px;" name="dotime[]"   value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['newtimedata']->value[6]) === null || $tmp === '' ? '' : $tmp;
        ?>
" />&nbsp;
                            :<input type="text" style=" background:#e0f5ff; width:27px; height: 15px;line-height: 15px;" name="dotime[]"  value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['newtimedata']->value[7]) === null || $tmp === '' ? '' : $tmp;
        ?>
"/>
                          </div>
                        </div>
                        <div class="cl"></div>
                    </div>
                     <div class="serxuanze">
                    	<div class="xuanze_left">
                        	<span>是否营业:</span>
                        </div>
                        <div class="xuanze_right">
                        	<input type="radio"   name="is_open"   value="1" <?php 
        if ($_smarty_tpl->tpl_vars['shopinfo']->value['is_open'] == 1) {
            ?>
checked<?php 
        }
        ?>
/>是 <input type="radio"  name="is_open"   value="0" <?php 
        if ($_smarty_tpl->tpl_vars['shopinfo']->value['is_open'] == 0) {
            ?>
checked<?php 
        }
        ?>
/>否
                        </div>
                        <div class="cl"></div>
                    </div>
                  	 <div class="settijiao">
                    	
                          <div class="xuanze_right hc_login_btn_div" ></div>
                         
                     
                        <div class="cl"></div>
                    </div>
                    
                    
       			 </div>
              </form>  
                
                
        </div>
        <div class="cl"></div>
        
        
       
        
        
        <!---content right end---> 
  
  
   
 <!---content right start---> 
<script type="text/javascript"> 
var areagrade ='0';// ;
var defaultid = '';
 
</script> 
<script type="text/javascript">
	$('.hc_login_btn_div').click(function(){ 
		var shopname = $('input[name="shopname"]').val();
		var phone = $('input[name="phone"]').val();
		var address = $('input[name="address"]').val();
		var shortname = $('input[name="shortname"]').val();
		var email =$('input[name="email"]').val();
		 
		 var IMEI = $('input[name="IMEI"]').val();
		var is_open =  $("input[name='is_open']:checked").val();
		 
		var stobj = new Array();
	  
	  $("input[name='dotime[]']").each(function(){ 
	  	if($(this).val() != ''){
	      	stobj.push($(this).val()); 
	     }
     })
     var starttime = stobj.join(',');
    
     var otherlink = $('input[name="otherlink"]').val();
     var baidumap = $('input[name="baidumap"]').val();
	 
	//	 showop('保存配送区域信息');
	var backinfo = ajaxback('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit/datatype/json"), $_smarty_tpl);
        ?>
',{'shopname':shopname,'IMEI':IMEI,'phone':phone,'address':address,'shortname':shortname,'email':email,'is_open':is_open,'starttime':starttime,'otherlink':otherlink,'baidumap':baidumap});
	if(backinfo.flag == true)
	{
	//	hideop();
		diaerror(backinfo.content); 
	}else{
	//	hideop();
		 artsucces('保存成功');
		location.reload();  
	}
		
		
		//$('#loginForm').submit(); 
		 
	});
	$(".hc_login_input").change(function(j){
		var v=$(this).val();
		var p=$(this).attr("shopname"); 
		switch(p){
		case "shopname":	if(v == '' ||v == null){
			  alert('用户名不能为空'); 
			} 
		break;
		case "shortname":
		 	var patrn=/[u4e00-u9fa5]/;  
			if(v == '' ||v == null){
			  alert('店铺CODE不能为空'); 
			} 
		break; 
		case "phone":
		   if(v == '' ||v == null){
			  alert('联系电话不能为空'); 
			} 
		break;
		case "address":
		   if(v == '' ||v == null){
			  alert('联系地址不能为空'); 
			} 
		break;
		case "pwd":
			var patrn=/(.){4,16}/;  
			if(!patrn.exec(v)){
				 alert('密码是4-16位的字母、数字,区分大小写');  
			 } 
		break;
		}
	});
	$('#submitImg').click(function(){
		ajaxFileUpload();
	});
	function ajaxFileUpload()
	{
		$("#loading")
		.ajaxStart(function(){
			$(this).show();
		})
		.ajaxComplete(function(){
			$(this).hide();
		});
  
		$.ajaxFileUpload
		(
			{
				url:'<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/other/userupload/type/shoplogo/datatype/json"), $_smarty_tpl);
        ?>
',
				secureuri:false,
				fileElementId:'imgFile',
				dataType: 'json',
				data:{name:'logan', id:'id'},
				success: function (data, status)
				{
					if(typeof(data.error) != 'undefined')
					{
						if(data.error == false)
						{ 
						 
							$('#img').val(data.msg);
 	           $('#imgshow').attr('src',data.msg);
 	                $('#imgshow').show(); 
						}else
						{
							alert(data.msg);
						}
					}else{
					  alert(data);
					}
				},
				error: function (data, status, e)
				{
					alert(e);
				}
			}
		)
		
		return false;

	}
	var dialogs ;
 function uploads(){  
 	  dialogs = art.dialog.open('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/other/userupload/func/uploadsucess/type/shoplogo"), $_smarty_tpl);
        ?>
');
 	  dialogs.title('上传图片'); 
 }
 function uploadsucess(linkurl){
 	dialogs.close(); 
 	$('#img').val(linkurl);
 	$('#imgshow').attr('src',linkurl);
 	$('#imgshow').show(); 
}
function uploaderror(msg){
	 alert(msg);
		dialogs.close();
		uploads();
}


var ditulog;
function biaoji(){
    	mydialog = art.dialog.open(siteurl+'/index.php?controller=area&action=shopbaidumap',{height:'550px',width:'850px'},false);
    	//http://www.hanwoba.com/index.php?controller=admin&action=baidumap&id=2#
	 	 mydialog.title('设置标记百度地址位置'); 
	 	 mydialog.height('500px');
 }
 function closemydilog(){
 	mydialog.close();
}


</script> 
 
  
       
       
       
       
       
       
       
       </div>
    



<!------以下是公共的底部部分------->

    <div class="footer">
    	<div class="foot1">
        <center>
        	<div class="db">
        	   <?php 
        if (!empty($_smarty_tpl->tpl_vars['toplink']->value)) {
            ?>
	 	      <?php 
            $_smarty_tpl->tpl_vars['toplink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['toplink']->value), null, 0);
            ?>
		  	  <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['toplink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
 
			         <a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> | 
			    <?php 
            }
            ?>
			<?php 
        }
        ?>
 
         
            </div></center>
            <div class="cl"></div>
        </div>
        <div class="foot2">
        	<p>@2008-2012 <?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['beian']->value;
        ?>
 <?php 
        echo stripslashes($_smarty_tpl->tpl_vars['footerdata']->value);
        ?>
</p>
        </div>
    </div>
 
 <script>
                	
				$(function(){
					 
			  	if("undefined" != typeof mynomenu){
					   var allobj = $('.nav').find('li');
					  $.each(allobj, function(i, newobj) {
					  	if($(this).attr('data') == mynomenu){
					  	   $(this).addClass('on');
					  	 }
					  	//alert($(this).attr('data'));
					   	  
					  });
				 	}
					$(".nav ul li").click(function(){
					    	$(this).addClass('on').siblings().removeClass('on');
						
					});	 
				});
				function openlink(newlinkes){
					window.location.href=newlinkes;
				}
</script> 
  
</body>
</html><?php 
    }
    function content_5594f6e7cafec3_85737122($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/function.load_data.php';
        }
        if (!is_callable('smarty_modifier_date_format')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/modifier.date_format.php';
        }
        ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>商家管理中心-<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</title>
<meta name="Keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" />
<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/commom.css" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/shangjiaAdmin.css" />

<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquerynew.js" type="text/javascript" language="javascript"></script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/allj.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script>

 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/plugins/iframeTools.js"></script>
   <script>
  	  var mynomenu='baseask';
  </script>

<script>
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
    $(function(){
      
      $('.conWaiSet').height( $('.conleft').height() );
        $('.header ul li').click(function(){
            $(this).addClass('li_active').siblings().removeClass('li_active');
        });
   
        $('.waimaiset').children().children('img').remove();

        $('.shopSetTop').remove();
        $('.waimaiset li').click(function(){
            $(this).addClass('li_active').siblings().removeClass('li_active');
        });
         

        
    });
</script>
<!--[if lte IE 6]>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('div, ul, img, li, input , a');
        $('#footer').css('display','none');
    </script>
<![endif]-->
</head>
<body>
<?php 
        echo smarty_function_load_data(array('assign' => "shopinfo", 'table' => "shop", 'where' => "`id`=" . (string) $_smarty_tpl->tpl_vars['adminshopid']->value, 'type' => "one"), $_smarty_tpl);
        ?>

<!---<div style="position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: -1;background:url(<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/background.png);"></div>
header start-->
	<div class="header">
    	<ul>
        	<li class="li_active">
               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺管理</a>
            </li>
            <li>
               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a>
            </li>
            <li>
              <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/fastfood"), $_smarty_tpl);
        ?>
">快速下单</a>
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
        ?>
');">
                内容管理
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');">
                会员中心
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">
                退出
            </li>
        </ul>
                 <div class="cl"></div>
</div>
        <!--    <div class="topRight fr">
                <span onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
        ?>
');" class="curbtn">内容管理</span>
                    <span  onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');" class="curbtn">会员中心 </span>
                    <span class="username curbtn" onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">退出</span>

            </div>
            <div class="cl"></div>


            <div class="shangjiaTop">
            	<div class="sjgl">

                </div>

            </div>
        </div>

    </div>-->
    <!---header end
    <script>
	$(function(){
		var clientWidth = document.body.clientWidth;
		/*alert(clientWidth);*/
	/*	if( clientWidth<=1347 ){

			$(".content").css("width","1240px");
			$(".conleft").removeClass("content_left");

		}*/
	});
</script>
 以上是公共的头部部分-->

  <!---content start-->
	<div class="content">
   	 	<!---content left start-->
		<div class="conleft"><!-- content_left -->
        	<div class="nav">
            	<ul>
                	<li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
');" data="baseset"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/dpsz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺设置</a></li>
                    <li onclick="openlink('<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
');" data="basemenu"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/cdgl.png" /></div><a href="<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
">菜单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
');" data="baseorder"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddgl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
');" data="baseordertj"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddtj.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
">订单统计</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
');" data="basearea"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/psqy.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
">配送区域</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
');"  data="basecx"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/xxgz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
">促销规则</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/lygl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
">留言评价</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/wechat.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
">微信管理</a></li>

                </ul>

            </div>
        </div>
       <!---content left end-->





           
 
 
  <!---content right start--->
  <div class="conWaiSet fr">
    <div class="shopSetTop"> <span>留言/评价管理</span> </div>
    <div class="messageset">
      <div class="message_btn">
        <div class="liuyanGl  fl" onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
');"><span >留言管理</span></div>
        <div class="pingjiaGl messageCur fl" onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/comment"), $_smarty_tpl);
        ?>
');"> <span >评价管理</span> </div>
      </div> 
      <div class="cl"></div>
    </div>
    <div class="cl"></div>
    <div class="caidanSet"> 
      
      
        
        
        
         <!---评价管理----->
    
        <div class="mes_box"   id="pingjia">        
            <table cellpadding="0" cellspacing="0" width="100%">
              <tbody>
                <tr>
                  <th width="40%"> 评价内容 </th>
                  <th width="15%"> 商品名称 </th>
                  <th width="15%"> 订单编号 </th>
                  <th width="10%"> 时间 </th>
                   <th width="10%"> 评分 </th>
                  <th width="10%"> 操作</th>
                </tr>
                  	 <?php 
        echo smarty_function_load_data(array('assign' => "list", 'table' => "comment", 'showpage' => "true", 'where' => "shopid = " . (string) $_smarty_tpl->tpl_vars['shopinfo']->value['id'], 'orderby' => "id desc"), $_smarty_tpl);
        ?>
 
			               <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['list']->value['list'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
 
			               <?php 
            echo smarty_function_load_data(array('assign' => "goodsinfo", 'table' => "orderdet", 'type' => "one", 'where' => "id='" . (string) $_smarty_tpl->tpl_vars['items']->value['orderdetid'] . "'", 'fileds' => "goodsname"), $_smarty_tpl);
            ?>
 
			               <?php 
            echo smarty_function_load_data(array('assign' => "orderinfo", 'table' => "order", 'type' => "one", 'where' => "id='" . (string) $_smarty_tpl->tpl_vars['items']->value['orderid'] . "'", 'fileds' => "dno"), $_smarty_tpl);
            ?>
 
                <tr >
                 	<td><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['content'];
            ?>
</td>
                      <td><?php 
            echo $_smarty_tpl->tpl_vars['goodsinfo']->value['goodsname'];
            ?>
</td>
                      <td><?php 
            echo $_smarty_tpl->tpl_vars['orderinfo']->value['dno'];
            ?>
</td>
                      <td><?php 
            echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['items']->value['addtime'], "%Y-%m-%d");
            ?>
</td>
                      <td><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['point'];
            ?>
</td>
                  <td id="reload40"><?php 
            if ($_smarty_tpl->tpl_vars['items']->value['is_show'] == 0) {
                ?>
<span style=" background:#27a9e3; padding:8px; color:#fff;"><a onclick="return remind(this);" data="" href="<?php 
                echo FUNC_function(array('type' => 'url', 'link' => "/order/showcommlist/id/" . (string) $_smarty_tpl->tpl_vars['items']->value['id'] . "/datatype/json"), $_smarty_tpl);
                ?>
">取消展示</a></span> 
                 <?php 
            } else {
                ?>
 
                  <span style=" background:#ec7501;  padding:8px; color:#fff;"><a onclick="return remind(this);"  data="" href="<?php 
                echo FUNC_function(array('type' => 'url', 'link' => "/order/showcommlist/id/" . (string) $_smarty_tpl->tpl_vars['items']->value['id'] . "/datatype/json"), $_smarty_tpl);
                ?>
">展示</a></span><?php 
            }
            ?>
                  </td>
                </tr>
                <?php 
        }
        ?>
               	<tr>
                	<td align="right" style=" padding-right:50px;" colspan="6"> <div class="show_page"><ul><?php 
        echo $_smarty_tpl->tpl_vars['list']->value['pagecontent'];
        ?>
</ul></div></td>
                </tr>
              </tbody>
            </table>
         
        </div>
   
    </div>
  </div>
  <div class="cl"></div>
  
  <!---content right end---> 
 
 
 
 
  <script>
$(function(){ 
 $('.show_page a').wrap('<li></li>');
 $('.show_page').find('.current').eq(0).parent().css({'background':'#f60'}); 
});
   
</script>
 








       </div>




<!--以下是公共的底部部分-->

    <div class="footer">
    	<div class="foot1">
        <center>
        	<div class="db">
        	   <?php 
        if (!empty($_smarty_tpl->tpl_vars['toplink']->value)) {
            ?>
	 	      <?php 
            $_smarty_tpl->tpl_vars['toplink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['toplink']->value), null, 0);
            ?>
		  	  <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['toplink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
			         <a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> |
			    <?php 
            }
            ?>
			<?php 
        }
        ?>

            </div></center>
            <div class="cl"></div>
        </div>
        <div class="foot2">
        	<p>@2008-2012 <?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['beian']->value;
        ?>
 <?php 
        echo stripslashes($_smarty_tpl->tpl_vars['footerdata']->value);
        ?>
</p>
        </div>
    </div>

 <script>

				$(function(){

			  	if("undefined" != typeof mynomenu){
					   var allobj = $('.nav').find('li');
					  $.each(allobj, function(i, newobj) {
					  	if($(this).attr('data') == mynomenu){
					  	   $(this).addClass('on').siblings().removeClass('on');
					  	 }
					  	//alert($(this).attr('data'));

					  });
				 	}
					$(".nav ul li").click(function(){
					    	$(this).addClass('on').siblings().removeClass('on');

					});
				});
				function openlink(newlinkes){
					window.location.href=newlinkes;
				}
</script>

</body>
</html>
<?php 
    }
    function content_558cf53d87b387_72762457($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/modifier.date_format.php';
        }
        if (!is_callable('smarty_function_load_data')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/function.load_data.php';
        }
        ?>
<!DOCTYPE HTML>
<html>
<head> 
<meta charset="utf-8"/> 
<meta http-equiv="Content-Language" content="zh-CN"> 
<meta content="all" name="robots"> 
<meta name="description" content=""> 
<meta content="" name="keywords"> 
<title>小树好吃后台管理中心</title>  
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/admin1.css"> 
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquery.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/public.js" type="text/javascript" language="javascript"></script>
 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/template.min.js" type="text/javascript" language="javascript"></script>

<script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/plugins/iframeTools.js"></script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/datepicker/WdatePicker.js" type="text/javascript" language="javascript"></script>

<script>
	var menu = null;
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
	var is_static ="<?php 
        echo $_smarty_tpl->tpl_vars['is_static']->value;
        ?>
";
	/*if(screen.width > 1359){
		
		$('.newtop').css('width',screen.width);
		$('.newmain').css('width',screen.width);
		$('.newfoot').css('width',screen.width);
	} */
</script> 
</head> 
<body> 
<div id="cat_zhe" class="cart_zhe" style="display:none;"></div>
<div id="cat_tj" class="cart_out_cat" style="display:none;"> 数据提交中..</div>
<div class="newtop">
	  <div class="newadddiv">
	  <div class="newlogo">
	  	  <div class="imglogo"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
" target="_blank"><!--<img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/images/admin/logo.png">-->小树好吃后台管理系统</a></div>
	  </div>
	  <div class="newtopnav">
	  	 <ul>
	  	  <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tempdir']->value . "/public/admin_module.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>
 
	  	 	<ul>
	  	
	  </div>
	</div>
</div> 
<div style="clear:both;"></div>
<div class="newmain">
	<!-- 提示导航--
   <div class="top_nav">
	    <div class="nav2 datainfo">
	    	<?php 
        echo smarty_modifier_date_format(time(), "%Y-%m-%d");
        ?>
  
	    </div>
	    <div class="nav2 positioninfo" id="positionname2">
	    	网站首页
	    </div>
	    <div class="nav2 orderinfo">
	    	您有今天有 0 个订单待审核
	    </div>
   </div> -->
   <!-- 主内容区-->
   <div class="newmain_all">
   	 <!-- 主内左区-->
   	 <div class="left_content">
   	 	   <!-- 主内左区用户信息-->
   	 	   <div class="userinfo">
   	 	   	   <div class="user_area">
   	 	   	   	     用户名: <div class="user_name">
   	 	   	   	      	<?php 
        echo $_smarty_tpl->tpl_vars['admininfo']->value['username'];
        ?>

   	 	   	   	      </div>
   	 	   	   	      
   	 	   	  </div>
   	 	   	<!--  <div class="now_name" id="nowactioninfo">
   	 	   	    	网站首页
   	 	   	    </div> -->
                   <!--提示导航 Begin-->
                   <ul class="top_nav">
                      <li>日期:
                        <span class="nav2 datainfo">
                          <?php 
        echo smarty_modifier_date_format(time(), "%Y-%m-%d");
        ?>

                        </span>  
                      </li>
                      <!--<li>位置:
                        <span class="nav2 positioninfo" id="positionname2">网站首页</span>
                      </li>-->
                      <li class="nav2 orderinfo">
                        您有今天有 0 个订单待审核
                      </li>
                  </ul>
                  <!--提示导航 End-->
                  <div class="content_url">
                               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/adminloginout"), $_smarty_tpl);
        ?>
" class="out">退出登录</a> 
                               <a onClick="modifypwd();" href="#">修改密码</a>
                           </div>
   	 	   </div>
   	 	   <!-- 主内左区导航条-->
   	 	    <div class="left_nav">
   	 	    	  <ul> 
   	 	    	  	
   	 	    	  	
   	 	    	  	 <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tempdir']->value . "/public/admin_menu.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

   	 	    	 
   	 	    	     <li><a href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
" target="_blank">返回网站首页</a></li>
   	 	    	  </ul>
   	 	    </div>

   	 	    <div class="left_navend">
   	 	    </div>
   	 	    <!-- 主内左区天气预报-->
   	 	    <div class="weather" id="weatherinfo" style="display:none;">
   	 	    	 <div class="todayweacher">
   	 	    	      <div class="weacher_left">
   	 	    	      	 <div id="wtoday_img"> </div>
   	 	    	      	 <div><span id="wcity" style="padding-right:5px;"></span><span id="wqihou"></span></div>
   	 	    	      </div>
   	 	    	      <div class="weacher_right" id="wwendu">
   	 	    	      	 
   	 	    	      </div>	 
   	 	    	 </div>
   	 	    	 <div style="clear:both;">
   	 	    	 	   <div class="tom">
   	 	    	 	   	    <div id="tom_1" class="tom_img"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_day"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_wendu"></div>
   	 	    	 	   	
   	 	    	 	   	</div>
   	 	    	 	   <div class="tom">
   	 	    	 	   	    <div id="tom_tom" class="tom_img"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_tday"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_twendu"></div>
   	 	    	 	   	</div>
   	 	    	 </div>
   	 	    </div>
   	 	     
   	  </div>
   	  
 
 
  
 
 
 <div class="right_content">
	<div class="show_content_m">
   	        <!--	 <div class="show_content_m_ti">
   	        	 	   <div class="showtop_t" id="positionname">充值卡列表</div>
   	        	 </div>  -->
   	        	 <div class="show_content_m_t2">
   	        	 	
   	        	 	

      <div style="width:auto;overflow-x:hidden;overflow-y:auto">

      	  <div class="search">


            <div class="search_content">

            	 <form method="post" name="form1" action="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/card/module/cardlist"), $_smarty_tpl);
        ?>
">

            	  <label>充值卡金额:</label>
            	   <input type="text" name="searchvalue" value="<?php 
        echo $_smarty_tpl->tpl_vars['searchvalue']->value;
        ?>
" style="width:30px;">元
            	   <select name="orderstatus">
            	   	  <option value="all">选择状态</option>
			   		 	  	  <option value="1" <?php 
        if ($_smarty_tpl->tpl_vars['orderstatus']->value == '1') {
            ?>
selected<?php 
        }
        ?>
>未使用</option>
			   		 	  	  <option value="2" <?php 
        if ($_smarty_tpl->tpl_vars['orderstatus']->value == '2') {
            ?>
selected<?php 
        }
        ?>
>已使用</option>
            	  </select>
            	  ,生成时间
            	   从<input class="Wdate datefmt" type="text" name="starttime" id="starttime" value="<?php 
        echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['starttime']->value, "%Y-%m-%d");
        ?>
"  onFocus="WdatePicker({isShowClear:false,readOnly:true});" />
			   		 	  到<input class="Wdate datefmt" type="text" name="endtime" id="endtime" value="<?php 
        echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['endtime']->value, "%Y-%m-%d");
        ?>
"  onFocus="WdatePicker({isShowClear:false,readOnly:true});" />


            	    <input type="submit" value="提交查询" class="button">
            	 </form>
            </div>

      	</div>






           <div class="tags">



          <div id="tagscontent">

            <div id="con_one_1">

              <div class="table_td" style="margin-top:10px;">

              <form method="post" action="" onsubmit="return remind();" id="delform">

                  <table border="0" cellspacing="0" cellpadding="0" class="list" name="table" id="table" width="100%">

                    <thead>

                      <tr>

                        <th width="60px"><input type="checkbox" id="chkall" name="chkall" onclick="checkall()"></th>

                        <th align="center">id</th>
                         <th align="center">卡号</th>
                        <th align="center">卡号密码</th>

                        <th align="center">充值金额</th>
                         <th align="center">使用者</th>
                         <th align="center">状态</th>
                        <th align="center">操作</th>

                      </tr>

                    </thead>

                     <tbody>
                   <?php 
        echo smarty_function_load_data(array('assign' => "list", 'table' => "card", 'showpage' => "true", 'fileds' => "*", 'where' => (string) $_smarty_tpl->tpl_vars['where']->value), $_smarty_tpl);
        ?>

                      <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['list']->value['list'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
                      <tr class="s_out" onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                        <td align="center" ><input type="checkbox" name="id[]" value="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
"></td>
                        <td align="center"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
</td>
                        <td align="center"> <?php 
            echo $_smarty_tpl->tpl_vars['items']->value['card'];
            ?>
 </td>
                        <td align="center" width="300px"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['card_password'];
            ?>
</td>
                        <td align="center"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['cost'];
            ?>
元</td>
                        <td align="center"><?php 
            if (empty($_smarty_tpl->tpl_vars['items']->value['username'])) {
                ?>
未使用<?php 
            } else {
                echo $_smarty_tpl->tpl_vars['items']->value['username'];
            }
            ?>
</td>
                        <td align="center"><?php 
            if ($_smarty_tpl->tpl_vars['items']->value['status'] == 0) {
                ?>
未使用<?php 
            } else {
                ?>
已使用<?php 
            }
            ?>
</td>
                        <td align="center">
                        	<a onclick="return remind(this);" href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/card/module/delcard/id/" . (string) $_smarty_tpl->tpl_vars['items']->value['id'] . "/datatype/json"), $_smarty_tpl);
            ?>
"><img src="<?php 
            echo $_smarty_tpl->tpl_vars['siteurl']->value;
            ?>
/templates/<?php 
            echo $_smarty_tpl->tpl_vars['tempdir']->value;
            ?>
/public/images/admin/del.jpg"></a></td>
                      </tr>
                       <?php 
        }
        ?>

                    </tbody>

                  </table>

                <div class="blank20"></div>

                </form>

                <div class="page_newc">
                 	      <div class="select_page">
                 	      	<a href="#" onclick="checkword(true);">全选</a>/<a href="#" onclick="checkword(false);">取消</a>
                 	     <a onclick="return remindall(this);" href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/card/module/delcard/datatype/json"), $_smarty_tpl);
        ?>
" class="delurl">删除</a>
                 	     <a  onclick="outchoice(this);" href="#"  data="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/card/module/outcard"), $_smarty_tpl);
        ?>
" class="delurl">导出选择项</a>
                 	     <a  href="<?php 
        echo $_smarty_tpl->tpl_vars['outlink']->value;
        ?>
" target="_blank" class="delurl">导出查询结果</a></div>
                 	     </div>
                       <div class="show_page"><ul><?php 
        echo $_smarty_tpl->tpl_vars['list']->value['pagecontent'];
        ?>
</ul></div>
                 </div>

                <div class="blank20"></div>

              </div>

            </div>

          </div>

        </div>


  </div>

</div>

   	        	 </div>	
               <div class="show_content_m_t3">
   	        	 
   	        	 </div>
   	       </div>
   	       <!-- show_content_m结束-->


   	  </div>
   	  <!-- right_content 结束-->
   	  
   </div>
   <!-- newmain_all 结束-->
</div>	
	
<!--newmain 结束-->
















<div style="clear:both;"></div>
<div class="newfoot">
	
	  &#20851;&#27880;&#22909;&#36164;&#28304;&#20851;&#27880;&#25105;&#20204;&#65306;&#119;&#119;&#119;&#46;&#77;&#120;&#56;&#48;&#48;&#46;&#99;&#111;&#109;
</div>	
<script>
$(function(){ 

$('#tagscontent table').attr({
  'cellpadding':'0',
  'cellspacing':'0'
});


var height = $('.left_content').height();
 $('.right_content').height(height);

$('#con_one_1 .table_td').removeAttr('style');
$('#tagscontent td:last-child a img').hide();
$('#tagscontent td:last-child a:nth-child(1) img').parent('a').addClass('first');
$('#tagscontent td:last-child a:nth-child(2) img').parent('a').addClass('after');
 $('.show_page a').wrap('<li></li>');
 $('.show_page').find('.current').eq(0).parent().css({'background':'#f60'}); 
});
   
</script>
</body>
</html>





<?php 
    }
    function content_5594b6d24c2c89_92939501($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/function.load_data.php';
        }
        ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>商家管理中心-<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</title>
<meta name="Keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" />
<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/commom.css" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/shangjiaAdmin.css" />

<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquerynew.js" type="text/javascript" language="javascript"></script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/allj.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script>

 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/template.min.js" type="text/javascript" language="javascript"></script>
 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/plugins/iframeTools.js"></script>

<script>
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
    $(function(){

        $('.header ul li').click(function(){
            $(this).addClass('li_active').siblings().removeClass('li_active');
        });
   
        $('.waimaiset').children().children('img').remove();

        $('.shopSetTop').remove();
        $('.waimaiset li').click(function(){
            $(this).addClass('li_active').siblings().removeClass('li_active');
        });
         

        
    });
</script>
<!--[if lte IE 6]>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('div, ul, img, li, input , a');
        $('#footer').css('display','none');
    </script>
<![endif]-->
</head>
<body>
<?php 
        echo smarty_function_load_data(array('assign' => "shopinfo", 'table' => "shop", 'where' => "`id`=" . (string) $_smarty_tpl->tpl_vars['adminshopid']->value, 'type' => "one"), $_smarty_tpl);
        ?>

<!---<div style="position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: -1;background:url(<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/background.png);"></div>
header start-->
	<div class="header">
    	<ul>
        	<li class="li_active">
               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺管理</a>
            </li>
            <li>
               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a>
            </li>
            <li>
              <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/fastfood"), $_smarty_tpl);
        ?>
">快速下单</a>
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
        ?>
');">
                内容管理
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');">
                会员中心
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">
                退出
            </li>
        </ul>
                 <div class="cl"></div>
</div>
        <!--    <div class="topRight fr">
                <span onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
        ?>
');" class="curbtn">内容管理</span>
                    <span  onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');" class="curbtn">会员中心 </span>
                    <span class="username curbtn" onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">退出</span>

            </div>
            <div class="cl"></div>


            <div class="shangjiaTop">
            	<div class="sjgl">

                </div>

            </div>
        </div>

    </div>-->
    <!---header end
    <script>
	$(function(){
		var clientWidth = document.body.clientWidth;
		/*alert(clientWidth);*/
	/*	if( clientWidth<=1347 ){

			$(".content").css("width","1240px");
			$(".conleft").removeClass("content_left");

		}*/
	});
</script>
 以上是公共的头部部分-->

  <!---content start-->
	<div class="content">
   	 	<!---content left start-->
		<div class="conleft"><!-- content_left -->
        	<div class="nav">
            	<ul>
                	<li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
');" data="baseset"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/dpsz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺设置</a></li>
                    <li onclick="openlink('<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
');" data="basemenu"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/cdgl.png" /></div><a href="<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
">菜单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
');" data="baseorder"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddgl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
');" data="baseordertj"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddtj.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
">订单统计</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
');" data="basearea"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/psqy.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
">配送区域</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
');"  data="basecx"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/xxgz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
">促销规则</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/lygl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
">留言评价</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/wechat.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
">微信管理</a></li>

                </ul>

            </div>
        </div>
       <!---content left end-->





           

 <!--content right start-->
  <div class="conWaiSet fr">
    <div class="shopSetTop"> <span>微信管理</span> </div>
    <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tempdir']->value . "/weixin/weixinmenu.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

    <div class="cl"></div>

  <form method="post" action="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/updatewxmenu/datatype/json"), $_smarty_tpl);
        ?>
" onsubmit="return subform('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxmenu"), $_smarty_tpl);
        ?>
',this);">
    <div class="caidanSet">
      <table border="0" cellspacing="0" cellpadding="10" class="list" name="table" id="table" width="100%">

                    <thead>

                      <tr>


                        <td align="center">id</td>
                         <td align="center">咨询码</td>
                         <td align="center">类型</td>

                        <td align="center">操作</td>

                      </tr>

                    </thead>

                     <tbody>

                      <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['list']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
                      <tr class="s_out">
                        <td align="center"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
</td>
                         <td align="center"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['code'];
            ?>
</td>
                        <td align="center"> <?php 
            if ($_smarty_tpl->tpl_vars['items']->value['msgtype'] == 1) {
                ?>
连接<?php 
            } elseif ($_smarty_tpl->tpl_vars['items']->value['msgtype'] == 2) {
                ?>
 文本  <?php 
            } else {
                ?>
图文<?php 
            }
            ?>
  </td>

                        <td align="center">
                          <a href="javascript:void(0);" onclick="editinfo(<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
);" >编辑</a>
                          <a onclick="return remind(this);" href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/weixin/delwxback/id/" . (string) $_smarty_tpl->tpl_vars['items']->value['id'] . "/datatype/json"), $_smarty_tpl);
            ?>
">删除</a></td>
                      </tr>
                       <?php 
        }
        ?>

                    </tbody>

                  </table>

                <div class="blank20"></div>
                <ul>
                  <li>
                    <input type="button" name="button" id="typebutton" value="添加回复" onclick="addwxmenu();" class="button" />
                  </li>
                  <?php 
        echo $_smarty_tpl->tpl_vars['pagecontent']->value;
        ?>

                </ul>
     <!-- <div class="page_newc">

                          
                       <div class="show_page"><ul><?php 
        echo $_smarty_tpl->tpl_vars['pagecontent']->value;
        ?>
</ul></div>
                 </div>-->
    </div>
  </form>
</div>
<script>
  var dialogs;
  function addwxmenu(){
    var htmls = template.render('addwx', {list:''});
    dialogs = art.dialog({
       id: 'fdstestid',
       title:'添加菜单',
       content:htmls
    });
     //设置显示与否
     var checkvalue = $("input[name='types']:checked").val();
     if(checkvalue == 'click'){
        $('#valuestr').hide();
        $('#textareatr').show();
     }
  }
  $('input[name="msgtype"]').live("click", function() {
       var checkvalue = $("input[name='msgtype']:checked").val();
      if(checkvalue == '1'){
        $('#lj_show').show();
        $('#wb_show').hide();
         $('#nb_show').hide();
         $('#tw_btn').hide();
       }else{
          if(checkvalue == '2'){
            $('#lj_show').hide();
        $('#wb_show').show();
         $('#nb_show').hide();
         $('#tw_btn').hide();
          }else{
            $('#lj_show').hide();
        $('#wb_show').hide();
         $('#nb_show').show();
         $('#tw_btn').show();
          }

       }
  });
  function editinfo(backid){
    var url = '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/getwxback/datatype/json/random/@random@"), $_smarty_tpl);
        ?>
';
    $.ajax({
     type: 'post',//2个参数间是用,分割
     async:false,//如果是true将不能作为返回值使用
     data:{id:backid},//表单序列化  也可以{'username':'******',password:'******'},
     url: url.replace('@random@', 1+Math.round(Math.random()*1000)),
     dataType: 'json',success: function(content) {   //datatype 可以是json html   data 3种
          //  content;//是返回的数据内容
          if(content.error ==  false){
             var htmls = template.render('addwx', {list:content.msg});
    dialogs = art.dialog({
       id: 'fdstestid',
       title:'编辑菜单',
       content:htmls
    });
          }else{
            alert(content.msg);
          }
     },
    error: function(content) {
          // 提交失败
          alert('获取失败');
    }
    });
  }
  function addtwnr(){

      var htmls = template.render('tw_nblist_s', {});
       $('#tw_nblist').append(htmls);
    }
  function trremove(obj){
    $(obj).parent().parent().parent().remove();
  }

</script>
<script id="tw_nblist_s" type="text/html">
 <table style="border-top:1px solid #c4d9e9;border-bottom:1px solid #c4d9e9;width:300px;"">
         <tr><td style="height:30px;width:30%;"> 标题 </td><td> <input type="text" name="biaoti[]" value="" class="skey" style="width:150px;">  </td>          </tr>
        <tr><td> 描述 </td><td> <textarea name="miaoshu[]"  style="width:200px;height:100px;"></textarea>  </td>          </tr>
         <tr><td> 图片 </td><td> <input type="text" name="tupian[]" value="" class="skey" style="width:150px;">   <input type="button" name="shangc" value="上传" onclick="uploads(this);" > </td>       </tr>
        <tr><td style="height:30px;"> 连接 </td><td> <input type="text" name="lianjie[]" value="" class="skey" style="width:150px;">  <a href="javascript:void(0);" onclick="trremove(this);" >移除</a> </td>        </tr>
       </table>
 </script>
<!--newmain 结束-->



 <script id="addwx" type="text/html">
<form method="post" id="doshwoform" action="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/savewxback/datatype/json"), $_smarty_tpl);
        ?>
" onsubmit="return subform('',this);" style="text-align:center;width:300px;">
    <table width=300px>
       <tr>
          <td style="width:30%;height:30px;">咨询code:</td>
          <td style="width:80%">
              <input type="text" name="code" value="<^%=list.code%^>" class="skey" style="width:150px;">
          </td>
      </tr>
      <tr>
         <td style="width:30%;height:30px;">信息类型</td>
         <td>
             <input type="radio" name="msgtype" value="1" checked>连接 <input type="radio" name="msgtype" value="2" <^%if(list.msgtype == '2'){ %^> checked <^%}%^> >文本 <input type="radio" name="msgtype" value="3" <^%if(list.msgtype == '3'){ %^> checked <^%}%^> >图文信息
         </td>
     </tr>

      <tr id="lj_show" <^%if(list.msgtype == '2' ||list.msgtype == '3'){ %^> style="display:none;" <^%}%^> >
         <td colspan="2">
            <table width=300px>
                <tr>
                  <td style="width:30%;height:30px;">标题:</td>
                  <td style="width:80%">
                              <input type="text" name="lj_title" value="<^%if(list.msgtype == '1'){ %^><^%=list.listcontent.lj_title%^><^%}%^>" class="skey" style="width:150px;">
                  </td>
                </tr>

                <tr>
                  <td style="width:30%;height:30px;">连接:</td>
                  <td style="width:80%">
                              <input type="text" name="lj_link" value="<^%if(list.msgtype == '1'){ %^><^%=list.listcontent.lj_link%^><^%}%^>" class="skey" style="width:150px;">
                  </td>
                </tr>
          </table>
         </td>
      </tr>
      <tr id="wb_show"  <^%if(list.msgtype == '2' ){ %^>  <^%}else{%^> style="display:none;" <^%}%^>   >
         <td colspan="2">
            <table width=300px>
                <tr>
                  <td style="width:30%;">内容:</td>
                  <td style="width:80%">
                           <textarea name="wb_content" style="width:200px;height:100px;"><^%if(list.msgtype == '2'){ %^><^%=list.values%^><^%}%^></textarea>
                  </td>
                </tr>
                </table>

         </td>
      </tr>
      <tr id="nb_show"   <^%if(list.msgtype == '3' ){ %^>  <^%}else{%^> style="display:none;" <^%}%^>  >
        <td colspan="2" id="tw_nblist">

   <^%if(list.msgtype ==3){ %^>
         <^% var imglist = list.listcontent%^>
          <^%for(i = 0; i < imglist.length; i ++) {%^>
       <table style="border-top:1px solid #c4d9e9;border-bottom:1px solid #c4d9e9;width:300px;"">
         <tr><td style="height:30px;width:30%;"> 标题 </td><td> <input type="text" name="biaoti[]" value="<^%=imglist[i].biaoti%^>" class="skey" style="width:150px;">  </td>          </tr>
        <tr><td> 描述 </td><td> <textarea name="miaoshu[]"  style="width:200px;height:100px;"> <^%=imglist[i].miaoshu%^> </textarea>  </td>          </tr>
         <tr><td> 图片 </td><td> <input type="text" name="tupian[]" value="<^%=imglist[i].tupian%^>" class="skey" style="width:150px;"> <input type="button" name="shangc" value="上传" onclick="uploads(this);" ></td>          </tr>
        <tr><td style="height:30px;"> 连接 </td><td> <input type="text" name="lianjie[]" value="<^%=imglist[i].lianjie%^>" class="skey" style="width:150px;"> <a href="javascript:void(0);" onclick="trremove(this);" >移除</a></td>          </tr>
       </table>
          <^%}%^>
    <^%}%^>



    </td>
      </tr>


      <tr id="tw_btn" <^%if(list.msgtype ==3){ %^>  <^%}else{%^> style="display:none;" <^%}%^>>
       <td >&nbsp;</td>
       <td style="height:40px;"><input type="button" name="name" value="添加图文组" onclick="addtwnr();" > </td>
       </tr>





       <tr><td style="width:30%;height:30px;">&nbsp; </td>
       <input type="hidden" name="id" value="<^%=list.id%^>">
       <td><input type="submit" value="确认提交" class="button"></td>
       </tr>
    </talbe>

</form>
</script>
<script>
  var updilog ;
 function uploads(obj){
    var findobj = $('input[name="shangc"]').index($(obj));
    findobj = Number(findobj)+1;
    var url = '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/other/module/adminupload/obj/@obj@/func/uploadsucess/datatype/json/randowm/@random@"), $_smarty_tpl);
        ?>
';
    url = url.replace('@random@', 1+Math.round(Math.random()*1000)).replace('@obj@',findobj);
    updilog = art.dialog.open(url);
    updilog.title('上传图片');
 }
  function uploadsucess(flag,objdata,linkurl){
   if(flag == true){
     alert(msg);

   }else{
    var findobj = Number(objdata)-1;
      var nwlink = siteurl+linkurl;
    $('input[name="tupian[]"]').eq(findobj).val(nwlink);
     updilog.close();

   }
 }

</script>
 







       </div>




<!--以下是公共的底部部分-->

    <div class="footer">
    	<div class="foot1">
        <center>
        	<div class="db">
        	   <?php 
        if (!empty($_smarty_tpl->tpl_vars['toplink']->value)) {
            ?>
	 	      <?php 
            $_smarty_tpl->tpl_vars['toplink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['toplink']->value), null, 0);
            ?>
		  	  <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['toplink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
			         <a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> |
			    <?php 
            }
            ?>
			<?php 
        }
        ?>

            </div></center>
            <div class="cl"></div>
        </div>
        <div class="foot2">
        	<p>@2008-2012 <?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['beian']->value;
        ?>
 <?php 
        echo stripslashes($_smarty_tpl->tpl_vars['footerdata']->value);
        ?>
</p>
        </div>
    </div>

 <script>

				$(function(){

			  	if("undefined" != typeof mynomenu){
					   var allobj = $('.nav').find('li');
					  $.each(allobj, function(i, newobj) {
					  	if($(this).attr('data') == mynomenu){
					  	   $(this).addClass('on').siblings().removeClass('on');
					  	 }
					  	//alert($(this).attr('data'));

					  });
				 	}
					$(".nav ul li").click(function(){
					    	$(this).addClass('on').siblings().removeClass('on');

					});
				});
				function openlink(newlinkes){
					window.location.href=newlinkes;
				}
</script>

</body>
</html>
<?php 
    }
    function content_5593b97bae2445_64899946($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/function.load_data.php';
        }
        ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>商家管理中心-<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</title>
<meta name="Keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" />
<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/commom.css" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/shangjiaAdmin.css" />

<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquerynew.js" type="text/javascript" language="javascript"></script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/allj.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script>

<script>
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
    $(function(){
      
      $('.conWaiSet').height( $('.conleft').height() );
        $('.header ul li').click(function(){
            $(this).addClass('li_active').siblings().removeClass('li_active');
        });
   
        $('.waimaiset').children().children('img').remove();

        $('.shopSetTop').remove();
        $('.waimaiset li').click(function(){
            $(this).addClass('li_active').siblings().removeClass('li_active');
        });
         

        
    });
</script>
<!--[if lte IE 6]>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('div, ul, img, li, input , a');
        $('#footer').css('display','none');
    </script>
<![endif]-->
</head>
<body>
<?php 
        echo smarty_function_load_data(array('assign' => "shopinfo", 'table' => "shop", 'where' => "`id`=" . (string) $_smarty_tpl->tpl_vars['adminshopid']->value, 'type' => "one"), $_smarty_tpl);
        ?>

<!---<div style="position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: -1;background:url(<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/background.png);"></div>
header start-->
	<div class="header">
    	<ul>
        	<li class="li_active">
               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺管理</a>
            </li>
            <li>
               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a>
            </li>
            <li>
              <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/fastfood"), $_smarty_tpl);
        ?>
">快速下单</a>
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
        ?>
');">
                内容管理
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');">
                会员中心
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">
                退出
            </li>
        </ul>
                 <div class="cl"></div>
</div>
        <!--    <div class="topRight fr">
                <span onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
        ?>
');" class="curbtn">内容管理</span>
                    <span  onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');" class="curbtn">会员中心 </span>
                    <span class="username curbtn" onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">退出</span>

            </div>
            <div class="cl"></div>


            <div class="shangjiaTop">
            	<div class="sjgl">

                </div>

            </div>
        </div>

    </div>-->
    <!---header end
    <script>
	$(function(){
		var clientWidth = document.body.clientWidth;
		/*alert(clientWidth);*/
	/*	if( clientWidth<=1347 ){

			$(".content").css("width","1240px");
			$(".conleft").removeClass("content_left");

		}*/
	});
</script>
 以上是公共的头部部分-->

  <!---content start-->
	<div class="content">
   	 	<!---content left start-->
		<div class="conleft"><!-- content_left -->
        	<div class="nav">
            	<ul>
                	<li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
');" data="baseset"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/dpsz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺设置</a></li>
                    <li onclick="openlink('<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
');" data="basemenu"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/cdgl.png" /></div><a href="<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
">菜单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
');" data="baseorder"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddgl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
');" data="baseordertj"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddtj.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
">订单统计</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
');" data="basearea"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/psqy.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
">配送区域</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
');"  data="basecx"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/xxgz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
">促销规则</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/lygl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
">留言评价</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/wechat.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
">微信管理</a></li>

                </ul>

            </div>
        </div>
       <!---content left end-->





           
 
 
 <!--content right start-->
  <div class="conWaiSet">
    <div class="shopSetTop"> <span>配送设置</span> </div>
  
     <?php 
        if ($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'] == 0) {
            ?>
       		  	<?php 
            echo smarty_function_load_data(array('assign' => "shopfast", 'table' => "shopfast", 'where' => "`shopid`='" . (string) $_smarty_tpl->tpl_vars['shopinfo']->value['id'] . "'", 'type' => "one"), $_smarty_tpl);
            ?>
  
       		 	  <?php 
            if (!empty($_smarty_tpl->tpl_vars['shopfast']->value)) {
                ?>
  
       		 	  
       		 	        <?php 
                $_smarty_tpl->tpl_vars['showcost'] = new Smarty_variable(0, null, 0);
                ?>
 
       		 	     <?php 
                if ($_smarty_tpl->tpl_vars['shopfast']->value['sendtype'] == 0) {
                    ?>
 
       		 	       <?php 
                    $_smarty_tpl->tpl_vars['pssetinfo'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['psset']->value), null, 0);
                    ?>
       		 	       <?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 2) {
                        ?>
       		 	            <?php 
                        $_smarty_tpl->tpl_vars['showcost'] = new Smarty_variable(1, null, 0);
                        ?>
       		 	       <?php 
                    }
                    ?>
 
       		       <?php 
                } else {
                    ?>
       		         <?php 
                    $_smarty_tpl->tpl_vars['pssetinfo'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['shopfast']->value['sendset']), null, 0);
                    ?>
       		 	       <?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 2) {
                        ?>
       		 	            <?php 
                        $_smarty_tpl->tpl_vars['showcost'] = new Smarty_variable(2, null, 0);
                        ?>
       		 	       <?php 
                    }
                    ?>
 
       		       <?php 
                }
                ?>
    <div class="order_search">
      <span>定位配送费设置:<!--app和使用地图定位使用以下配送费--></span>
  </div>
  <div class="peisongList">   
      <div class="peisongSet"> 
        <table width="100%" border="1"> 
                 	  <?php 
                $_smarty_tpl->tpl_vars['tempaapcost'] = new Smarty_variable(array(), null, 0);
                ?>
        	                  <?php 
                if (!empty($_smarty_tpl->tpl_vars['shopfast']->value['pradiusvalue'])) {
                    ?>
                        		<?php 
                    $_smarty_tpl->tpl_vars['tempaapcost'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['shopfast']->value['pradiusvalue']), null, 0);
                    ?>
                        		<?php 
                }
                ?>
                 	  <?php 
                if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['loop'])) {
                    unset($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']);
                }
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['name'] = 'loop';
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['shopfast']->value['pradius']) ? count($_loop) : max(0, (int) $_loop);
                unset($_loop);
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show'] = true;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'] = 1;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'] - 1;
                if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show']) {
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'];
                    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] == 0) {
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show'] = false;
                    }
                } else {
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] = 0;
                }
                if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show']) {
                    for ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration']++) {
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] == 1;
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'];
                        ?>
 
                 	   <tr>
                        <td>&nbsp; 
                        	  <?php 
                        $_smarty_tpl->tpl_vars['tempgongli'] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['section']['loop']['index'] + 1, null, 0);
                        ?>
                        	     <?php 
                        echo $_smarty_tpl->tpl_vars['tempgongli']->value;
                        ?>
 公里内配送费
                        	 
                        	</td>
                          <td>	
                        	     <input type="text" name="appcost<?php 
                        echo $_smarty_tpl->getVariable('smarty')->value['section']['loop']['index'];
                        ?>
" id="appcost<?php 
                        echo $_smarty_tpl->getVariable('smarty')->value['section']['loop']['index'];
                        ?>
"   value="<?php 
                        echo ($tmp = @$_smarty_tpl->tpl_vars['tempaapcost']->value[$_smarty_tpl->getVariable('smarty')->value['section']['loop']['index']]) === null || $tmp === '' ? 0 : $tmp;
                        ?>
"  onchange="modifyappdo('<?php 
                        echo $_smarty_tpl->getVariable('smarty')->value['section']['loop']['index'];
                        ?>
',this);" class="myinputon" maxlength="3">元
                        	 </td>
                       
                      </tr> 
                  <?php 
                    }
                }
                ?>
 
               </table>
      </div>
  </div>
 
<div class="order_search">
    <span><?php 
                if ($_smarty_tpl->tpl_vars['shopfast']->value['sendtype'] == 0) {
                    ?>
 网站配送, 
   	计价方式:
   	<?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 1) {
                        ?>
统一配送费:<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue1'];
                    }
                    ?>
   	<?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 2) {
                        ?>
不同区域不同配送费<?php 
                    }
                    ?>
   	<?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 3) {
                        ?>
不计算配送费<?php 
                    }
                    ?>
      <?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 4) {
                        ?>
百度地图测算配送费(1公里内:<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue1'];
                        ?>
,3公里内<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue2'];
                        ?>
,6公里内<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue3'];
                        ?>
 <?php 
                    }
                    ?>
      <?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 4) {
                        ?>
 根据菜品数计算配送费:(起送费<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue1'];
                        ?>
,增加一菜品增加<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue2'];
                        ?>
 <?php 
                    }
                    ?>
     
   	<?php 
                } else {
                    ?>
店铺自行设置配送费,请设置配送区域 ,
   	 	<?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 1) {
                        ?>
统一配送费:<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue1'];
                    }
                    ?>
   	  <?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 2) {
                        ?>
不同区域不同配送费<?php 
                    }
                    ?>
   	  <?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 3) {
                        ?>
不计算配送费<?php 
                    }
                    ?>
        <?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 4) {
                        ?>
百度地图测算配送费(1公里内:<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue1'];
                        ?>
,3公里内<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue2'];
                        ?>
,6公里内<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue3'];
                        ?>
 <?php 
                    }
                    ?>
        <?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 4) {
                        ?>
 根据菜品数计算配送费:(起送费<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue1'];
                        ?>
,增加一菜品增加<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue2'];
                        ?>
 <?php 
                    }
                    ?>
 
   	<?php 
                    if ($_smarty_tpl->tpl_vars['showcost']->value == 2) {
                        ?>
,并设置对应配送费<?php 
                    }
                }
                ?>
   
   	 </span>
</div>
       		            		       
<div class="peisongList">   
      <div class="peisongSet"> 
 		      <table width="100%"  > 
 		      	 <?php 
                $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['items']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['arealist']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                    $_smarty_tpl->tpl_vars['items']->_loop = true;
                    ?>
           	 <tr>
          <td colspan="3">&nbsp;  
          	<div>
          	    <?php 
                    if ($_smarty_tpl->tpl_vars['shopfast']->value['sendtype'] == 1) {
                        ?>
          	    <?php 
                        if (!in_array($_smarty_tpl->tpl_vars['items']->value['id'], $_smarty_tpl->tpl_vars['parent_ids']->value)) {
                            ?>
          	    <?php 
                            echo smarty_function_load_data(array('assign' => "shopareacheck", 'table' => "areashop", 'type' => "one", 'where' => "areaid='" . (string) $_smarty_tpl->tpl_vars['items']->value['id'] . "' and shopid = " . (string) $_smarty_tpl->tpl_vars['shopinfo']->value['id'], 'fileds' => "shopid"), $_smarty_tpl);
                            ?>
 
          	       <input type="checkbox" value="<?php 
                            echo $_smarty_tpl->tpl_vars['items']->value['id'];
                            ?>
" name="areaid[]" class="mycheckbox" onclick="changinput(this);" <?php 
                            if (!empty($_smarty_tpl->tpl_vars['shopareacheck']->value)) {
                                ?>
checked<?php 
                            }
                            ?>
/>
          	    <?php 
                        }
                        ?>
          	    <?php 
                    }
                    ?>
          	    <?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['name'];
                    ?>
 
          	    <?php 
                    if (!in_array($_smarty_tpl->tpl_vars['items']->value['id'], $_smarty_tpl->tpl_vars['parent_ids']->value)) {
                        ?>
          	    
          	     <?php 
                        if ($_smarty_tpl->tpl_vars['showcost']->value == 1) {
                            ?>
          	      
     	    	     	 	    <?php 
                            echo smarty_function_load_data(array('assign' => "shoparea", 'table' => "areatoadd", 'type' => "one", 'where' => "areaid='" . (string) $_smarty_tpl->tpl_vars['items']->value['id'] . "' and shopid = 0", 'fileds' => "cost"), $_smarty_tpl);
                            ?>
 
     	    	     	 	     <big><?php 
                            echo $_smarty_tpl->tpl_vars['shoparea']->value['cost'];
                            ?>
元</big>
     	    	    <?php 
                        } elseif ($_smarty_tpl->tpl_vars['showcost']->value == 2) {
                            ?>
     	    	        
     	    	     	 	    <?php 
                            echo smarty_function_load_data(array('assign' => "shoparea", 'table' => "areatoadd", 'type' => "one", 'where' => "areaid='" . (string) $_smarty_tpl->tpl_vars['items']->value['id'] . "'  and shopid = '" . (string) $_smarty_tpl->tpl_vars['shopinfo']->value['id'] . "'", 'fileds' => "cost"), $_smarty_tpl);
                            ?>
 
     	    	     	 	    <input type="text" name="areacost<?php 
                            echo $_smarty_tpl->tpl_vars['items']->value['id'];
                            ?>
" id="areacost<?php 
                            echo $_smarty_tpl->tpl_vars['items']->value['id'];
                            ?>
"   value="<?php 
                            echo $_smarty_tpl->tpl_vars['shoparea']->value['cost'];
                            ?>
"  onchange="modifydo('<?php 
                            echo $_smarty_tpl->tpl_vars['items']->value['id'];
                            ?>
',this);" class="myinputon" maxlength=3  <?php 
                            if (empty($_smarty_tpl->tpl_vars['shopareacheck']->value)) {
                                ?>
 style="display:none;"<?php 
                            }
                            ?>
 />
              </div>
     	    	        
     	    	      <?php 
                        }
                        ?>
     	    	       <?php 
                    }
                    ?>
          	 </td>   
            </tr> 
           	<?php 
                }
                ?>
 
         </table>
      </div>
</div>
       <?php 
            } else {
                ?>
<div class="order_search"><span>未启用外卖店铺不需要设置配送区域</span></div>

               <?php 
            }
            ?>
      <?php 
        } elseif ($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'] == 1) {
            ?>
     
      
               <?php 
            echo smarty_function_load_data(array('assign' => "shopfast", 'table' => "shopmarket", 'where' => "`shopid`='" . (string) $_smarty_tpl->tpl_vars['shopinfo']->value['id'] . "'", 'type' => "one"), $_smarty_tpl);
            ?>
  
       		 	  <?php 
            if (!empty($_smarty_tpl->tpl_vars['shopfast']->value)) {
                ?>
   
       		 	        <?php 
                $_smarty_tpl->tpl_vars['showcost'] = new Smarty_variable(0, null, 0);
                ?>
 
       		 	     <?php 
                if ($_smarty_tpl->tpl_vars['shopfast']->value['sendtype'] == 0) {
                    ?>
 
       		 	       <?php 
                    $_smarty_tpl->tpl_vars['pssetinfo'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['psset']->value), null, 0);
                    ?>
       		 	       <?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 2) {
                        ?>
       		 	            <?php 
                        $_smarty_tpl->tpl_vars['showcost'] = new Smarty_variable(1, null, 0);
                        ?>
       		 	       <?php 
                    }
                    ?>
 
       		       <?php 
                } else {
                    ?>
       		         <?php 
                    $_smarty_tpl->tpl_vars['pssetinfo'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['shopfast']->value['sendset']), null, 0);
                    ?>
       		 	       <?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 2) {
                        ?>
       		 	            <?php 
                        $_smarty_tpl->tpl_vars['showcost'] = new Smarty_variable(2, null, 0);
                        ?>
       		 	       <?php 
                    }
                    ?>
 
       		       <?php 
                }
                ?>
       		        <div class="order_search">
                  <span>  定位配送费设置:app和使用地图定位使用以下配送费 
                 	 </span>
                </div>
  <div class="peisongList">   
      <div class="peisongSet">  
        <table width="100%" border="1" bordercolor="#c6c5c5"> 
        	                  <?php 
                $_smarty_tpl->tpl_vars['tempaapcost'] = new Smarty_variable(array(), null, 0);
                ?>
        	                  <?php 
                if (!empty($_smarty_tpl->tpl_vars['shopfast']->value['pradiusvalue'])) {
                    ?>
                        		<?php 
                    $_smarty_tpl->tpl_vars['tempaapcost'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['shopfast']->value['pradiusvalue']), null, 0);
                    ?>
                        		<?php 
                }
                ?>
                 	  <?php 
                if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['loop'])) {
                    unset($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']);
                }
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['name'] = 'loop';
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['shopfast']->value['pradius']) ? count($_loop) : max(0, (int) $_loop);
                unset($_loop);
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show'] = true;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'] = 1;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'] - 1;
                if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show']) {
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'];
                    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] == 0) {
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show'] = false;
                    }
                } else {
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] = 0;
                }
                if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show']) {
                    for ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration']++) {
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] == 1;
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'];
                        ?>
 
                 	   <tr>
                        <td>&nbsp; 
                        	<div>
                        	  <?php 
                        $_smarty_tpl->tpl_vars['tempgongli'] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['section']['loop']['index'] + 1, null, 0);
                        ?>
                        	     <?php 
                        echo $_smarty_tpl->tpl_vars['tempgongli']->value;
                        ?>
 公里内配送费
                        	    </div>
                        	 </td>
                       
                     
                        <td>
                        	     <input type="text" name="appcost<?php 
                        echo $_smarty_tpl->getVariable('smarty')->value['section']['loop']['index'];
                        ?>
" id="appcost<?php 
                        echo $_smarty_tpl->getVariable('smarty')->value['section']['loop']['index'];
                        ?>
"   value="<?php 
                        echo ($tmp = @$_smarty_tpl->tpl_vars['tempaapcost']->value[$_smarty_tpl->getVariable('smarty')->value['section']['loop']['index']]) === null || $tmp === '' ? 0 : $tmp;
                        ?>
"  onchange="modifyappdo('<?php 
                        echo $_smarty_tpl->getVariable('smarty')->value['section']['loop']['index'];
                        ?>
',this);" class="myinputon" maxlength="3"/>元
                        	 </td>
                       
                      </tr> 
                  <?php 
                    }
                }
                ?>
 
               </table> 

      </div>
    </div>
	          <div class="order_search">
                  <span><?php 
                if ($_smarty_tpl->tpl_vars['shopfast']->value['sendtype'] == 0) {
                    ?>
 网站配送 ,
                 	计价方式:
                 	<?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 1) {
                        ?>
统一配送费:<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue1'];
                    }
                    ?>
                 	<?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 2) {
                        ?>
不同区域不同配送费<?php 
                    }
                    ?>
                 	<?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 3) {
                        ?>
不计算配送费<?php 
                    }
                    ?>
	 	              <?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 4) {
                        ?>
百度地图测算配送费(1公里内:<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue1'];
                        ?>
,3公里内<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue2'];
                        ?>
,6公里内<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue3'];
                        ?>
 <?php 
                    }
                    ?>
	 	              <?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 4) {
                        ?>
 根据菜品数计算配送费:(起送费<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue1'];
                        ?>
,增加一菜品增加<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue2'];
                        ?>
 <?php 
                    }
                    ?>
	 	             
                 	
                 	<?php 
                } else {
                    ?>
店铺自行设置配送费,请设置配送区域,
                 	 	<?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 1) {
                        ?>
统一配送费:<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue1'];
                    }
                    ?>
                 	  <?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 2) {
                        ?>
不同区域不同配送费<?php 
                    }
                    ?>
                 	  <?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 3) {
                        ?>
不计算配送费<?php 
                    }
                    ?>
	 	                <?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 4) {
                        ?>
百度地图测算配送费(1公里内:<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue1'];
                        ?>
,3公里内<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue2'];
                        ?>
,6公里内<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue3'];
                        ?>
 <?php 
                    }
                    ?>
	 	                <?php 
                    if ($_smarty_tpl->tpl_vars['pssetinfo']->value['pstype'] == 4) {
                        ?>
 根据菜品数计算配送费:(起送费<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue1'];
                        ?>
,增加一菜品增加<?php 
                        echo $_smarty_tpl->tpl_vars['pssetinfo']->value['psvalue2'];
                        ?>
 <?php 
                    }
                    ?>
 
                 	<?php 
                    if ($_smarty_tpl->tpl_vars['showcost']->value == 2) {
                        ?>
,并设置对应配送费<?php 
                    }
                }
                ?>
</span>
             </div>
  <div class="peisongList">   
      <div class="peisongSet">
       		      <table width="100%" border="1" bordercolor="#c6c5c5"> 
                 	 <?php 
                $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['items']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['arealist']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                    $_smarty_tpl->tpl_vars['items']->_loop = true;
                    ?>
 
                 	 <tr>
                        <td colspan="3">&nbsp; 
                        	<div>
                        	    <?php 
                    if ($_smarty_tpl->tpl_vars['shopfast']->value['sendtype'] == 1) {
                        ?>
                        	    <?php 
                        if (!in_array($_smarty_tpl->tpl_vars['items']->value['id'], $_smarty_tpl->tpl_vars['parent_ids']->value)) {
                            ?>
                        	     <?php 
                            echo smarty_function_load_data(array('assign' => "shopareacheck", 'table' => "areamarket", 'type' => "one", 'where' => "areaid='" . (string) $_smarty_tpl->tpl_vars['items']->value['id'] . "' and shopid = " . (string) $_smarty_tpl->tpl_vars['shopinfo']->value['id'], 'fileds' => "shopid"), $_smarty_tpl);
                            ?>
 
                        	       <input type="checkbox" value="<?php 
                            echo $_smarty_tpl->tpl_vars['items']->value['id'];
                            ?>
" name="areaid[]" class="mycheckbox" onclick="changinput(this);" <?php 
                            if (!empty($_smarty_tpl->tpl_vars['shopareacheck']->value)) {
                                ?>
checked<?php 
                            }
                            ?>
>
                        	    <?php 
                        }
                        ?>
                        	    <?php 
                    }
                    ?>
                        	    <?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['name'];
                    ?>
 
                        	     <?php 
                    if (!in_array($_smarty_tpl->tpl_vars['items']->value['id'], $_smarty_tpl->tpl_vars['parent_ids']->value)) {
                        ?>
                        	     <?php 
                        if ($_smarty_tpl->tpl_vars['showcost']->value == 1) {
                            ?>
                        	      
                   	    	     	 	    <?php 
                            echo smarty_function_load_data(array('assign' => "shoparea", 'table' => "areatomar", 'type' => "one", 'where' => "areaid='" . (string) $_smarty_tpl->tpl_vars['items']->value['id'] . "' and shopid = 0", 'fileds' => "cost"), $_smarty_tpl);
                            ?>
 
                   	    	     	 	     <big><?php 
                            echo $_smarty_tpl->tpl_vars['shoparea']->value['cost'];
                            ?>
元</big>
                   	    	    <?php 
                        } elseif ($_smarty_tpl->tpl_vars['showcost']->value == 2) {
                            ?>
                   	    	       
                   	    	     	 	    <?php 
                            echo smarty_function_load_data(array('assign' => "shoparea", 'table' => "areatomar", 'type' => "one", 'where' => "areaid='" . (string) $_smarty_tpl->tpl_vars['items']->value['id'] . "'  and shopid = '" . (string) $_smarty_tpl->tpl_vars['shopinfo']->value['id'] . "'", 'fileds' => "cost"), $_smarty_tpl);
                            ?>
 
                   	    	     	 	    <input type="text" name="areacost<?php 
                            echo $_smarty_tpl->tpl_vars['items']->value['id'];
                            ?>
" id="areacost<?php 
                            echo $_smarty_tpl->tpl_vars['items']->value['id'];
                            ?>
"   value="<?php 
                            echo $_smarty_tpl->tpl_vars['shoparea']->value['cost'];
                            ?>
"  onchange="modifydo('<?php 
                            echo $_smarty_tpl->tpl_vars['items']->value['id'];
                            ?>
',this);" class="myinputon" maxlength=3  <?php 
                            if (empty($_smarty_tpl->tpl_vars['shopareacheck']->value)) {
                                ?>
 style="display:none;"<?php 
                            }
                            ?>
 >
                              </div>
                   	    	        
                   	    	      <?php 
                        }
                        ?>
                   	    	       <?php 
                    }
                    ?>
                        	 </td>
                        
                      </tr> 
                 	<?php 
                }
                ?>
 
               </table>
                 </div>
    </div>
               <?php 
            } else {
                ?>
<div class="order_search">
        <span> 未启用超市店铺不需要设置配送区域!</span>
</div>
               <?php 
            }
            ?>
      
      
          
      <?php 
        }
        ?>
</div>
  <div class="cl"></div>
  
  <!--content right end--> 
 
 
 
  
<script>
	//选择地址
	var showcost = '<?php 
        echo $_smarty_tpl->tpl_vars['showcost']->value;
        ?>
';
 function changinput(obj){
 	if($(obj).is(':checked')){ 
 		//配送区域指定
 		shopidtoad($(obj).val(),'add');
 		if(showcost == 2){
 			$('#areacost'+$(obj).val()).show();
	  }
 	}else{ 
 		shopidtoad($(obj).val(),'del');
 		if(showcost == 2){
 			$('#areacost'+$(obj).val()).hide();
	  }
 	}
 }
function selall(obj){
	var findobj = $('#checkboxdiv'+$(obj).val()).find("[name='areaid[]']");
	var findobj2 = $('#checkboxdiv'+$(obj).val()).find("[type='text']");
	if($(obj).is(':checked')){  
		 $(findobj).attr('checked',true);
		 $(findobj2).removeClass('myinput').addClass('myinputon');
		 $(findobj2).attr('disabled',false); 
		 $(findobj2).attr('value',$('#sendcost').val());
		 shopidtoad(2,$(obj).val(),$('#sendcost').val(),1);
	}else{
		$(findobj).attr('checked',false);
		 $(findobj2).removeClass('myinputon').addClass('myinput');
		 $(findobj2).attr('disabled',true);
		 $(findobj2).attr('value','');
		 shopidtoad(2,$(obj).val(),$('#areacost'+$(obj).val()).val(),2);
	}
}
 
function modifydo(areaid,obj)
{
	 var backinfo = ajaxback('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/shoptoadcost/datatype/json"), $_smarty_tpl);
        ?>
',{'areaid':areaid,'cost':$(obj).val()});
	if(backinfo.flag == true)
	{ 
		diaerror(backinfo.content); 
	}else{
	  
		artsucces('保存成功');
	}
} 
function modifyappdo(gongli,obj){
	var backinfo = ajaxback('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/shoptoappcost/datatype/json"), $_smarty_tpl);
        ?>
',{'gongli':gongli,'cost':$(obj).val()});
	if(backinfo.flag == true)
	{ 
		diaerror(backinfo.content); 
	}else{
	  
		artsucces('保存成功');
	}
}
function setdefault(obj){ 
	/*
	showop('店铺默认配送费用修改保存中');
	var backinfo = ajaxback('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shopcenter/setdefaultsend"), $_smarty_tpl);
        ?>
',{'sendcost':$(obj).val()});
	if(backinfo.flag == true)
	{
		hideop();
		diaerror(backinfo.content); 
	}else{
		hideop();
		artsucces('保存成功');
	}*/
}
//店铺ID到地址ID关联保存
function shopidtoad(areaid,types)
{ 
	  
	var backinfo = ajaxback('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/shopidtoad/datatype/json"), $_smarty_tpl);
        ?>
',{'areaid':areaid,'types':types});
	if(backinfo.flag == true)
	{
		 
		diaerror(backinfo.content); 
	}else{
	  
		artsucces('保存成功');
	}
}
 
</script>
 







       </div>




<!--以下是公共的底部部分-->

    <div class="footer">
    	<div class="foot1">
        <center>
        	<div class="db">
        	   <?php 
        if (!empty($_smarty_tpl->tpl_vars['toplink']->value)) {
            ?>
	 	      <?php 
            $_smarty_tpl->tpl_vars['toplink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['toplink']->value), null, 0);
            ?>
		  	  <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['toplink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
			         <a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> |
			    <?php 
            }
            ?>
			<?php 
        }
        ?>

            </div></center>
            <div class="cl"></div>
        </div>
        <div class="foot2">
        	<p>@2008-2012 <?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['beian']->value;
        ?>
 <?php 
        echo stripslashes($_smarty_tpl->tpl_vars['footerdata']->value);
        ?>
</p>
        </div>
    </div>

 <script>

				$(function(){

			  	if("undefined" != typeof mynomenu){
					   var allobj = $('.nav').find('li');
					  $.each(allobj, function(i, newobj) {
					  	if($(this).attr('data') == mynomenu){
					  	   $(this).addClass('on').siblings().removeClass('on');
					  	 }
					  	//alert($(this).attr('data'));

					  });
				 	}
					$(".nav ul li").click(function(){
					    	$(this).addClass('on').siblings().removeClass('on');

					});
				});
				function openlink(newlinkes){
					window.location.href=newlinkes;
				}
</script>

</body>
</html>
<?php 
    }
    function content_558225e9865954_24971845($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/function.load_data.php';
        }
        ?>
<!DOCTYPE html>
<html> 
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title><?php 
        echo $_smarty_tpl->tpl_vars['mapname']->value;
        ?>
-附近商家列表-<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</title>
<meta name="Keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" />
<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" />
<?php 
        echo stripslashes($_smarty_tpl->tpl_vars['metadata']->value);
        ?>

<link rel="shortcut icon" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/images/favicon.ico" /> 
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/common.css"> 
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/server.css"> 
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/shouye.css"> 
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/food_menu.css"> 
 


 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquerynew.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/allj.js" type="text/javascript" language="javascript"></script>
 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script> 
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/template.min.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquery.lazyload.min.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/regestercode.js"></script>
 <script>
     var regestercode=0;
 	$(function() { 
  $("img").lazyload({ 
  effect : "fadeIn" 
  }); 
 //Header二维码显示与隐藏  Begin
 $('.views_main_header ul > li:nth-of-type(5) span:nth-child(1)').on({
 	'mouseover':function(){
 	$('.views_main_header ul > li:nth-of-type(5) span:nth-child(3)').fadeIn();
 },
 'mouseout':function(){
 	$('.views_main_header ul > li:nth-of-type(5) span:nth-child(3)').fadeOut();
 }
});
 //Header二维码显示与隐藏  End  


//Header点击添加高亮  Begin
$('.views_main_header ul > li:nth-of-type(4) ol li:nth-of-type(1)').addClass('active');

 $('.views_main_header ul > li:nth-of-type(2) span').click(function(){
    $(this).parent().addClass('active');
    $(this).parent().siblings().children().children().removeClass('active');
 });

 $('.views_main_header ul > li:nth-of-type(4) ol li').click(function(){
    $(this).addClass('active').siblings().removeClass('active');
    $(this).parent().parent().siblings().removeClass('active');
    $('#cover').fadeOut();
    $('.views_main_login_sign_wrap').removeClass('views_main_login_sign_one_transition');
 });
//Header点击添加高亮  End

//用户登录后,显示当前用户的信息列表 Begin
 if($('.person_content').children('span').eq(0).text().length != 0){
    $('.person_content').on({  
    	'mouseover':function(){
    		$(this).children('span').eq(1).fadeIn();
        $('.person_name').text($(this).children('span').eq(0).text());
          $(this).children('span').eq(2).fadeIn('slow');
    	},
    	'mouseleave':function(){
    		$(this).children('span').eq(1).fadeOut();
        $(this).children('span').eq(2).fadeOut('fast');
    	}
    });
  }
//用户登录后,显示当前用户的信息列表 End

//用户未登录,显示登录注册也面 Begin
  else{
      var uid = <?php 
        echo $_smarty_tpl->tpl_vars['member']->value['uid'];
        ?>

      if (uid > 0) {
            $('.person_content').children('span').eq(0).text('个人中心');
            $(".person_content").on("click",function(){
         window.location.href=siteurl+'/index.php?controller=member&action=base';  
            })
      }else{
          
           $('.person_content').children('span').eq(0).text('登录 注册');
        $('.person_content').on( 
      'click',function(){
        $('.views_main_login_sign_wrap').addClass('views_main_login_sign_one_transition');
        $('.views_main_login_sign_one').show();
        $('.views_main_login_sign_two').hide();
        $('.views_main_login_sign_three').hide();
        $('#cover').fadeIn();
      }
    );
    
      }
    
  }
//用户未登录,显示登录注册也面 End

//用户未登录,登录注册页面切换 Begin
$('.views_main_header ul > li:nth-child(2) ol li:nth-child(1)').click(function() {
      var value=$("#mobile_check").val();
      var order_check=$("#order_check").val();
      if(value==1||order_check!=="no"){
         location.href= "http://shop.xiaoshuhaochi.com/member/index";
      }else{
        $('.views_main_login_sign_one').fadeIn();
      $('#cover').fadeIn();
      }
    });
    $('#sign_now,.sign_now').click(function() {
        $('.views_main_login_sign_two').fadeIn();
        $('.views_main_login_sign_one').fadeOut();
        $('.views_main_login_sign_three').fadeOut();
    });
    $("#fogot_password").click(function(){
      
         $('.views_main_login_sign_one').fadeOut();
         $(".views_main_login_sign_three").fadeIn();
    })
    $('#login_now').click(function() {
        $('.views_main_login_sign_one').fadeIn();
        $('.views_main_login_sign_two').fadeOut();
    });
    $('#fogetpass').click(function() {
        $('.views_main_login_sign_three').fadeIn();
        $('.views_main_login_sign_one').fadeOut();
    });
//用户未登录,登录注册页面切换 End


//点击❌退出当前页面  Begin
    $('.delete').click(function() {
        $('.views_main_detail').fadeOut();
        $('#cover').fadeOut();
        $('.views_main_login_sign_wrap').removeClass('views_main_login_sign_one_transition');
        $('.general_notice').fadeOut();
    });
//点击❌退出当前页面  End



//点击发送验证码倒计时 Begin
var count = 60;
var timer;
var reg = /^[0-9]*$/;
$('#send_code').click(function(){
  if($('#phone').val().length == 11 && reg.test($('#phone').val()) ){
    timer = setInterval(countDownaaaa,1000); 
  }
});
//验证码
function countDownaaaa(){
  count --;
  if(count == 0 ){
    $('#send_code').css({
      'background':'#ff6000',
      'color':'#fff'
    }); 
   $('#send_code').val('获取验证码').removeAttr('disabled');
    clearInterval(timer);
    count = 60;
    
  }
  else{
    $('#send_code').css({
      'background':'#ccc',
      'color':'#999'
    });
  $('#send_code').attr('disabled',true);
  $('#send_code').val('('+count+')'+'重新发送');
  }
};
//点击发送验证码倒计时 End


}); 

//登录
 function login_btn () {
         var url = siteurl+'/index.php?controller=member&action=login';
         var uname = $("#login_cell").val();
         var pwd = $("#login_password").val();
         var info = {'uname':uname,'pwd':pwd,'logintype':'html5'}; 
         var  url = siteurl+'/index.php?controller=member&action=login&datatype=json&random=@random@' 
        $.ajax({ 
            url: url.replace('@random@', 1+Math.round(Math.random()*1000)), 
            dataType: "json", 
            data:info, 
            success:function(content) {  
            	$('#loading').toggle(); 
            	if(content.msg ==  false){
                        alert("登陆成功");
            		 window.location.href= siteurl+'/index.php?controller=site&action=index&shoid='+shopid;
            	}else{ 
            	   alert(content.msg);
                   $("#cover").hide();
              }
            	
            }, 
            error:function(){ 
            	$('#loading').toggle();

            } 
         });  
 }
  //注册
  function savepwd(){  

		   $('#loading').show();
      var info = {'tname':$('.mobile_email_reg').val(),'phone':$('.mobile_email_reg').val(),'pwd':$('.password_reg').val(),'pwd2':$('.repassword_reg').val(),'checklogin':'******','phoneyan':$('.code').val(),'regestercode':'1'};
               
		  var url = '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/saveregester/random/@random@/datatype/json"), $_smarty_tpl);
        ?>
'; 
		  var backdata = ajaxback(url,info); 
		  if(backdata.flag == false){ 
		      window.location.href = siteurl+'/index.php?controller=site&action=member';
		  }else{
		  	$('#loading').hide();
		     alert(backdata.content);
		  }
		  
	}
        //忘记密码
        function changepwd(){  
            
	
         var phone = $("#mobile_email").val();
         var code = $("#code").val();
         var newpwd = $("#password").val();
         var newpwd2 = $("#repassword").val();
         var info = {'phone':phone,'code':code,'newpwd':newpwd,'newpwd2':newpwd2}
  	 	  var  url = siteurl+'/index.php?controller=member&action=saveuser&controlname=repwd&datatype=json&random=@random@' 
  	 	   $.ajax({ 
            url: url.replace('@random@', 1+Math.round(Math.random()*1000)), 
            dataType: "json", 
            data:info, 
            success:function(content) {  
            alert("修改成功");
             window.location.href= siteurl+'/index.php?controller=site&action=index';
            	if(content.msg ==  false){
            		 window.location.href= siteurl+'/index.php?controller=wxsite&action=member&shoid='+shopid;
            	}else{ 
            	   alert(content.msg);
                  // $("#loading").hide();
              }
            	
            }, 
            error:function(){ 
            	//$('#loading').toggle();

            } 
         });
		  
	}
</script>

 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquery.cookie.js" type="text/javascript" language="javascript"></script> 
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/cart.js" type="text/javascript" language="javascript"></script>
 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/slides.jquery.js"> </script>
 <script>
     
     var shopid = "<?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['id'];
        ?>
"; 
     
     function cartInOut(){
        $('.new_cart_logo').addClass('new_cart_logo_active');//购物车图标弹出
     	//2s后购物车详情弹出  Begin
     	setTimeout(function(){
     		$('.new_cart_up').addClass('new_cart_transition');
     	},700);
     	setTimeout(function(){
     		$('.new_cart_logo  ul li:last-of-type i').addClass('active');
     	},1500);
     	//2s后购物车详情弹出  End
     }; 
     function cartIn(){
     	$('.new_cart').addClass('new_cart_logo_active');
     };
     function cartOut(){
     	$('.new_cart').removeClass('new_cart_logo_active');
     };

	$(function(){
$('.new_cart_pic').on(
	'mouseover',function(){
		cartIn();
});
$('.new_cart').on('mouseleave',function(){
	cartOut();
});
//鼠标放在购物车图标上时,购物车弹出或弹入 End

//点击商品图片弹出商品详情页  Begin
$('.MILPic').click(function() {
	$('.views_main_detail').fadeIn();
	$('#cover').fadeIn();
});
//点击商品图片弹出商品详情页  End

//鼠标移过商品图片时,显现下阴影效果 Begin
     $('.MealsTitle ul li').click(function(){
     	$(this).addClass('active').siblings().removeClass('active');
     });
//鼠标移过商品图片时,显现下阴影效果 End

		//$('.left_cat_cls').('title','删除');
			$('#bannerBox').slides({
				preload: true,
				preloadImage: '/upload/images/shop/loading.gif',
				play: 5000,
				pause: 2500,
				hoverPause: true,
				generatePagination:true,
				paginationClass:'mypagination'
			});
		});
                var locationfalse = false;
                function  synchro_cart() {
                    
                }
                
                function getdetail (goodsid) {    
                var submitData={
                goodsid:goodsid
                 }
              var url= siteurl+'/index.php?controller=site&action=goodsDetail';
                $.post(url,submitData,function(data){
                    if (data) {
                          var detail = data.msg;
                         $(".detail_supplier").html(detail.shopname);
                         $("#detail_supplier_address").html(detail.address);
		         $("#detail_good_desc").html(detail.img);
                         $("#detail_price").html(detail.cost);
                    //     $("#detail_img1").attr("src", );
                    }
                    
                },"json")
                }
</script>


 <script> 
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
	var is_static ="<?php 
        echo $_smarty_tpl->tpl_vars['is_static']->value;
        ?>
";
	var controllername= '<?php 
        echo $_smarty_tpl->tpl_vars['controlname']->value;
        ?>
';
</script>

<!--[if lte IE 6]>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('div, ul, img, li, input , a'); 
    </script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/ie6.js" type="text/javascript"></script>
<![endif]--> 
</head> 
<body> 
<div id="toTop" style="left: 1212.5px; display: none;"></div>



<!--
<div class="top">
	 <div class="top_a">
	 	  <div class="top_a_show">
	 	  	<div class="top_a_show_l">
	 	  		  <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/index"), $_smarty_tpl);
        ?>
" class=""><span class="topmcbck"></span> <div style="padding-left:25px;">欢迎光临<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</div></a>
	 	  	</div>
	 	  	<div class="top_a_show_r">
	 	  		<?php 
        if (empty($_smarty_tpl->tpl_vars['member']->value['uid'])) {
            ?>
	 	  		 <div class="top_a_show_span"><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/regester"), $_smarty_tpl);
            ?>
">注册</a></div>
	 	  		 <div class="top_a_show_span">|</div>
	 	  		 <div class="top_a_show_span"><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/login"), $_smarty_tpl);
            ?>
">登陆</a></div>
	 	  		 <div class="top_a_show_span">|</div>
	 	  		 	 <a href="#">  <div class="sina"></div> </a>
	 	  		 <a href="#">  <div class="qq"></div> </a>
	 	  		 <?php 
        } else {
            ?>
	 	  		  <div class="top_a_show_span"><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
            ?>
">退出登陆</a></div>
	 	  		 <div class="top_a_show_span">|</div>
	 	  		  <div class="top_a_show_span"><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/order/usersorder"), $_smarty_tpl);
            ?>
">个人中心</a></div>
	 	  		 <div class="top_a_show_span">|</div>
	 	  		  <div class="top_a_show_span"><?php 
            echo $_smarty_tpl->tpl_vars['member']->value['username'];
            ?>
</div> 
	 	  		 <?php 
        }
        ?>
	 	  	
	 	  		
	 	  		 
	 	  		 
	 	  	</div>
	 	  </div>
  </div>
	 <div class="top1">
	 	 <div class="top1_show">
	 	 	
	 	  <div class="top1_logo"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['sitelogo']->value;
        ?>
"></a></div>
	 	  <div class="top1_menu">
	 	     <ul>
	 	     	<?php 
        if (!empty($_smarty_tpl->tpl_vars['footlink']->value)) {
            ?>
	 	     	<?php 
            $_smarty_tpl->tpl_vars['footlink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['footlink']->value), null, 0);
            ?>
	 	     		<?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['footlink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
 
			          <li class="active_li" data="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> </li>
			      <?php 
            }
            ?>
	 	     <?php 
        }
        ?>
	 	     	</ul>	
	 	  	
	 	  </div>
	 	   
	 	   
	 	   
	 	 </div>
	 </div>
</div> 
  -->
<div class="mmbg" <?php 
        if (!empty($_smarty_tpl->tpl_vars['sitebk']->value)) {
            ?>
style="background:url(<?php 
            echo $_smarty_tpl->tpl_vars['sitebk']->value;
            ?>
) repeat;"<?php 
        }
        ?>
></div> 

  <div class="top2">
	  	 <div class="top2_content">
	  	 	  <div class="hc_addr">
					 <!--  <div class="hc_addr_change"><span class="hc_change"><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/guide"), $_smarty_tpl);
        ?>
">[更改地址]</a> </span><span class="hc_address">地址:<a style="color:#000;" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
"><?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['mapname']->value) === null || $tmp === '' ? '' : $tmp;
        ?>
</a></span></div>-->
				  </div>
				  <div class="hc_search">
					<div class="hc_search_left"></div>
					<div class="hc_search_midd"><input id="search_input" value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['shopsearch']->value) === null || $tmp === '' ? '搜索餐厅、美食' : $tmp;
        ?>
" text="搜索餐厅、美食" onfocus="cls(this)" onblur="res(this)"   onkeyprese="pre(this)" type="text6" onkeydown="if(event.keyCode==13)search();" style="padding:0;padding-left:30px;;margin-bottom:0;margin-top:1px;width: 280px;height: 47px;line-height:47px; outline:none;border:0;"  ></div>
					<div class="hc_searching"></div>
					<div class="clear"></div>
					<script type="text/javascript">
						$('.hc_searching').click(function(){
							search();
						})
						
						function search()
						{
							var name = $('#search_input').val();
							if(name != '' && name != $('#search_input').attr('text')) 
							{
								var url = siteurl+'/index.php?controller=site&action=index&shopsearch='+name; 
								location.href=url;
							}
						}
						function cls(obj)
						{
							if($(obj).attr('text') == $(obj).val())
							{
								$(obj).val('');
								$('#search_input').css('color','#000');
							}  
						}
						function res(obj)
						{
							if($(obj).val() == '')
							{
								$('#search_input').css('color','#666');
								$(obj).val($(obj).attr('text'));
							}
						}
						$(document).ready(function(){
							$('#search_input').css('color','#666');
						});
					</script>
				</div>
				  
	  	 	</div>
	 </div>


 						 <!-- 头部 End -->
<div class="views_main_header">
    <ul>
      <li class="waimairenPic-logo" onclick="location.href='/main/index'"></li>
      <li class="person_content">
         <span></span>
         <span class="waimairenPic-deteile_rihjt"></span>
         <span class="person_info">
          <ol style="display:none;">
            <li class="person_name"><span></span></li>
            <li>基本信息</li>
            <li>配送地址</li>
            <li>密码管理</li>
            <li>我的订单</li>
            <li>优惠券</li>
            <li>我的账户</li>
            <li>积分</li>
            <li>退出</li>
          </ol>
      </span>
      </li>
      
      <li>
        <ol>
          <li><span class="mainPic-chose"></span>选择用餐时间与品类</li>
          <li id='this_week' class="this_week"><span></span><span>本周 </span><span> <<?php 
        ?>
?php echo $weeks_contorl[0][0]."-".$weeks_contorl[0][1];?<?php 
        ?>
></span></li>
          <li id='next_week' class="next_week"><span></span><span>下周 </span><span> <<?php 
        ?>
?php echo $weeks_contorl[1][0]."-".$weeks_contorl[1][1];?<?php 
        ?>
></span></li>
          <li><span class="mainPic-rice" title="午餐"></span><span class="mainPic-drink" title="饮品"></span><span class="mainPic-fruit" title="水果"></span><span class="mainPic-bun" title="甜点"></span></li>
        </ol>
      </li>
      <li>
        <ol>
          <li><span class="waimairenPic-order_icon"></span>点餐</li>
          <li><span class="waimairenPic-seat_icon"></span>订餐位</li>
          <li><span class="waimairenPic-dinner_icon"></span>约饭</li>
          <li><span class="waimairenPic-about_icon"></span>关于</li>
        </ol>
      </li>
      <li><span class="waimairenPic-weiChat"></span><span class="waimairenPic-weiBo"></span><span class="waimairenPic-code"></span></li>
     </ul>
 </div>
 <!-- 遮罩 Begin -->
  <!-- <div id="cover"></div>-->
 <!-- 遮罩 End -->
 <!-- 注册登录 Begin -->
<div class="views_main_login_sign_wrap">
 <div class="views_main_login_sign_one">
   <span class="delete">
      
   </span>
   <div class="views_main_login">
    <h3>登录</h3>
    <!--<form method="post" enctype="multipart/form-data" action=http://dev.xiaoshuhaochi.com/main/user_login>-->
     <ul>
       <li><input id="login_cell" type="text" placeholder="手机号码"/></li>
       <li><input id="login_password" type="password" placeholder="密码"/></li>
       <li>
         <label>
           <input id="remember_password" type="checkbox" checked="checked" /> 记住密码
         </label>
         <a id="fogot_password">忘记密码 ?</a>
       </li>
       <li><button id="login_btn" onclick="login_btn();">立即登录</button></li>
       <!--<li>你也可以通过以下方式登录</li>
       <li><span></span><span></span></li>-->
     </ul>
   <!--  </form>-->
   </div>
   <div class="views_main_sign">
     <h3 id="reg">注册</h3>
     <p id="show_login_btn">我已有<a>小树好吃</a>账号</p>
     <p>登录后,享受会员专属待遇</p>
     <button id="sign_now" >立即注册</button>
   </div>
 </div>

 <div class="views_main_login_sign_two">
   <span class="delete">
      
   </span>
   
   <div class="views_main_login">
    <h3>注册</h3>

     <ul>
       <li><input type="text" id="phone" class="mobile_email_reg" placeholder="手机号码"/></li>
       <li>
          <input type="text" class="code" placeholder="验证码" />
          <input type="button" id="send_code" class="cursor_pointer send_code" onclick="clickyanzheng(regestercode=0);" value="发送验证码"/>
           <span class="cursor_pointer send_div" style="display:none;"></span>
       </li>
       <li><input type="password" class="password_reg"  placeholder="密码"/></li>
       <li><input type="password" class="repassword_reg" placeholder="重复密码"/></li>
       <li>
         <input type="checkbox" checked>
         我已阅读并同意<a href="javascript:;">用户协议</a>
       </li>
       <li><button class="userRister" onclick="savepwd();">立即注册</button></li>
     </ul>

   </div>
   <div class="views_main_sign">
     <h3>登录</h3>
     <p>我已有<a>小树好吃</a>账号</p>
     <p>登录后,享受会员专属待遇</p>
     <ul>
         <li><button id="login_now">立即登录</button></li>
       <!--<li>你也可以通过以下方式登录</li>
       <li><span></span><span></span></li>-->
     </ul>
   </div>
 </div>

 <div class="views_main_login_sign_three">
   <span class="delete">
      
   </span>
   <div class="views_main_login">
    <h3>忘记密码</h3>
     <ul>
         <li><input type="text" id="phone" placeholder="手机号码"/></li>
       <li>
          <input type="text" id="code" placeholder="验证码">

          <input type="button" id="send_code" class="send_sms" onclick="clickyanzheng(regestercode=3);" value="发送验证码"/>
          <span id="send_div" class="cursor_pointer" style="display:none;"></span>
       </li>
       <li><input type="password" id="password" placeholder="密码"/></li>
       <li><input type="password" id="repassword" placeholder="重复密码"/></li>
       <li><button id="changpass" onclick="changepwd();">确认修改</button></li>
     </ul>
   </div>
   <div class="views_main_sign">
     <h3>注册</h3>
     <p>我已有<a>小树好吃</a>账号</p>
     <p>登录后,享受会员专属待遇</p>
     <button class="sign_now">立即注册</button>
   </div>
 </div>
 </div>

 <!-- 注册登录 End -->
                                          <!-- 头部 End -->
 
<div id="content">
	<div class="hc_content">   
		
  <div class="hc_advertising">
     <div id="bannerBox">
					 <div  class="slides_container" style="height:175px;">
					 	 <?php 
        echo smarty_function_load_data(array('assign' => "lunbo", 'table' => "adv", 'fileds' => "*", 'limit' => "5", 'where' => "advtype='lunbo' and module='" . (string) $_smarty_tpl->tpl_vars['sitetemp']->value . "'"), $_smarty_tpl);
        ?>
  
							<?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['lunbo']->value['list'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
			        	   <a href="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['linkurl'];
            ?>
" target="_blank"><img src="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['img'];
            ?>
" width="1100" height="175"></a> 
				      <?php 
        }
        ?>
 
				    </div>
       
					 
		 </div> 
	</div>
            <!--小树好吃-->
<div class="MealsTitle">
	<ul>
		<li class="active">全部<i></i></li>
		<li>饮品<i></i></li>
		<li>水果沙拉<i></i></li>
		<li>甜点<i></i></li>
		<li>午餐</li>
	</ul>
	<div class="clear"></div>
</div>
<div class="MealsImgList" >
<ul>
	<?php 
        $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['value']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['index_goods']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) {
            $_smarty_tpl->tpl_vars['value']->_loop = true;
            ?>
  
	<?php 
            if (!empty($_smarty_tpl->tpl_vars['value']->value['img'])) {
                ?>
 
    <li>
        <div class="MILPic" onclick="getdetail(<?php 
                echo $_smarty_tpl->tpl_vars['value']->value['id'];
                ?>
);"><img src="<?php 
                echo $_smarty_tpl->tpl_vars['value']->value['img'];
                ?>
"></div>
<div class="MIL_wrap">
        <div class="MIL1">
            <div class="MIL1Left" id="goodsname_<?php 
                echo $_smarty_tpl->tpl_vars['value']->value['id'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['value']->value['name'];
                ?>
</div>
            <div class="MIL1Right"><big class="prime_big"><?php 
                echo $_smarty_tpl->tpl_vars['value']->value['cost'];
                ?>
 </big>元
            <del class="prime_cost"><?php 
                if ($_smarty_tpl->tpl_vars['value']->value['prime_cost'] !== '0.00') {
                    ?>
                原价
                <?php 
                    echo $_smarty_tpl->tpl_vars['value']->value['prime_cost'];
                    ?>
   
               <?php 
                }
                ?>
</del>
               <span class="prime_count">
               剩余
                <?php 
                echo $_smarty_tpl->tpl_vars['value']->value['count'];
                ?>

                份</span>
            </div>
             <div class="MIL3Right">
	<?php 
                if ($_smarty_tpl->tpl_vars['value']->value['count'] < 1) {
                    ?>
	<!--	<div class="DishesOrderout"> -->
			<a class="AddOrders"  href="javascript:;">售完</a>
	<!--	</div>  -->
		<?php 
                } else {
                    ?>
 <!--    <div class="DishesOrder">   -->
	<a  class="AddOrder" onclick="addonedish(<?php 
                    echo $_smarty_tpl->tpl_vars['value']->value['id'];
                    ?>
,<?php 
                    echo $_smarty_tpl->tpl_vars['value']->value['shopid'];
                    ?>
,1,this);"  href="javascript:void(0);"><span>+</span>点餐</a>
<!--  </div>  -->
	<?php 
                }
                ?>
                                            </div>
        </div>
<div class="MIL2">
        <div class="MIL2Left"> 
            <span class="Star_g tips" original-title="<?php 
                echo $_smarty_tpl->tpl_vars['value']->value['point'];
                ?>
分">
                        	<?php 
                if ($_smarty_tpl->tpl_vars['value']->value['point'] != 0) {
                    ?>
 
                        	<?php 
                    $_smarty_tpl->tpl_vars['long'] = new Smarty_variable($_smarty_tpl->tpl_vars['value']->value['point'] * 20, null, 0);
                    ?>
                        	<?php 
                } else {
                    ?>
 
                        	<?php 
                    $_smarty_tpl->tpl_vars['long'] = new Smarty_variable("100", null, 0);
                    ?>
                        	<?php 
                }
                ?>
 
                            <span class="Star_y" style="width:<?php 
                echo $_smarty_tpl->tpl_vars['long']->value;
                ?>
%;"></span>
            </span>
            <a href="javascript:;"><?php 
                echo $_smarty_tpl->tpl_vars['value']->value['point'];
                ?>
点评</a>
        </div>
        <div class="MIL2Right">售<?php 
                echo $_smarty_tpl->tpl_vars['value']->value['sellcount'];
                ?>
份</div>
</div>
            <div class="MIL3">
                <div class="MIL3Left">
                    <div class="DishesStatus">
                           <?php 
                $_smarty_tpl->tpl_vars['goodssignlist'] = new Smarty_variable(explode(",", $_smarty_tpl->tpl_vars['value']->value['signid']), null, 0);
                ?>
  
                    </div>
                </div>

                                        </div>
                                     </div>
                                    </li>
                                    <?php 
            }
            ?>
                
                
                                    
                                    <?php 
        }
        ?>
  
                                    <div style="clear:both;"></div>
                                   
                                </ul>
                            </div>
  
            <!--小树好吃-->


 <div class="new_shoplist">
     <div class="new_list_l">店铺筛选</div>
    <div class="new_list_m">
       	<ul>
			<li>
				<div id="all" class="hc_changes_menu_div_active hc_changes_menu_div_active_hover">

					<span class="hc_changes_menu_div_active_span">全部</span>
				</div>
			</li> 
		    <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['attrinfo']->value[0]['det'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
 
	       <li>
		       <div class="menu-xuanze-img hc_changes_menu_div_active" style_id="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
">
			       <span class="hc_changes_menu_div_active_span"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['name'];
            ?>
</span>
		       </div>
	       </li>
	       <?php 
        }
        ?>
		 
	    </ul>
		 <div class="clear"></div>
    </div>
    <div class="new_list_r">
		 <div id="qisongjia" qisongjia_val="4" class="hc_shop_frist">起送价</div>
			<div class="hc_shop_scale">
					<div class="hc_shop_scale_span" style="margin-left:0px;">
					<div qisongjia_val="4" class="qisongjia_click hc_shop_scale_price hc_shop_scale_img_margin hc_shop_scale_price_hover">全</div>
					<div qisongjia_val="10" class="qisongjia_click hc_shop_scale_price hc_shop_scale_img_margin">10</div>
					<div qisongjia_val="20" class="qisongjia_click hc_shop_scale_price hc_shop_scale_img_margin">20</div>
					<div qisongjia_val="30" class="qisongjia_click hc_shop_scale_price">30</div>
					<div class="clear"></div>
				</div>
				<div class="hc_shop_scale_up">
					<div qisongjia_val="4" class="qisongjia_click hc_shop_scale_img hc_shop_scale_img_margin hc_shop_scale_images"></div>
					<div qisongjia_val="10" class="qisongjia_click hc_shop_scale_img hc_shop_scale_img_margin"></div>
					<div qisongjia_val="20" class="qisongjia_click hc_shop_scale_img hc_shop_scale_img_margin"></div>
					<div qisongjia_val="30" class="qisongjia_click hc_shop_scale_img"></div>
					<div class="clear"></div>
				</div>
			</div>
	</div>
	<div class="clear"></div>
 </div>
 
 <div class="hc_shop_list">
			<div class="hc_shop_list_div">
				<ul id="shopList">
					
						<?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['shoplist']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
  
						 
						   <?php 
            if ($_smarty_tpl->tpl_vars['items']->value['opentype'] == 2) {
                ?>
      
						 
					 <li  qisongjia="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['limitcost'];
                ?>
" fengwei_id="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['servertype'];
                ?>
" isyingye="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['is_open'];
                ?>
" id="menu-list-box_<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
" shop_id="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
" class="menu-list-box hc_collection_div_border_right_bottom">
						<div class="hc_shop_list_box">
							<div class="hc_shop_list_box_left">
                            
                  <!--  <?php 
                if ($_smarty_tpl->tpl_vars['items']->value['opentype'] == 2 || $_smarty_tpl->tpl_vars['items']->value['opentype'] == 3) {
                    ?>
   -->       
                            
                            <a href="<?php 
                    ob_start();
                    echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                    $_tmp1 = ob_get_clean();
                    echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp1), $_smarty_tpl);
                    ?>
"><div style="background-image: url(<?php 
                    echo $_smarty_tpl->tpl_vars['siteurl']->value;
                    ?>
/templates/<?php 
                    echo $_smarty_tpl->tpl_vars['tempdir']->value;
                    ?>
/public/images/zaixiandingdan.png);"></div></a>
                 <!--     <?php 
                } else {
                    ?>
 
                     
                     
                            <a href="<?php 
                    ob_start();
                    echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                    $_tmp2 = ob_get_clean();
                    echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp2), $_smarty_tpl);
                    ?>
"><div style="position: absolute; background-image: url(<?php 
                    echo $_smarty_tpl->tpl_vars['siteurl']->value;
                    ?>
/templates/<?php 
                    echo $_smarty_tpl->tpl_vars['tempdir']->value;
                    ?>
/public/images/order_masker_closed.png); height: 83px; width: 99px; z-index:999; right:7px;top:7px;"></div></a>
                            
                  <?php 
                }
                ?>
  -->
                            
                            
								<div class="hc_shop_list_box_img">
								  <div class="hc_shop_list_box_img_div" shop_id="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
" >
									   <a target="_blank" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp3 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp3), $_smarty_tpl);
                ?>
"><img atl="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['shopname'];
                ?>
" src="<?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shoplogo']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['shoplogo']->value : $tmp;
                ?>
"></a>
								  </div>
								</div>
								<a target="_blank" class="a1" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp4 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp4), $_smarty_tpl);
                ?>
"><!--<div class="hc_shop_list_box_span">
									<?php 
                $_smarty_tpl->tpl_vars['itat'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['itat']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['mainattr']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['itat']->key => $_smarty_tpl->tpl_vars['itat']->value) {
                    $_smarty_tpl->tpl_vars['itat']->_loop = true;
                    ?>
									  <?php 
                    if ($_smarty_tpl->tpl_vars['itat']->value['type'] == 'input') {
                        ?>
									     <?php 
                        $_smarty_tpl->tpl_vars['itcc'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['itcc']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['itat']->value['det'];
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['itcc']->key => $_smarty_tpl->tpl_vars['itcc']->value) {
                            $_smarty_tpl->tpl_vars['itcc']->_loop = true;
                            ?>
									       
									          <?php 
                            $_smarty_tpl->tpl_vars['itaa'] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars['itaa']->_loop = false;
                            $_from = $_smarty_tpl->tpl_vars['items']->value['attrdet'];
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars['itaa']->key => $_smarty_tpl->tpl_vars['itaa']->value) {
                                $_smarty_tpl->tpl_vars['itaa']->_loop = true;
                                ?>
									             <?php 
                                if ($_smarty_tpl->tpl_vars['itcc']->value['parent_id'] == $_smarty_tpl->tpl_vars['itaa']->value['firstattr']) {
                                    ?>
									                 <?php 
                                    echo $_smarty_tpl->tpl_vars['itaa']->value['value'];
                                    ?>

									             <?php 
                                }
                                ?>
									          <?php 
                            }
                            ?>
									     <?php 
                        }
                        ?>
									  <?php 
                    }
                    ?>
     
									<?php 
                }
                ?>
 
                                    
									</div>--></a>
							</div>
                            
                            <div class="hc_shop_list_box_right">
								<div class="hc_list_box_head" >
								    <a target="_blank" class="hc_list_box_head_a_hover" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp5 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp5), $_smarty_tpl);
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['shopname'];
                ?>
</a>
								</div>
                                
                                <div class="hc_list_box_add" >
								    <a target="_blank" class="hc_list_box_head_a_hover" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp6 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp6), $_smarty_tpl);
                ?>
">
									
									
									<?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['limitcost']) === null || $tmp === '' ? 0 : $tmp;
                ?>
元起送
									
									<?php 
                if ($_smarty_tpl->tpl_vars['items']->value['pscost'] == 0) {
                    ?>
										免配送费
									<?php 
                } else {
                    ?>
										<?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['pscost'];
                    ?>
元配送费
									<?php 
                }
                ?>
									</a>
								</div>
								
								 <div class="hc_list_box_add" >
								    <a target="_blank" class="hc_list_box_head_a_hover" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp7 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp7), $_smarty_tpl);
                ?>
">
									
									<div class="hc_action">
              	<?php 
                $_smarty_tpl->tpl_vars['itat'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['itat']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['mainattr']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['itat']->key => $_smarty_tpl->tpl_vars['itat']->value) {
                    $_smarty_tpl->tpl_vars['itat']->_loop = true;
                    ?>
									  <?php 
                    if ($_smarty_tpl->tpl_vars['itat']->value['type'] == 'img') {
                        ?>
 
									          <?php 
                        $_smarty_tpl->tpl_vars['itaa'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['itaa']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['items']->value['attrdet'];
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['itaa']->key => $_smarty_tpl->tpl_vars['itaa']->value) {
                            $_smarty_tpl->tpl_vars['itaa']->_loop = true;
                            ?>
									             <?php 
                            if ($_smarty_tpl->tpl_vars['itat']->value['id'] == $_smarty_tpl->tpl_vars['itaa']->value['firstattr']) {
                                ?>
 
									                 <img alt="<?php 
                                echo $_smarty_tpl->tpl_vars['itat']->value['name'];
                                ?>
" class="hc_action_img" src="<?php 
                                echo $_smarty_tpl->tpl_vars['itaa']->value['value'];
                                ?>
" title="<?php 
                                echo $_smarty_tpl->tpl_vars['itat']->value['instro'];
                                ?>
">  
									             <?php 
                            }
                            ?>
									          <?php 
                        }
                        ?>
 
									  <?php 
                    }
                    ?>
     
									<?php 
                }
                ?>
              </div> 
									</a>
								</div>
								
								<!--<a target="_blank" class="a1" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp8 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp8), $_smarty_tpl);
                ?>
"> 
							  <div class="hc_xinxin">
								  <div class="hc_xinxin_div"> 
									   <?php 
                if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['loop'])) {
                    unset($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']);
                }
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['name'] = 'loop';
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['items']->value['point']) ? count($_loop) : max(0, (int) $_loop);
                unset($_loop);
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show'] = true;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'] = 1;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'] - 1;
                if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show']) {
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'];
                    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] == 0) {
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show'] = false;
                    }
                } else {
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] = 0;
                }
                if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show']) {
                    for ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration']++) {
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] == 1;
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'];
                        ?>
 
                  	 <div class="hc_xinxin_div_float"><img alt="star" src="<?php 
                        echo $_smarty_tpl->tpl_vars['siteurl']->value;
                        ?>
/templates/<?php 
                        echo $_smarty_tpl->tpl_vars['tempdir']->value;
                        ?>
/public/images/xinxin01.png"></div>
                     <?php 
                    }
                }
                ?>
 
                     <div class="clear"></div>
								  </div>
								<div class="hc_comment"> 
									<div class="hc_xinxin_div_float"><img alt="评论" src="<?php 
                echo $_smarty_tpl->tpl_vars['siteurl']->value;
                ?>
/templates/<?php 
                echo $_smarty_tpl->tpl_vars['tempdir']->value;
                ?>
/public/images/comment.png"></div>
									<div class="hc_xinxin_div_float"><span style="margin-left:3px;"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['pointcount'];
                ?>
</span></div> 
									<div class="clear"></div>
								</div>
								<div class="clear"></div>
							</div>
							
							
              <div class="hc_action">
              	<?php 
                $_smarty_tpl->tpl_vars['itat'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['itat']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['mainattr']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['itat']->key => $_smarty_tpl->tpl_vars['itat']->value) {
                    $_smarty_tpl->tpl_vars['itat']->_loop = true;
                    ?>
									  <?php 
                    if ($_smarty_tpl->tpl_vars['itat']->value['type'] == 'img') {
                        ?>
 
									          <?php 
                        $_smarty_tpl->tpl_vars['itaa'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['itaa']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['items']->value['attrdet'];
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['itaa']->key => $_smarty_tpl->tpl_vars['itaa']->value) {
                            $_smarty_tpl->tpl_vars['itaa']->_loop = true;
                            ?>
									             <?php 
                            if ($_smarty_tpl->tpl_vars['itat']->value['id'] == $_smarty_tpl->tpl_vars['itaa']->value['firstattr']) {
                                ?>
 
									                 <img alt="<?php 
                                echo $_smarty_tpl->tpl_vars['itat']->value['name'];
                                ?>
" class="hc_action_img" src="<?php 
                                echo $_smarty_tpl->tpl_vars['itaa']->value['value'];
                                ?>
" title="<?php 
                                echo $_smarty_tpl->tpl_vars['itat']->value['instro'];
                                ?>
">  
									             <?php 
                            }
                            ?>
									          <?php 
                        }
                        ?>
 
									  <?php 
                    }
                    ?>
     
									<?php 
                }
                ?>
              </div> 
               
              <div class="hc_order"> 
              <?php 
                if ($_smarty_tpl->tpl_vars['items']->value['opentype'] == 1) {
                    ?>
                    <span class="gray_font" title="店铺已过营业时间,打烊中">已打烊</span>
              <?php 
                } elseif ($_smarty_tpl->tpl_vars['items']->value['opentype'] == 2) {
                    ?>
               <span class="hc_order_box" title="接受预定中。">营业中</span>
                <span class="">
              	<?php 
                    $_smarty_tpl->tpl_vars['itat'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['itat']->_loop = false;
                    $_smarty_tpl->tpl_vars['mykey'] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['mainattr']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['itat']->key => $_smarty_tpl->tpl_vars['itat']->value) {
                        $_smarty_tpl->tpl_vars['itat']->_loop = true;
                        $_smarty_tpl->tpl_vars['mykey']->value = $_smarty_tpl->tpl_vars['itat']->key;
                        ?>
              
									   <?php 
                        if ($_smarty_tpl->tpl_vars['itat']->value['type'] == 'checkbox') {
                            ?>
									   <?php 
                            $_smarty_tpl->tpl_vars['ckey'] = new Smarty_variable("0", null, 0);
                            ?>
   
									          <?php 
                            $_smarty_tpl->tpl_vars['itaa'] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars['itaa']->_loop = false;
                            $_smarty_tpl->tpl_vars['ckey'] = new Smarty_Variable();
                            $_from = $_smarty_tpl->tpl_vars['items']->value['attrdet'];
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars['itaa']->key => $_smarty_tpl->tpl_vars['itaa']->value) {
                                $_smarty_tpl->tpl_vars['itaa']->_loop = true;
                                $_smarty_tpl->tpl_vars['ckey']->value = $_smarty_tpl->tpl_vars['itaa']->key;
                                ?>
									             <?php 
                                if ($_smarty_tpl->tpl_vars['itat']->value['id'] == $_smarty_tpl->tpl_vars['itaa']->value['firstattr'] && $_smarty_tpl->tpl_vars['ckey']->value < 1) {
                                    ?>
 
									                 <?php 
                                    echo $_smarty_tpl->tpl_vars['itaa']->value['value'];
                                    ?>

									             <?php 
                                }
                                ?>
									          <?php 
                            }
                            ?>
 
									    <?php 
                        }
                        ?>
     
									<?php 
                    }
                    ?>
						     </span>
              <?php 
                } elseif ($_smarty_tpl->tpl_vars['items']->value['opentype'] == 3) {
                    ?>
                        <span class="hc_order_box" title="接受预定中。">接受预定</span>
              	         <span class="hc_order_span"><?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['newstartime'];
                    ?>
开送</span>
              <?php 
                } elseif ($_smarty_tpl->tpl_vars['items']->value['opentype'] == 4) {
                    ?>
                 <span class="gray_font" title="店铺已过营业时间,打烊中">停止营业</span>
              <?php 
                } else {
                    ?>
                   <span class="gray_font" title="店铺已过营业时间,打烊中">已打烊</span>
              <?php 
                }
                ?>
 
              
              	 
              </div>					 </a>-->
							<div class="fav_font_div" style="display: none;"> </div>
					
					</div>
                            
				  <div class="clear"></div>
				 
				  </div>
		  </li> 
				 <?php 
            }
            ?>
				 
			  
					<div class="shopview_div" id="shopview_div_<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
" style="display: none;">
                 		<div class="loading"><img src="<?php 
            echo $_smarty_tpl->tpl_vars['siteurl']->value;
            ?>
/templates/<?php 
            echo $_smarty_tpl->tpl_vars['tempdir']->value;
            ?>
/public/images/loading43.gif" width="38" height="38"></div>
          	</div> 
        
           
          	<?php 
        }
        ?>
          
					<?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['shoplist']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
  
				 
				  <?php 
            if ($_smarty_tpl->tpl_vars['items']->value['opentype'] == 3) {
                ?>
      
						 
					 <li  qisongjia="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['limitcost'];
                ?>
" fengwei_id="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['servertype'];
                ?>
" isyingye="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['is_open'];
                ?>
" id="menu-list-box_<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
" shop_id="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
" class="menu-list-box hc_collection_div_border_right_bottom">
						<div class="hc_shop_list_box">
							
							
							
							<div class="hc_shop_list_box_left">
                            
                            
                            
                            <a href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp9 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp9), $_smarty_tpl);
                ?>
"><div style="position: absolute; background-image: url(<?php 
                echo $_smarty_tpl->tpl_vars['siteurl']->value;
                ?>
/templates/<?php 
                echo $_smarty_tpl->tpl_vars['tempdir']->value;
                ?>
/public/images/zaixianyuding.png); height: 83px; width: 99px; z-index:999; right:7px;top:7px;"></div></a>
                  
                            
                            
								<div class="hc_shop_list_box_img">
								  <div class="hc_shop_list_box_img_div" shop_id="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
" >
									   <a target="_blank" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp10 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp10), $_smarty_tpl);
                ?>
"><img style="margin-right:6px;" width="205" height="159" atl="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['shopname'];
                ?>
" src="<?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shoplogo']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['shoplogo']->value : $tmp;
                ?>
"></a>
								  </div>
								</div>
								<a target="_blank" class="a1" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp11 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp11), $_smarty_tpl);
                ?>
"></a>
							</div>
                            
                            <div class="hc_shop_list_box_right">
								<div class="hc_list_box_head" >
								    <a target="_blank" class="hc_list_box_head_a_hover" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp12 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp12), $_smarty_tpl);
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['shopname'];
                echo $_smarty_tpl->tpl_vars['items']->value['opentype'];
                ?>
</a>
								</div>
                                
                                <div class="hc_list_box_add" >
								    <a target="_blank" class="hc_list_box_head_a_hover" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp13 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp13), $_smarty_tpl);
                ?>
">
									
									
									<?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['limitcost']) === null || $tmp === '' ? 0 : $tmp;
                ?>
元起送
									
									<?php 
                if ($_smarty_tpl->tpl_vars['items']->value['pscost'] == 0) {
                    ?>
										免配送费
									<?php 
                } else {
                    ?>
										<?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['pscost'];
                    ?>
元配送费
									<?php 
                }
                ?>
									</a>
								</div>
								
								 <div class="hc_list_box_add" >
								    <a target="_blank" class="hc_list_box_head_a_hover" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp14 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp14), $_smarty_tpl);
                ?>
">
									
									<div class="hc_action">
              	<?php 
                $_smarty_tpl->tpl_vars['itat'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['itat']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['mainattr']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['itat']->key => $_smarty_tpl->tpl_vars['itat']->value) {
                    $_smarty_tpl->tpl_vars['itat']->_loop = true;
                    ?>
									  <?php 
                    if ($_smarty_tpl->tpl_vars['itat']->value['type'] == 'img') {
                        ?>
 
									          <?php 
                        $_smarty_tpl->tpl_vars['itaa'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['itaa']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['items']->value['attrdet'];
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['itaa']->key => $_smarty_tpl->tpl_vars['itaa']->value) {
                            $_smarty_tpl->tpl_vars['itaa']->_loop = true;
                            ?>
									             <?php 
                            if ($_smarty_tpl->tpl_vars['itat']->value['id'] == $_smarty_tpl->tpl_vars['itaa']->value['firstattr']) {
                                ?>
 
									                 <img width="20" height="20" alt="<?php 
                                echo $_smarty_tpl->tpl_vars['itat']->value['name'];
                                ?>
" class="hc_action_img" src="<?php 
                                echo $_smarty_tpl->tpl_vars['itaa']->value['value'];
                                ?>
" title="<?php 
                                echo $_smarty_tpl->tpl_vars['itat']->value['instro'];
                                ?>
">  
									             <?php 
                            }
                            ?>
									          <?php 
                        }
                        ?>
 
									  <?php 
                    }
                    ?>
     
									<?php 
                }
                ?>
              </div> 
									
									
									</a>
								</div>
							
							<div class="fav_font_div" style="display: none;"> </div>
					
					</div>
                            
				  <div class="clear"></div>
				 
				  </div>
		  </li> 
				 <?php 
            }
            ?>
				 
				 
				
				 <?php 
        }
        ?>

						<?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['shoplist']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
  
				 
				  <?php 
            if ($_smarty_tpl->tpl_vars['items']->value['opentype'] != 2 && $_smarty_tpl->tpl_vars['items']->value['opentype'] != 3) {
                ?>
      
						 
					 <li  qisongjia="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['limitcost'];
                ?>
" fengwei_id="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['servertype'];
                ?>
" isyingye="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['is_open'];
                ?>
" id="menu-list-box_<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
" shop_id="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
" class="menu-list-box hc_collection_div_border_right_bottom">
						<div class="hc_shop_list_box">
							
							
							
							<div class="hc_shop_list_box_left">
                            
                            <a href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp15 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp15), $_smarty_tpl);
                ?>
"><div style="position: absolute; background-image: url(<?php 
                echo $_smarty_tpl->tpl_vars['siteurl']->value;
                ?>
/templates/<?php 
                echo $_smarty_tpl->tpl_vars['tempdir']->value;
                ?>
/public/images/order_masker_closed.png); height: 83px; width: 99px; z-index:999; right:7px;top:7px;"></div></a>
               
                            
								<div class="hc_shop_list_box_img">
								  <div class="hc_shop_list_box_img_div" shop_id="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
" >
									   <a target="_blank" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp16 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp16), $_smarty_tpl);
                ?>
"><img style="margin-right:6px;" width="205" height="159" atl="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['shopname'];
                ?>
" src="<?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shoplogo']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['shoplogo']->value : $tmp;
                ?>
"></a>
								  </div>
								</div>
								<a target="_blank" class="a1" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp17 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp17), $_smarty_tpl);
                ?>
"></a>
							</div>
                            
                            <div class="hc_shop_list_box_right">
								<div class="hc_list_box_head" >
								    <a target="_blank" class="hc_list_box_head_a_hover" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp18 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp18), $_smarty_tpl);
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['shopname'];
                echo $_smarty_tpl->tpl_vars['items']->value['opentype'];
                ?>
</a>
								</div>
                                
                                <div class="hc_list_box_add" >
								    <a target="_blank" class="hc_list_box_head_a_hover" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp19 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp19), $_smarty_tpl);
                ?>
">
									
									
									<?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['limitcost']) === null || $tmp === '' ? 0 : $tmp;
                ?>
元起送
									
									<?php 
                if ($_smarty_tpl->tpl_vars['items']->value['pscost'] == 0) {
                    ?>
										免配送费
									<?php 
                } else {
                    ?>
										<?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['pscost'];
                    ?>
元配送费
									<?php 
                }
                ?>
									</a>
								</div>
								
								 <div class="hc_list_box_add" >
								    <a target="_blank" class="hc_list_box_head_a_hover" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp20 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp20), $_smarty_tpl);
                ?>
">
									
									<div class="hc_action">
              	<?php 
                $_smarty_tpl->tpl_vars['itat'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['itat']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['mainattr']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['itat']->key => $_smarty_tpl->tpl_vars['itat']->value) {
                    $_smarty_tpl->tpl_vars['itat']->_loop = true;
                    ?>
									  <?php 
                    if ($_smarty_tpl->tpl_vars['itat']->value['type'] == 'img') {
                        ?>
 
									          <?php 
                        $_smarty_tpl->tpl_vars['itaa'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['itaa']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['items']->value['attrdet'];
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['itaa']->key => $_smarty_tpl->tpl_vars['itaa']->value) {
                            $_smarty_tpl->tpl_vars['itaa']->_loop = true;
                            ?>
									             <?php 
                            if ($_smarty_tpl->tpl_vars['itat']->value['id'] == $_smarty_tpl->tpl_vars['itaa']->value['firstattr']) {
                                ?>
 
									                 <img width="20" height="20" alt="<?php 
                                echo $_smarty_tpl->tpl_vars['itat']->value['name'];
                                ?>
" class="hc_action_img" src="<?php 
                                echo $_smarty_tpl->tpl_vars['itaa']->value['value'];
                                ?>
" title="<?php 
                                echo $_smarty_tpl->tpl_vars['itat']->value['instro'];
                                ?>
">  
									             <?php 
                            }
                            ?>
									          <?php 
                        }
                        ?>
 
									  <?php 
                    }
                    ?>
     
									<?php 
                }
                ?>
              </div> 
									
									
									</a>
								</div>
							
							<div class="fav_font_div" style="display: none;"> </div>
					
					</div>
                            
				  <div class="clear"></div>
				 
				  </div>
		  </li> 
				 <?php 
            }
            ?>
				 
				 
				
				 <?php 
        }
        ?>
				<div class="clear"></div> 
				 </ul>
 
			</div>
</div>

<div class="new_cart" id="newcart"></div>
<div class="new_cart_pic">
     <span class="cart_sum">0</span>
</div>
       
              
<div class="hc_app">
	<ul>
		
	 <?php 
        echo smarty_function_load_data(array('assign' => "advlist", 'table' => "adv", 'fileds' => "*", 'where' => "advtype='other1' and module='" . (string) $_smarty_tpl->tpl_vars['sitetemp']->value . "'", 'limit' => "5"), $_smarty_tpl);
        ?>
  
	 <?php 
        if (count($_smarty_tpl->tpl_vars['advlist']->value['list']) > 0) {
            ?>
	   <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['advlist']->value['list'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                ?>
		  <li style="height:330px;width:220px">
		     <a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['linkurl'];
                ?>
" target="_blank"><img src="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['img'];
                ?>
" width="220px" height="330px"></a>
	    </li>
	  <?php 
            }
            ?>
		<?php 
        }
        ?>
		
		
	</ul>
	<div class="clear"></div>
</div>

<div id="hc_shop_list2" class="hc_shop_list" style="display:none;">
			<div class="hc_shop_head">
				<div class="hc_shop_head_left">
					<div class="hc_shop_h">更多店铺</div>
					<div class="clear"></div>
				</div>
				<div class="hc_shop_head_right"></div>
				<div class="clear"></div>
				<div class="hc_changes_menu_div">
				</div>
			</div>

			<div class="hc_shop_list_div">
				<ul id="shopList2">
					 
				</ul>
			</div>

</div> 
	
                                        <!-- 详情 Begin 
   <div class="views_main_detail">
     <span class="delete"><img src="<<?php 
        ?>
?=$static_url?<?php 
        ?>
>/icon/delete.png" alt="" /></span>
     <dl>
        <dt>
          <ul>
              <li><img id="detail_img1" src="" alt="主菜"></li>
              
            <li><h3></h3><span id="detail_name"></span></li>
            <li>
                        <img class="detail_img_pd" id="detail_img1_1"  alt="" style="display:none"/>
			<img class="detail_img_pd"  id="detail_img2"   alt="" style="display:none"/>
			<img class="detail_img_pd" id="detail_img3"   alt="" style="display:none"/>
			<img class="detail_img_pd" id="detail_img4"  alt="" style="display:none"/>
			<img class="detail_img_pd" id="detail_img5"   alt="" style="display:none"/>
			
            </li>
          </ul>
        </dt>
        <dd>
        <ul>
          <li>
             <h3 class="name_of_cai"></h3>
          </li>
          <li>
            <ol>
              <li><span>餐厅: </span><span class="detail_supplier"></span></li>
              <!--
			  <li>
                  <span>用餐时间:</span>
                  <span class="views_main_content_week" id="detail_server_week"></span>
                  <span class="views_main_content_date" id="detail_server_day">4/5/2015</span>
              </li>
			  

            </ol>
          </li>
          <li>
             <span id="detail_good_desc" class="detail_desc"></span>
          </li>
          <li>
            <span><small>¥</small ><a id="detail_price"></a></span>
            <button class="views_main_plus_button plus_good_main AddOrder" onclick="addonedish(<?php 
        echo $_smarty_tpl->tpl_vars['value']->value['id'];
        ?>
,<?php 
        echo $_smarty_tpl->tpl_vars['value']->value['shopid'];
        ?>
,1,this);">点餐</button>
          </li>
        </ul>
       </dd>
      </dl>
      <div>
        <img id="detail_image" src="../images/index_menu02.png"  alt="餐厅图片" />
        <div>
          <h5 class="detail_supplier"></h5>
          <span id="detail_supplier_address"></span>
		      <p id="descr" class="p"></p>
        </div>

      </div>
   </div>
    详情 End -->

   <!-- notice Begin 
   
   <<?php 
        ?>
?php if (!$notice) {?<?php 
        ?>
>
<div class="general_notice">
     <span class="delete"><img src="<<?php 
        ?>
?=$static_url?<?php 
        ?>
>/icon/delete.png" alt="" /></span>
     <ul>
       <li>为了您能准时收到您订购的美味,<br/>请您在需要的用餐日期前或当天<big>10:00</big>前进行预订。</li>
       <li>我们的配送时间为:<big>11:00AM</big> - <big>12:00AM</big>!</li>
       <li>您可以提前预订本周和下周的美食!</li>
     </ul>
   </div>
   <<?php 
        ?>
?php }?<?php 
        ?>
>

    notice End -->	
		
<script type="text/javascript">
 $(function(){

 	var top = Math.ceil($('.new_cart_pic').offset().top);
 	var left = Math.ceil($('.new_cart_pic').offset().left);
 	var value = <?php 
        echo $_smarty_tpl->tpl_vars['value']->value['id'];
        ?>
;
 	var value_shop = <?php 
        echo $_smarty_tpl->tpl_vars['value']->value['shopid'];
        ?>
;
 	value = top;
 	value_shop = left; 
 	//alert(value_shop);
 	//alert(left);
 	//<?php 
        echo $_smarty_tpl->tpl_vars['value']->value['id'];
        ?>
.replace(['id'],top);
 	//alert(value);
 // alert(Math.ceil($('.new_cart_logo').offset().top));
 //	alert(<?php 
        echo $_smarty_tpl->tpl_vars['value']->value['id'];
        ?>
);
		var myaddressid = '<?php 
        echo $_smarty_tpl->tpl_vars['myaddress']->value;
        ?>
';
		if(myaddressid == null|| myaddressid==''){
			 window.location.href= '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/guide"), $_smarty_tpl);
        ?>
';
		}


	});
$(document).ready(function(){
	var newCell = $('#shopList').html();
	$('#shopList2').append($(newCell));
	$('#shopList2 .menu-list-box').mouseenter(function(){
		$(this).find('.hc_shop_list_box').addClass('hc_shop_list_box_hover');
		$(this).find('.fav_font_div').show();
		$(".cuSelBox2").removeClass("cuSelBox2");
		$(this).addClass("cuSelBox2");
		$(this).find('.hc_shop_list_box .hcl_collection_btn').find('.hcl_collection_btn').addClass('hcl_collection_btn_hover');
		var item = $(this);
		setTimeout(function(){show_shop_view2(item);},500);
	});
	$('#shopList2 .menu-list-box').mouseleave(function(){	
		$(this).removeClass("cuSelBox2");	
		$(this).find('.hc_shop_list_box').removeClass('hc_shop_list_box_hover');
		$(this).find('.fav_font_div').hide();
		$(this).find('.hc_shop_list_box .hcl_collection_btn').find('.hcl_collection_btn').removeClass('hcl_collection_btn_hover');
		hide_shop_view2($(this));
	});

	//shopheight();
})
/*function shopheight(){
	var numshopli = $('#shopList li').length;
	var numa = Math.ceil(numshopli/4); 
	$('#shopList').css('height',Number(numa)*262);
	numshopli = $('#shopList2 li').length;
	 numa = Math.ceil(numshopli/4);
	$('#shopList2').css('height',Number(numa)*262);
}*/
/*
$('#shopList .menu-list-box').mouseenter(function(){
	$(this).find('.hc_shop_list_box').addClass('hc_shop_list_box_hover');
	$(this).find('.fav_font_div').show();
	$(this).find('.hc_shop_list_box .hcl_collection_btn').addClass('hcl_collection_btn_hover');
	$(".cuSelBox").removeClass("cuSelBox");
	$(this).addClass("cuSelBox");
	var item = $(this);
	setTimeout(function(){show_shop_view1(item);},500);
});


$('#shopList .menu-list-box').mouseleave(function(){
	$(this).removeClass("cuSelBox");
	$(this).find('.hc_shop_list_box').removeClass('hc_shop_list_box_hover');
	$(this).find('.fav_font_div').hide();
	$(this).find('.hc_shop_list_box .hcl_collection_btn').removeClass('hcl_collection_btn_hover');
	hide_shop_view1($(this));
});
*/
$('#shopList .menu-list-box .hc_shop_list_box_img_div').mouseenter(function(){ 
	var doobj = $('#menu-list-box_'+$(this).attr('shop_id'));
	/*$(doobj).find('.hc_shop_list_box').addClass('hc_shop_list_box_hover');*/
	$(doobj).find('.fav_font_div').show();
	$(doobj).find('.hc_shop_list_box .hcl_collection_btn').addClass('hcl_collection_btn_hover');
	$(".cuSelBox").removeClass("cuSelBox");
	$(doobj).addClass("cuSelBox");
	var item=$(this);
		setTimeout(function(){show_shop_view1(item);},500);
});
$('#shopList .menu-list-box .hc_shop_list_box_img_div').mouseleave(function(){
		var doobj = $('#menu-list-box_'+$(this).attr('shop_id'));
	$(doobj).removeClass("cuSelBox");
	$(doobj).find('.hc_shop_list_box').removeClass('hc_shop_list_box_hover');
	$(doobj).find('.fav_font_div').hide();
	$(doobj).find('.hc_shop_list_box .hcl_collection_btn').removeClass('hcl_collection_btn_hover');
	hide_shop_view1($(doobj));
});
$('#shopList .hc_shop_list_div').mouseleave(function(){
	$('#shopList .hc_shop_list_div .shopview_div').hide();
});

$('#shopList2 .hc_shop_list_div').mouseleave(function(){
	$('#shopList2 .hc_shop_list_div .shopview_div').hide();
});
function show_shop_view1(obj) {	
	var shop_id = $(obj).attr('shop_id');
	var cur_shop_id = $(".cuSelBox").attr('shop_id'); 
	if (shop_id != cur_shop_id) {
		return;
	}
	 
	var offset = $(obj).offset();
	//$(obj).addClass('blurborder');
	var windowWidth = $(window).width();
	var windowHeight = $(window).height();

	var shopviewHeight = $('#shopList #shopview_div_'+shop_id).height();

	 $('#shopList .shopview_div').hide();
	 $('#shopList .shopview_div .hc_popups_sanjiao').removeClass('hc_popups_sanjiao_left').removeClass('hc_popups_sanjiao_right').addClass('hc_popups_sanjiao_top'); 
	 if(windowWidth-offset.left > 600)
	 {
		 $('#shopList #shopview_div_'+shop_id+' .hc_popups_sanjiao').addClass('hc_popups_sanjiao_left');
		 $('#shopList #shopview_div_'+shop_id).css('top',offset.top).css('left',offset.left+210);

		 if(windowHeight - offset.top < shopviewHeight)
		 {
			 $('#shopList #shopview_div_'+shop_id+' .hc_popups_sanjiao').removeClass('hc_popups_sanjiao_top').addClass('hc_popups_sanjiao_bottom');
			 $('#shopList #shopview_div_'+shop_id).css('top',offset.bottom - shopviewHeight + 0 );
		 }
	 }
	 else
	 {
		 $('#shopList #shopview_div_'+shop_id+' .hc_popups_sanjiao').addClass('hc_popups_sanjiao_right');
		 $('#shopList #shopview_div_'+shop_id).css('top',offset.top).css('left',offset.left-350);

		 if(windowHeight - offset.top < shopviewHeight)
		 {
			 $('#shopList #shopview_div_'+shop_id+' .hc_popups_sanjiao').removeClass('hc_popups_sanjiao_top').addClass('hc_popups_sanjiao_bottom');
			 $('#shopList #shopview_div_'+shop_id).css('top',offset.bottom - shopviewHeight + 0);
		 }
	 } 

	 $('#shopList #shopview_div_'+shop_id).show();
	
	if($('#shopList #ShopView_'+shop_id).length == 0) {
	 
		 var url = '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/ajaxshopinfo"), $_smarty_tpl);
        ?>
'; 
		 $('#shopList .loading').show();
		 $.post(url, {shop_id:shop_id},function (data, textStatus){ 
			 if($('#shopList #ShopView_'+shop_id).length == 0) {
				 $('#shopList .loading').hide();
			 	 $('#shopList #shopview_div_'+shop_id).append(data);
			 	show_shop_view1(obj);
			 }
			}, 'html');
			 
	}
}

function hide_shop_view1(obj) {
	$('#shopList .shopview_div').hide();
	var shop_id = $(obj).attr('shopid');
	$('#shopList #shopview_div_'+shop_id).hide();
}

$('.menu-xuanze-img').click(function(){
	fenweiChange($(this));
});

function fenweiChange(obj){
	$('.menu-xuanze-img').removeClass('hc_changes_menu_div_active_hover');

	$(obj).addClass('hc_changes_menu_div_active_hover');

	updateFengwei();
}

function updateFengwei()
{
	$('#all').removeClass('hc_changes_menu_div_active_hover');
	
	$('#shopList .menu-list-box').each(function(i){
		$(this).hide();
	});

	var qisongjia = $('#qisongjia').attr('qisongjia_val');
	
	var bool = false;

	var selected_style_id = '';

	$('.menu-xuanze-img').each(function(i){
		var style_id = $(this).attr('style_id');
		
		if($(this).hasClass('hc_changes_menu_div_active_hover'))
		{
			selected_style_id = style_id;
			bool = true;
			
			$('#shopList .menu-list-box').each(function(j){
				var fengwei_id = $(this).attr('fengwei_id').split(',');
				var my_qisongjia = $(this).attr('qisongjia');
				
				if(in_array(style_id,fengwei_id))
				{
					if(qisongjia == 4){
						$(this).show();
					}
					else
					{
						if(parseInt(my_qisongjia)<=qisongjia)
						{
							$(this).show();
						}
						else
						{
							$(this).hide();
						}
					}
				}
			})
		}
		else
		{
			$('#shopList .menu-list-box').each(function(j){
				var fengwei_id = $(this).attr('fengwei_id').split(',');
				if(!in_array(selected_style_id,fengwei_id))
				{
					$(this).hide();
				}
			})
		}
	})
	if(bool==false)
	{
		allChange($("#all"));
	}
	showOtherArea();
}

function in_array(e,arr)
{
	for(i=0;i<arr.length;i++)
	{
		if(arr[i] == e)
		return true;
	}
	return false;
}

function showOtherArea()
{
	var ids = new Array();
	 
	$('#shopList .menu-list-box').each(function(i){
		if($(this).is(":hidden")){
			ids.push($(this).attr('id'));
		}
	});
	/*var allnum = $('#shopList li').length;//总数量
	var downnum = ids.length;//下移数量
	var numshopli = Number(allnum) - Number(downnum);
	var numa = Math.ceil(numshopli/4); 
	$('#shopList').css('height',Number(numa)*262); 
	 numa = Math.ceil(downnum/4);
	$('#shopList2').css('height',Number(numa)*262);
	*/ 
	if(ids.length > 0)
	{
		$('#hc_shop_list2').hide();
		$('#shopList2 .menu-list-box').hide();
		for(var j=0;j<ids.length;j++){
			$('#shopList2 #'+ids[j]).show();
		}
	}
	else
	{
		$('#hc_shop_list2').hide();
	}
	/***自动计算高度***/
}

$("#all").click(function(){
	allChange($(this));
});

function allChange(obj)
{
	if(!$(obj).hasClass('hc_changes_menu_div_active_hover'))
	{
		$(obj).addClass('hc_changes_menu_div_active_hover');
	}
	$(".menu-xuanze-img").removeClass('hc_changes_menu_div_active_hover');
		
		var qisongjia = $('#qisongjia').attr('qisongjia_val');
		$('#shopList .menu-list-box').each(function(i){
			var my_qisongjia = $(this).attr('qisongjia');
			
			if(qisongjia == 4){
				$(this).show();
			}
			else
			{
				if(parseInt(my_qisongjia)<=qisongjia)
				{
					$(this).show();
				}
				else
				{
					$(this).hide();
				}
			}
				
		});
	showOtherArea();
}

function getNowData()
{
	if($('#all').hasClass('hc_changes_menu_div_active_hover'))
	{
		return '2';
	}
	else
	{
		return '3';
	}
}

$('.qisongjia_click').click(function(){
	var qisongjia = $(this).attr('qisongjia_val');
	$('#qisongjia').attr('qisongjia_val',qisongjia);
	
	$('.hc_shop_scale_img').removeClass('hc_shop_scale_images');
	$('.hc_shop_scale_price').removeClass('hc_shop_scale_price_hover');

	$('.hc_shop_scale_img').each(function(){
		if($(this).attr('qisongjia_val')==qisongjia)
		{
			$(this).addClass('hc_shop_scale_images');
		}
	})
	$('.hc_shop_scale_price').each(function(){
		if($(this).attr('qisongjia_val')==qisongjia)
		{
			$(this).addClass('hc_shop_scale_price_hover');
		}
	})

	var type = getNowData();
	if(type=='2')
	{
		allChange($('#all'));
	}
	else
	{
		updateFengwei();
	}
})

function show_shop_view2(obj) {
	var shop_id = $(obj).attr('shop_id');
	var cur_shop_id = $(".cuSelBox2").attr('shop_id');
	if (shop_id != cur_shop_id) {
		return;
	}
	var offset = $('#shopList2 #menu-list-box_'+shop_id).offset();
	var windowWidth = $(window).width();
	var windowHeight = $(window).height();

	var shopviewHeight = $('#shopList2 #shopview_div_'+shop_id).height();

	 $('#shopList2 .shopview_div').hide();
	 $('#shopList2 .shopview_div .hc_popups_sanjiao').removeClass('hc_popups_sanjiao_left').removeClass('hc_popups_sanjiao_right').addClass('hc_popups_sanjiao_top');

	 if(windowWidth-offset.left > 600)
	 {
		 $('#shopList2 #shopview_div_'+shop_id+' .hc_popups_sanjiao').addClass('hc_popups_sanjiao_left');
		 $('#shopList2 #shopview_div_'+shop_id).css('top',offset.top).css('left',offset.left+$('#shopList2 #menu-list-box_'+shop_id).width());

		 if(windowHeight - offset.top < shopviewHeight)
		 {
			 $('#shopList2 #shopview_div_'+shop_id+' .hc_popups_sanjiao').removeClass('hc_popups_sanjiao_top').addClass('hc_popups_sanjiao_bottom');
			 $('#shopList2 #shopview_div_'+shop_id).css('top',offset.top - shopviewHeight + 100);
		 }
	 }
	 else
	 {
		 $('#shopList2 #shopview_div_'+shop_id+' .hc_popups_sanjiao').addClass('hc_popups_sanjiao_right');
		 $('#shopList2 #shopview_div_'+shop_id).css('top',offset.top).css('left',offset.left-350);

		 if(windowHeight - offset.top < shopviewHeight)
		 {
			 $('#shopList2 #shopview_div_'+shop_id+' .hc_popups_sanjiao').removeClass('hc_popups_sanjiao_top').addClass('hc_popups_sanjiao_bottom');
			 $('#shopList2 #shopview_div_'+shop_id).css('top',offset.top - shopviewHeight + 100);
		 }
	 }

	 $('#shopList2 #shopview_div_'+shop_id).show();
	
	if($('#shopList2 #ShopView_'+shop_id).length == 0) {
		 var url = '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/ajaxshopinfo"), $_smarty_tpl);
        ?>
';  
		 $('#shopList2 .loading').show();
		 $.post(url, {shop_id:shop_id},function (data, textStatus){
			 if($('#shopList2 #ShopView_'+shop_id).length == 0) {
				 $('#shopList2 .loading').hide();
			 	 $('#shopList2 #shopview_div_'+shop_id).append(data);
			 	show_shop_view2(obj);
			 }
			}, 'html');
	}
}

function hide_shop_view2(obj) {
	$('#shopList2 .shopview_div').hide();
	var shop_id = $(obj).attr('shopid');
	$('#shopList2 #shopview_div_'+shop_id).hide();
} 
</script>




</div>
	
</div>
</div>
</div>
 

<div id="footer" style="display:none;">
	
<div class="hc_btm_div">
		<div class="hc_btm_contact">
		   <?php 
        if (!empty($_smarty_tpl->tpl_vars['toplink']->value)) {
            ?>
	 	      <?php 
            $_smarty_tpl->tpl_vars['toplink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['toplink']->value), null, 0);
            ?>
		  	  <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['toplink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
 
			         <a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> | 
			    <?php 
            }
            ?>
			<?php 
        }
        ?>

		</div>
		<div class="hc_btm_info">@2008-2012 <?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['beian']->value;
        echo stripslashes($_smarty_tpl->tpl_vars['footerdata']->value);
        ?>
</div>
	</div>	
	
	
 </div> 
<div style="position: absolute; top: -1970px; left: -1970px;"> 
</div>  
</body>
</html><?php 
    }
    function content_555d7197d20ba9_47392483($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include '/data/www/xshc/wmr/lib/Smarty/libs/plugins/function.load_data.php';
        }
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> <?php 
        echo $_smarty_tpl->tpl_vars['mapname']->value;
        ?>
-附近商家列表-<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</title>
<meta name="Keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" />
<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" />
<?php 
        echo stripslashes($_smarty_tpl->tpl_vars['metadata']->value);
        ?>

<link rel="shortcut icon" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/images/favicon.ico" /> 
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/common.css"> 
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/server.css"> 
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/shouye.css"> 
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/food_menu.css"> 
 


 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquerynew.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/allj.js" type="text/javascript" language="javascript"></script>
 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script> 
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/template.min.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquery.lazyload.min.js" type="text/javascript" language="javascript"></script>
 <script>
 	$(function() { 
$("img").lazyload({ 
effect : "fadeIn" 
}); 
}); 

 	</script>

 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquery.cookie.js" type="text/javascript" language="javascript"></script> 
 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/slides.jquery.js"> </script>
 <script>
	$(function(){
			$('#bannerBox').slides({
				preload: true,
				preloadImage: '/upload/images/shop/loading.gif',
				play: 5000,
				pause: 2500,
				hoverPause: true,
				generatePagination:true,
				paginationClass:'mypagination'
			});
		});

</script>


 <script> 
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
	var is_static ="<?php 
        echo $_smarty_tpl->tpl_vars['is_static']->value;
        ?>
";
	var controllername= '<?php 
        echo $_smarty_tpl->tpl_vars['controlname']->value;
        ?>
';
</script>

<!--[if lte IE 6]>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('div, ul, img, li, input , a'); 
    </script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/ie6.js" type="text/javascript"></script>
<![endif]--> 
</head> 
<body> 
<div id="toTop" style="left: 1212.5px; display: none;"></div>




<div class="top">
	 <div class="top_a">
	 	  <div class="top_a_show">
	 	  	<div class="top_a_show_l">
	 	  		  <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/index"), $_smarty_tpl);
        ?>
" class=""><span class="topmcbck"></span> <div style="padding-left:25px;">欢迎光临<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</div></a>
	 	  	</div>
	 	  	<div class="top_a_show_r">
	 	  		<?php 
        if (empty($_smarty_tpl->tpl_vars['member']->value['uid'])) {
            ?>
	 	  		 <div class="top_a_show_span"><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/regester"), $_smarty_tpl);
            ?>
">注册</a></div>
	 	  		 <div class="top_a_show_span">|</div>
	 	  		 <div class="top_a_show_span"><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/login"), $_smarty_tpl);
            ?>
">登陆</a></div>
	 	  		 <div class="top_a_show_span">|</div>
	 	  		 	 <a href="#">  <div class="sina"></div> </a>
	 	  		 <a href="#">  <div class="qq"></div> </a>
	 	  		 <?php 
        } else {
            ?>
	 	  		  <div class="top_a_show_span"><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
            ?>
">退出登陆</a></div>
	 	  		 <div class="top_a_show_span">|</div>
	 	  		  <div class="top_a_show_span"><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/order/usersorder"), $_smarty_tpl);
            ?>
">个人中心</a></div>
	 	  		 <div class="top_a_show_span">|</div>
	 	  		  <div class="top_a_show_span"><?php 
            echo $_smarty_tpl->tpl_vars['member']->value['username'];
            ?>
</div> 
	 	  		 <?php 
        }
        ?>
	 	  	
	 	  		
	 	  		 
	 	  		 
	 	  	</div>
	 	  </div>
  </div>
	 <div class="top1">
	 	 <div class="top1_show">
	 	 	
	 	  <div class="top1_logo"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['sitelogo']->value;
        ?>
"></a></div>
	 	  <div class="top1_menu">
	 	     <ul>
	 	     	<?php 
        if (!empty($_smarty_tpl->tpl_vars['footlink']->value)) {
            ?>
	 	     	<?php 
            $_smarty_tpl->tpl_vars['footlink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['footlink']->value), null, 0);
            ?>
	 	     		<?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['footlink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
 
			          <li class="active_li" data="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> </li>
			      <?php 
            }
            ?>
	 	     <?php 
        }
        ?>
	 	     	</ul>	
	 	  	
	 	  </div>
	 	   
	 	   
	 	   
	 	 </div>
	 </div>
	
</div> 

<div class="mmbg" <?php 
        if (!empty($_smarty_tpl->tpl_vars['sitebk']->value)) {
            ?>
style="background:url(<?php 
            echo $_smarty_tpl->tpl_vars['sitebk']->value;
            ?>
) repeat;"<?php 
        }
        ?>
></div> 

  <div class="top2">
	  	 <div class="top2_content">
	  	 	  <div class="hc_addr">
					   <div class="hc_addr_change"><span class="hc_change"><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/guide"), $_smarty_tpl);
        ?>
">[更改地址]</a> </span><span class="hc_address">地址:<a style="color:#000;" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
"><?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['mapname']->value) === null || $tmp === '' ? '' : $tmp;
        ?>
</a></span></div>
				  </div>
				  <div class="hc_search">
					<div class="hc_search_left"></div>
					<div class="hc_search_midd"><input id="search_input" value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['shopsearch']->value) === null || $tmp === '' ? '搜索餐厅、美食' : $tmp;
        ?>
" text="搜索餐厅、美食" onfocus="cls(this)" onblur="res(this)"   onkeyprese="pre(this)" type="text6" onkeydown="if(event.keyCode==13)search();" style="padding:0;padding-left:30px;;margin-bottom:0;margin-top:1px;width: 280px;height: 47px;line-height:47px; outline:none;border:0;"  ></div>
					<div class="hc_searching"></div>
					<div class="clear"></div>
					<script type="text/javascript">
						$('.hc_searching').click(function(){
							search();
						})
						
						function search()
						{
							var name = $('#search_input').val();
							if(name != '' && name != $('#search_input').attr('text')) 
							{
								var url = siteurl+'/index.php?controller=site&action=index&shopsearch='+name; 
								location.href=url;
							}
						}
						function cls(obj)
						{
							if($(obj).attr('text') == $(obj).val())
							{
								$(obj).val('');
								$('#search_input').css('color','#000');
							}  
						}
						function res(obj)
						{
							if($(obj).val() == '')
							{
								$('#search_input').css('color','#666');
								$(obj).val($(obj).attr('text'));
							}
						}
						$(document).ready(function(){
							$('#search_input').css('color','#666');
						});
					</script>
				</div>
				  
	  	 	</div>
	 </div>


 
 
<div id="content">
	<div class="hc_content">   
		
  <div class="hc_advertising">
     <div id="bannerBox">
					 <div  class="slides_container" style="height:175px;">
					 	 <?php 
        echo smarty_function_load_data(array('assign' => "lunbo", 'table' => "adv", 'fileds' => "*", 'limit' => "5", 'where' => "advtype='lunbo' and module='" . (string) $_smarty_tpl->tpl_vars['sitetemp']->value . "'"), $_smarty_tpl);
        ?>
  
							<?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['lunbo']->value['list'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
			        	   <a href="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['linkurl'];
            ?>
" target="_blank"><img src="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['img'];
            ?>
" width="1100" height="175"></a> 
				      <?php 
        }
        ?>
 
				    </div>
					 
		 </div> 
	</div>
 
 <div class="new_shoplist">
     <div class="new_list_l">    </div>
    <div class="new_list_m">
       	<ul>
						<li>
							<div id="all" class="hc_changes_menu_div_active hc_changes_menu_div_active_hover"><span class="hc_changes_menu_div_active_span">全部</span></div></li> 
					    <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['attrinfo']->value[0]['det'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
   
											             	<li><div class="menu-xuanze-img hc_changes_menu_div_active" style_id="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
"><span class="hc_changes_menu_div_active_span"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['name'];
            ?>
</span></div></li>
				       <?php 
        }
        ?>
		 
					    	<div class="clear"></div>
			 </ul>
    </div>
    <div class="new_list_r">
    	 <div id="qisongjia" qisongjia_val="4" class="hc_shop_frist">起送价</div>
						<div class="hc_shop_scale">
								<div class="hc_shop_scale_span" style="margin-left:0px;">
								<div qisongjia_val="4" class="qisongjia_click hc_shop_scale_price hc_shop_scale_img_margin hc_shop_scale_price_hover">全</div>
								<div qisongjia_val="10" class="qisongjia_click hc_shop_scale_price hc_shop_scale_img_margin">10</div>
								<div qisongjia_val="20" class="qisongjia_click hc_shop_scale_price hc_shop_scale_img_margin">20</div>
								<div qisongjia_val="30" class="qisongjia_click hc_shop_scale_price">30</div>
								<div class="clear"></div>
							</div>
							<div class="hc_shop_scale_up">
								<div qisongjia_val="4" class="qisongjia_click hc_shop_scale_img hc_shop_scale_img_margin hc_shop_scale_images"></div>
								<div qisongjia_val="10" class="qisongjia_click hc_shop_scale_img hc_shop_scale_img_margin"></div>
								<div qisongjia_val="20" class="qisongjia_click hc_shop_scale_img hc_shop_scale_img_margin"></div>
								<div qisongjia_val="30" class="qisongjia_click hc_shop_scale_img"></div>
								<div class="clear"></div>
							</div>
						
						</div>
    </div>
 </div>
 
 <div class="hc_shop_list">
			 
			<div class="hc_shop_list_div">
				<ul id="shopList">
					
						<?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['shoplist']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
  
						 
						   <?php 
            if ($_smarty_tpl->tpl_vars['items']->value['opentype'] == 2) {
                ?>
      
						 
					 <li  qisongjia="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['limitcost'];
                ?>
" fengwei_id="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['servertype'];
                ?>
" isyingye="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['is_open'];
                ?>
" id="menu-list-box_<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
" shop_id="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
" class="menu-list-box hc_collection_div_border_right_bottom">
						<div class="hc_shop_list_box">
							
							
							
							<div class="hc_shop_list_box_left">
                            
                            
                           
                 
                  <!--  <?php 
                if ($_smarty_tpl->tpl_vars['items']->value['opentype'] == 2 || $_smarty_tpl->tpl_vars['items']->value['opentype'] == 3) {
                    ?>
   -->       
                            
                            <a href="<?php 
                    ob_start();
                    echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                    $_tmp1 = ob_get_clean();
                    echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp1), $_smarty_tpl);
                    ?>
"><div style="position: absolute; background-image: url(<?php 
                    echo $_smarty_tpl->tpl_vars['siteurl']->value;
                    ?>
/templates/<?php 
                    echo $_smarty_tpl->tpl_vars['tempdir']->value;
                    ?>
/public/images/zaixiandingdan.png); height: 83px; width: 99px; z-index:999; right:7px;top:7px;"></div></a>
                 <!--     <?php 
                } else {
                    ?>
 
                     
                     
                            <a href="<?php 
                    ob_start();
                    echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                    $_tmp2 = ob_get_clean();
                    echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp2), $_smarty_tpl);
                    ?>
"><div style="position: absolute; background-image: url(<?php 
                    echo $_smarty_tpl->tpl_vars['siteurl']->value;
                    ?>
/templates/<?php 
                    echo $_smarty_tpl->tpl_vars['tempdir']->value;
                    ?>
/public/images/order_masker_closed.png); height: 83px; width: 99px; z-index:999; right:7px;top:7px;"></div></a>
                            
                  <?php 
                }
                ?>
  -->
                            
                            
								<div class="hc_shop_list_box_img">
								  <div class="hc_shop_list_box_img_div" shop_id="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
" >
									   <a target="_blank" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp3 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp3), $_smarty_tpl);
                ?>
"><img style="margin-right:6px;" width="205" height="159" atl="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['shopname'];
                ?>
" src="<?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shoplogo']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['shoplogo']->value : $tmp;
                ?>
"></a>
								  </div>
								</div>
								<a target="_blank" class="a1" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp4 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp4), $_smarty_tpl);
                ?>
"><!--<div class="hc_shop_list_box_span">
									<?php 
                $_smarty_tpl->tpl_vars['itat'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['itat']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['mainattr']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['itat']->key => $_smarty_tpl->tpl_vars['itat']->value) {
                    $_smarty_tpl->tpl_vars['itat']->_loop = true;
                    ?>
									  <?php 
                    if ($_smarty_tpl->tpl_vars['itat']->value['type'] == 'input') {
                        ?>
									     <?php 
                        $_smarty_tpl->tpl_vars['itcc'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['itcc']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['itat']->value['det'];
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['itcc']->key => $_smarty_tpl->tpl_vars['itcc']->value) {
                            $_smarty_tpl->tpl_vars['itcc']->_loop = true;
                            ?>
									       
									          <?php 
                            $_smarty_tpl->tpl_vars['itaa'] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars['itaa']->_loop = false;
                            $_from = $_smarty_tpl->tpl_vars['items']->value['attrdet'];
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars['itaa']->key => $_smarty_tpl->tpl_vars['itaa']->value) {
                                $_smarty_tpl->tpl_vars['itaa']->_loop = true;
                                ?>
									             <?php 
                                if ($_smarty_tpl->tpl_vars['itcc']->value['parent_id'] == $_smarty_tpl->tpl_vars['itaa']->value['firstattr']) {
                                    ?>
									                 <?php 
                                    echo $_smarty_tpl->tpl_vars['itaa']->value['value'];
                                    ?>

									             <?php 
                                }
                                ?>
									          <?php 
                            }
                            ?>
									     <?php 
                        }
                        ?>
									  <?php 
                    }
                    ?>
     
									<?php 
                }
                ?>
 
                                    
									</div>--></a>
							</div>
                            
                            <div class="hc_shop_list_box_right">
								<div class="hc_list_box_head" >
								    <a target="_blank" class="hc_list_box_head_a_hover" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp5 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp5), $_smarty_tpl);
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['shopname'];
                ?>
</a>
								</div>
                                
                                <div class="hc_list_box_add" >
								    <a target="_blank" class="hc_list_box_head_a_hover" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp6 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp6), $_smarty_tpl);
                ?>
">
									
									
									<?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['limitcost']) === null || $tmp === '' ? 0 : $tmp;
                ?>
元起送
									
									<?php 
                if ($_smarty_tpl->tpl_vars['items']->value['pscost'] == 0) {
                    ?>
										免配送费
									<?php 
                } else {
                    ?>
										<?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['pscost'];
                    ?>
元配送费
									<?php 
                }
                ?>
									</a>
								</div>
								
								 <div class="hc_list_box_add" >
								    <a target="_blank" class="hc_list_box_head_a_hover" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp7 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp7), $_smarty_tpl);
                ?>
">
									
									<div class="hc_action">
              	<?php 
                $_smarty_tpl->tpl_vars['itat'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['itat']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['mainattr']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['itat']->key => $_smarty_tpl->tpl_vars['itat']->value) {
                    $_smarty_tpl->tpl_vars['itat']->_loop = true;
                    ?>
									  <?php 
                    if ($_smarty_tpl->tpl_vars['itat']->value['type'] == 'img') {
                        ?>
 
									          <?php 
                        $_smarty_tpl->tpl_vars['itaa'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['itaa']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['items']->value['attrdet'];
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['itaa']->key => $_smarty_tpl->tpl_vars['itaa']->value) {
                            $_smarty_tpl->tpl_vars['itaa']->_loop = true;
                            ?>
									             <?php 
                            if ($_smarty_tpl->tpl_vars['itat']->value['id'] == $_smarty_tpl->tpl_vars['itaa']->value['firstattr']) {
                                ?>
 
									                 <img width="20" height="20" alt="<?php 
                                echo $_smarty_tpl->tpl_vars['itat']->value['name'];
                                ?>
" class="hc_action_img" src="<?php 
                                echo $_smarty_tpl->tpl_vars['itaa']->value['value'];
                                ?>
" title="<?php 
                                echo $_smarty_tpl->tpl_vars['itat']->value['instro'];
                                ?>
">  
									             <?php 
                            }
                            ?>
									          <?php 
                        }
                        ?>
 
									  <?php 
                    }
                    ?>
     
									<?php 
                }
                ?>
              </div> 
									
									
									</a>
								</div>
								
								<!--<a target="_blank" class="a1" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp8 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp8), $_smarty_tpl);
                ?>
"> 
							  <div class="hc_xinxin">
								  <div class="hc_xinxin_div"> 
									   <?php 
                if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['loop'])) {
                    unset($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']);
                }
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['name'] = 'loop';
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['items']->value['point']) ? count($_loop) : max(0, (int) $_loop);
                unset($_loop);
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show'] = true;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'] = 1;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'] - 1;
                if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show']) {
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'];
                    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] == 0) {
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show'] = false;
                    }
                } else {
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] = 0;
                }
                if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show']) {
                    for ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration']++) {
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] == 1;
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'];
                        ?>
 
                  	 <div class="hc_xinxin_div_float"><img alt="star" src="<?php 
                        echo $_smarty_tpl->tpl_vars['siteurl']->value;
                        ?>
/templates/<?php 
                        echo $_smarty_tpl->tpl_vars['tempdir']->value;
                        ?>
/public/images/xinxin01.png"></div>
                     <?php 
                    }
                }
                ?>
 
                     <div class="clear"></div>
								  </div>
								<div class="hc_comment"> 
									<div class="hc_xinxin_div_float"><img alt="评论" src="<?php 
                echo $_smarty_tpl->tpl_vars['siteurl']->value;
                ?>
/templates/<?php 
                echo $_smarty_tpl->tpl_vars['tempdir']->value;
                ?>
/public/images/comment.png"></div>
									<div class="hc_xinxin_div_float"><span style="margin-left:3px;"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['pointcount'];
                ?>
</span></div> 
									<div class="clear"></div>
								</div>
								<div class="clear"></div>
							</div>
							
							
              <div class="hc_action">
              	<?php 
                $_smarty_tpl->tpl_vars['itat'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['itat']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['mainattr']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['itat']->key => $_smarty_tpl->tpl_vars['itat']->value) {
                    $_smarty_tpl->tpl_vars['itat']->_loop = true;
                    ?>
									  <?php 
                    if ($_smarty_tpl->tpl_vars['itat']->value['type'] == 'img') {
                        ?>
 
									          <?php 
                        $_smarty_tpl->tpl_vars['itaa'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['itaa']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['items']->value['attrdet'];
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['itaa']->key => $_smarty_tpl->tpl_vars['itaa']->value) {
                            $_smarty_tpl->tpl_vars['itaa']->_loop = true;
                            ?>
									             <?php 
                            if ($_smarty_tpl->tpl_vars['itat']->value['id'] == $_smarty_tpl->tpl_vars['itaa']->value['firstattr']) {
                                ?>
 
									                 <img alt="<?php 
                                echo $_smarty_tpl->tpl_vars['itat']->value['name'];
                                ?>
" class="hc_action_img" src="<?php 
                                echo $_smarty_tpl->tpl_vars['itaa']->value['value'];
                                ?>
" title="<?php 
                                echo $_smarty_tpl->tpl_vars['itat']->value['instro'];
                                ?>
">  
									             <?php 
                            }
                            ?>
									          <?php 
                        }
                        ?>
 
									  <?php 
                    }
                    ?>
     
									<?php 
                }
                ?>
              </div> 
               
              <div class="hc_order"> 
              <?php 
                if ($_smarty_tpl->tpl_vars['items']->value['opentype'] == 1) {
                    ?>
                    <span class="gray_font" title="店铺已过营业时间,打烊中">已打烊</span>
              <?php 
                } elseif ($_smarty_tpl->tpl_vars['items']->value['opentype'] == 2) {
                    ?>
               <span class="hc_order_box" title="接受预定中。">营业中</span>
                <span class="">
              	<?php 
                    $_smarty_tpl->tpl_vars['itat'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['itat']->_loop = false;
                    $_smarty_tpl->tpl_vars['mykey'] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['mainattr']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['itat']->key => $_smarty_tpl->tpl_vars['itat']->value) {
                        $_smarty_tpl->tpl_vars['itat']->_loop = true;
                        $_smarty_tpl->tpl_vars['mykey']->value = $_smarty_tpl->tpl_vars['itat']->key;
                        ?>
              
									   <?php 
                        if ($_smarty_tpl->tpl_vars['itat']->value['type'] == 'checkbox') {
                            ?>
									   <?php 
                            $_smarty_tpl->tpl_vars['ckey'] = new Smarty_variable("0", null, 0);
                            ?>
   
									          <?php 
                            $_smarty_tpl->tpl_vars['itaa'] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars['itaa']->_loop = false;
                            $_smarty_tpl->tpl_vars['ckey'] = new Smarty_Variable();
                            $_from = $_smarty_tpl->tpl_vars['items']->value['attrdet'];
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars['itaa']->key => $_smarty_tpl->tpl_vars['itaa']->value) {
                                $_smarty_tpl->tpl_vars['itaa']->_loop = true;
                                $_smarty_tpl->tpl_vars['ckey']->value = $_smarty_tpl->tpl_vars['itaa']->key;
                                ?>
									             <?php 
                                if ($_smarty_tpl->tpl_vars['itat']->value['id'] == $_smarty_tpl->tpl_vars['itaa']->value['firstattr'] && $_smarty_tpl->tpl_vars['ckey']->value < 1) {
                                    ?>
 
									                 <?php 
                                    echo $_smarty_tpl->tpl_vars['itaa']->value['value'];
                                    ?>

									             <?php 
                                }
                                ?>
									          <?php 
                            }
                            ?>
 
									    <?php 
                        }
                        ?>
     
									<?php 
                    }
                    ?>
						     </span>
              <?php 
                } elseif ($_smarty_tpl->tpl_vars['items']->value['opentype'] == 3) {
                    ?>
                        <span class="hc_order_box" title="接受预定中。">接受预定</span>
              	         <span class="hc_order_span"><?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['newstartime'];
                    ?>
开送</span>
              <?php 
                } elseif ($_smarty_tpl->tpl_vars['items']->value['opentype'] == 4) {
                    ?>
                 <span class="gray_font" title="店铺已过营业时间,打烊中">停止营业</span>
              <?php 
                } else {
                    ?>
                   <span class="gray_font" title="店铺已过营业时间,打烊中">已打烊</span>
              <?php 
                }
                ?>
 
              
              	 
              </div>					 </a>-->
							<div class="fav_font_div" style="display: none;"> </div>
					
					</div>
                            
				  <div class="clear"></div>
				 
				  </div>
		  </li> 
				 <?php 
            }
            ?>
				 
				 
				 
				 
				 
				 
				 
				 
				 
				 
				 
				 
				  				  
					<div class="shopview_div" id="shopview_div_<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
" style="display: none;">
                 		<div class="loading"><img src="<?php 
            echo $_smarty_tpl->tpl_vars['siteurl']->value;
            ?>
/templates/<?php 
            echo $_smarty_tpl->tpl_vars['tempdir']->value;
            ?>
/public/images/loading43.gif" width="38" height="38"></div>
          	</div> 
        
           
          	<?php 
        }
        ?>
          	
          	
          	
          	 
					<?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['shoplist']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
  
				 
				  <?php 
            if ($_smarty_tpl->tpl_vars['items']->value['opentype'] == 3) {
                ?>
      
						 
					 <li  qisongjia="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['limitcost'];
                ?>
" fengwei_id="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['servertype'];
                ?>
" isyingye="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['is_open'];
                ?>
" id="menu-list-box_<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
" shop_id="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
" class="menu-list-box hc_collection_div_border_right_bottom">
						<div class="hc_shop_list_box">
							
							
							
							<div class="hc_shop_list_box_left">
                            
                            
                            
                            <a href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp9 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp9), $_smarty_tpl);
                ?>
"><div style="position: absolute; background-image: url(<?php 
                echo $_smarty_tpl->tpl_vars['siteurl']->value;
                ?>
/templates/<?php 
                echo $_smarty_tpl->tpl_vars['tempdir']->value;
                ?>
/public/images/zaixianyuding.png); height: 83px; width: 99px; z-index:999; right:7px;top:7px;"></div></a>
                  
                            
                            
								<div class="hc_shop_list_box_img">
								  <div class="hc_shop_list_box_img_div" shop_id="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
" >
									   <a target="_blank" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp10 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp10), $_smarty_tpl);
                ?>
"><img style="margin-right:6px;" width="205" height="159" atl="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['shopname'];
                ?>
" src="<?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shoplogo']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['shoplogo']->value : $tmp;
                ?>
"></a>
								  </div>
								</div>
								<a target="_blank" class="a1" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp11 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp11), $_smarty_tpl);
                ?>
"></a>
							</div>
                            
                            <div class="hc_shop_list_box_right">
								<div class="hc_list_box_head" >
								    <a target="_blank" class="hc_list_box_head_a_hover" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp12 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp12), $_smarty_tpl);
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['shopname'];
                echo $_smarty_tpl->tpl_vars['items']->value['opentype'];
                ?>
</a>
								</div>
                                
                                <div class="hc_list_box_add" >
								    <a target="_blank" class="hc_list_box_head_a_hover" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp13 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp13), $_smarty_tpl);
                ?>
">
									
									
									<?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['limitcost']) === null || $tmp === '' ? 0 : $tmp;
                ?>
元起送
									
									<?php 
                if ($_smarty_tpl->tpl_vars['items']->value['pscost'] == 0) {
                    ?>
										免配送费
									<?php 
                } else {
                    ?>
										<?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['pscost'];
                    ?>
元配送费
									<?php 
                }
                ?>
									</a>
								</div>
								
								 <div class="hc_list_box_add" >
								    <a target="_blank" class="hc_list_box_head_a_hover" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp14 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp14), $_smarty_tpl);
                ?>
">
									
									<div class="hc_action">
              	<?php 
                $_smarty_tpl->tpl_vars['itat'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['itat']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['mainattr']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['itat']->key => $_smarty_tpl->tpl_vars['itat']->value) {
                    $_smarty_tpl->tpl_vars['itat']->_loop = true;
                    ?>
									  <?php 
                    if ($_smarty_tpl->tpl_vars['itat']->value['type'] == 'img') {
                        ?>
 
									          <?php 
                        $_smarty_tpl->tpl_vars['itaa'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['itaa']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['items']->value['attrdet'];
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['itaa']->key => $_smarty_tpl->tpl_vars['itaa']->value) {
                            $_smarty_tpl->tpl_vars['itaa']->_loop = true;
                            ?>
									             <?php 
                            if ($_smarty_tpl->tpl_vars['itat']->value['id'] == $_smarty_tpl->tpl_vars['itaa']->value['firstattr']) {
                                ?>
 
									                 <img width="20" height="20" alt="<?php 
                                echo $_smarty_tpl->tpl_vars['itat']->value['name'];
                                ?>
" class="hc_action_img" src="<?php 
                                echo $_smarty_tpl->tpl_vars['itaa']->value['value'];
                                ?>
" title="<?php 
                                echo $_smarty_tpl->tpl_vars['itat']->value['instro'];
                                ?>
">  
									             <?php 
                            }
                            ?>
									          <?php 
                        }
                        ?>
 
									  <?php 
                    }
                    ?>
     
									<?php 
                }
                ?>
              </div> 
									
									
									</a>
								</div>
							
							<div class="fav_font_div" style="display: none;"> </div>
					
					</div>
                            
				  <div class="clear"></div>
				 
				  </div>
		  </li> 
				 <?php 
            }
            ?>
				 
				 
				
				 <?php 
        }
        ?>
          	
          	
          	
          	
          	
          	
       
          	
						<?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['shoplist']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
  
				 
				  <?php 
            if ($_smarty_tpl->tpl_vars['items']->value['opentype'] != 2 && $_smarty_tpl->tpl_vars['items']->value['opentype'] != 3) {
                ?>
      
						 
					 <li  qisongjia="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['limitcost'];
                ?>
" fengwei_id="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['servertype'];
                ?>
" isyingye="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['is_open'];
                ?>
" id="menu-list-box_<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
" shop_id="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
" class="menu-list-box hc_collection_div_border_right_bottom">
						<div class="hc_shop_list_box">
							
							
							
							<div class="hc_shop_list_box_left">
                            
                            <a href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp15 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp15), $_smarty_tpl);
                ?>
"><div style="position: absolute; background-image: url(<?php 
                echo $_smarty_tpl->tpl_vars['siteurl']->value;
                ?>
/templates/<?php 
                echo $_smarty_tpl->tpl_vars['tempdir']->value;
                ?>
/public/images/order_masker_closed.png); height: 83px; width: 99px; z-index:999; right:7px;top:7px;"></div></a>
               
                            
								<div class="hc_shop_list_box_img">
								  <div class="hc_shop_list_box_img_div" shop_id="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
" >
									   <a target="_blank" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp16 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp16), $_smarty_tpl);
                ?>
"><img style="margin-right:6px;" width="205" height="159" atl="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['shopname'];
                ?>
" src="<?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shoplogo']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['shoplogo']->value : $tmp;
                ?>
"></a>
								  </div>
								</div>
								<a target="_blank" class="a1" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp17 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp17), $_smarty_tpl);
                ?>
"></a>
							</div>
                            
                            <div class="hc_shop_list_box_right">
								<div class="hc_list_box_head" >
								    <a target="_blank" class="hc_list_box_head_a_hover" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp18 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp18), $_smarty_tpl);
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['shopname'];
                echo $_smarty_tpl->tpl_vars['items']->value['opentype'];
                ?>
</a>
								</div>
                                
                                <div class="hc_list_box_add" >
								    <a target="_blank" class="hc_list_box_head_a_hover" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp19 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp19), $_smarty_tpl);
                ?>
">
									
									
									<?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['limitcost']) === null || $tmp === '' ? 0 : $tmp;
                ?>
元起送
									
									<?php 
                if ($_smarty_tpl->tpl_vars['items']->value['pscost'] == 0) {
                    ?>
										免配送费
									<?php 
                } else {
                    ?>
										<?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['pscost'];
                    ?>
元配送费
									<?php 
                }
                ?>
									</a>
								</div>
								
								 <div class="hc_list_box_add" >
								    <a target="_blank" class="hc_list_box_head_a_hover" href="<?php 
                ob_start();
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
                $_tmp20 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp20), $_smarty_tpl);
                ?>
">
									
									<div class="hc_action">
              	<?php 
                $_smarty_tpl->tpl_vars['itat'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['itat']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['mainattr']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['itat']->key => $_smarty_tpl->tpl_vars['itat']->value) {
                    $_smarty_tpl->tpl_vars['itat']->_loop = true;
                    ?>
									  <?php 
                    if ($_smarty_tpl->tpl_vars['itat']->value['type'] == 'img') {
                        ?>
 
									          <?php 
                        $_smarty_tpl->tpl_vars['itaa'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['itaa']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['items']->value['attrdet'];
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['itaa']->key => $_smarty_tpl->tpl_vars['itaa']->value) {
                            $_smarty_tpl->tpl_vars['itaa']->_loop = true;
                            ?>
									             <?php 
                            if ($_smarty_tpl->tpl_vars['itat']->value['id'] == $_smarty_tpl->tpl_vars['itaa']->value['firstattr']) {
                                ?>
 
									                 <img width="20" height="20" alt="<?php 
                                echo $_smarty_tpl->tpl_vars['itat']->value['name'];
                                ?>
" class="hc_action_img" src="<?php 
                                echo $_smarty_tpl->tpl_vars['itaa']->value['value'];
                                ?>
" title="<?php 
                                echo $_smarty_tpl->tpl_vars['itat']->value['instro'];
                                ?>
">  
									             <?php 
                            }
                            ?>
									          <?php 
                        }
                        ?>
 
									  <?php 
                    }
                    ?>
     
									<?php 
                }
                ?>
              </div> 
									
									
									</a>
								</div>
							
							<div class="fav_font_div" style="display: none;"> </div>
					
					</div>
                            
				  <div class="clear"></div>
				 
				  </div>
		  </li> 
				 <?php 
            }
            ?>
				 
				 
				
				 <?php 
        }
        ?>
				<div class="clear"></div> 
				 </ul>
				 
				 
				 
				 
				 
				 
				 
				 
				 
			</div>

		</div>
        
        
        
        
        
        
<div class="hc_app">
	<ul>
		
	 <?php 
        echo smarty_function_load_data(array('assign' => "advlist", 'table' => "adv", 'fileds' => "*", 'where' => "advtype='other1' and module='" . (string) $_smarty_tpl->tpl_vars['sitetemp']->value . "'", 'limit' => "5"), $_smarty_tpl);
        ?>
  
	 <?php 
        if (count($_smarty_tpl->tpl_vars['advlist']->value['list']) > 0) {
            ?>
	   <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['advlist']->value['list'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                ?>
		  <li style="height:330px;width:220px">
		     <a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['linkurl'];
                ?>
" target="_blank"><img src="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['img'];
                ?>
" width="220px" height="330px"></a>
	    </li>
	  <?php 
            }
            ?>
		<?php 
        }
        ?>
		
		
	</ul>
	<div class="clear"></div>
</div>

<div id="hc_shop_list2" class="hc_shop_list" style="display:none;">
			<div class="hc_shop_head">
				<div class="hc_shop_head_left">
					<div class="hc_shop_h">更多店铺</div>
					<div class="clear"></div>
				</div>
				<div class="hc_shop_head_right"></div>
				<div class="clear"></div>
				<div class="hc_changes_menu_div">
				</div>
			</div>

			<div class="hc_shop_list_div">
				<ul id="shopList2">
					 
				</ul>
			</div>

</div> 
	
	
		
<script type="text/javascript">
 $(function(){
		var myaddressid = '<?php 
        echo $_smarty_tpl->tpl_vars['myaddress']->value;
        ?>
';
		if(myaddressid == null|| myaddressid==''){
			 window.location.href= '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/guide"), $_smarty_tpl);
        ?>
';
		}
	});
$(document).ready(function(){
	var newCell = $('#shopList').html();
	$('#shopList2').append($(newCell));
	$('#shopList2 .menu-list-box').mouseenter(function(){
		$(this).find('.hc_shop_list_box').addClass('hc_shop_list_box_hover');
		$(this).find('.fav_font_div').show();
		$(".cuSelBox2").removeClass("cuSelBox2");
		$(this).addClass("cuSelBox2");
		$(this).find('.hc_shop_list_box .hcl_collection_btn').find('.hcl_collection_btn').addClass('hcl_collection_btn_hover');
		var item = $(this);
		setTimeout(function(){show_shop_view2(item);},500);
	});
	$('#shopList2 .menu-list-box').mouseleave(function(){	
		$(this).removeClass("cuSelBox2");	
		$(this).find('.hc_shop_list_box').removeClass('hc_shop_list_box_hover');
		$(this).find('.fav_font_div').hide();
		$(this).find('.hc_shop_list_box .hcl_collection_btn').find('.hcl_collection_btn').removeClass('hcl_collection_btn_hover');
		hide_shop_view2($(this));
	});

	//shopheight();
})
/*function shopheight(){
	var numshopli = $('#shopList li').length;
	var numa = Math.ceil(numshopli/4); 
	$('#shopList').css('height',Number(numa)*262);
	numshopli = $('#shopList2 li').length;
	 numa = Math.ceil(numshopli/4);
	$('#shopList2').css('height',Number(numa)*262);
}*/
/*
$('#shopList .menu-list-box').mouseenter(function(){
	$(this).find('.hc_shop_list_box').addClass('hc_shop_list_box_hover');
	$(this).find('.fav_font_div').show();
	$(this).find('.hc_shop_list_box .hcl_collection_btn').addClass('hcl_collection_btn_hover');
	$(".cuSelBox").removeClass("cuSelBox");
	$(this).addClass("cuSelBox");
	var item = $(this);
	setTimeout(function(){show_shop_view1(item);},500);
});


$('#shopList .menu-list-box').mouseleave(function(){
	$(this).removeClass("cuSelBox");
	$(this).find('.hc_shop_list_box').removeClass('hc_shop_list_box_hover');
	$(this).find('.fav_font_div').hide();
	$(this).find('.hc_shop_list_box .hcl_collection_btn').removeClass('hcl_collection_btn_hover');
	hide_shop_view1($(this));
});
*/
$('#shopList .menu-list-box .hc_shop_list_box_img_div').mouseenter(function(){ 
	var doobj = $('#menu-list-box_'+$(this).attr('shop_id'));
	/*$(doobj).find('.hc_shop_list_box').addClass('hc_shop_list_box_hover');*/
	$(doobj).find('.fav_font_div').show();
	$(doobj).find('.hc_shop_list_box .hcl_collection_btn').addClass('hcl_collection_btn_hover');
	$(".cuSelBox").removeClass("cuSelBox");
	$(doobj).addClass("cuSelBox");
	var item=$(this);
		setTimeout(function(){show_shop_view1(item);},500);
});
$('#shopList .menu-list-box .hc_shop_list_box_img_div').mouseleave(function(){
		var doobj = $('#menu-list-box_'+$(this).attr('shop_id'));
	$(doobj).removeClass("cuSelBox");
	$(doobj).find('.hc_shop_list_box').removeClass('hc_shop_list_box_hover');
	$(doobj).find('.fav_font_div').hide();
	$(doobj).find('.hc_shop_list_box .hcl_collection_btn').removeClass('hcl_collection_btn_hover');
	hide_shop_view1($(doobj));
});
$('#shopList .hc_shop_list_div').mouseleave(function(){
	$('#shopList .hc_shop_list_div .shopview_div').hide();
});

$('#shopList2 .hc_shop_list_div').mouseleave(function(){
	$('#shopList2 .hc_shop_list_div .shopview_div').hide();
});

function show_shop_view1(obj) {	
	var shop_id = $(obj).attr('shop_id');
	var cur_shop_id = $(".cuSelBox").attr('shop_id'); 
	if (shop_id != cur_shop_id) {
		return;
	}
	 
	var offset = $(obj).offset();
	//$(obj).addClass('blurborder');
	var windowWidth = $(window).width();
	var windowHeight = $(window).height();

	var shopviewHeight = $('#shopList #shopview_div_'+shop_id).height();

	 $('#shopList .shopview_div').hide();
	 $('#shopList .shopview_div .hc_popups_sanjiao').removeClass('hc_popups_sanjiao_left').removeClass('hc_popups_sanjiao_right').addClass('hc_popups_sanjiao_top'); 
	 if(windowWidth-offset.left > 600)
	 {
		 $('#shopList #shopview_div_'+shop_id+' .hc_popups_sanjiao').addClass('hc_popups_sanjiao_left');
		 $('#shopList #shopview_div_'+shop_id).css('top',offset.top).css('left',offset.left+210);

		 if(windowHeight - offset.top < shopviewHeight)
		 {
			 $('#shopList #shopview_div_'+shop_id+' .hc_popups_sanjiao').removeClass('hc_popups_sanjiao_top').addClass('hc_popups_sanjiao_bottom');
			 $('#shopList #shopview_div_'+shop_id).css('top',offset.bottom - shopviewHeight + 0 );
		 }
	 }
	 else
	 {
		 $('#shopList #shopview_div_'+shop_id+' .hc_popups_sanjiao').addClass('hc_popups_sanjiao_right');
		 $('#shopList #shopview_div_'+shop_id).css('top',offset.top).css('left',offset.left-350);

		 if(windowHeight - offset.top < shopviewHeight)
		 {
			 $('#shopList #shopview_div_'+shop_id+' .hc_popups_sanjiao').removeClass('hc_popups_sanjiao_top').addClass('hc_popups_sanjiao_bottom');
			 $('#shopList #shopview_div_'+shop_id).css('top',offset.bottom - shopviewHeight + 0);
		 }
	 } 

	 $('#shopList #shopview_div_'+shop_id).show();
	
	if($('#shopList #ShopView_'+shop_id).length == 0) {
	 
		 var url = '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/ajaxshopinfo"), $_smarty_tpl);
        ?>
'; 
		 $('#shopList .loading').show();
		 $.post(url, {shop_id:shop_id},function (data, textStatus){ 
			 if($('#shopList #ShopView_'+shop_id).length == 0) {
				 $('#shopList .loading').hide();
			 	 $('#shopList #shopview_div_'+shop_id).append(data);
			 	show_shop_view1(obj);
			 }
			}, 'html');
			 
	}
}

function hide_shop_view1(obj) {
	$('#shopList .shopview_div').hide();
	var shop_id = $(obj).attr('shopid');
	$('#shopList #shopview_div_'+shop_id).hide();
}

$('.menu-xuanze-img').click(function(){
	fenweiChange($(this));
});

function fenweiChange(obj){
	$('.menu-xuanze-img').removeClass('hc_changes_menu_div_active_hover');

	$(obj).addClass('hc_changes_menu_div_active_hover');

	updateFengwei();
}

function updateFengwei()
{
	$('#all').removeClass('hc_changes_menu_div_active_hover');
	
	$('#shopList .menu-list-box').each(function(i){
		$(this).hide();
	});

	var qisongjia = $('#qisongjia').attr('qisongjia_val');
	
	var bool = false;

	var selected_style_id = '';

	$('.menu-xuanze-img').each(function(i){
		var style_id = $(this).attr('style_id');
		
		if($(this).hasClass('hc_changes_menu_div_active_hover'))
		{
			selected_style_id = style_id;
			bool = true;
			
			$('#shopList .menu-list-box').each(function(j){
				var fengwei_id = $(this).attr('fengwei_id').split(',');
				var my_qisongjia = $(this).attr('qisongjia');
				
				if(in_array(style_id,fengwei_id))
				{
					if(qisongjia == 4){
						$(this).show();
					}
					else
					{
						if(parseInt(my_qisongjia)<=qisongjia)
						{
							$(this).show();
						}
						else
						{
							$(this).hide();
						}
					}
				}
			})
		}
		else
		{
			$('#shopList .menu-list-box').each(function(j){
				var fengwei_id = $(this).attr('fengwei_id').split(',');
				if(!in_array(selected_style_id,fengwei_id))
				{
					$(this).hide();
				}
			})
		}
	})
	if(bool==false)
	{
		allChange($("#all"));
	}
	showOtherArea();
}

function in_array(e,arr)
{
	for(i=0;i<arr.length;i++)
	{
		if(arr[i] == e)
		return true;
	}
	return false;
}

function showOtherArea()
{
	var ids = new Array();
	 
	$('#shopList .menu-list-box').each(function(i){
		if($(this).is(":hidden")){
			ids.push($(this).attr('id'));
		}
	});
	/*var allnum = $('#shopList li').length;//总数量
	var downnum = ids.length;//下移数量
	var numshopli = Number(allnum) - Number(downnum);
	var numa = Math.ceil(numshopli/4); 
	$('#shopList').css('height',Number(numa)*262); 
	 numa = Math.ceil(downnum/4);
	$('#shopList2').css('height',Number(numa)*262);
	*/ 
	if(ids.length > 0)
	{
		$('#hc_shop_list2').hide();
		$('#shopList2 .menu-list-box').hide();
		for(var j=0;j<ids.length;j++){
			$('#shopList2 #'+ids[j]).show();
		}
	}
	else
	{
		$('#hc_shop_list2').hide();
	}
	/***自动计算高度***/
}

$("#all").click(function(){
	allChange($(this));
});

function allChange(obj)
{
	if(!$(obj).hasClass('hc_changes_menu_div_active_hover'))
	{
		$(obj).addClass('hc_changes_menu_div_active_hover');
	}
	$(".menu-xuanze-img").removeClass('hc_changes_menu_div_active_hover');
		
		var qisongjia = $('#qisongjia').attr('qisongjia_val');
		$('#shopList .menu-list-box').each(function(i){
			var my_qisongjia = $(this).attr('qisongjia');
			
			if(qisongjia == 4){
				$(this).show();
			}
			else
			{
				if(parseInt(my_qisongjia)<=qisongjia)
				{
					$(this).show();
				}
				else
				{
					$(this).hide();
				}
			}
				
		});
	showOtherArea();
}

function getNowData()
{
	if($('#all').hasClass('hc_changes_menu_div_active_hover'))
	{
		return '2';
	}
	else
	{
		return '3';
	}
}

$('.qisongjia_click').click(function(){
	var qisongjia = $(this).attr('qisongjia_val');
	$('#qisongjia').attr('qisongjia_val',qisongjia);
	
	$('.hc_shop_scale_img').removeClass('hc_shop_scale_images');
	$('.hc_shop_scale_price').removeClass('hc_shop_scale_price_hover');

	$('.hc_shop_scale_img').each(function(){
		if($(this).attr('qisongjia_val')==qisongjia)
		{
			$(this).addClass('hc_shop_scale_images');
		}
	})
	$('.hc_shop_scale_price').each(function(){
		if($(this).attr('qisongjia_val')==qisongjia)
		{
			$(this).addClass('hc_shop_scale_price_hover');
		}
	})

	var type = getNowData();
	if(type=='2')
	{
		allChange($('#all'));
	}
	else
	{
		updateFengwei();
	}
})

function show_shop_view2(obj) {
	var shop_id = $(obj).attr('shop_id');
	var cur_shop_id = $(".cuSelBox2").attr('shop_id');
	if (shop_id != cur_shop_id) {
		return;
	}
	var offset = $('#shopList2 #menu-list-box_'+shop_id).offset();
	var windowWidth = $(window).width();
	var windowHeight = $(window).height();

	var shopviewHeight = $('#shopList2 #shopview_div_'+shop_id).height();

	 $('#shopList2 .shopview_div').hide();
	 $('#shopList2 .shopview_div .hc_popups_sanjiao').removeClass('hc_popups_sanjiao_left').removeClass('hc_popups_sanjiao_right').addClass('hc_popups_sanjiao_top');

	 if(windowWidth-offset.left > 600)
	 {
		 $('#shopList2 #shopview_div_'+shop_id+' .hc_popups_sanjiao').addClass('hc_popups_sanjiao_left');
		 $('#shopList2 #shopview_div_'+shop_id).css('top',offset.top).css('left',offset.left+$('#shopList2 #menu-list-box_'+shop_id).width());

		 if(windowHeight - offset.top < shopviewHeight)
		 {
			 $('#shopList2 #shopview_div_'+shop_id+' .hc_popups_sanjiao').removeClass('hc_popups_sanjiao_top').addClass('hc_popups_sanjiao_bottom');
			 $('#shopList2 #shopview_div_'+shop_id).css('top',offset.top - shopviewHeight + 100);
		 }
	 }
	 else
	 {
		 $('#shopList2 #shopview_div_'+shop_id+' .hc_popups_sanjiao').addClass('hc_popups_sanjiao_right');
		 $('#shopList2 #shopview_div_'+shop_id).css('top',offset.top).css('left',offset.left-350);

		 if(windowHeight - offset.top < shopviewHeight)
		 {
			 $('#shopList2 #shopview_div_'+shop_id+' .hc_popups_sanjiao').removeClass('hc_popups_sanjiao_top').addClass('hc_popups_sanjiao_bottom');
			 $('#shopList2 #shopview_div_'+shop_id).css('top',offset.top - shopviewHeight + 100);
		 }
	 }

	 $('#shopList2 #shopview_div_'+shop_id).show();
	
	if($('#shopList2 #ShopView_'+shop_id).length == 0) {
		 var url = '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/ajaxshopinfo"), $_smarty_tpl);
        ?>
';  
		 $('#shopList2 .loading').show();
		 $.post(url, {shop_id:shop_id},function (data, textStatus){
			 if($('#shopList2 #ShopView_'+shop_id).length == 0) {
				 $('#shopList2 .loading').hide();
			 	 $('#shopList2 #shopview_div_'+shop_id).append(data);
			 	show_shop_view2(obj);
			 }
			}, 'html');
	}
}

function hide_shop_view2(obj) {
	$('#shopList2 .shopview_div').hide();
	var shop_id = $(obj).attr('shopid');
	$('#shopList2 #shopview_div_'+shop_id).hide();
} 
</script>




</div>
	
</div>
</div>
</div>
 

<div id="footer">
	
<div class="hc_btm_div">
		<div class="hc_btm_contact">
		   <?php 
        if (!empty($_smarty_tpl->tpl_vars['toplink']->value)) {
            ?>
	 	      <?php 
            $_smarty_tpl->tpl_vars['toplink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['toplink']->value), null, 0);
            ?>
		  	  <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['toplink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
 
			         <a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> | 
			    <?php 
            }
            ?>
			<?php 
        }
        ?>

		</div>
		<div class="hc_btm_info">@2008-2012 <?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['beian']->value;
        echo stripslashes($_smarty_tpl->tpl_vars['footerdata']->value);
        ?>
</div>
	</div>	
	
	
 </div> 
<div style="position: absolute; top: -1970px; left: -1970px;"> 
</div>  
</body>
</html>





<?php 
    }
    function content_558d0478d7f3c2_34405219($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/function.load_data.php';
        }
        ?>
<!DOCTYPE html>
<html> 
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>用户登陆-<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</title>
<meta name="Keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" />
<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" />
<?php 
        echo stripslashes($_smarty_tpl->tpl_vars['metadata']->value);
        ?>

<link rel="shortcut icon" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/images/favicon.ico" /> 
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/common.css"> 
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/server.css"> 
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/memberlogin.css">
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquerynew.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/allj.js" type="text/javascript" language="javascript"></script>
 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script> 
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/template.min.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquery.lazyload.min.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/regestercode.js"></script>
 <script>
     var regestercode=0;
 	$(function() { 
  $("img").lazyload({ 
  effect : "fadeIn" 
  }); 
 //Header二维码显示与隐藏  Begin
 $('.views_main_header ul > li:nth-of-type(5) span:nth-child(1)').on({
 	'mouseover':function(){
 	$('.views_main_header ul > li:nth-of-type(5) span:nth-child(3)').fadeIn();
 },
 'mouseout':function(){
 	$('.views_main_header ul > li:nth-of-type(5) span:nth-child(3)').fadeOut();
 }
});
 //Header二维码显示与隐藏  End  


//Header点击添加高亮  Begin
$('.views_main_header ul > li:nth-of-type(4) ol li:nth-of-type(1)').addClass('active');

 $('.views_main_header ul > li:nth-of-type(2) span').click(function(){
    $(this).parent().addClass('active');
    $(this).parent().siblings().children().children().removeClass('active');
 });

 $('.views_main_header ul > li:nth-of-type(4) ol li').click(function(){
    $(this).addClass('active').siblings().removeClass('active');
    $(this).parent().parent().siblings().removeClass('active');
    $('#cover').fadeOut();
    $('.views_main_login_sign_wrap').removeClass('views_main_login_sign_one_transition');
 });
//Header点击添加高亮  End

//用户登录后,显示当前用户的信息列表 Begin
 if($('.person_content').children('span').eq(0).text().length != 0){
    $('.person_content').on({  
    	'mouseover':function(){
    		$(this).children('span').eq(1).fadeIn();
        $('.person_name').text($(this).children('span').eq(0).text());
          $(this).children('span').eq(2).fadeIn('slow');
    	},
    	'mouseleave':function(){
    		$(this).children('span').eq(1).fadeOut();
        $(this).children('span').eq(2).fadeOut('fast');
    	}
    });
  }
//用户登录后,显示当前用户的信息列表 End

//用户未登录,显示登录注册也面 Begin
  else{
      var uid = <?php 
        echo $_smarty_tpl->tpl_vars['member']->value['uid'];
        ?>

      if (uid > 0) {
            $('.person_content').children('span').eq(0).text('个人中心');
            $(".person_content").on("click",function(){
         window.location.href=siteurl+'/index.php?controller=member&action=base';  
            })
      }else{
          
           $('.person_content').children('span').eq(0).text('登录 注册');
        $('.person_content').on( 
      'click',function(){
        $('.views_main_login_sign_wrap').addClass('views_main_login_sign_one_transition');
        $('.views_main_login_sign_one').show();
        $('.views_main_login_sign_two').hide();
        $('.views_main_login_sign_three').hide();
        $('#cover').fadeIn();
      }
    );
    
      }
    
  }
//用户未登录,显示登录注册也面 End

//用户未登录,登录注册页面切换 Begin
$('.views_main_header ul > li:nth-child(2) ol li:nth-child(1)').click(function() {
      var value=$("#mobile_check").val();
      var order_check=$("#order_check").val();
      if(value==1||order_check!=="no"){
         location.href= "http://shop.xiaoshuhaochi.com/member/index";
      }else{
        $('.views_main_login_sign_one').fadeIn();
      $('#cover').fadeIn();
      }
    });
    $('#sign_now,.sign_now').click(function() {
        $('.views_main_login_sign_two').fadeIn();
        $('.views_main_login_sign_one').fadeOut();
        $('.views_main_login_sign_three').fadeOut();
    });
    $("#fogot_password").click(function(){
      
         $('.views_main_login_sign_one').fadeOut();
         $(".views_main_login_sign_three").fadeIn();
    })
    $('#login_now').click(function() {
        $('.views_main_login_sign_one').fadeIn();
        $('.views_main_login_sign_two').fadeOut();
    });
    $('#fogetpass').click(function() {
        $('.views_main_login_sign_three').fadeIn();
        $('.views_main_login_sign_one').fadeOut();
    });
//用户未登录,登录注册页面切换 End


//点击❌退出当前页面  Begin
    $('.delete').click(function() {
        $('.views_main_detail').fadeOut();
        $('#cover').fadeOut();
        $('.views_main_login_sign_wrap').removeClass('views_main_login_sign_one_transition');
        $('.general_notice').fadeOut();
    });
//点击❌退出当前页面  End



//点击发送验证码倒计时 Begin
var count = 60;
var timer;
var reg = /^[0-9]*$/;
$('#send_code').click(function(){
  if($('#phone').val().length == 11 && reg.test($('#phone').val()) ){
    timer = setInterval(countDownaaaa,1000); 
  }
});
//验证码
function countDownaaaa(){
  count --;
  if(count == 0 ){
    $('#send_code').css({
      'background':'#ff6000',
      'color':'#fff'
    }); 
   $('#send_code').val('获取验证码').removeAttr('disabled');
    clearInterval(timer);
    count = 60;
    
  }
  else{
    $('#send_code').css({
      'background':'#ccc',
      'color':'#999'
    });
  $('#send_code').attr('disabled',true);
  $('#send_code').val('('+count+')'+'重新发送');
  }
};
//点击发送验证码倒计时 End


}); 

//登录
 function login_btn () {
         var url = siteurl+'/index.php?controller=member&action=login';
         var uname = $("#login_cell").val();
         var pwd = $("#login_password").val();
         var info = {'uname':uname,'pwd':pwd,'logintype':'html5'}; 
         var  url = siteurl+'/index.php?controller=member&action=login&datatype=json&random=@random@' 
        $.ajax({ 
            url: url.replace('@random@', 1+Math.round(Math.random()*1000)), 
            dataType: "json", 
            data:info, 
            success:function(content) {  
            	$('#loading').toggle(); 
            	if(content.msg ==  false){
                        alert("登陆成功");
            		 window.location.href= siteurl+'/index.php?controller=site&action=index&shoid='+shopid;
            	}else{ 
            	   alert(content.msg);
                   $("#cover").hide();
              }
            	
            }, 
            error:function(){ 
            	$('#loading').toggle();

            } 
         });  
 }
  //注册
  function savepwd(){  

		   $('#loading').show();
      var info = {'tname':$('.mobile_email_reg').val(),'phone':$('.mobile_email_reg').val(),'pwd':$('.password_reg').val(),'pwd2':$('.repassword_reg').val(),'checklogin':'******','phoneyan':$('.code').val(),'regestercode':'1'};
               
		  var url = '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/saveregester/random/@random@/datatype/json"), $_smarty_tpl);
        ?>
'; 
		  var backdata = ajaxback(url,info); 
		  if(backdata.flag == false){ 
		      window.location.href = siteurl+'/index.php?controller=site&action=member';
		  }else{
		  	$('#loading').hide();
		     alert(backdata.content);
		  }
		  
	}
        //忘记密码
        function changepwd(){  
            
	
         var phone = $("#mobile_email").val();
         var code = $("#code").val();
         var newpwd = $("#password").val();
         var newpwd2 = $("#repassword").val();
         var info = {'phone':phone,'code':code,'newpwd':newpwd,'newpwd2':newpwd2}
  	 	  var  url = siteurl+'/index.php?controller=member&action=saveuser&controlname=repwd&datatype=json&random=@random@' 
  	 	   $.ajax({ 
            url: url.replace('@random@', 1+Math.round(Math.random()*1000)), 
            dataType: "json", 
            data:info, 
            success:function(content) {  
            alert("修改成功");
             window.location.href= siteurl+'/index.php?controller=site&action=index';
            	if(content.msg ==  false){
            		 window.location.href= siteurl+'/index.php?controller=wxsite&action=member&shoid='+shopid;
            	}else{ 
            	   alert(content.msg);
                  // $("#loading").hide();
              }
            	
            }, 
            error:function(){ 
            	//$('#loading').toggle();

            } 
         });
		  
	}
</script>


 <script> 
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
	var is_static ="<?php 
        echo $_smarty_tpl->tpl_vars['is_static']->value;
        ?>
";
	var controllername= '<?php 
        echo $_smarty_tpl->tpl_vars['controlname']->value;
        ?>
';
</script>

<!--[if lte IE 6]>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('div, ul, img, li, input , a'); 
    </script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/ie6.js" type="text/javascript"></script>
<![endif]--> 
</head> 
<body> 
<div id="toTop" style="left: 1212.5px; display: none;"></div>



<!--
<div class="top">
	 <div class="top_a">
	 	  <div class="top_a_show">
	 	  	<div class="top_a_show_l">
	 	  		  <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/index"), $_smarty_tpl);
        ?>
" class=""><span class="topmcbck"></span> <div style="padding-left:25px;">欢迎光临<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</div></a>
	 	  	</div>
	 	  	<div class="top_a_show_r">
	 	  		<?php 
        if (empty($_smarty_tpl->tpl_vars['member']->value['uid'])) {
            ?>
	 	  		 <div class="top_a_show_span"><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/regester"), $_smarty_tpl);
            ?>
">注册</a></div>
	 	  		 <div class="top_a_show_span">|</div>
	 	  		 <div class="top_a_show_span"><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/login"), $_smarty_tpl);
            ?>
">登陆</a></div>
	 	  		 <div class="top_a_show_span">|</div>
	 	  		 	 <a href="#">  <div class="sina"></div> </a>
	 	  		 <a href="#">  <div class="qq"></div> </a>
	 	  		 <?php 
        } else {
            ?>
	 	  		  <div class="top_a_show_span"><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
            ?>
">退出登陆</a></div>
	 	  		 <div class="top_a_show_span">|</div>
	 	  		  <div class="top_a_show_span"><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/order/usersorder"), $_smarty_tpl);
            ?>
">个人中心</a></div>
	 	  		 <div class="top_a_show_span">|</div>
	 	  		  <div class="top_a_show_span"><?php 
            echo $_smarty_tpl->tpl_vars['member']->value['username'];
            ?>
</div> 
	 	  		 <?php 
        }
        ?>
	 	  	
	 	  		
	 	  		 
	 	  		 
	 	  	</div>
	 	  </div>
  </div>
	 <div class="top1">
	 	 <div class="top1_show">
	 	 	
	 	  <div class="top1_logo"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['sitelogo']->value;
        ?>
"></a></div>
	 	  <div class="top1_menu">
	 	     <ul>
	 	     	<?php 
        if (!empty($_smarty_tpl->tpl_vars['footlink']->value)) {
            ?>
	 	     	<?php 
            $_smarty_tpl->tpl_vars['footlink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['footlink']->value), null, 0);
            ?>
	 	     		<?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['footlink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
 
			          <li class="active_li" data="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> </li>
			      <?php 
            }
            ?>
	 	     <?php 
        }
        ?>
	 	     	</ul>	
	 	  	
	 	  </div>
	 	   
	 	   
	 	   
	 	 </div>
	 </div>
</div> 
  -->


  
 <div class="new_login">
   <div class="mem_login">
   <h3>用户登录</h3>
   	    <div class="mem_login_form">  
   	   	<form id="loginForm" method="post" action="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/login"), $_smarty_tpl);
        ?>
">
              <ul>
   	   		<li>  
   	   		  	   <input type="text" placeholder="请输入用户名/邮箱" name="uname" >  
   	   	  </li>
   	   		<li>  
   	   		  	   <input type="password" placeholder="请输入密码" name="pwd" >  
   	   	  </li>
   	     <?php 
        if ($_smarty_tpl->tpl_vars['allowedcode']->value == 1) {
            ?>
   	   	  <li>  
   	   		  	   <input type="text" placeholder="验证码" name="Captcha" style="width:50px;" >  <img src="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/site/getCaptcha"), $_smarty_tpl);
            ?>
" id="captchaimg" style="height:24px;"><a href="javascript:freshcode();" >刷新图片</a>
   	   	  </li>
   	   	   <?php 
        }
        ?>
   	   	    <li> 
                 <span> 
                    <label>
                     <input name="LoginForm[rememberMe]" value="1" type="checkbox" checked="checked">三十天内自动登录
                    </label>
   	   	    	</span>
                  <span>
   	   	      <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/findpwd"), $_smarty_tpl);
        ?>
">找回密码?</a>
                  </span>
   	   	    </li>
   	   	    <li class="button_new_login login-button">登陆</li>
   	   	    
   	   	     <li>  
   	   	    <?php 
        echo smarty_function_load_data(array('assign' => "apiloginlist", 'table' => "otherlogin", 'fileds' => "*", 'limit' => "10"), $_smarty_tpl);
        ?>
 
					 <?php 
        if (count($_smarty_tpl->tpl_vars['apiloginlist']->value['list']) > 0) {
            ?>
				 
						<?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['apiloginlist']->value['list'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                ?>
						     <a href="<?php 
                echo FUNC_function(array('type' => 'url', 'link' => "/member/linktest/logintype/" . (string) $_smarty_tpl->tpl_vars['items']->value['loginname']), $_smarty_tpl);
                ?>
" target="_blank"><img src="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['logourl'];
                ?>
"></a> 
						<?php 
            }
            ?>
				 
					 <?php 
        }
        ?>
   	   	    </li>
   	   	       <li>  
   	   	       	 没有帐号?<a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/regester"), $_smarty_tpl);
        ?>
">立即注册</a>
   	   	      </li>
   	   	   </ul> 
   	   	</form>
   	   	</div>
   </div>
</div>
 
 
 
  
<script type="text/javascript">
setInterval(function(){ 
     $('body').height($(window).height());
    },100);
	$('.login-button').click(function(){
		$('#loginForm').submit();
	})
</script>
 
 

<div id="footer" style="display:none;">
	
<div class="hc_btm_div">
		<div class="hc_btm_contact">
		   <?php 
        if (!empty($_smarty_tpl->tpl_vars['toplink']->value)) {
            ?>
	 	      <?php 
            $_smarty_tpl->tpl_vars['toplink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['toplink']->value), null, 0);
            ?>
		  	  <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['toplink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
 
			         <a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> | 
			    <?php 
            }
            ?>
			<?php 
        }
        ?>

		</div>
		<div class="hc_btm_info">@2008-2012 <?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['beian']->value;
        echo stripslashes($_smarty_tpl->tpl_vars['footerdata']->value);
        ?>
</div>
	</div>	
	
	
 </div> 
<div style="position: absolute; top: -1970px; left: -1970px;"> 
</div>  
</body>
</html><?php 
    }
    function content_555c46bd4c3bc7_61937558($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include 'D:\\wmr\\lib\\Smarty\\libs\\plugins\\modifier.date_format.php';
        }
        if (!is_callable('smarty_function_load_data')) {
            include 'D:\\wmr\\lib\\Smarty\\libs\\plugins\\function.load_data.php';
        }
        ?>
 <html xmlns="http://www.w3.org/1999/xhtml"><head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
<meta http-equiv="Content-Language" content="zh-CN"> 
<meta content="all" name="robots"> 
<meta name="description" content=""> 
<meta content="" name="keywords"> 
<title>后台管理中心 </title>  
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/admin1.css"> 
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquery.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/public.js" type="text/javascript" language="javascript"></script>
 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/template.min.js" type="text/javascript" language="javascript"></script>

<script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/plugins/iframeTools.js"></script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/datepicker/WdatePicker.js" type="text/javascript" language="javascript"></script>


<script>
	var menu = null;
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
	var is_static ="<?php 
        echo $_smarty_tpl->tpl_vars['is_static']->value;
        ?>
";
	if(screen.width > 1359){
		
		$('.newtop').css('width',screen.width);
		$('.newmain').css('width',screen.width);
		$('.newfoot').css('width',screen.width);
	}  
</script> 
</head> 
<body> 
<div id="cat_zhe" class="cart_zhe" style="display:none;"></div>
<div id="cat_tj" class="cart_out_cat" style="display:none;"> 数据提交中..</div>
<div class="newtop">
	  <div class="newadddiv">
	  <div class="newlogo">
	  	  <div class="imglogo"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
" target="_blank"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/images/admin/logo.png"> </a></div>
	  </div>
	  <div class="newtopnav">
	  	 <ul>
	  	  <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tempdir']->value . "/public/admin_module.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>
 
	  	 	<ul>
	  	
	  </div>
	</div>
</div> 
<div style="clear:both;"></div>
<div class="newmain">
	<!-- 提示导航-->
   <div class="top_nav">
	    <div class="nav2 datainfo">
	    	<?php 
        echo smarty_modifier_date_format(time(), "%Y-%m-%d");
        ?>
  
	    </div>
	    <div class="nav2 positioninfo" id="positionname2">
	    	网站首页
	    </div>
	    <div class="nav2 orderinfo">
	    	您有今天有0 个订单待审核
	    </div>
   </div>
   <!-- 主内容区-->
   <div class="newmain_all">
   	 <!-- 主内左区-->
   	 <div class="left_content">
   	 	   <!-- 主内左区用户信息-->
   	 	   <div class="userinfo">
   	 	   	   <div class="user_area">
   	 	   	   	      <div class="user_name">
   	 	   	   	      	<?php 
        echo $_smarty_tpl->tpl_vars['admininfo']->value['username'];
        ?>

   	 	   	   	      </div>
   	 	   	   	      <div class="content_url">
   	 	   	   	      	 <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/adminloginout"), $_smarty_tpl);
        ?>
" class="out">退出</a> 
   	 	   	   	      	 <a onClick="modifypwd();" href="#">修改密码</a>
   	 	   	   	      </div>
   	 	   	  </div>
   	 	   	  <div class="now_name" id="nowactioninfo">
   	 	   	    	网站首页
   	 	   	    </div>
   	 	   </div>
   	 	   <!-- 主内左区导航条-->
   	 	    <div class="left_nav">
   	 	    	  <ul> 
   	 	    	  	
   	 	    	  	
   	 	    	  	 <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tempdir']->value . "/public/admin_menu.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

   	 	    	 
   	 	    	     <li style="text-align:center;"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
" style="color:#0076cf;" target="_blank">返回网站首页</a></li>
   	 	    	  </ul>
   	 	    </div>
   	 	    <div class="left_navend">
   	 	    </div>
   	 	    <!-- 主内左区天气预报-->
   	 	    <div class="weather" id="weatherinfo" style="display:none;">
   	 	    	 <div class="todayweacher">
   	 	    	      <div class="weacher_left">
   	 	    	      	 <div id="wtoday_img"> </div>
   	 	    	      	 <div><span id="wcity" style="padding-right:5px;"></span><span id="wqihou"></span></div>
   	 	    	      </div>
   	 	    	      <div class="weacher_right" id="wwendu">
   	 	    	      	 
   	 	    	      </div>	 
   	 	    	 </div>
   	 	    	 <div style="clear:both;">
   	 	    	 	   <div class="tom">
   	 	    	 	   	    <div id="tom_1" class="tom_img"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_day"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_wendu"></div>
   	 	    	 	   	
   	 	    	 	   	</div>
   	 	    	 	   <div class="tom">
   	 	    	 	   	    <div id="tom_tom" class="tom_img"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_tday"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_twendu"></div>
   	 	    	 	   	</div>
   	 	    	 </div>
   	 	    </div>
   	 	     
   	  </div>
   	  
 
 
  
 
 
 <div class="right_content">
	<div class="show_content_m">
   	        	 <div class="show_content_m_ti">
   	        	 	   <div class="showtop_t" id="positionname">任务列表</div>
   	        	 </div>
   	        	 <div class="show_content_m_t2">
   	        	 	
   	        	 	

      <div style="width:auto;overflow-x:hidden;overflow-y:auto">
           <div class="tags">

          <div id="tagscontent">

            <div id="con_one_1">

              <div class="table_td" style="margin-top:10px;">

              <form method="post" action="" onsubmit="return remind();" id="delform">

                  <table border="0" cellspacing="2" cellpadding="4" class="list" name="table" id="table" width="100%">

                    <thead>

                       <tr>

                        <th width="60px"><input type="checkbox" id="chkall" name="chkall" onclick="checkall()"></th>

                        <th align="center">id</th>
                         <th align="center">任务名称</th>
                        <th align="center">任务描述</th>

                        <th align="center">任务状态</th>

                        <th align="center">操作</th>

                      </tr>

                    </thead>

                     <tbody>
                   <?php 
        echo smarty_function_load_data(array('assign' => "list", 'table' => "task", 'showpage' => "true", 'fileds' => "*", 'orderby' => "id desc "), $_smarty_tpl);
        ?>

                      <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['list']->value['list'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
                      <tr class="s_out" onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                        <td align="center" ><input type="checkbox" name="id[]" value="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
"></td>
                        <td align="center"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
</td>
                        <td align="center"> <?php 
            echo $_smarty_tpl->tpl_vars['items']->value['taskname'];
            ?>
 </td>
                        <td align="center" width="300px"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['othercontent'];
            ?>
</td>
                        <td align="center"><?php 
            if ($_smarty_tpl->tpl_vars['items']->value['status'] == 0) {
                ?>
<a href="#" onclick="starttask(<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
);">开始任务</a>
                        	<?php 
            } else {
                if ($_smarty_tpl->tpl_vars['items']->value['status'] == 1) {
                    ?>
<a href="#" onclick="starttask(<?php 
                    echo $_smarty_tpl->tpl_vars['items']->value['id'];
                    ?>
);">继续任务</a><?php 
                } else {
                    ?>
任务结束<?php 
                }
                ?>
                        	                    <?php 
            }
            ?>
</td>

                        <td align="center">
                        	<a onclick="return remind(this);" href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/card/module/deltask/id/" . (string) $_smarty_tpl->tpl_vars['items']->value['id'] . "/datatype/json"), $_smarty_tpl);
            ?>
"><img src="<?php 
            echo $_smarty_tpl->tpl_vars['siteurl']->value;
            ?>
/templates/<?php 
            echo $_smarty_tpl->tpl_vars['tempdir']->value;
            ?>
/public/images/admin/del.jpg"></a></td>
                      </tr>
                       <?php 
        }
        ?>

                    </tbody>

                  </table>

                <div class="blank20"></div>

                </form>

                <div class="page_newc">
                 	      <div class="select_page">
                 	      	<a href="#" onclick="checkword(true);">全选</a>/<a href="#" onclick="checkword(false);">取消</a>
                 	     <a onclick="return remindall(this);" href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/card/module/deltask/datatype/json"), $_smarty_tpl);
        ?>
" class="delurl">删除</a>

                 	     </div>
                       <div class="show_page"><ul><?php 
        echo $_smarty_tpl->tpl_vars['list']->value['pagecontent'];
        ?>
</ul></div>
                 </div>

                <div class="blank20"></div>

              </div>

            </div>

          </div>

        </div>


  </div>

</div>
<script>
	 var dialogs ;
	 function starttask(taskid)
	 {
	 	 dialogs = art.dialog.open(siteurl+'/index.php?controller=adminpage&action=card&module=starttask&taskid='+taskid);
	 	 dialogs.title('进行群发任务,任务ID='+taskid);
	 }

</script>

   	        	 	
               <div class="show_content_m_t3">
   	        	 </div>
   	        	 
   	       </div>
   	       <!-- show_content_m结束-->


   	  </div>
   	  <!-- right_content 结束-->
   	  
   </div>
   <!-- newmain_all 结束-->
</div>	
	
<!--newmain 结束-->
















<div style="clear:both;"></div>
<div class="newfoot">
	
	  &#20851;&#27880;&#22909;&#36164;&#28304;&#20851;&#27880;&#25105;&#20204;&#65306;&#119;&#119;&#119;&#46;&#77;&#120;&#56;&#48;&#48;&#46;&#99;&#111;&#109;
</div>	
<script>
$(function(){ 
 $('.show_page a').wrap('<li></li>');
 $('.show_page').find('.current').eq(0).parent().css({'background':'#f60'}); 
});
   
</script>
</body>
</html>





<?php 
    }
    function content_558d04748ffc53_67135058($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/function.load_data.php';
        }
        if (!is_callable('smarty_modifier_date_format')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/modifier.date_format.php';
        }
        ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>商家管理中心-<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</title>
<meta name="Keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" />
<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/commom.css" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/shangjiaAdmin.css" />

<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquerynew.js" type="text/javascript" language="javascript"></script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/allj.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script>

 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/template.min.js" type="text/javascript" language="javascript"></script>
  <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/public.js" type="text/javascript" language="javascript"></script>
 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/plugins/iframeTools.js"></script>
 <script>
  var menu = null;
 </script>

<script>
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
    $(function(){
      
      $('.conWaiSet').height( $('.conleft').height() );
        $('.header ul li').click(function(){
            $(this).addClass('li_active').siblings().removeClass('li_active');
        });
   
        $('.waimaiset').children().children('img').remove();

        $('.shopSetTop').remove();
        $('.waimaiset li').click(function(){
            $(this).addClass('li_active').siblings().removeClass('li_active');
        });
         

        
    });
</script>
<!--[if lte IE 6]>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('div, ul, img, li, input , a');
        $('#footer').css('display','none');
    </script>
<![endif]-->
</head>
<body>
<?php 
        echo smarty_function_load_data(array('assign' => "shopinfo", 'table' => "shop", 'where' => "`id`=" . (string) $_smarty_tpl->tpl_vars['adminshopid']->value, 'type' => "one"), $_smarty_tpl);
        ?>

<!---<div style="position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: -1;background:url(<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/background.png);"></div>
header start-->
	<div class="header">
    	<ul>
        	<li class="li_active">
               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺管理</a>
            </li>
            <li>
               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a>
            </li>
            <li>
              <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/fastfood"), $_smarty_tpl);
        ?>
">快速下单</a>
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
        ?>
');">
                内容管理
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');">
                会员中心
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">
                退出
            </li>
        </ul>
                 <div class="cl"></div>
</div>
        <!--    <div class="topRight fr">
                <span onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
        ?>
');" class="curbtn">内容管理</span>
                    <span  onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');" class="curbtn">会员中心 </span>
                    <span class="username curbtn" onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">退出</span>

            </div>
            <div class="cl"></div>


            <div class="shangjiaTop">
            	<div class="sjgl">

                </div>

            </div>
        </div>

    </div>-->
    <!---header end
    <script>
	$(function(){
		var clientWidth = document.body.clientWidth;
		/*alert(clientWidth);*/
	/*	if( clientWidth<=1347 ){

			$(".content").css("width","1240px");
			$(".conleft").removeClass("content_left");

		}*/
	});
</script>
 以上是公共的头部部分-->

  <!---content start-->
	<div class="content">
   	 	<!---content left start-->
		<div class="conleft"><!-- content_left -->
        	<div class="nav">
            	<ul>
                	<li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
');" data="baseset"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/dpsz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺设置</a></li>
                    <li onclick="openlink('<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
');" data="basemenu"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/cdgl.png" /></div><a href="<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
">菜单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
');" data="baseorder"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddgl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
');" data="baseordertj"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddtj.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
">订单统计</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
');" data="basearea"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/psqy.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
">配送区域</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
');"  data="basecx"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/xxgz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
">促销规则</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/lygl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
">留言评价</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/wechat.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
">微信管理</a></li>

                </ul>

            </div>
        </div>
       <!---content left end-->





           

 <!---content right start--->
  <div class="conWaiSet fr">
    <div class="shopSetTop"> <span>内容管理</span> </div>
    <div class="cl"></div>
    <div class="caidanSet">
         <form method="post" id="delform" action="" onsubmit="return remind();">

                  <table border="0" cellspacing="2" cellpadding="4" class="list" name="table" id="table" width="100%">

                    <thead>

                      <tr>

                        <th width="60px"><input type="checkbox" id="chkall" name="chkall" onclick="checkall(this.form, 'id')"></th>

                        <th align="center">id</th>
                         <th align="center">标题</th>
                        <th align="center">添加时间</th>

                        <th align="center">标识code</th>

                        <th align="center">操作</th>

                      </tr>

                    </thead>

                     <tbody>
                    <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['list']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
                      <tr class="s_out">
                        <td align="center" ><input type="checkbox" name="id[]" value="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['single_id'];
            ?>
"></td>
                        <td align="center"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['single_id'];
            ?>
</td>
                        <td align="center"><a target="_blank" href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/single/shopsingle/id/" . (string) $_smarty_tpl->tpl_vars['items']->value['single_id']), $_smarty_tpl);
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['title'];
            ?>
</a></td>
                        <td align="center"><?php 
            echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['items']->value['addtime'], "%Y-%m-%d %H:%M:%S");
            ?>
</td>
                        <td align="center"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['code'];
            ?>
</td>

                        <td align="center"><a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/single/addsingle/id/" . (string) $_smarty_tpl->tpl_vars['items']->value['single_id']), $_smarty_tpl);
            ?>
" >修改</a>
                            <a onclick="return remind(this);" href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/single/delsingle/id/" . (string) $_smarty_tpl->tpl_vars['items']->value['single_id'] . "/datatype/json"), $_smarty_tpl);
            ?>
">删除</a>
                            <a href="javascript:void(0)" onclick="copyurl(<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['single_id'];
            ?>
)">复制</a></td>
                      </tr>
                       <?php 
        }
        ?>

                    </tbody>

                  </table>

                <div class="blank20"></div>

                 <input type="hidden" name="stopoutenable" id="stopoutenable" value="4ce2f22509228162cadfc0ca0473ec19"/>

                </form>

                <div class="page_newc">
                         <div class="select_page"><a href="#" onclick="checkword(true);">全选</a>/<a href="#" onclick="checkword(false);">取消</a> <a onclick="return remindall(this);" href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/delsingle/datatype/json"), $_smarty_tpl);
        ?>
" class="delurl">删除</a>

                            <a   href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/addsingle"), $_smarty_tpl);
        ?>
" class="delurl">添加</a>

                            </div>
                       <div class="show_page"><ul><?php 
        echo $_smarty_tpl->tpl_vars['pagecontent']->value;
        ?>
</ul></div>
                 </div>

                <div class="blank20"></div>
    </div>
  </div>
<script language="javascript">
function copyurl(single_id) {
  var strHref = '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/shopsingle/id/'+single_id+'"), $_smarty_tpl);
        ?>
';
  if (window.clipboardData){
    if(window.clipboardData.setData("Text",strHref)){
      alert('链接已复制');
    }
  }
  else{
    alert('您使用的浏览器不支持此功能,请点击标题到地址栏复制链接');
  }
}
</script>
 







       </div>




<!--以下是公共的底部部分-->

    <div class="footer">
    	<div class="foot1">
        <center>
        	<div class="db">
        	   <?php 
        if (!empty($_smarty_tpl->tpl_vars['toplink']->value)) {
            ?>
	 	      <?php 
            $_smarty_tpl->tpl_vars['toplink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['toplink']->value), null, 0);
            ?>
		  	  <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['toplink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
			         <a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> |
			    <?php 
            }
            ?>
			<?php 
        }
        ?>

            </div></center>
            <div class="cl"></div>
        </div>
        <div class="foot2">
        	<p>@2008-2012 <?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['beian']->value;
        ?>
 <?php 
        echo stripslashes($_smarty_tpl->tpl_vars['footerdata']->value);
        ?>
</p>
        </div>
    </div>

 <script>

				$(function(){

			  	if("undefined" != typeof mynomenu){
					   var allobj = $('.nav').find('li');
					  $.each(allobj, function(i, newobj) {
					  	if($(this).attr('data') == mynomenu){
					  	   $(this).addClass('on').siblings().removeClass('on');
					  	 }
					  	//alert($(this).attr('data'));

					  });
				 	}
					$(".nav ul li").click(function(){
					    	$(this).addClass('on').siblings().removeClass('on');

					});
				});
				function openlink(newlinkes){
					window.location.href=newlinkes;
				}
</script>

</body>
</html>
<?php 
    }
    function content_558d045fc56221_97575332($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_data')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/function.load_data.php';
        }
        ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>商家管理中心-<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
</title>
<meta name="Keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" />
<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/commom.css" />
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/css/shangjiaAdmin.css" />

<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquerynew.js" type="text/javascript" language="javascript"></script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/allj.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script>

 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/plugins/iframeTools.js"></script>
  <script>
  	var mynomenu='basemenu';
  	</script>

<script>
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
    $(function(){
      
      $('.conWaiSet').height( $('.conleft').height() );
        $('.header ul li').click(function(){
            $(this).addClass('li_active').siblings().removeClass('li_active');
        });
   
        $('.waimaiset').children().children('img').remove();

        $('.shopSetTop').remove();
        $('.waimaiset li').click(function(){
            $(this).addClass('li_active').siblings().removeClass('li_active');
        });
         

        
    });
</script>
<!--[if lte IE 6]>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('div, ul, img, li, input , a');
        $('#footer').css('display','none');
    </script>
<![endif]-->
</head>
<body>
<?php 
        echo smarty_function_load_data(array('assign' => "shopinfo", 'table' => "shop", 'where' => "`id`=" . (string) $_smarty_tpl->tpl_vars['adminshopid']->value, 'type' => "one"), $_smarty_tpl);
        ?>

<!---<div style="position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: -1;background:url(<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/background.png);"></div>
header start-->
	<div class="header">
    	<ul>
        	<li class="li_active">
               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺管理</a>
            </li>
            <li>
               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a>
            </li>
            <li>
              <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/fastfood"), $_smarty_tpl);
        ?>
">快速下单</a>
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
        ?>
');">
                内容管理
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');">
                会员中心
            </li>
            <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">
                退出
            </li>
        </ul>
                 <div class="cl"></div>
</div>
        <!--    <div class="topRight fr">
                <span onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
        ?>
');" class="curbtn">内容管理</span>
                    <span  onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
        ?>
');" class="curbtn">会员中心 </span>
                    <span class="username curbtn" onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
        ?>
');">退出</span>

            </div>
            <div class="cl"></div>


            <div class="shangjiaTop">
            	<div class="sjgl">

                </div>

            </div>
        </div>

    </div>-->
    <!---header end
    <script>
	$(function(){
		var clientWidth = document.body.clientWidth;
		/*alert(clientWidth);*/
	/*	if( clientWidth<=1347 ){

			$(".content").css("width","1240px");
			$(".conleft").removeClass("content_left");

		}*/
	});
</script>
 以上是公共的头部部分-->

  <!---content start-->
	<div class="content">
   	 	<!---content left start-->
		<div class="conleft"><!-- content_left -->
        	<div class="nav">
            	<ul>
                	<li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
');" data="baseset"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/dpsz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
">店铺设置</a></li>
                    <li onclick="openlink('<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
');" data="basemenu"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/cdgl.png" /></div><a href="<?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist"), $_smarty_tpl);
        } else {
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/marketgoodslist"), $_smarty_tpl);
        }
        ?>
">菜单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
');" data="baseorder"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddgl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
        ?>
">订单管理</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
');" data="baseordertj"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/ddtj.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/order/shoptotal"), $_smarty_tpl);
        ?>
">订单统计</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
');" data="basearea"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/psqy.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/area/setshoparea"), $_smarty_tpl);
        ?>
">配送区域</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
');"  data="basecx"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/xxgz.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/cxrule"), $_smarty_tpl);
        ?>
">促销规则</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/lygl.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/ask/shopask"), $_smarty_tpl);
        ?>
">留言评价</a></li>
                    <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
');" data="baseask"><div class="navimg"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/wechat.png" /></div><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
">微信管理</a></li>

                </ul>

            </div>
        </div>
       <!---content left end-->





           




  <!--content right start-->
        <div class="conWaiSet fr">

            <div class="shopSetTop">
            	<span>菜单设置</span>
            </div>
            <div class="waimaiset">
              <div class="jbset <?php 
        if ($_smarty_tpl->tpl_vars['is_goshop']->value == 0) {
            ?>
onset<?php 
        }
        ?>
" onclick="javascript:window.location.href='<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist/"), $_smarty_tpl);
        ?>
'">外卖</div>
              <div class="jbset <?php 
        if ($_smarty_tpl->tpl_vars['is_goshop']->value == 1) {
            ?>
onset<?php 
        }
        ?>
" onclick="javascript:window.location.href='<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/goodslist/is_goshop/1"), $_smarty_tpl);
        ?>
'">堂吃</div>
            </div>
            <div class="orderset">
            	<ul class="addFenlei">
                <li>
                	<input type="text" id="shoptypename" name="shoptypename" value="" placeholder="请输入分类名称" />
                  <input type="hidden" id="is_goshop" name="is_goshop" value="<?php 
        echo $_smarty_tpl->tpl_vars['is_goshop']->value;
        ?>
" />
                </li>
                <li>
                 <input type="button" class="addButton curbtn" value="确定"  id="add_FoodType"/>
                </li>
              </ul>

                  <div class="cl"></div>
            </div>




             <div class="cl"></div>

                <form action="" method="post">
                 <div class="caidanSet">

                    <div class="caidanTitle">
                	<ul>
                		<?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['list']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
            ?>
                    	<li  data="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
"  dataname="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['name'];
            ?>
" dataorder="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['orderid'];
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['name'];
            ?>
</li>
                     <?php 
        }
        ?>
                    </ul>
                    <div class="editGtype" id="editGtype">
                         <div class="delGDtype curbtn" ></div>
                         <div class="editGDtype curbtn"></div>

                    </div>
                </div>

                	<div class="div_orderList">

                        <div class="div_orderList_show">

                        <div class="orderList_show_goodli">
                            <div class="ord_goodname">
                                <span>食品名称</span>
                            </div>
                            <div class="ord_prime">
                               <span>原价(元)</span>
                            </div>
                            <div class="ord_price">
                                 <span>价格(元)</span>
                            </div>
                            <div class="ord_dbf">
                                 <span>打包费(元)</span>
                            </div>
                            <div class="ord_day_num">
                                 <span>每日数量</span>
                            </div>
                             <div class="order_caozuo">
                                 <span>操作</span>
                            </div>
                        </div>

                        <div class="cl"></div>

                      <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['list']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
            ?>
                      <?php 
            $_smarty_tpl->tpl_vars['ite'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['ite']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['items']->value['det'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['ite']->key => $_smarty_tpl->tpl_vars['ite']->value) {
                $_smarty_tpl->tpl_vars['ite']->_loop = true;
                ?>
                    	<div class="order_list	listgoodsdet goodsdiv_<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
" data="<?php 
                echo $_smarty_tpl->tpl_vars['ite']->value['id'];
                ?>
" id="goodstr_<?php 
                echo $_smarty_tpl->tpl_vars['ite']->value['id'];
                ?>
" >
                       		 <div class="order_goodlist">
                                <div class="cd_name">
                                    <p class="name"><?php 
                echo $_smarty_tpl->tpl_vars['ite']->value['name'];
                ?>
</p>
                                </div>
                                <div class="cd_prime">
                                    <p class="prime_cost"><?php 
                echo $_smarty_tpl->tpl_vars['ite']->value['prime_cost'];
                ?>
</p>
                                </div>
                                <div class="cd_price">
                                    <p class="cost"><?php 
                echo $_smarty_tpl->tpl_vars['ite']->value['cost'];
                ?>
</p>
                                </div>
                                <div class="cd_dbf">
                                     <p class="bagcost"><?php 
                echo $_smarty_tpl->tpl_vars['ite']->value['bagcost'];
                ?>
</p>
                                </div>
                                <div class="cd_dayNum">
                                     <p class="count"><?php 
                echo $_smarty_tpl->tpl_vars['ite']->value['count'];
                ?>
</p>
                                </div>
                                 <div class="cd_caozuo">
                                     <span style=" background:#27a9e3; padding:8px 5px; color:#fff;" class="curbtn" onclick="editgoods('<?php 
                echo $_smarty_tpl->tpl_vars['ite']->value['id'];
                ?>
');">编辑</span>
                                      <span style=" background:#ec7501; padding:8px 5px;color:#fff;" class="curbtn" onclick="delgoods('<?php 
                echo $_smarty_tpl->tpl_vars['ite']->value['id'];
                ?>
');">删除</span>
                                      <span style=" background:red; padding:8px 5px;color:#fff;" class="curbtn" onclick="showgoodsStock('<?php 
                echo $_smarty_tpl->tpl_vars['ite']->value['id'];
                ?>
');">库存</span>
                                </div>
                           </div>
                        </div>
                       <?php 
            }
            ?>
                      <?php 
        }
        ?>

                      <div class="order_list"  id="additem" style="display:none;">
                      	    <input type="hidden" name="adgoodstypeid" value="">
                       		 <div class="order_goodlist">
                                <div class="cd_name">
                                    <input style="width:50%;" type="text" value="" name="adgoodname" placeholder="商品名称"/>
                                </div>
                                <div class="cd_prime">
                                   <input  style="width:50%;" type="text" value="" name="adgoodprimecost" placeholder="商品原价"/>
                                </div>
                                <div class="cd_price">
                                   <input  style="width:50%;" type="text" value="" name="adgoodcost" placeholder="商品单价"/>
                                </div>
                                <div class="cd_dbf">
                                    <input  style="width:50%;" type="text" value="" name="adgoodbagcost" placeholder="打包费"/>
                                </div>
                                <div class="cd_dayNum">
                                    <input  style="width:50%;" type="text" value="" name="adgoodcount" placeholder="商品数量"/>
                                </div>
                                 <div class="cd_caozuo">
                                     <span style=" background:#27a9e3; padding:8px; color:#fff;" class="curbtn" id="saveaddgoods">保存</span>

                                </div>
                           </div>
                      </div>
                      <div class="order_list" style="background:#303337;">
                       		 <div class="order_goodlist">
                              <div class="cd_name" style=" border:none;">
                                  <span style=" background:#27a9e3; padding:10px; color:#fff;" class="curbtn" id="addgoods">添加菜品</span>
                              </div>

                           </div>

                      </div>

                        <div class="cl"></div>


                     </div>




                    </div>

       			 </div>


              </form>


        </div>
        <div class="cl"></div>





        <!---content right end--->













 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/plugins/iframeTools.js"></script>
<script>
$(function(){
//删除分类
var checkisexti =  $('.caidanTitle').find('li').length;
if(checkisexti == 0){

  $('.caidanSet').hide();
}
$('.delGDtype').live('click',function(){
	if(confirm('确定删除商品操作吗?删除后将同时删除该分类下的所有商品')){
		var allobj = $(".caidanSet").find('li');
		var typeid = 0;
		for(var i=0;i< $(allobj).length;i++){
		   if($(allobj).eq(i).hasClass("cur") ==  true){
		      typeid = $(allobj).eq(i).attr('data');
		    }
		}

    myajax('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/delgoodstype/datatype/json"), $_smarty_tpl);
        ?>
',{'addressid':typeid});
  }
});
//编辑分类
$('.editGDtype').live('click',function(){
	var allobj = $(".caidanSet").find('li');
		var typeid = 0;
		var typename = '';
		var typeorder = '';
		for(var i=0;i< $(allobj).length;i++){
		   if($(allobj).eq(i).hasClass("cur") ==  true){
		      typeid = $(allobj).eq(i).attr('data');
		      typename = $(allobj).eq(i).attr('dataname');
		      typeorder = $(allobj).eq(i).attr('dataorder');
		    }
		}
	var	htmls = '<form method="post" id="doshwoform" action="#" style="text-align:center;"><table>';
	htmls += '<tbody><tr>';
	htmls += '<td height="50px">分类名称:</td>';
	htmls += '<td> <input type="text" name="newtypename" value="'+typename+'" style="width:100px;"></td></tr>';
	htmls +='<tr><td height="50px">排序ID:</td><td style="text-align:left;"> <input type="text" name="newtypeorderid" value="'+typeorder+'" style="width:50px;"></td></tr>'
	htmls += '</tbody></table> ';
  htmls += '<input type="hidden" value="'+typeid+'" name="newtypeid"> ';
	htmls += '<input type="button" value="确认提交" class="button" id="updategoodstype" ></form>';
  art.dialog({
    id: 'testID3',
    title:'保存店铺分类',
    content: htmls
  });


});
//保持编辑分类
$('#updategoodstype').live('click',function(){

	  showop('保存商品分类信息');
	   myajax('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/editgoodstype/datatype/json"), $_smarty_tpl);
        ?>
',{'what':'allinfo','name':$('input[name="newtypename"]').val(),'orderid':$('input[name="newtypeorderid"]').val(),'addressid':$('input[name="newtypeid"]').val()});
});

//添加商品分类
$("#add_FoodType").live("click", function() {
	if($('#shoptypename').val() == ''||$('#shoptypename').val() ==null){
		diaerror('分类不能空');
	}else{
		var mm = $('#shoptypename').val();
    var is_goshop = $('#is_goshop').val();
		$('#shoptypename').val('')
	   myajax('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/savegoodstype/datatype/json"), $_smarty_tpl);
        ?>
',{'name':mm,'orderid':$(".caidanSet").find('li').length, 'is_goshop':is_goshop});
  }
});


//导航条切换
$(".caidanSet ul li").click(function(){
						$(this).addClass('cur').siblings().removeClass('cur');
					   var tempid = $(this).attr('data');
					   $('.listgoodsdet').hide();
					  $('.goodsdiv_'+tempid).show();
					  $('input[name="adgoodstypeid"]').val(tempid);
					  $('#additem').hide();
					  //获取坐标
				//
				var fleft = $('.caidanSet').offset().left;
				var zleft = $(this).offset().left;
				var resulte = Number(zleft) -Number(fleft);
				$('#editGtype').css('margin-left',resulte);



});
$(".caidanSet").find("li").eq(0).trigger("click");//设置默认第一个

//快捷编辑商品
$(".listgoodsdet p").live("click", function() {
	var is_save = $(this).hasClass('now_edit');
	var typename = $(this).attr('class');
	var doc = $(this).text();
	 if(is_save){

	 }else{
	 	$(this).addClass('now_edit');
	 	var goodsid = $(this).parent().parent().parent().attr('data');

	 	 $(this).html('<input style="width:60%;" type="text" value="'+doc+'" id="'+typename+goodsid+'" \/> <span class="curbtn" onclick="savegoodtxt(\''+goodsid+'\',\''+typename+'\');">保存<\/span>');
	 }
});

//显示添加商品
$('#addgoods').live('click',function(){
	$('#additem').show();
});
//提交添加商品
$('#saveaddgoods').live('click',function(){
	var typeid =   $('input[name="adgoodstypeid"]').val();
	var data1 = $('input[name="adgoodname"]').val();
	var data2 = $('input[name="adgoodcost"]').val();
	var data3 = $('input[name="adgoodbagcost"]').val();
	var data4 = $('input[name="adgoodcount"]').val();
  var data5 = $('input[name="adgoodprimecost"]').val();
  var data6 = $('#is_goshop').val();
	if(typeid == ''){
	 alert('请选择商品类型');
	 return false;
	}
	if(data1 == ''){
	  alert('请录入商品名称');
	  return false;
	}
		if(confirm('确定操作吗?')){
			 showop('保存商品信息');
	    var backinfo = ajaxback('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/addgoods/datatype/json"), $_smarty_tpl);
        ?>
',{'name':data1,'typeid':typeid,'prime_cost':data5,'cost':data2,'bagcost':data3,'count':data4, 'is_goshop':data6});
	    if(backinfo.flag == true)
	    {
		      hideop();
		     diaerror(backinfo.content);
	     }else{
	  	    hideop();
	  	    var htmldata = '<div class="order_list	listgoodsdet goodsdiv_'+backinfo.content.typeid+'" data="'+backinfo.content.id+'" id="goodstr_'+backinfo.content.id+'" >';
              htmldata += ' <div class="order_goodlist">';
              htmldata += '       <div class="cd_name">';
              htmldata += '          <p class="name">'+backinfo.content.name+'</p>';
              htmldata += '       </div>';
              htmldata += '      <div class="cd_prime">';
              htmldata += '          <p class="prime_cost">'+backinfo.content.prime_cost+'</p>  ';
              htmldata += '     </div>';
              htmldata += '      <div class="cd_price">';
              htmldata += '          <p class="cost">'+backinfo.content.cost+'</p>  ';
              htmldata += '     </div>';
              htmldata += '     <div class="cd_dbf">';
              htmldata += '          <p class="bagcost">'+backinfo.content.bagcost+'</p>  ';
              htmldata += '      </div>';
              htmldata += '      <div class="cd_dayNum">';
              htmldata += '           <p class="count">'+backinfo.content.count+'</p>   ';
              htmldata += '      </div>';
              htmldata += '       <div class="cd_caozuo">';
              htmldata += '          <span style=" background:#27a9e3; padding:8px; color:#fff;" class="curbtn" onclick="editgoods(\''+backinfo.content.id+'\');">编辑</span>';
              htmldata += '            <span style=" background:#ec7501; padding:8px; color:#fff;" class="curbtn" onclick="delgoods(\''+backinfo.content.id+'\');">删除</span>';
              htmldata += '            <span style="background:red; padding:8px 5px;color:#fff;" class="curbtn" onclick="showgoodsStock(\''+backinfo.content.id+'\');">库存</span>';
              htmldata += '      </div>';
              htmldata += '  </div> ';
              htmldata += '</div>';
          $('#additem').before(htmldata);
          $('input[name="adgoodname"]').val('');
	           $('input[name="adgoodcost"]').val('');
             $('input[name="adgoodprimecost"]').val('');
	             $('input[name="adgoodbagcost"]').val('');
	           $('input[name="adgoodcount"]').val('');
	            $('#additem').hide();
	  	    artsucces('保存成功');

	     }
		}

});
//删除商品




});

function savegoodtxt(goodsid,typename){
  	var values = $('#'+typename+goodsid).val();
	   showop('保存商品信息');
	  var backinfo = ajaxback('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/updategoods/datatype/json"), $_smarty_tpl);
        ?>
',{'controlname':typename,'goodsid':goodsid,'values':values});
	  if(backinfo.flag == true)
	  {
		  hideop();
		  diaerror(backinfo.content);
	  }else{
	  	 hideop();
	  	 $('#goodstr_'+goodsid).find('.'+typename).text(values);
	  	 $('#goodstr_'+goodsid).find('.'+typename).removeClass('now_edit');
	  	 artsucces('保存成功');
	 }
}

function delgoods(gid){
   if(confirm('确定删除该商品操作吗?')){
	var backinfo = ajaxback('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/delgoods/datatype/json"), $_smarty_tpl);
        ?>
',{'id':gid});
	    if(backinfo.flag == true)
	    {
		    hideop();
		  diaerror(backinfo.content);
	     }else{
	  	    hideop();
	  	    $('#goodstr_'+gid).remove();
	  	    artsucces('删除成功');
	     }
	}
}
var dialogs ;
function editgoods(gid){
		 dialogs = art.dialog.open(siteurl+'/index.php?controller=shop&action=goodsone&gid='+gid,{height:'500px',width:'700px'},false);
	 	 dialogs.title('编辑商品');
}
function refreshgoods(info){
	 dialogs.close();
	 $('#goodstr_'+info.id).remove();

	var htmldata = '<div class="order_list	listgoodsdet goodsdiv_'+info.typeid+'" data="'+info.id+'" id="goodstr_'+info.id+'" >';
              htmldata += ' <div class="order_goodlist">';
              htmldata += '       <div class="cd_name">';
              htmldata += '          <p class="name">'+info.name+'</p>';
              htmldata += '       </div>';
              htmldata += '      <div class="cd_prime">';
              htmldata += '          <p class="prime_cost">'+info.prime_cost+'</p>  ';
              htmldata += '     </div>';
              htmldata += '      <div class="cd_price">';
              htmldata += '          <p class="cost">'+info.cost+'</p>  ';
              htmldata += '     </div>';
              htmldata += '     <div class="cd_dbf">';
              htmldata += '          <p class="bagcost">'+info.bagcost+'</p>  ';
              htmldata += '      </div>';
              htmldata += '      <div class="cd_dayNum">';
              htmldata += '           <p class="count">'+info.count+'</p>   ';
              htmldata += '      </div>';
              htmldata += '       <div class="cd_caozuo">';
              htmldata += '          <span style=" background:#27a9e3; padding:8px; color:#fff;" class="curbtn" onclick="editgoods(\''+info.id+'\');">编辑</span>';
              htmldata += '            <span style=" background:#ec7501; padding:8px; color:#fff;" class="curbtn" onclick="delgoods(\''+info.id+'\');">删除</span>';
              htmldata += '      </div>';
              htmldata += '  </div> ';
              htmldata += '</div>';
          $('#additem').before(htmldata);
	var allobj = $(".caidanSet").find('li');
		var typeid = 0;
		for(var i=0;i< $(allobj).length;i++){
		   if($(allobj).eq(i).hasClass("cur") ==  true){
		      typeid = $(allobj).eq(i).attr('data');
		    }
		}
		if(typeid != info.typeid){
			$('#goodstr_'+info.id).hide();
		}



}
function showgoodsStock(gid){
    dialogs = art.dialog.open(siteurl+'/index.php?controller=shop&action=goodsstock&gid='+gid,{height:'500px',width:'700px'},false);
     dialogs.title('查看库存');
}
  </script>












       </div>




<!--以下是公共的底部部分-->

    <div class="footer">
    	<div class="foot1">
        <center>
        	<div class="db">
        	   <?php 
        if (!empty($_smarty_tpl->tpl_vars['toplink']->value)) {
            ?>
	 	      <?php 
            $_smarty_tpl->tpl_vars['toplink'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['toplink']->value), null, 0);
            ?>
		  	  <?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['toplink']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
			         <a href="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typeurl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['typename'];
                ?>
</a> |
			    <?php 
            }
            ?>
			<?php 
        }
        ?>

            </div></center>
            <div class="cl"></div>
        </div>
        <div class="foot2">
        	<p>@2008-2012 <?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['beian']->value;
        ?>
 <?php 
        echo stripslashes($_smarty_tpl->tpl_vars['footerdata']->value);
        ?>
</p>
        </div>
    </div>

 <script>

				$(function(){

			  	if("undefined" != typeof mynomenu){
					   var allobj = $('.nav').find('li');
					  $.each(allobj, function(i, newobj) {
					  	if($(this).attr('data') == mynomenu){
					  	   $(this).addClass('on').siblings().removeClass('on');
					  	 }
					  	//alert($(this).attr('data'));

					  });
				 	}
					$(".nav ul li").click(function(){
					    	$(this).addClass('on').siblings().removeClass('on');

					});
				});
				function openlink(newlinkes){
					window.location.href=newlinkes;
				}
</script>

</body>
</html>
<?php 
    }
    function content_558cf212de8430_69324091($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/modifier.date_format.php';
        }
        if (!is_callable('smarty_function_load_data')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/function.load_data.php';
        }
        ?>
<!DOCTYPE HTML>
<html>
<head> 
<meta charset="utf-8"/> 
<meta http-equiv="Content-Language" content="zh-CN"> 
<meta content="all" name="robots"> 
<meta name="description" content=""> 
<meta content="" name="keywords"> 
<title>小树好吃后台管理中心</title>  
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/css/admin1.css"> 
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/jquery.js" type="text/javascript" language="javascript"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/public.js" type="text/javascript" language="javascript"></script>
 <script type="text/javascript" language="javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/artdialog/artDialog.js?skin=blue"></script>
 <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/template.min.js" type="text/javascript" language="javascript"></script>

<script>
	var menu = null;
	var siteurl = "<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
";
	var is_static ="<?php 
        echo $_smarty_tpl->tpl_vars['is_static']->value;
        ?>
";
	/*if(screen.width > 1359){
		
		$('.newtop').css('width',screen.width);
		$('.newmain').css('width',screen.width);
		$('.newfoot').css('width',screen.width);
	} */
</script> 
</head> 
<body> 
<div id="cat_zhe" class="cart_zhe" style="display:none;"></div>
<div id="cat_tj" class="cart_out_cat" style="display:none;"> 数据提交中..</div>
<div class="newtop">
	  <div class="newadddiv">
	  <div class="newlogo">
	  	  <div class="imglogo"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
" target="_blank"><!--<img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/images/admin/logo.png">-->小树好吃后台管理系统</a></div>
	  </div>
	  <div class="newtopnav">
	  	 <ul>
	  	  <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tempdir']->value . "/public/admin_module.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>
 
	  	 	<ul>
	  	
	  </div>
	</div>
</div> 
<div style="clear:both;"></div>
<div class="newmain">
	<!-- 提示导航--
   <div class="top_nav">
	    <div class="nav2 datainfo">
	    	<?php 
        echo smarty_modifier_date_format(time(), "%Y-%m-%d");
        ?>
  
	    </div>
	    <div class="nav2 positioninfo" id="positionname2">
	    	网站首页
	    </div>
	    <div class="nav2 orderinfo">
	    	您有今天有 0 个订单待审核
	    </div>
   </div> -->
   <!-- 主内容区-->
   <div class="newmain_all">
   	 <!-- 主内左区-->
   	 <div class="left_content">
   	 	   <!-- 主内左区用户信息-->
   	 	   <div class="userinfo">
   	 	   	   <div class="user_area">
   	 	   	   	     用户名: <div class="user_name">
   	 	   	   	      	<?php 
        echo $_smarty_tpl->tpl_vars['admininfo']->value['username'];
        ?>

   	 	   	   	      </div>
   	 	   	   	      
   	 	   	  </div>
   	 	   	<!--  <div class="now_name" id="nowactioninfo">
   	 	   	    	网站首页
   	 	   	    </div> -->
                   <!--提示导航 Begin-->
                   <ul class="top_nav">
                      <li>日期:
                        <span class="nav2 datainfo">
                          <?php 
        echo smarty_modifier_date_format(time(), "%Y-%m-%d");
        ?>

                        </span>  
                      </li>
                      <!--<li>位置:
                        <span class="nav2 positioninfo" id="positionname2">网站首页</span>
                      </li>-->
                      <li class="nav2 orderinfo">
                        您有今天有 0 个订单待审核
                      </li>
                  </ul>
                  <!--提示导航 End-->
                  <div class="content_url">
                               <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/member/adminloginout"), $_smarty_tpl);
        ?>
" class="out">退出登录</a> 
                               <a onClick="modifypwd();" href="#">修改密码</a>
                           </div>
   	 	   </div>
   	 	   <!-- 主内左区导航条-->
   	 	    <div class="left_nav">
   	 	    	  <ul> 
   	 	    	  	
   	 	    	  	
   	 	    	  	 <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tempdir']->value . "/public/admin_menu.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

   	 	    	 
   	 	    	     <li><a href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
" target="_blank">返回网站首页</a></li>
   	 	    	  </ul>
   	 	    </div>

   	 	    <div class="left_navend">
   	 	    </div>
   	 	    <!-- 主内左区天气预报-->
   	 	    <div class="weather" id="weatherinfo" style="display:none;">
   	 	    	 <div class="todayweacher">
   	 	    	      <div class="weacher_left">
   	 	    	      	 <div id="wtoday_img"> </div>
   	 	    	      	 <div><span id="wcity" style="padding-right:5px;"></span><span id="wqihou"></span></div>
   	 	    	      </div>
   	 	    	      <div class="weacher_right" id="wwendu">
   	 	    	      	 
   	 	    	      </div>	 
   	 	    	 </div>
   	 	    	 <div style="clear:both;">
   	 	    	 	   <div class="tom">
   	 	    	 	   	    <div id="tom_1" class="tom_img"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_day"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_wendu"></div>
   	 	    	 	   	
   	 	    	 	   	</div>
   	 	    	 	   <div class="tom">
   	 	    	 	   	    <div id="tom_tom" class="tom_img"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_tday"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_twendu"></div>
   	 	    	 	   	</div>
   	 	    	 </div>
   	 	    </div>
   	 	     
   	  </div>
   	  
 
 
  
 
 
 <div class="right_content">
	<div class="show_content_m">
   	        <!--	 <div class="show_content_m_ti">
   	        	 	   <div class="showtop_t" id="positionname">新闻列表   </div>
   	        	 </div>  -->
   	        	 <div class="show_content_m_t2">
   	        	 	
   	        	 	

          <div>

           <div class="tags">



          <div id="tagscontent">

            <div id="con_one_1">

              <div class="table_td">

              <form method="post" action="" onsubmit="return remind();" id="delform">

                  <table border="0" cellspacing="0" cellpadding="0" class="list" name="table" id="table" width="100%">

                    <thead>

                      <tr>
                        <th><input type="checkbox" id="chkall" name="chkall" onclick="checkall()"></th>
                         <th>id</th>
                         <th>标题</th>
                         <th>添加时间</th>
                         <th>所在分类</th>
                         <th>排序</th>
                         <th>操作</th>
                      </tr>

                    </thead>

                     <tbody>

                       <?php 
        echo smarty_function_load_data(array('assign' => "list", 'table' => "news", 'showpage' => "true", 'orderby' => "id desc"), $_smarty_tpl);
        ?>

		                 	<?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['list']->value['list'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
            $_smarty_tpl->tpl_vars['items']->_loop = true;
            ?>
                      <tr class="s_out" onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                        <td><input type="checkbox" name="id[]" value="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
"></td>
                        <td><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
</td>
                        <td> <?php 
            echo $_smarty_tpl->tpl_vars['items']->value['title'];
            ?>
 </td>
                        <td><?php 
            echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['items']->value['addtime'], "%Y-%m-%d %H:%M:%S");
            ?>
</td>
                        <td>
                        	<?php 
            echo smarty_function_load_data(array('assign' => "typeinfo", 'table' => "newstype", 'type' => "one", 'where' => "id='" . (string) $_smarty_tpl->tpl_vars['items']->value['typeid'] . "'", 'fileds' => "name"), $_smarty_tpl);
            ?>

                        	<?php 
            echo ($tmp = @$_smarty_tpl->tpl_vars['typeinfo']->value['name']) === null || $tmp === '' ? '' : $tmp;
            ?>

                       </td>
                      <td><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['orderid'];
            ?>
</td>
                        <td>
                        	<a href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/news/module/addnews/id/" . (string) $_smarty_tpl->tpl_vars['items']->value['id']), $_smarty_tpl);
            ?>
" ><img src="<?php 
            echo $_smarty_tpl->tpl_vars['siteurl']->value;
            ?>
/templates/<?php 
            echo $_smarty_tpl->tpl_vars['tempdir']->value;
            ?>
/public/images/admin/edit.jpg"></a>
                        	<a onclick="return remind(this);" href="<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/news/module/delnews/id/" . (string) $_smarty_tpl->tpl_vars['items']->value['id'] . "/datatype/json"), $_smarty_tpl);
            ?>
"><img src="<?php 
            echo $_smarty_tpl->tpl_vars['siteurl']->value;
            ?>
/templates/<?php 
            echo $_smarty_tpl->tpl_vars['tempdir']->value;
            ?>
/public/images/admin/del.jpg"></a></td>
                      </tr>
                       <?php 
        }
        ?>

                    </tbody>

                  </table>

                <div class="blank20"></div>

                </form>

                <div class="page_newc">
                 	      <div class="select_page"><a href="#" onclick="checkword(true);">全选</a>/<a href="#" onclick="checkword(false);">全不选</a> <a onclick="return remindall(this);" href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/news/module/delnews/datatype/json"), $_smarty_tpl);
        ?>
" class="delurl">删除</a>  <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/news/module/addnews"), $_smarty_tpl);
        ?>
" class="delurl">添加新闻</a></div>
                       <div class="show_page"><ul><?php 
        echo $_smarty_tpl->tpl_vars['list']->value['pagecontent'];
        ?>
</ul></div>
                 </div>

               <div class="blank20"></div>

              </div>

            </div>

          </div>

        </div>


  </div>

</div>

   	        	 </div>	
               <div class="show_content_m_t3">
   	        	 
   	        	 </div>
   	       </div>
   	       <!-- show_content_m结束-->


   	  </div>
   	  <!-- right_content 结束-->
   	  
   </div>
   <!-- newmain_all 结束-->
</div>	
	
<!--newmain 结束-->
















<div style="clear:both;"></div>
<div class="newfoot">
	
	  &#20851;&#27880;&#22909;&#36164;&#28304;&#20851;&#27880;&#25105;&#20204;&#65306;&#119;&#119;&#119;&#46;&#77;&#120;&#56;&#48;&#48;&#46;&#99;&#111;&#109;
</div>	
<script>
$(function(){ 

$('#tagscontent table').attr({
  'cellpadding':'0',
  'cellspacing':'0'
});


var height = $('.left_content').height();
 $('.right_content').height(height);

$('#con_one_1 .table_td').removeAttr('style');
$('#tagscontent td:last-child a img').hide();
$('#tagscontent td:last-child a:nth-child(1) img').parent('a').addClass('first');
$('#tagscontent td:last-child a:nth-child(2) img').parent('a').addClass('after');
 $('.show_page a').wrap('<li></li>');
 $('.show_page').find('.current').eq(0).parent().css({'background':'#f60'}); 
});
   
</script>
</body>
</html>





<?php 
    }