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_55921466c150c9_14629707($_smarty_tpl)
    {
        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 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>
   	 	   	<!--  <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 id="tagscontent">
            <form method="post" name="form1" action="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/system/module/saveset/datatype/json"), $_smarty_tpl);
        ?>
" onsubmit="return subform('',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="sitename" id="sitename" value="<?php 
        echo $_smarty_tpl->tpl_vars['sitename']->value;
        ?>
" class="skey" style="width:150px;"></td>
                    </tr>
                    
                    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="ffffff">
                      <td class="left">网站SEO描述</td>
                      <td><input type="text" name="description" id="description" value="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" class="skey" style="width:250px;"></td>
                    </tr>
                     <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                      <td class="left">网站SEO关键字</td>
                      <td><input type="text" name="keywords" id="keywords" value="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" class="skey" style="width:250px;"></td>
                    </tr>
                     
                    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                      <td class="left">备案号</td>
                      <td><input type="text" name="beian" id="beian" value="<?php 
        echo $_smarty_tpl->tpl_vars['beian']->value;
        ?>
" class="skey" style="width:250px;"></td>
                    </tr>
                    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                      <td class="left">客服电话</td>
                      <td><input type="text" name="litel" id="litel" value="<?php 
        echo $_smarty_tpl->tpl_vars['litel']->value;
        ?>
" class="skey" style="width:250px;"></td>
                    </tr>
                    
                    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff" >
                      <td class="left">佣金比例</td>
                      <td><input type="text" name="yjin" id="yjin" value="<?php 
        echo $_smarty_tpl->tpl_vars['yjin']->value;
        ?>
" class="skey" style="width:50px;">整数,例如:5 表示佣金比例为订单总金额的5%</td>
                    </tr>
                     <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                      <td class="left">网站默认城市</td>
                      <td><input type="text" name="cityname" id="cityname" value="<?php 
        echo $_smarty_tpl->tpl_vars['cityname']->value;
        ?>
" class="skey" style="width:100px;"></td>
                    </tr>
                   
                    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                      <td class="left">网站公告</td>
                      <td><textarea name="notice"><?php 
        echo $_smarty_tpl->tpl_vars['notice']->value;
        ?>
</textarea></td>
                    </tr>
                    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                      <td class="left">默认用户头像</td>
                      <td>
                      	<input type="hidden" name="userlogo" id="userlogo" value="<?php 
        echo $_smarty_tpl->tpl_vars['userlogo']->value;
        ?>
" class="skey" style="width:100px;">
                      	<img src="<?php 
        echo $_smarty_tpl->tpl_vars['userlogo']->value;
        ?>
" width=50px height=50px id="imgshow" <?php 
        if (empty($_smarty_tpl->tpl_vars['userlogo']->value)) {
            ?>
 style="display:none;"<?php 
        }
        ?>
> 
                      	<span onclick="uploads();">上传图片</span> 
                      </td>
                    </tr>
                    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                      <td class="left">默认店铺头像</td>
                      <td>
                      	<input type="hidden" name="shoplogo" id="shoplogo" value="<?php 
        echo $_smarty_tpl->tpl_vars['shoplogo']->value;
        ?>
" class="skey" style="width:100px;"> 
                      	<img src="<?php 
        echo $_smarty_tpl->tpl_vars['shoplogo']->value;
        ?>
" width=50px height=50px id="imgshows" <?php 
        if (empty($_smarty_tpl->tpl_vars['shoplogo']->value)) {
            ?>
 style="display:none;"<?php 
        }
        ?>
> 
                      	<span onclick="uploadm();">上传图片</span> 
                      </td>
                    </tr>
                    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                      <td class="left">网站logo</td>
                      <td>
                      	<input type="hidden" name="sitelogo" id="sitelogo" value="<?php 
        echo $_smarty_tpl->tpl_vars['sitelogo']->value;
        ?>
" class="skey" style="width:100px;"> 
                      	<img src="<?php 
        echo $_smarty_tpl->tpl_vars['sitelogo']->value;
        ?>
" width=50px height=50px id="imgshowc" <?php 
        if (empty($_smarty_tpl->tpl_vars['sitelogo']->value)) {
            ?>
 style="display:none;"<?php 
        }
        ?>
> 
                      	<span onclick="uploadc();">上传图片</span> 
                      </td>
                    </tr>
                    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                      <td class="left">手机站LOGO</td>
                      <td>
                      	<input type="hidden" name="html5logo" id="html5logo" value="<?php 
        echo $_smarty_tpl->tpl_vars['html5logo']->value;
        ?>
" class="skey" style="width:100px;"> 
                      	<img src="<?php 
        echo $_smarty_tpl->tpl_vars['html5logo']->value;
        ?>
" width=50px height=50px id="html5logoshow" <?php 
        if (empty($_smarty_tpl->tpl_vars['html5logo']->value)) {
            ?>
 style="display:none;"<?php 
        }
        ?>
> 
                      	<span onclick="uploadk();">上传图片</span> 
                      </td>
                    </tr>
                    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                      <td class="left">网站meta数据</td>
                      <td><textarea name="metadata"><?php 
        echo stripslashes($_smarty_tpl->tpl_vars['metadata']->value);
        ?>
</textarea></td>
                    </tr>
                    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                      <td class="left">统计代码</td>
                      <td><textarea name="footerdata"><?php 
        echo stripslashes($_smarty_tpl->tpl_vars['footerdata']->value);
        ?>
</textarea></td>
                    </tr>
                     <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                      <td class="left">百度key</td>
                      <td><input type="text" name="baidumapkey" id="baidumapkey" value="<?php 
        echo $_smarty_tpl->tpl_vars['baidumapkey']->value;
        ?>
" class="skey" style="width:100px;"></td>
                    </tr>
                    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                      <td class="left">百度secret</td>
                      <td><input type="text" name="baidumapsecret" id="baidumapsecret" value="<?php 
        echo $_smarty_tpl->tpl_vars['baidumapsecret']->value;
        ?>
" class="skey" style="width:100px;"></td>
                    </tr>
                    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                      <td class="left">选择地址样式</td>
                      <td>	<input type="radio" name="guidetype" id="guidetype" value="1"  checked>样式1(弹出窗)
                      	<input type="radio" name="guidetype" id="guidetype" value="2"   <?php 
        if ($_smarty_tpl->tpl_vars['guidetype']->value == 2) {
            ?>
checked<?php 
        }
        ?>
>样式2(滚动)
                      </td>
                    </tr>
                    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                      <td class="left">百度LNG默认城市坐标</td>
                      <td>	  
                      	<input type="text" name="baidulng" id="baidulng" value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['baidulng']->value) === null || $tmp === '' ? '0' : $tmp;
        ?>
" class="skey" style="width:100px;"> 
                      </td>
                    </tr>
                    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                      <td class="left">百度lat默认城市坐标</td>
                      <td>	 
                      	<input type="text" name="baidulat" id="baidulat" value="<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['baidulat']->value) === null || $tmp === '' ? '0' : $tmp;
        ?>
" class="skey" style="width:100px;"> 
                      </td>
                    </tr>
                  </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> 
<script>
	var dialogs ;
 function uploads(){  
 	  dialogs = art.dialog.open('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/other/module/adminupload/func/uploadsucess"), $_smarty_tpl);
        ?>
');
 	  dialogs.title('上传图片'); 
 }
 function uploadsucess(flag,obj,linkurl){
 	 if(flag == true){
 		alert(linkurl);
		dialogs.close();
		uploads();
 	 }else{ 
 		dialogs.close();
 	 $('#userlogo').val(linkurl);
   	$('#imgshow').attr('src',linkurl);
 	  $('#imgshow').show();
   }
 }  
 function uploadm(){  
 	  dialogs = art.dialog.open('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/other/module/adminupload/func/uploadsucessm"), $_smarty_tpl);
        ?>
');
 	  dialogs.title('上传图片'); 
 }
 function uploadsucessm(flag,obj,linkurl){
 	 if(flag == true){
 		alert(linkurl);
		dialogs.close();
		uploadm();
 	 }else{ 
 		dialogs.close();
 	 $('#shoplogo').val(linkurl);
 	$('#imgshows').attr('src',linkurl);
 	$('#imgshows').show(); 
   }
 }   
function uploadc(){  
 	  dialogs = art.dialog.open('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/other/module/adminupload/func/uploadsucessc"), $_smarty_tpl);
        ?>
');
 	  dialogs.title('上传图片'); 
 }
 function uploadsucessc(flag,obj,linkurl){
 	 if(flag == true){
 		alert(linkurl);
		dialogs.close();
		uploadc();
 	 }else{ 
 		dialogs.close();
 	 	$('#sitelogo').val(linkurl);
 	  $('#imgshowc').attr('src',linkurl);
 	  $('#imgshowc').show(); 
   }
 } 
 function uploadk(){
 	 dialogs = art.dialog.open('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/other/module/adminupload/func/uploadsucessk"), $_smarty_tpl);
        ?>
');
 	  dialogs.title('上传图片'); 
}
function uploadsucessk(flag,obj,linkurl){
 	 if(flag == true){
 		alert(linkurl);
		dialogs.close();
		uploadk();
 	 }else{ 
 		dialogs.close();
 	 	$('#html5logo').val(linkurl);
 	  $('#html5logoshow').attr('src',linkurl);
 	  $('#html5logoshow').show(); 
   }
 } 
 
</script>    
<!--newmain 结束-->
 
   	        	 </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(){ 
  
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_559106b5506af7_24666571($_smarty_tpl)
    {
        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 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>
   	 	   	<!--  <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" style="margin-top:10px;">

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

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

                    <thead>

                      <tr>




                         <th align="center">文件夹名称</th>
                        <th align="center">接口描述</th>

                        <th align="center">接口名称</th>
                         <th align="center">返回地址</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['apilist']->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" onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">

                        <td align="center"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['filename'];
            ?>
</td>
                        <td align="center"  width="300px"> <?php 
            echo $_smarty_tpl->tpl_vars['items']->value['data']['name'];
            ?>
 </td>
                        <td align="center"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['data']['apiname'];
            ?>
</td>
                        <td align="center"><?php 
            if (in_array($_smarty_tpl->tpl_vars['items']->value['data']['name'], $_smarty_tpl->tpl_vars['installlist']->value)) {
                ?>
                        	<input type="text" value="<?php 
                echo FUNC_function(array('type' => 'url', 'link' => "/member/otherlogin/logintype/" . (string) $_smarty_tpl->tpl_vars['items']->value['data']['apiname']), $_smarty_tpl);
                ?>
" style="width:200px;">
                        	<?php 
            } else {
                ?>
                        	未安装
                        <?php 
            }
            ?>
</td>

                        <td align="center">
                        	<?php 
            if (in_array($_smarty_tpl->tpl_vars['items']->value['data']['name'], $_smarty_tpl->tpl_vars['installlist']->value)) {
                ?>
                            	<a onclick="installlogin('<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['data']['apiname'];
                ?>
','<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['data']['name'];
                ?>
编辑');"  href="#"><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/other/module/dellogin/idtype/" . (string) $_smarty_tpl->tpl_vars['items']->value['data']['apiname'] . "/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>
                          <?php 
            } else {
                ?>
                        		  <a onclick="installlogin('<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['data']['apiname'];
                ?>
','<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['data']['name'];
                ?>
安装');"  href="#">安装</a>
                          <?php 
            }
            ?>
                      </tr>
                       <?php 
        }
        ?>

                    </tbody>

                  </table>

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



                </form>



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

              </div>

            </div>

          </div>

        </div>


  </div>

</div>
<script>
	 var dialogs ;
	 function installlogin(taskid,apidname)
	 {
	 	 dialogs = art.dialog.open('<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/index.php?controller=adminpage&action=other&module=installlogin&idtype='+taskid);
	 	 dialogs.title(apidname);
	 }
	 function uploadsucess(msg){

    	dialogs.close();
       window.location.reload();
  }

</script>
<!--newmain 结束-->

   	        	 </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(){ 
var height = $('.left_content').height();
 $('.right_content').height(height);

$('#con_one_1 .table_td').removeAttr('style');
$('#tagscontent td:last-child a img').hide();
//alert($('#tagscontent td:last-child a img').eq(0).parent('a').html());

//alert( $('#tagscontent td:last-child').length );


$('#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_555c488611a890_75707975($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include 'D:\\wmr\\lib\\Smarty\\libs\\plugins\\modifier.date_format.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 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 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:100%;margin-top:-10px;"> 
      	
      	<div class="search">
      		 
            
            <div class="search_content">
            	 
            	 <form method="post" name="form1" action="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/order/module/orderlist"), $_smarty_tpl);
        ?>
">
            	  <label>查询类型:</label>
            	  <select name="querytype">
            	  	<option value="0">未选择</option>
            	  	<option value="mb.username"  <?php 
        if ($_smarty_tpl->tpl_vars['querytype']->value == 'mb.username') {
            ?>
selected<?php 
        }
        ?>
>会员名</option>
            	  	<option value="ord.shopname"  <?php 
        if ($_smarty_tpl->tpl_vars['querytype']->value == 'ord.shopname') {
            ?>
selected<?php 
        }
        ?>
>店铺名称</option> 
            	  	<option value="ord.buyername"  <?php 
        if ($_smarty_tpl->tpl_vars['querytype']->value == 'ord.buyername') {
            ?>
selected<?php 
        }
        ?>
>买家联系人</option>
            	  	<option value="ord.buyerphone"  <?php 
        if ($_smarty_tpl->tpl_vars['querytype']->value == 'ord.buyerphone') {
            ?>
selected<?php 
        }
        ?>
>买家联系电话</option>
            	  	<option value="ord.dno"  <?php 
        if ($_smarty_tpl->tpl_vars['querytype']->value == 'ord.dno') {
            ?>
selected<?php 
        }
        ?>
>订单编号</option>
            	  </select>
            	  <label>查询条件:</label>
            	   <input type="text" name="searchvalue" value="<?php 
        echo $_smarty_tpl->tpl_vars['searchvalue']->value;
        ?>
">
            	   
            	   <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>
			   		 	      <option value="3" <?php 
        if ($_smarty_tpl->tpl_vars['orderstatus']->value == '3') {
            ?>
selected<?php 
        }
        ?>
>已发货</option>
			   		 	  	  <option value="4" <?php 
        if ($_smarty_tpl->tpl_vars['orderstatus']->value == '4') {
            ?>
selected<?php 
        }
        ?>
>已完成</option>
			   		 	  	  <option value="5" <?php 
        if ($_smarty_tpl->tpl_vars['orderstatus']->value == '5') {
            ?>
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">  
            	    <input type="button" value="手动清理完成订单" class="button" onclick="doautodel();">
            	 </form>
            </div>
        
      	</div>
      	
      	
      	
           <div class="tags">

      	 	 

          <div id="tagscontent">

            <div id="con_one_1">

              <div class="table_td">

              <form method="post" action="" onsubmit="return remind();">
                <?php 
        if (empty($_smarty_tpl->tpl_vars['list']->value)) {
            ?>
                暂无数据
                <?php 
        }
        ?>
                  <?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;
            ?>
  
			   		 
			   		 <table class="table table-bordered" width=95% style="font-size:12px;margin-top:5px;text-align:left;margin-left:20px;" id="order_area_<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
" onMouseover="colorred(this);" onMouseout="tcolorred(this);">
		             <tr>
		             	<td colspan="2" style="text-align:left;">单号:<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['dno'];
            ?>
<font color=red><?php 
            echo $_smarty_tpl->tpl_vars['shoptype']->value[$_smarty_tpl->tpl_vars['items']->value['shoptype']];
            ?>
</font></td>
		             	<td colspan="2" style="text-align:left;">创建时间:<?php 
            echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['items']->value['addtime'], "%Y-%m-%d %H:%M:%S");
            ?>
</td>
		             	<td colspan="2" style="text-align:left;">订单状态: <font color=blue><?php 
            echo $_smarty_tpl->tpl_vars['buyerstatus']->value[$_smarty_tpl->tpl_vars['items']->value['status']];
            ?>
</font></td>
		            </tr>
		             <tr style="height:20px;line-height:20px;">
		             	<td colspan="2" style="text-align:left;">店铺名称:<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['shopname'];
            ?>
</td>
		             	<td colspan="2" style="text-align:left;">店铺地址:<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['shopaddress'];
            ?>
</td>
		             	<td colspan="2" style="text-align:left;">店铺电话: <?php 
            echo $_smarty_tpl->tpl_vars['items']->value['shopphone'];
            ?>
</td> 
		            </tr>
		            <tr style="height:20px;line-height:20px;">
		             	<td colspan="2" style="text-align:left;">支付方式:<?php 
            echo $_smarty_tpl->tpl_vars['paytypearr']->value[$_smarty_tpl->tpl_vars['items']->value['paytype']];
            ?>
</td>
		             	<td colspan="2" style="text-align:left;">支付状态:<?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></td>
		             	<td colspan="2" style="text-align:left;">下单来源: <?php 
            echo $_smarty_tpl->tpl_vars['ordertypearr']->value[$_smarty_tpl->tpl_vars['items']->value['ordertype']];
            ?>
</td>
		            </tr>
		            <tr style="height:20px;line-height:20px;">
		             	<td colspan="2" style="text-align:left;">配送时间:<?php 
            echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['items']->value['posttime'], "%Y-%m-%d %H:%M:%S");
            ?>
</td>
		             	<td colspan="2" style="text-align:left;">订单类型:<?php 
            echo $_smarty_tpl->tpl_vars['shoptype']->value[$_smarty_tpl->tpl_vars['items']->value['shoptype']];
            ?>
</td>   
		             	<td colspan="2" style="text-align:left;">ip信息:<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['ipaddress'];
            ?>
</td> 
		            </tr>
                <tr style="height:20px;line-height:20px;">
		             	<td colspan="2" style="text-align:left;">联系人:<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['buyername'];
            ?>
[<?php 
            if (empty($_smarty_tpl->tpl_vars['items']->value['acountname'])) {
                ?>
游客<?php 
            } else {
                ?>
帐号:<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['acountname'];
            }
            ?>
]</td>
		             	<td colspan="2" style="text-align:left;">消费地址:<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['buyeraddress'];
            ?>
</td>   
		             	<td colspan="2" style="text-align:left;">联系电话:<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['buyerphone'];
            ?>
</td> 
		            </tr>
		            
		            <tr> 
		            </tr>
		            <tr style="height:20px;line-height:20px;">
		            	<td colspan="3" width="50%" valign=top>
		            		<table style="margin:0px;padding:0px;font-size:12px;" width="100%">
		            			<tr style="height:20px;line-height:20px;">
		            				<td style="border:none;padding:0px;color:gray;text-align:left;" width="60%">名称</td>
		            				<td style="border:none;padding:0px;color:gray;" width="15%">价格</td>
		            				<td style="border:none;padding:0px;color:gray;">数量</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 style="height:20px;line-height:20px;"><td style="border:none;padding:0px;color:gray;text-align:left;"><?php 
                echo $_smarty_tpl->tpl_vars['value']->value['goodsname'];
                if ($_smarty_tpl->tpl_vars['value']->value['is_send'] == 1) {
                    ?>
<font color=red>[赠品]</font><?php 
                }
                ?>
</td>
		            				  <td style="border:none;padding:0px;color:gray;"><?php 
                echo $_smarty_tpl->tpl_vars['value']->value['goodscost'];
                ?>
元</td>
		            				  <td style="border:none;padding:0px;color:gray;"><?php 
                echo $_smarty_tpl->tpl_vars['value']->value['goodscount'];
                ?>
份</td>
		            				  </tr> 
		            				<?php 
            }
            ?>
  
		            				 
		            	    
		            		   
		            		 </table>
		            	</td>
		            	<td colspan="3" style="text-align:left;color:gray;" valign=top>
		            		 <table style="margin:0px;padding:0px;font-size:12px;text-align:left;" width="100%">
		            		    <?php 
            if ($_smarty_tpl->tpl_vars['items']->value['shopcost'] > 0) {
                ?>
		            		   	<tr style="height:20px;line-height:20px;">
		            		 		  <td style="border:none;padding:0px;color:gray;" width="100px;">店铺商品总价</td>
		            		 		  <td style="border:none;padding:0px;color:gray;"><font color=red><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['shopcost'];
                ?>
</font>元</td>
		            		 		   </tr>
		            		 		<?php 
            }
            ?>
		            		 		 <?php 
            if ($_smarty_tpl->tpl_vars['items']->value['shopps'] > 0) {
                ?>
		            		   	<tr style="height:20px;line-height:20px;">
		            		 		  <td style="border:none;padding:0px;color:gray;" width="100px;">店铺配送费</td>
		            		 		  <td style="border:none;padding:0px;color:gray;"><font color=red><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['shopps'];
                ?>
</font>元</td>
		            		 		   </tr>
		            		 		<?php 
            }
            ?>
		            		 	 
		            		 		<?php 
            if ($_smarty_tpl->tpl_vars['items']->value['scoredown'] > 0) {
                ?>
		            		   	<tr style="height:20px;line-height:20px;">
		            		 		  <td style="border:none;padding:0px;color:gray;" width="100px;">积分低扣</td>
		            		 		  <td style="border:none;padding:0px;color:gray;"><font color=red>-<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['scoredown'] / $_smarty_tpl->tpl_vars['scoretocost']->value;
                ?>
</font>元,<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['scoredown'];
                ?>
积分,比例:<?php 
                echo $_smarty_tpl->tpl_vars['scoretocost']->value;
                ?>
:1</td>
		            		 		   </tr>
		            		 		<?php 
            }
            ?>
		            		 		<?php 
            if ($_smarty_tpl->tpl_vars['items']->value['yhjcost'] > 0) {
                ?>
		            		   	<tr style="height:20px;line-height:20px;">
		            		 		  <td style="border:none;padding:0px;color:gray;" width="100px;">优惠券低扣</td>
		            		 		  <td style="border:none;padding:0px;color:gray;"><font color=red>-<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['yhjcost'];
                ?>
</font>元</td>
		            		 		   </tr>
		            		 		<?php 
            }
            ?>
		            		 		<?php 
            if ($_smarty_tpl->tpl_vars['items']->value['cxcost'] > 0) {
                ?>
		            		   	<tr style="height:20px;line-height:20px;">
		            		 		  <td style="border:none;padding:0px;color:gray;" width="100px;">店铺促销减金额</td>
		            		 		  <td style="border:none;padding:0px;color:gray;"><font color=red>-<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['cxcost'];
                ?>
</font>元</td>
		            		 		   </tr>
		            		 		<?php 
            }
            ?>
		            		 		<?php 
            if ($_smarty_tpl->tpl_vars['items']->value['bagcost'] > 0) {
                ?>
		            		   	<tr style="height:20px;line-height:20px;">
		            		 		  <td style="border:none;padding:0px;color:gray;" width="100px;">打包费</td>
		            		 		  <td style="border:none;padding:0px;color:gray;"><font color=red><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['bagcost'];
                ?>
</font>元</td>
		            		 		   </tr>
		            		 		   
		            		 		<?php 
            }
            ?>
		            		 		<tr style="height:20px;line-height:20px;">
		            		 		  <td style="border:none;padding:0px;color:gray;" width="100px;">应收</td>
		            		 		  <td style="border:none;padding:0px;color:gray;"><font color=red><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['allcost'];
            ?>
</font>元 </td>
		            		 	   </tr>
		            		 	   <?php 
            if (!empty($_smarty_tpl->tpl_vars['items']->value['content'])) {
                ?>
		            		 		<tr style="height:20px;line-height:20px;">
		            		 		  <td style="border:none;padding:0px;color:gray;" width="100px;">备注</td>
		            		 		  <td style="border:none;padding:0px;color:gray;"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['content'];
                ?>
</td>
		            		 	   </tr> 
		            		 	   <?php 
            }
            ?>
		            		 	   <?php 
            if (!empty($_smarty_tpl->tpl_vars['items']->value['othertext'])) {
                ?>
		            		 		<tr style="height:20px;line-height:20px;" valign=top>
		            		 		  <td style="border:none;padding:0px;color:gray;" width="100px;">其他说明</td> 
		            		 		  <td style="border:none;padding:0px;color:gray;">
		            		 		  	<?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;
                    ?>
		            		 		  	  <?php 
                    echo $_smarty_tpl->tpl_vars['mytest']->value;
                    ?>
:<?php 
                    echo $_smarty_tpl->tpl_vars['itc']->value;
                    ?>
,
		            		 		  	 <?php 
                }
                ?>
		            		 		  	</td>
		            		 	   </tr> 
		            		 	   <?php 
            }
            ?>
		            		 </table> 
		            		 
		            		</td>
		            </tr>
		             
		            <tr >
		              <td colspan="6" style="text-align:left;" class="order_control"> 
		              	<?php 
            if ($_smarty_tpl->tpl_vars['items']->value['status'] == 0) {
                ?>
 
		              	<a onclick="unorder(<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
,<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['dno'];
                ?>
);" href="#">关闭订单</a>    
		              	<a onclick="return remind(this);" href="<?php 
                echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/order/module/ordercontrol/id/" . (string) $_smarty_tpl->tpl_vars['items']->value['id'] . "/type/pass/datatype/json"), $_smarty_tpl);
                ?>
">通过审核</a>    
		              	<?php 
            }
            ?>
		              	<?php 
            if ($_smarty_tpl->tpl_vars['items']->value['status'] == 1) {
                ?>
		              	 	<a onclick="unorder(<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
,<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['dno'];
                ?>
);" href="javascript:void(0);">关闭订单</a>  
		              	    <a onclick="return remind(this);" href="<?php 
                echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/order/module/ordercontrol/id/" . (string) $_smarty_tpl->tpl_vars['items']->value['id'] . "/type/send/datatype/json"), $_smarty_tpl);
                ?>
">配送发货</a>     
		              	<?php 
            }
            ?>
		              	<?php 
            if ($_smarty_tpl->tpl_vars['items']->value['status'] == 2) {
                ?>
		              	  	<a onclick="unorder(<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
,<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['dno'];
                ?>
);" href="javascript:void(0);">关闭订单</a>  
		              	    <a onclick="return remind(this);" href="<?php 
                echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/order/module/ordercontrol/id/" . (string) $_smarty_tpl->tpl_vars['items']->value['id'] . "/type/over/datatype/json"), $_smarty_tpl);
                ?>
">完成订单</a>     
		              	<?php 
            }
            ?>
		              	<?php 
            if ($_smarty_tpl->tpl_vars['items']->value['status'] == 4 || $_smarty_tpl->tpl_vars['items']->value['status'] == 5) {
                ?>
		              	 <a onclick="return remind(this);" href="<?php 
                echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/order/module/ordercontrol/id/" . (string) $_smarty_tpl->tpl_vars['items']->value['id'] . "/type/del/datatype/json"), $_smarty_tpl);
                ?>
">删除</a>  
		              	<?php 
            }
            ?>
		              	<a href="javascript:void(0);"  onclick="printorder(<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['id'];
            ?>
);">打印订单</a>	
		              	<?php 
            if ($_smarty_tpl->tpl_vars['items']->value['wxstatus'] == 1) {
                ?>
		              	商家已确认订单
		              	<?php 
            } elseif ($_smarty_tpl->tpl_vars['items']->value['wxstatus'] == 2) {
                ?>
		              	商家需要取消此订单
		              	<?php 
            }
            ?>
		              	
		              	   下单IP:<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['ipaddress'];
            ?>
  <?php 
            if ($_smarty_tpl->tpl_vars['items']->value['is_print'] == 1) {
                ?>
店铺已打印<?php 
            }
            ?>
  <?php 
            if (empty($_smarty_tpl->tpl_vars['items']->value['is_make'])) {
                ?>
商家未确认是否制作<?php 
            } elseif ($_smarty_tpl->tpl_vars['items']->value['is_make'] == 1) {
                ?>
商家确认制作<?php 
            } else {
                ?>
商家不制作,请取消此订单<?php 
            }
            ?>
		              	</td>
		            </tr>     
		            </table> 
		          <?php 
        }
        ?>
		          
		          
		          

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

                </form>

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

              </div>

            </div>

          </div>

        </div>

        
  </div>
  <div id="print_area" style="display:none;font-size:40px;"></div>
 </div>
<script type="text/javascript">
   function colorred(obj){
   	$(obj).css('background','#eee'); 
   }
   function tcolorred(obj){
   	$(obj).css('background','');
   }
   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{ //{'orderid':orderid,'reason':reasons}
	 	    var url = siteurl+'/index.php?controller=adminpage&action=order&module=ordercontrol&type=un&id='+orderid+'&reasons='+reasons+'&datatype=json&random=@random@';
	 	    $.ajax({
     type: 'get',
     async:false, 
     url: url.replace('@random@', 1+Math.round(Math.random()*1000)), 
     dataType: 'json',success: function(content) {  
     	if(content.error == false){
     		diasucces('操作成功','');
     	}else{
     		if(content.error == true)
     		{
     			diaerror(content.msg); 
     		}else{
     			diaerror(content); 
     		}
     	} 
		},
    error: function(content) { 
    	diaerror('数据获取失败'); 
	  }
   });   
	 	 }
	 }
	 
  function printorder(orderid)
	{
		$('#print_area').html('');
	 $('#order_area_'+orderid).clone().appendTo($('#print_area'));
	 $("#print_area").find('.order_control').remove();
	  $("#print_area").printArea(); 
  }
  function print_all_area()
  {
  	$('#print_area').html($('#all_area').html());
	  $("#print_area").find('.order_control').remove();
	  $("#print_area").printArea();
  }
  function doautodel(){
  	 if(confirm('确认手动操作?\n 操作后将删除待审核和已关闭订单,\n 也将根据设置的自动发货天数自动发货和完成')){
  	 	var dourl = '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/order/module/autodel"), $_smarty_tpl);
        ?>
';
  	 	window.location.href= dourl;
  	 	
  	} 
  }
 </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_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_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_555d722bb0d4b1_39741951($_smarty_tpl)
    {
        ?>
 <div class="waimaiset"> 
	<div class="jbset <?php 
        if ($_smarty_tpl->tpl_vars['urlshort']->value == 'shop/useredit') {
            ?>
 onset<?php 
        }
        ?>
" onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
        ?>
');">
                	<img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/jbBg.png" /><span>基本设置</span>
                </div>
                <?php 
        if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
            ?>
                <div  class="jbset <?php 
            if ($_smarty_tpl->tpl_vars['urlshort']->value == 'shop/usershopfast') {
                ?>
 onset<?php 
            }
            ?>
" onclick="openlink('<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/usershopfast"), $_smarty_tpl);
            ?>
');" >
                	<img src="<?php 
            echo $_smarty_tpl->tpl_vars['siteurl']->value;
            ?>
/templates/<?php 
            echo $_smarty_tpl->tpl_vars['tempdir']->value;
            ?>
/public/shopcenter/images/wmset.png" /><span>外卖设置</span>
                </div>
                <?php 
        } else {
            ?>
                <div  class="jbset <?php 
            if ($_smarty_tpl->tpl_vars['urlshort']->value == 'shop/usershopmarket') {
                ?>
 onset<?php 
            }
            ?>
"   onclick="openlink('<?php 
            echo FUNC_function(array('type' => 'url', 'link' => "/shop/usershopmarket"), $_smarty_tpl);
            ?>
')">
                	<img src="<?php 
            echo $_smarty_tpl->tpl_vars['siteurl']->value;
            ?>
/templates/<?php 
            echo $_smarty_tpl->tpl_vars['tempdir']->value;
            ?>
/public/shopcenter/images/wmset.png" /><span>超市市场</span>
                </div>
                
                <?php 
        }
        ?>
 
                <div class="jbset <?php 
        if ($_smarty_tpl->tpl_vars['urlshort']->value == 'shop/usershopinstro') {
            ?>
 onset<?php 
        }
        ?>
" onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/usershopinstro"), $_smarty_tpl);
        ?>
');">
                	<img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/dianpujieshao.png" /><span>店铺介绍</span>
                </div>
                <div class="jbset <?php 
        if ($_smarty_tpl->tpl_vars['urlshort']->value == 'shop/usershopnotice') {
            ?>
 onset<?php 
        }
        ?>
" onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/usershopnotice"), $_smarty_tpl);
        ?>
');">
                	<img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/gonggao.png" /><span>店铺公告</span>
                </div>
              </div>
<script>       	
				$(function(){
					$(".waimaiset .jbset").click(function(){
						$(this).css('background','#ec7501').siblings().css('background','');
						
					});	
					
				});
 </script>
       	 
       		 <?php 
    }
    function content_555c46993264a5_36089963($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include 'D:\\wmr\\lib\\Smarty\\libs\\plugins\\modifier.date_format.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 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/chart/highcharts.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/chart/modules/exporting.js"></script>
<script type="text/javascript">


			function gotolink(obj){
			  var checkvalue = $(obj).val();
			  var linkis = siteurl+'/index.php?controller=adminpage&action=analysis&module=area&selecttype=@selecttype@';
		   	window.location.href= linkis.replace('@selecttype@', checkvalue);
     }
		</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 style="text-align:center;height:30px;line-height:30px;widht:100%;">
            	 <input type="checkbox" name="selecttype" value="0" <?php 
        if (empty($_smarty_tpl->tpl_vars['selecttype']->value)) {
            ?>
checked<?php 
        }
        ?>
 onclick="gotolink(this);">所有
            	 <input type="checkbox" name="selecttype" value="1" <?php 
        if ($_smarty_tpl->tpl_vars['selecttype']->value == 1) {
            ?>
checked<?php 
        }
        ?>
 onclick="gotolink(this);">最近1月
            	 <input type="checkbox" name="selecttype" value="2"  <?php 
        if ($_smarty_tpl->tpl_vars['selecttype']->value == 2) {
            ?>
checked<?php 
        }
        ?>
 onclick="gotolink(this);">最近一周
            	 <input type="checkbox" name="selecttype" value="3"  <?php 
        if ($_smarty_tpl->tpl_vars['selecttype']->value == 3) {
            ?>
checked<?php 
        }
        ?>
 onclick="gotolink(this);">当天
 </div>
            <div id="con_one_1">

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

               <div  id="container" style="min-width: 400px; height: 400px; margin: 0 auto">

              </div>


               <form method="post" action="" onsubmit="return remind();">
                  <table border="0" cellspacing="2" cellpadding="4" class="list" name="table" id="table" width="100%">
                    <thead>
                      <tr>
                        <th align="center">区域名称</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['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 align="center"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value['name'];
            ?>
</td>
                        <td align="center"><?php 
            echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shuliang']) === null || $tmp === '' ? '0' : $tmp;
            ?>
</td>

                      </tr>
                      <?php 
        }
        ?>
                    </tbody>
                  </table>
               </form>



                <div class="page_newc">

                 </div>

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

              </div>

            </div>

          </div>

        </div>


  </div>

</div>
 <script type="text/javascript">
$(function () {
    var chart;
    var jsarray = new Array();
    var tempdata = <?php 
        echo json_encode($_smarty_tpl->tpl_vars['arealist']->value);
        ?>
;

    $(document).ready(function() {
        chart = new Highcharts.Chart({
            chart: {
                renderTo: 'container',
                plotBackgroundColor: null,
                plotBorderWidth: null,
                plotShadow: false
            },
            title: {
                text: '区域销售数据'
            },
            tooltip: {
                formatter: function() {
                    return '<b>'+ this.point.name +'</b>: '+ this.percentage +' %';
                }
            },
            plotOptions: {
                pie: {
                    allowPointSelect: true,
                    cursor: 'pointer',
                    dataLabels: {
                        enabled: true,
                        color: '#000000',
                        connectorColor: '#000000',
                        formatter: function() {
                            return '<b>'+ this.point.name +'</b>: '+ this.percentage +' %';
                        }
                    }
                }
            },
            series: [{
                type: 'pie',
                name: 'Browser share',
                data: [
                <?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['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;
            $_smarty_tpl->tpl_vars['mykey']->value = $_smarty_tpl->tpl_vars['items']->key;
            ?>
                    ['<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['name'];
            ?>
',   changeTwoDecimal(<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['shuliang'];
            ?>
/<?php 
            echo $_smarty_tpl->tpl_vars['total']->value;
            ?>
) ] <?php 
            if ($_smarty_tpl->tpl_vars['mykey']->value == $_smarty_tpl->tpl_vars['allshu']->value - 1) {
            } else {
                ?>
,<?php 
            }
            ?>
               <?php 
        }
        ?>
                ]
            }]
        });
    });
    function changeTwoDecimal(floatvar)
{
var f_x = parseFloat(floatvar);
if (isNaN(f_x))
{
alert('暂无数据');
return false;
}
var f_x = Math.round(floatvar*100)/100;
return f_x;
}
});
		</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_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_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_558286ee62f103_24460793($_smarty_tpl)
    {
        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,user-scalable=0">
	<!--<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/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/template.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/cart.js"></script>
<script>
    
    var starttime = "<?php 
        echo $_smarty_tpl->tpl_vars['shoptime']->value['starttime'];
        ?>
";
     var nowdate = '<?php 
        echo smarty_modifier_date_format(time(), "%Y-%m-%d");
        ?>
';
	 var nowtime = '<?php 
        echo smarty_modifier_date_format(time(), "%Y-%m-%d %H:%M:%S");
        ?>
';

    var shopid = <?php 
        echo $_smarty_tpl->tpl_vars['id']->value;
        ?>
;
    var cartbagcost =0;
    var cartpscost = 0;
    var  cartsum = 0;
    var cxcost = 0;
    var surecost = 0;
    var juanlist = <?php 
        echo json_encode($_smarty_tpl->tpl_vars['juanlist']->value);
        ?>
;
    var checknext = false;
    $(function(){
        getTimemenenu();
        $("#change_time").change(function(){
            maketimenenu();
            getTimemenenu();
        })
        maketimenenu();
            $(".back").click(function (){
           history.back();
    })
   
           if ("<?php 
        echo $_smarty_tpl->tpl_vars['gustinfo']->value;
        ?>
") {
            $(".save_button").hide();
            $("#username").attr("disabled", "disabled");
            $("#mobile").attr("disabled", "disabled");
            $("#addressdet").attr("disabled", "disabled");
        }
        $(".order_addnew").click(function(){
             $(".save_button").toggle();
             if ($(".save_button").is(":hidden")) {
            $("#username").attr("disabled", "disabled");
            $("#mobile").attr("disabled", "disabled");
            $("#addressdet").attr("disabled", "disabled");
             } else {
                    $("#username").attr("disabled", "");
            $("#mobile").attr("disabled", "");
            $("#addressdet").attr("disabled", "");
             }
        })
    	 freshcart();

    });
    function myyanchi(){

  		  checknext = false;
  	}
 </script>
  <script id="cartlist" type="text/html">
	  	  		 <li>
		 	     <img src="<^%=list.img%^>" class="order_img">
		 	     <h4><^%=list.name%^></h4>
		 	     <p class="order_jiage">¥<lable><^%=list.cost%^></lable></p>
		       <div class="order_btn">   <span class="order_btn_left"   data-id="<^%=list.id%^>" data-shopid="<^%=list.shopid%^>"></span> <span class="order_btn_nub"><^%=list.count%^></span><span class="order_btn_right"   data-id="<^%=list.id%^>" data-shopid="<^%=list.shopid%^>"></span> </div><div class="clear"></div></li>
 </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>


/*	var myScroll;
function loaded() {
	myScroll = new iScroll('wrapper', {
		useTransform: false,
		bounce:false,
		onBeforeScrollStart: function (e) {
			var target = e.target;
			while (target.nodeType != 1) target = target.parentNode;

			if (target.tagName != 'SELECT' && target.tagName != 'INPUT' && target.tagName != 'TEXTAREA')
				e.preventDefault();
		}
	});
}*/
//document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
//document.addEventListener('DOMContentLoaded', function () { setTimeout(loaded, 200); }, 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"> 
	
	
	


<section style="display:none;" class="cartchangetop" id="header">
  			<ul class="box_inline">
  				<li class="liwd50 redli" onclick="delbackshop('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/wxsite/shopshow/id/" . (string) $_smarty_tpl->tpl_vars['id']->value), $_smarty_tpl);
        ?>
');">
  					 重新点餐
  			  </li>
  				<li class="liwd50" onclick="dolink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/wxsite/shopshow/id/" . (string) $_smarty_tpl->tpl_vars['id']->value), $_smarty_tpl);
        ?>
');">
  					 再加点
  			  </li>
  			</ul>
 </section>
 <ul class="order_top">
   <li class="back"><span></span>返回</li>
   <li>提交订单</li>
 </ul>

	 <div id="wrapper">
	<div id="scroller">

	<!--菜品列表-->
  <div class="order">
  <h3 class="order_header">
      <span class="header_1"></span>我的订单
      <a href="#" onclick="delshopcart()" class="b">清空购物车</a>
   <!-- <select name="DeliveryTime" id="DeliveryTime" class="mFlex1">
          <option value="0">选择用餐时间</option>
            <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['timelist']->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;
            ?>
            <option value="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value;
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value;
            ?>
</option>
            <?php 
        }
        ?>
    </select> -->

  </h3>

	<ul class="order_list" id="shocart">
		<!--
		 <li id="2302">
		 	     <img src="http://www.weitaotong.cn/Content/piclibrary/UserImg_916/840120140611170732040.jpg" class="order_img">
		 	     <h4>胡萝卜</h4>
		 	     <p class="order_jiage">¥<lable>1.5(3份起送)</lable></p>
		       <div class="order_btn">   <span class="order_btn_left"></span> <span class="order_btn_nub">1</span><span class="order_btn_right"></span> </div><div class="clear"></div></li>    -->
	</ul>
  <ul class="order_list" id="promotion">
  </ul>
		     	<p class="order_text">
            共 <label><big id="cart_count">0</big></label> 份,
            原价: ¥ <label><big id="cart_total">0</big>元</label>
            <!--,打包:¥<font id="bagcost">0</font>--><br/> 
            <span id="reel_cost_show" style="display:none;"> 优惠: ¥ <big id="cxcost">0</big>元 ,
            </span>运费: ¥ <big id="carriage">0</big>元,  
            应付: ¥ <big id="realcost">0</big>元
          </p>
  </div>
	<!--菜品结束-->
	<!--用户录入信息-->
  <div class="order_gap"></div>
  <div class="order">
  <h3 class="order_header"><span class="header_2"></span>配送地址<div class="order_addnew">+ 修改</div></h3>
	
  <ul class="order_feedback">
            <li><span>姓 名:</span><input  type="text"  name="username" id="username" <?php 
        if ($_smarty_tpl->tpl_vars['gustinfo']->value) {
            ?>
 value="<?php 
            echo ($tmp = @$_smarty_tpl->tpl_vars['gustinfo']->value['username']) === null || $tmp === '' ? '' : $tmp;
            ?>
"  <?php 
        } else {
            ?>
value="<?php 
            echo ($tmp = @$_smarty_tpl->tpl_vars['deaddress']->value['contactname']) === null || $tmp === '' ? '' : $tmp;
            ?>
"  <?php 
        }
        ?>
 >
         <p id="errname" style=" display:none;">请输入姓名</p>
       </li>

       <li><span>电 话:</span><input type="text" name="mobile" id="mobile" <?php 
        if ($_smarty_tpl->tpl_vars['gustinfo']->value) {
            ?>
 value="<?php 
            echo ($tmp = @$_smarty_tpl->tpl_vars['gustinfo']->value['mobile']) === null || $tmp === '' ? '' : $tmp;
            ?>
" <?php 
        } else {
            ?>
 value="<?php 
            echo ($tmp = @$_smarty_tpl->tpl_vars['deaddress']->value['phone']) === null || $tmp === '' ? '' : $tmp;
            ?>
" <?php 
        }
        ?>
>
         <p id="errphone" style=" display:none;">请输入联系电话</p>
       </li>
       <li><span>地 址:</span><input type="text"  name="addressdet" id="addressdet" <?php 
        if ($_smarty_tpl->tpl_vars['gustinfo']->value) {
            ?>
 value="<?php 
            echo ($tmp = @$_smarty_tpl->tpl_vars['gustinfo']->value['addressdet']) === null || $tmp === '' ? '' : $tmp;
            ?>
" <?php 
        } else {
            ?>
 value="<?php 
            echo ($tmp = @$_smarty_tpl->tpl_vars['deaddress']->value['address']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['areainfo']->value : $tmp;
            ?>
" <?php 
        }
        ?>
  data="<?php 
        echo $_smarty_tpl->tpl_vars['areainfo']->value;
        ?>
">
         <p id="errsend2place" style=" display:none;">请输入收货地址/店内位置号</p>
       </li>

       <li class="save_button">
         <input type="submit" id='save_user_info' value="保 存" onclick="save_gust_address();">
       </li>

       <li style="display:none;">
       	<input type="hidden" name="jifen" id="jifen" value="0">
  			  	 <font id="jifenshuoming">未选择</font><span id="jifenchoice" onclick="doselectjifen('<?php 
        echo $_smarty_tpl->tpl_vars['scoretocost']->value;
        ?>
','<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['member']->value['score']) === null || $tmp === '' ? 0 : $tmp;
        ?>
');">选择金额</span>
       </li>
       <li style="display:none;"><input type="hidden" name="juanid" id="juanid" value="0"><input type="hidden" name="juancost" id="juancost" value="0">
  			  	 <font id="juanshuoming">未选择</font><span id="youhuichoice" onclick="doselectjuan();">选择优惠券</span>
       </li>
       </ul>
    </div>
    <div class="order_gap"></div>
    <div class="order">
       <h3 class="order_header"><span class="header_2_2"></span>配送时间</h3>
       <div>
       请选择用餐时间:
          <select id="change_time" name="senddate">
                  <?php 
        if ($_smarty_tpl->tpl_vars['shoptime']->value['befortime'] > 0) {
            ?>
                  <?php 
            $_smarty_tpl->tpl_vars['shownow'] = new Smarty_variable(time(), 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 = $_smarty_tpl->tpl_vars['shoptime']->value['befortime']) ? 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'];
                    ?>
                  <option value="<?php 
                    echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['now_time']->value, "%Y-%m-%d");
                    ?>
"><?php 
                    echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['now_time']->value, "%Y-%m-%d");
                    ?>
</option>

                        <?php 
                    $_smarty_tpl->tpl_vars['now_time'] = new Smarty_variable($_smarty_tpl->tpl_vars['now_time']->value + 86400, null, 0);
                    ?>
                      <?php 
                }
            }
            ?>
                 <?php 
        } else {
            ?>

                  <option value="<?php 
            echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['now_time']->value, "%Y-%m-%d");
            ?>
"><?php 
            echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['now_time']->value, "%Y-%m-%d");
            ?>
</option>


                  <?php 
        }
        ?>
          </select>
               <!-- <span id="orderTime" data="11:30:00">11:30-12:00</span>-->
                <select id="ordertime">                      
                 	<?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['restime']->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;
            ?>
  		    	<option style="display:none;" value="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value;
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value;
            ?>
</option>
  		    	<?php 
        }
        ?>
   
                      </select>
              </div>
            <div><span>备 注:</span><input type="text" name="remark" id="remark"  onfocus="if(this.value==&quot;&quot;){this.value=&quot;&quot;};" onblur="if(this.value==&quot;&quot;){this.value=&quot;&quot;;};"/> </div>
    </div>
    <div class="order_gap"></div>
    <div class="order">
       <h3 class="order_header"><span class="header_3"></span>支付方式</h3>
       <ul class="order_pay">
  <!--     <li style="display:none;">
       <input style="display:none;" name="paytype" type="radio" value="outpay"></li>  -->

        <li>
          <label>
            <input name="paytype" type="radio" value="weixin" checked='checked'>微信支付
          </label>
        </li>

        <li>
          <label>
            <input name="paytype" type="radio" value="alipay">支付宝
          </label>
        </li>
        <!--<li>
          <label>
            <input name="paytype" type="radio" value="open_acout">账户余额支付
          </label>
        </li>-->
     <li>
        <?php 
        if ($_smarty_tpl->tpl_vars['is_open']->value == 1) {
            ?>
         <input class="next_btn" onclick="orderSubmit();" type="submit" value="确认下单" />
         <?php 
        } else {
            ?>
         <input class="next_btn" type="submit" value="停止下单" />
          <?php 
        }
        ?>
     </li>
   <!--    <li style="display:none;">
       	<select name="DeliveryTime" id="DeliveryTime" class="mFlex1">
       		<option value="0">选择送货时间</option>
  		    	<?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['timelist']->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;
            ?>
  		    	<option value="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value;
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['items']->value;
            ?>
</option>
  		    	<?php 
        }
        ?>
  		    	</select>
      </li>  -->
    </ul>
  </div>
</div>
</div>
   <!--用户录入信息结束-->



 <!--
 <div id="mask1">
	  </div>
	  <div id="popup1" class="popup1">
	  	 <div class="popu1top"><div style="margin-right:5px;text-align:right;"><span onclick="closeout();">×关闭</span></div></div>
	  	 <div class="popcontent" id="popcontent">



	  	 </div>
	  </div>

 </div>
</div>
<!--区域信息--

 <div id="footer" class="box_inline">
      <div class="home " onclick="dolink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/wxsite/shoplist"), $_smarty_tpl);
        ?>
');" href="#"><p>首页</p></div><div class="recommend " onclick="dolink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/wxsite/index"), $_smarty_tpl);
        ?>
');" href="#"><p>区域</p></div><div class="mine "  onclick="dolink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/wxsite/member/id/" . (string) $_smarty_tpl->tpl_vars['id']->value), $_smarty_tpl);
        ?>
');" href="#"><p>我的</p></div>
</div>

 -->

 
  
  
</div>
 <script>
 	$(function(){  
 	   $('#loading').hide(); 
  });
  </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_555c46b58ae046_21543522($_smarty_tpl)
    {
        ?>
<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"> 
 <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>
	<div class="hc_collection">
			<div class="hc_collection_head">
				<div class="hc_collection_h">我的收藏</div>
				<a class="collection_a" href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/collect"), $_smarty_tpl);
        ?>
"></a>
				<div class="clear"></div>
			</div>
			<div class="hc_collection_div">
				<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['collectlist']->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 (isset($_smarty_tpl->tpl_vars['items']->value['id'])) {
                ?>
			   
			   <li shop_id="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
" class="menu-list-box hc_collection_div_border_right"> 
						<div style="float:left;" 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 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 src="<?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shoplogo']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['shoplogo']->value : $tmp;
                ?>
"></a>
								</div>
								</div>
								<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['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 
                }
                ?>
									
								</div>
							</div>
							<div class="hc_shop_list_box_right">
								<div class="hc_list_box_head" style="width: 80px;overflow: hidden;height: 20px;">
								<a 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;
                $_tmp2 = ob_get_clean();
                echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp2), $_smarty_tpl);
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['shopname'];
                ?>
</a>
								</div>  
							<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="" 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> 
				   </div>
							<div class="clear"></div>
							<i shop_id="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['id'];
                ?>
" typeid="0" onclick="return delcollect(this);"style="position: absolute; top: 2px; right: 2px; display: none;" class="favDelBtn icon-remove"></i>
						</div>
				        <div class="clear"></div>
					</li>
					<?php 
            }
            ?>
					<?php 
        }
        ?>
					<?php 
        if (is_array($_smarty_tpl->tpl_vars['collectlist']->value) && isset($_smarty_tpl->tpl_vars['collectlist']->value[0]['id'])) {
            ?>
					<?php 
            $_smarty_tpl->tpl_vars['kongbai'] = new Smarty_variable(5 - count($_smarty_tpl->tpl_vars['collectlist']->value), null, 0);
            ?>
 
					<?php 
        } else {
            ?>
					<?php 
            $_smarty_tpl->tpl_vars['kongbai'] = new Smarty_variable(5, 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['kongbai']->value) ? 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'];
                ?>
 
					 <li <?php 
                if ($_smarty_tpl->getVariable('smarty')->value['section']['loop']['index'] != $_smarty_tpl->tpl_vars['kongbai']->value - 1) {
                    ?>
class="hc_collection_div_border_right" <?php 
                }
                ?>
 ><div class="addMyFav addMyFav_normal"></div></li>
					 <?php 
            }
        }
        ?>
 
					  
					 
					 <div class="clear"></div>
					</ul>
				
			</div>
		</div>

			<div style="width:601px;" class="modal hide fade" id="Modal_col" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			  	<div class="modal-header">
			  		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
			    	<h3 id="myModalLabel">添加收藏</h3>
			  	</div>
			  	<div class="modal-body" id="modal_body">
			  	</div>
			  	<div class="modal-footer">
			    	<button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
			    	<button class="btn btn-primary" id="cfm_addArea">确认添加</button>
			  	</div>
			</div>
			
			<script type="text/javascript">
			$('.addMyFav').hover(function(){
				addMyFavHover($(this));
			},function(){
				addMyFavHoverOut($(this));
			})
			/*
			$('.addMyFav').click(function(){
				addMyFav();
			})*/
	   $('.menu-list-box').bind('mouseenter', function() {
									$(this).find('.hc_shop_list_box').addClass('hc_shop_list_box_hover');
									$(this).find('.hc_list_box_head_a_hover').addClass('hc_list_box_head_hover');
								 	$(this).find('i').show();
									
		  });
		  	$('.menu-list-box').bind('mouseleave', function() {
									$(this).find('.hc_shop_list_box').removeClass('hc_shop_list_box_hover');
									$(this).find('.hc_list_box_head_a_hover').removeClass('hc_list_box_head_hover');
								 	$(this).find('i').hide();
								});
			function addMyFavHover(obj)
			{
				$(obj).removeClass('addMyFav_normal');
				$(obj).addClass('addMyFav_hover');
			}
			function addMyFavHoverOut(obj)
			{
				$(obj).removeClass('addMyFav_hover');
				$(obj).addClass('addMyFav_normal');
			}
		 
  function addMyFav() { 
					$.ajax({
						url:'<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/collectwindows"), $_smarty_tpl);
        ?>
',
						type:'get',
						dataType:'text',
						data:'act=add',
						success:function(data){
							if(data == '1'){
								window.location.href='<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/memeber/login"), $_smarty_tpl);
        ?>
';
							}
							else{
								$('#Modal_col').modal('show');
								$('#modal_body').html(data);

								$('.collectionInput').change(function(){
									changeCollectionCheck($(this));
									collectionCheck();
								})
								
								$('.menu-list-box').bind('mouseenter', function() {
									$(this).find('.hc_shop_list_box').addClass('hc_shop_list_box_hover');
									$(this).find('.hc_list_box_head_a_hover').addClass('hc_list_box_head_hover');
								});

								$('.menu-list-box').bind('mouseleave', function() {
									$(this).find('.hc_shop_list_box').removeClass('hc_shop_list_box_hover');
									$(this).find('.hc_list_box_head_a_hover').removeClass('hc_list_box_head_hover');
								});
								$('.hc_shop_list_box').css("border","1px solid #ddd");
							}
						}
					});
   }
			var collectionCheckShopIds = new Array();
			var collectionUnCheckShopIds = new Array();
			
            function collectionCheck()
            {
            	collectionCheckShopIds = new Array();
            	collectionUnCheckShopIds = new Array();
            	$('.collectionInput').each(function(i){
					if($(this).attr('checked')=='checked')
					{
						collectionCheckShopIds.push($(this).val());
					}
					else
					{
						collectionUnCheckShopIds.push($(this).val());
					}
                })
            }

            function changeCollectionCheck(obj)
            {
                var shop_id = $(obj).val();

                $('.collectionInput').each(function(i){
                    if($(this).val()==shop_id)
                    {
                        $(this).attr('checked',$(obj).attr('checked'));
                    }
                });
            }

         $('#cfm_addArea').click(function(){  
         	   var newidsArray = new Array();
         	     $('.collectionInput').each(function(i){
					            if($(this).attr('checked')=='checked')
				            	{
					             	newidsArray.push($(this).val());
					            } 
                 });
                 var newids = newidsArray.join(','); 
                 var oldids = $('#oldids').val();
                  
                	$.post('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/saveclollectwin"), $_smarty_tpl);
        ?>
',
                		{ 'oldids': oldids, 'newids': newids}, //要传递的数据 
                		function(data){ 
                			 if(data==0)
                			 {
                			 	$('#Modal_col').modal('hide');
                    			freshshopcllect();
                    		}else{
                    			alert(data);
                    		}
                		},'json'
                	)
        })
 
</script><?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_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_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_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_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_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_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_5590f37816e780_61329619($_smarty_tpl)
    {
        ?>
<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/admin.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 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>
</head>
<body style="background:none;height:200px;width:400px;">
	 <form enctype="multipart/form-data" method="post" name="upform" action="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/other/module/savepay"), $_smarty_tpl);
        ?>
" >
	 	<input type="hidden" value="<?php 
        echo $_smarty_tpl->tpl_vars['idtype']->value;
        ?>
" name="idtype">
	 	<?php 
        if (!is_array('info')) {
            ?>
	 	<table>
	 	<?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['info']->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 width=120px height=35px><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['title'];
                ?>
</td><td><input type="text" value="<?php 
                echo $_smarty_tpl->tpl_vars['setinfo']->value[$_smarty_tpl->tpl_vars['items']->value['name']];
                ?>
" name="<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['name'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['items']->value['desc'];
                ?>
</td></tr>

	 	  <?php 
            }
            ?>

	 	  </table>
	 	   <input type="submit" value="提交保存" class="button">
	 	   <?php 
        } else {
            ?>
	 	   不存在接口文件
	 	 <?php 
        }
        ?>




  </form>
  <script>

  	</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_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_5594a4e99aec43_62763376($_smarty_tpl)
    {
        ?>
 <ul class="waimaiset">
      <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxset"), $_smarty_tpl);
        ?>
');" class="jbset <?php 
        if ($_smarty_tpl->tpl_vars['urlshort']->value == 'weixin/wxset') {
            ?>
 onset<?php 
        }
        ?>
">
        <img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/jbBg.png">
        <span>基本设置</span>
      </li>
      <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxmenu"), $_smarty_tpl);
        ?>
');" class="jbset <?php 
        if ($_smarty_tpl->tpl_vars['urlshort']->value == 'weixin/wxmenu') {
            ?>
 onset<?php 
        }
        ?>
">
        <img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/wmset.png">
        <span>微信菜单</span>
      </li>
      <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxback"), $_smarty_tpl);
        ?>
');" class="jbset <?php 
        if ($_smarty_tpl->tpl_vars['urlshort']->value == 'weixin/wxback') {
            ?>
 onset<?php 
        }
        ?>
">
        <img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/dianpujieshao.png">
        <span>自动回复</span>
      </li>
      <li onclick="openlink('<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/weixin/wxuser"), $_smarty_tpl);
        ?>
');" class="jbset <?php 
        if ($_smarty_tpl->tpl_vars['urlshort']->value == 'weixin/wxuser') {
            ?>
 onset<?php 
        }
        ?>
">
        <img src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/shopcenter/images/gonggao.png">
        <span>微信用户</span>
      </li>
</ul>

<!--<script>
				$(function(){
					$(".waimaiset .jbset").click(function(){
						$(this).css('background','#ec7501').siblings().css('background','');

					});

				});
 </script>-->


<?php 
    }
    function content_555c4872628484_31803854($_smarty_tpl)
    {
        ?>
<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/admin.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 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>
</head>
<body style="background:none;height:350px;">
	 <form  method="post" name="upform" action="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/shop/module/saveshoppnotice"), $_smarty_tpl);
        ?>
" style="text-align:center;">  
	 	<table>
	 		
	 		<tr>
	 			<td  ><input type="checkbox" name="pstype[]" value="1" <?php 
        if (in_array('1', $_smarty_tpl->tpl_vars['noticetype']->value)) {
            ?>
checked<?php 
        }
        ?>
> 短信<input type="checkbox" name="pstype[]" value="2"  <?php 
        if (in_array('2', $_smarty_tpl->tpl_vars['noticetype']->value)) {
            ?>
checked<?php 
        }
        ?>
>邮箱 <input type="checkbox" name="pstype[]" value="3"  <?php 
        if (in_array('3', $_smarty_tpl->tpl_vars['noticetype']->value)) {
            ?>
checked<?php 
        }
        ?>
>微信</td>
	 		</tr>
	 		<tr>
	 			<td>打印机IMEI号<input type="text" name="IMEI" value="<?php 
        echo $_smarty_tpl->tpl_vars['IMEI']->value;
        ?>
" </td></tr>
	 				<tr>
	 			<td></td></tr>
	 				<tr>
	 			<td>打印机2密钥<input type="text" name="mKey" value="<?php 
        echo $_smarty_tpl->tpl_vars['mKey']->value;
        ?>
" </td></tr>
	 				<tr>
	 			<td></td></tr>
	 				<tr>
	 			<td>打印机2编码<input type="text" name="machine_code" value="<?php 
        echo $_smarty_tpl->tpl_vars['machine_code']->value;
        ?>
" </td></tr>
	 				<tr>
	 			<td></td></tr>
	 		</table>     
  
   	说明:当网站没设置 对应的方式,  即使在店铺设置后,也不启效
	  <input type="hidden" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopid']->value;
        ?>
" name="shopid"> 
	 	<input type="submit" value="确认提交" class="button">  
	
	 	
	 	
  </form>
  <script>
  	 
  	</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_558a6f8bc74742_47359820($_smarty_tpl)
    {
        ?>
<!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> 
	 
	<link rel="stylesheet"  href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/html5/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/html5/css/index.css">   
 
<link rel="stylesheet"  href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/html5/css/member.css">   


	<script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/html5/js/jquery.js"></script> 
  <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/html5/js/public.js"></script>  
   <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/html5/js/swipe.js"></script> 
  
 <script>
 
 	$(function(){
          var shopid = <?php 
        echo $_smarty_tpl->tpl_vars['shopid']->value;
        ?>
;
 $('.login_list li').click(function(){
  $(this).addClass('active').siblings().removeClass('active');
  $('.login_wrap > li').eq($(this).index()).fadeIn('slow').siblings().fadeOut('fast');
 });


//点击发送验证码倒计时 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

 	$('#logSubmit').click(function(){ 
            var shopid = <?php 
        echo $_smarty_tpl->tpl_vars['shopid']->value;
        ?>
;
           
 		var checkuname = $('#logEmailOrPhone').val();
 		if(checkuname != ''){
 		  
  	 	$('#loading').toggle(); 
  	  	var info = {'uname':$('#logEmailOrPhone').val(),'pwd':$('#logPassword').val(),'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){
            		 window.location.href= siteurl+'/index.php?controller=wxsite&action=member&shoid='+shopid;
            	}else{ 
            	   Tmsg(content.msg);
              }
            	
            }, 
            error:function(){ 
            	$('#loading').toggle();

            } 
         });  
    }else{
    	Tmsg('用户帐号不能为空');
    }
		  
	 }); 
     
	});
  
    var regestercode = '1';
    //
     function loginbyode () {
         var shopid = <?php 
        echo $_smarty_tpl->tpl_vars['shopid']->value;
        ?>
;
         
         var phone = $("#phone").val();
         var code = $("#login_code").val();
         
         var info = {'uname':phone,'code':code,'logintype':'html5'}; 
  	 	  var  url = siteurl+'/index.php?controller=member&action=loginbycode&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){
            		 window.location.href= siteurl+'/index.php?controller=wxsite&action=member&shoid='+shopid;
            	}else{ 
            	   Tmsg(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"></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>
 <script type="text/javascript" name="baidu-tc-cerfication" src="http://apps.bdimg.com/cloudaapi/lightapp.js#eb0a315369c4f60074e72f7079c87fb8"></script><script type="text/javascript">window.bd && bd._qdc && bd._qdc.init({app_id: 'fb7bfde77727fd99a32117ab'});</script>
</head>
<body> 
	<div id="loading" style="display: block;"><div class="loadingbox"><section class="ffffbox"><div class="loadingpice"></div></section></div></div>
	 
 <div id="hallist">

  	<header><div class="return"></div>用户登陆</header>  
      <ul class="login_list">
        <li class="active">普通登录</li>
        <li>验证码登录</li>
      </ul>  
 <ul class="login_wrap">     
  <li class="container"> 
    
	    <div class="wrap"> 

	    	<section class="muli" style="display: block;">

	    		<div class="colfff">

	    			<div class="widCen warp01">

	    				<input type="text" class="inputInp" placeholder="请输入您注册时的手机号码" id="logEmailOrPhone" name="emailOrPhone">

	    				<input type="password" class="inputInp" placeholder="请输入密码" id="logPassword" name="password" autocomplete="off" required="required">

	    			</div>

	    		</div>
          
	    		<div class="borBm01"><input type="BUTTON" class="inputBtn" value="登录" id="logSubmit"></div></section> 

	  </div> 

	    <div class="login_r">
         <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/wxsite/reg"), $_smarty_tpl);
        ?>
">立即注册</a>
        <a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/wxsite/forgot"), $_smarty_tpl);
        ?>
">忘记密码?</a>  
         </div> 
<!--<div class="login_forget"></div>

<li style="display:none;">
        <a href="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/index.php?controller=order&action=guestorder">未登录用户查询订单</a>
        </li>
-->
      
</li>  

<li class="container"> 
    
      <div class="wrap"> 

        <section class="muli" style="display: block;">

          <div class="colfff">

            <ul class="widCen warp01">
              <li>
              <input type="text" class="inputInp" placeholder="请输入您的手机号码" id="phone" name="emailOrPhone">
              </li>
              <li>
              <input type="text" class="code inputInp" id="login_code" placeholder="验证码" onclick="code_login();"/>
              <input type="button" id="send_code" value="发送验证码" class="cursor_pointer send_code" onclick="clickyanzheng(regestercode);"/>
               </li>
            </ul>

          </div>
          
          <div class="borBm01"><input type="BUTTON" class="inputBtn" value="验证码登录" id="logSubmit" onclick="loginbyode()"></div></section> 

    </div> 
</li>       
  </ul>        
</div>

   
  	<footer>
  		<nav>
  			<ul>
  				<li id="homeindex"><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/wxsite/index"), $_smarty_tpl);
        ?>
">首页</a></li>
  	    	<li id="footerorderlist"><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/wxsite/order"), $_smarty_tpl);
        ?>
">订单</a></li>
  	    	<li id="favorate"><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/wxsite/collect"), $_smarty_tpl);
        ?>
">收藏</a></li>
  	    	<li id="opinion"><a href="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/wxsite/ask"), $_smarty_tpl);
        ?>
">意见反馈</a></li>
  	    </ul>
  	  </nav>
  	  <p>Copyright © 2011-2014 Powered by <font id="sitetitle"></font></p>
  	</footer>
  	
  </div>
   
</div> 
 <script>
 	$(function(){  
 	   $('#loading').hide(); 
  });
  </script>
</body>
</html>
 <?php 
    }
    function content_555d71eec28298_58599373($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include '/data/www/xshc/wmr/lib/Smarty/libs/plugins/modifier.date_format.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 id="tagscontent">
            <form method="post" name="form1" action="<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/weixin/module/wxsetsave/datatype/json"), $_smarty_tpl);
        ?>
" onsubmit="return subform('',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">微信自定义token</td>
                      <td><input type="text" name="wxtoken" id="wxtoken" value="<?php 
        echo $_smarty_tpl->tpl_vars['wxtoken']->value;
        ?>
" class="skey" style="width:150px;"></td>
                    </tr>
                    
                    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="ffffff">
                      <td class="left">微信appid</td>
                      <td><input type="text" name="wxappid" id="wxappid" value="<?php 
        echo $_smarty_tpl->tpl_vars['wxappid']->value;
        ?>
" class="skey" style="width:250px;"></td>
                    </tr>
                     <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                      <td class="left">微信secret</td>
                      <td><input type="text" name="wxsecret" id="wxsecret" value="<?php 
        echo $_smarty_tpl->tpl_vars['wxsecret']->value;
        ?>
" class="skey" style="width:250px;"></td>
                    </tr> 
                    
                    
                    <?php 
        if (!empty($_smarty_tpl->tpl_vars['wxlink']->value)) {
            ?>
                     <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                      <td class="left">关注二维码</td>
                      <td><img src="<?php 
            echo $_smarty_tpl->tpl_vars['wxlink']->value;
            ?>
"></td>
                    </tr> 
                    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                      <td class="left">二维码说明</td>
                      <td>下载(可自行在图片中央加自己的特有标记)提供给客户</td>
                    </tr> 
                    <?php 
        }
        ?>
                  </tbody>
                </table>
              </div>
              <div class="blank20"></div>
             
               <input type="submit" value="确认提交" class="button">  
            </form>
          </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(){ 
 $('.show_page a').wrap('<li></li>');
 $('.show_page').find('.current').eq(0).parent().css({'background':'#f60'}); 
});
   
</script>
</body>
</html>





<?php 
    }
    function content_558b961f771143_03843419($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/modifier.date_format.php';
        }
        ?>
 <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>
 <?php 
        if ($_smarty_tpl->tpl_vars['showtype']->value == 'market') {
            ?>
  <script src="<?php 
            echo $_smarty_tpl->tpl_vars['siteurl']->value;
            ?>
/templates/<?php 
            echo $_smarty_tpl->tpl_vars['tempdir']->value;
            ?>
/public/js/marketcart.js" type="text/javascript" language="javascript"></script>
 <?php 
        } else {
            ?>
  <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>
 <?php 
        }
        ?>


   <script src="<?php 
        echo $_smarty_tpl->tpl_vars['siteurl']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['tempdir']->value;
        ?>
/public/js/phonecheck.js" type="text/javascript" language="javascript"></script>
   <script>
   		 var starttime = '<?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['starttime'];
        ?>
';
	 var is_orderbefore=<?php 
        echo $_smarty_tpl->tpl_vars['shopinfo']->value['is_orderbefore'];
        ?>
;
	 var nowdate = '<?php 
        echo smarty_modifier_date_format(time(), "%Y-%m-%d");
        ?>
';
	 var nowtime = '<?php 
        echo smarty_modifier_date_format(time(), "%Y-%m-%d %H:%M:%S");
        ?>
';
	 	var submithtml = '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/shop/makeorder/datatype/json/random/@random@"), $_smarty_tpl);
        ?>
';
	  var orderhtml = '<?php 
        echo FUNC_function(array('type' => 'url', 'link' => "/site/waitpay/orderid/@orderid@"), $_smarty_tpl);
        ?>
';
	  <?php 
        $_smarty_tpl->tpl_vars['yanchitime'] = new Smarty_variable(time() + $_smarty_tpl->tpl_vars['shopinfo']->value['maketime'] * 60, null, 0);
        ?>
	  var maketime = '<?php 
        echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['yanchitime']->value, "%Y-%m-%d %H:%M:%S");
        ?>
';
 $(function(){

$('.ajaxcart_middle .cart_out_show ol li:nth-of-type(4) input').attr('checked','checked');
$('.ajaxcart_middle .cart_out_show ol li:nth-of-type(4) span').html('微信支付');
$('.ajaxcart_middle .cart_out_show ol li:nth-of-type(5) span').html('支付宝');


	maketimenenu();
	var yanse = $('.remark_li').find('li');
	 $.each(yanse, function(i,val){
	  if(i%4 == 0){
	  	 $(val).css('background-color','#51cef7');
	  }else if(i%4 == 1){
	  	$(val).css('background-color','#e46ecc');
	  }else if(i%4 == 2){
	  		$(val).css('background-color','#ffb644');
	  }else if(i%4 == 3){
	  	$(val).css('background-color','#70c305');
	  }
  });

});
$('#remark_li li').click(function(){
	var value = $('#remark').val()+$(this).text() + ',';
	$('#remark').val(value);
})
	  </script>
      <?php 
        $_smarty_tpl->tpl_vars['allcost'] = new Smarty_variable(0, null, 0);
        ?>
      <?php 
        $_smarty_tpl->tpl_vars['truecost'] = new Smarty_variable(0, null, 0);
        ?>
      <?php 
        $_smarty_tpl->tpl_vars['areacost'] = new Smarty_variable(0, null, 0);
        ?>
      <?php 
        $_smarty_tpl->tpl_vars['bagcost'] = new Smarty_variable(0, null, 0);
        ?>
      <?php 
        $_smarty_tpl->tpl_vars['downcost'] = new Smarty_variable(0, null, 0);
        ?>
      <?php 
        $_smarty_tpl->tpl_vars['surecost'] = new Smarty_variable(0, null, 0);
        ?>
 <input type="hidden" name="shop_id" id="shop_id" value="<?php 
        echo $_smarty_tpl->tpl_vars['shopid']->value;
        ?>
" />
 <input type="hidden" name="showtype" id="showtype" value="<?php 
        echo $_smarty_tpl->tpl_vars['showtype']->value;
        ?>
" />
 <?php 
        $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['items']->_loop = false;
        $_smarty_tpl->tpl_vars['ckkey'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['cartinfo']->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['ckkey']->value = $_smarty_tpl->tpl_vars['items']->key;
            ?>
       <?php 
            if ($_smarty_tpl->tpl_vars['shopid']->value == $_smarty_tpl->tpl_vars['ckkey']->value) {
                ?>
<div class="ajaxcart_top" id="checktj_newcart">
	  <div class="left_title">提交订单</div>
	  <div class="right_title" onclick="close_ajaxcart();">×</div>
</div>
<div class="ajaxcart_middle">
	<table cellspacing="0" cellpadding="0" class="cart_table cart_common">
	  <thead>
		<tr>
			<th>商品名称</th>
			<th>单价(元/份)</th>
			<th>打包费(元/份)</th>
			<th>数量(份)</th>
			<th>小计(元)</th>
  	  </tr>
  	</thead>
    <tbody>
  	 <?php 
                $_smarty_tpl->tpl_vars['itv'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['itv']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['items']->value['data'];
                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;
                    ?>
  	<tr class="itv_list">
		<td><?php 
                    echo $_smarty_tpl->tpl_vars['itv']->value['name'];
                    ?>
</td>
		<td><?php 
                    echo ($tmp = @$_smarty_tpl->tpl_vars['itv']->value['cost']) === null || $tmp === '' ? '0' : $tmp;
                    ?>
</td>
		<td><?php 
                    echo ($tmp = @$_smarty_tpl->tpl_vars['itv']->value['bagcost']) === null || $tmp === '' ? '0' : $tmp;
                    ?>
</td>
		<td><?php 
                    echo $_smarty_tpl->tpl_vars['itv']->value['count'];
                    if ($_smarty_tpl->tpl_vars['itv']->value['store_num'] < $_smarty_tpl->tpl_vars['itv']->value['count']) {
                        ?>
<font color=red>库存不足</font><?php 
                    }
                    ?>
</td>
		<td><?php 
                    echo $_smarty_tpl->tpl_vars['itv']->value['cost'] * $_smarty_tpl->tpl_vars['itv']->value['count'] + $_smarty_tpl->tpl_vars['itv']->value['bagcost'] * $_smarty_tpl->tpl_vars['itv']->value['count'];
                    ?>
</td>
  	</tr>
		<?php 
                }
                ?>
		<?php 
                if (isset($_smarty_tpl->tpl_vars['items']->value['cx']['gzdata']) && count($_smarty_tpl->tpl_vars['items']->value['cx']['gzdata']) > 0) {
                    ?>
       	<?php 
                    $_smarty_tpl->tpl_vars['ivalue'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['ivalue']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['items']->value['cx']['gzdata'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['ivalue']->key => $_smarty_tpl->tpl_vars['ivalue']->value) {
                        $_smarty_tpl->tpl_vars['ivalue']->_loop = true;
                        ?>
    <tr class="promotion">
		   <td colspan="5"><?php 
                        echo $_smarty_tpl->tpl_vars['ivalue']->value;
                        ?>
(<font>满足的促销活动</font>)</td>
  	</tr>
      <?php 
                    }
                    ?>
    <?php 
                }
                ?>

      <?php 
                if ($_smarty_tpl->tpl_vars['member']->value['uid'] > 0) {
                    ?>
       <tr>
		        <td colspan="5">假如你有优惠劵,<a href="<?php 
                    echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
                    ?>
">进入会员中心绑定</a></td>
  	  </tr>
       <?php 
                    $_smarty_tpl->tpl_vars['itemm'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['itemm']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['juanlist']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['itemm']->key => $_smarty_tpl->tpl_vars['itemm']->value) {
                        $_smarty_tpl->tpl_vars['itemm']->_loop = true;
                        ?>

     <tr>
		      <td colspan="5"><input type="radio" name="buyjuan" <?php 
                        if ($_smarty_tpl->tpl_vars['items']->value['sum'] < $_smarty_tpl->tpl_vars['itemm']->value['limitcost']) {
                            ?>
 disabled <?php 
                        }
                        ?>
 value="<?php 
                        echo $_smarty_tpl->tpl_vars['itemm']->value['id'];
                        ?>
" data="<?php 
                        echo $_smarty_tpl->tpl_vars['itemm']->value['cost'];
                        ?>
" data2="<?php 
                        echo $_smarty_tpl->tpl_vars['itemm']->value['limitcost'];
                        ?>
"><?php 
                        echo $_smarty_tpl->tpl_vars['itemm']->value['name'];
                        ?>
(说明:优惠<?php 
                        echo $_smarty_tpl->tpl_vars['itemm']->value['cost'];
                        ?>
元),注意:订单最低金额<?php 
                        echo $_smarty_tpl->tpl_vars['itemm']->value['limitcost'];
                        ?>
元,截止时间:<?php 
                        echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['itemm']->value['endtime'], "%Y-%m-%d");
                        ?>
</td>
  	  </tr>


        				   	<?php 
                    }
                    ?>
        				  <?php 
                } else {
                    ?>
      <tr>

		      <td colspan="5">假如你有优惠劵,请先登录在使用优惠劵<a href="<?php 
                    echo FUNC_function(array('type' => 'url', 'link' => "/member/login"), $_smarty_tpl);
                    ?>
">点击登录</a></td>
  	  </tr>

      <?php 
                }
                ?>

     <?php 
                $_smarty_tpl->tpl_vars['allcost'] = new Smarty_variable($_smarty_tpl->tpl_vars['items']->value['sum'], null, 0);
                ?>
		    <?php 
                $_smarty_tpl->tpl_vars['areacost'] = new Smarty_variable($_smarty_tpl->tpl_vars['areacost']->value + $_smarty_tpl->tpl_vars['items']->value['pscost'], null, 0);
                ?>
        <?php 
                $_smarty_tpl->tpl_vars['bagcost'] = new Smarty_variable($_smarty_tpl->tpl_vars['bagcost']->value + $_smarty_tpl->tpl_vars['items']->value['bagcost'], null, 0);
                ?>
        <?php 
                $_smarty_tpl->tpl_vars['downcost'] = new Smarty_variable($_smarty_tpl->tpl_vars['downcost']->value + $_smarty_tpl->tpl_vars['items']->value['cx']['downcost'], null, 0);
                ?>
       <?php 
                $_smarty_tpl->tpl_vars['surecost'] = new Smarty_variable($_smarty_tpl->tpl_vars['surecost']->value + $_smarty_tpl->tpl_vars['items']->value['cx']['surecost'], null, 0);
                ?>
    </tbody>
	</table>
	<div class="order_gap"></div>
	<ul class="cart_address cart_common">
		<li class="">
			<label>
			<span class="hc_order_lists_span_color"> * </span>姓名:
			</label>
			<input type="text" id="recieve_name" name="recieve_name" value="<?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['myaddressslist']->value['contactname']) === null || $tmp === '' ? '' : $tmp;
                ?>
"  size="15">

		</li>
		<li class="">
			<label>
			<span class="hc_order_lists_span_color"> * </span>电话:
			</label>
			<input type="text" id="mobile" name="phone" value="<?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['myaddressslist']->value['phone']) === null || $tmp === '' ? '' : $tmp;
                ?>
"  size="15">

	   	<span style="display:none;" class="hc_order_lists_span" id="uphone" >外卖到时将以该电话通知您</span>
		</li>
		<li class="">
			<label>
			<span class="hc_order_lists_span_color"> * </span>地址:
			</label>
		<input type="text" id="addrestemp" name="addrestemp" value="<?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['myaddressslist']->value['address']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['areainfo']->value : $tmp;
                ?>
" data="<?php 
                if ($_smarty_tpl->tpl_vars['locationtype']->value != 1) {
                    echo $_smarty_tpl->tpl_vars['areainfo']->value;
                }
                ?>
"  size="50">
		</li>
		<li>
			<label><span class="hc_order_lists_span_color"> * </span>配送时间:</label>

			 <select name="senddate" onchange="maketimenenu();">
		   	 <?php 
                if ($_smarty_tpl->tpl_vars['shopinfo']->value['befortime'] > 0) {
                    ?>
		   	    <?php 
                    $_smarty_tpl->tpl_vars['shownow'] = new Smarty_variable($_smarty_tpl->tpl_vars['select_time']->value, 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 = $_smarty_tpl->tpl_vars['shopinfo']->value['befortime']) ? 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'];
                            ?>
		            <option value="<?php 
                            echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['select_time']->value, "%Y-%m-%d");
                            ?>
"><?php 
                            echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['select_time']->value, "%Y-%m-%d");
                            ?>
</option>

		            <?php 
                            $_smarty_tpl->tpl_vars['select_time'] = new Smarty_variable($_smarty_tpl->tpl_vars['select_time']->value + 86400, null, 0);
                            ?>
  <?php 
                        }
                    }
                    ?>
		   	 <?php 
                } else {
                    ?>
		   	  <option value="<?php 
                    echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['select_time']->value, "%Y-%m-%d");
                    ?>
"><?php 
                    echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['select_time']->value, "%Y-%m-%d");
                    ?>
</option>
		   	  <?php 
                }
                ?>
		  </select>
   <span id="ordertime" data="11:30:00">11:30-12:00</span>
	  <!--	<select>
	  	<option  id="orderTime" data="11:30:00" value="11:30-12:00">11:30-12:00</option>
		  </select> -->
                        
                       
		</li>
	</ul>
	<div class="clear"></div>
	<!--<div class="order_gap"></div>
	<ul class="cart_time cart_common">
		<li>
			<label>配送方式:</label>
			 <span> <?php 
                if ($_smarty_tpl->tpl_vars['items']->value['pstype'] == 1) {
                    ?>
网站配送<?php 
                } else {
                    ?>
店铺配送<?php 
                }
                ?>
 </span>
		</li>
		<li>
			<label >配送时间:</label>

			 <select name="senddate" onchange="maketimenenu();">
		   	 <?php 
                if ($_smarty_tpl->tpl_vars['shopinfo']->value['befortime'] > 0) {
                    ?>
		   	    <?php 
                    $_smarty_tpl->tpl_vars['shownow'] = new Smarty_variable($_smarty_tpl->tpl_vars['select_time']->value, 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 = $_smarty_tpl->tpl_vars['shopinfo']->value['befortime']) ? 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'];
                            ?>
		            <option value="<?php 
                            echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['select_time']->value, "%Y-%m-%d");
                            ?>
"><?php 
                            echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['select_time']->value, "%Y-%m-%d");
                            ?>
</option>

		            <?php 
                            $_smarty_tpl->tpl_vars['select_time'] = new Smarty_variable($_smarty_tpl->tpl_vars['select_time']->value + 86400, null, 0);
                            ?>
  <?php 
                        }
                    }
                    ?>
		   	 <?php 
                } else {
                    ?>
		   	  <option value="<?php 
                    echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['select_time']->value, "%Y-%m-%d");
                    ?>
"><?php 
                    echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['select_time']->value, "%Y-%m-%d");
                    ?>
</option>
		   	  <?php 
                }
                ?>
		  </select>
   <span id="ordertime" data="11:30:00">11:30-12:00</span>
	  <!--	<select>
	  	<option  id="orderTime" data="11:30:00" value="11:30-12:00">11:30-12:00</option>
		  </select> 
                        
                       
		</li>-->
	</ul>
	<div class="order_gap"></div>
	<ul class="cart_out_show cart_common">
		<li>
          <ol>
            <li><label>支付方式:</label></li>
			 <li class="cart_pay_l"> <input type="radio" name="paytype" value="outpay" checked="checked"/>货到支付</li>
								              <?php 
                if ($_smarty_tpl->tpl_vars['open_acout']->value == 1) {
                    ?>
								              <?php 
                    if ($_smarty_tpl->tpl_vars['open_acout']->value == 1 && !empty($_smarty_tpl->tpl_vars['member']->value)) {
                        ?>
				<li class="cart_pay_l">				              <input type="radio" name="paytype" value="open_acout"/>账户余额支付(我的余额<?php 
                        echo ($tmp = @$_smarty_tpl->tpl_vars['member']->value['cost']) === null || $tmp === '' ? '0' : $tmp;
                        ?>
元) </li>
								              <?php 
                    }
                    ?>
								              <?php 
                    if (isset($_smarty_tpl->tpl_vars['paylist']->value) && is_array($_smarty_tpl->tpl_vars['paylist']->value)) {
                        ?>
								              <?php 
                        $_smarty_tpl->tpl_vars['itk'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['itk']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['paylist']->value;
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['itk']->key => $_smarty_tpl->tpl_vars['itk']->value) {
                            $_smarty_tpl->tpl_vars['itk']->_loop = true;
                            ?>
				<li class="cart_pay_l">				              <input type="radio" name="paytype" value="<?php 
                            echo $_smarty_tpl->tpl_vars['itk']->value['loginname'];
                            ?>
"/><span></span></li>
								              <?php 
                        }
                        ?>
								              <?php 
                    }
                    ?>
								              <?php 
                }
                ?>
          </ol>
         </li>
      <!--   <li>
           <ol id="jifendkou" jfendata="<?php 
                echo $_smarty_tpl->tpl_vars['scoretocost']->value;
                ?>
" data="<?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['member']->value['score']) === null || $tmp === '' ? 0 : $tmp;
                ?>
" <?php 
                if ($_smarty_tpl->tpl_vars['member']->value['uid'] < 1) {
                    ?>
style="display:none;"<?php 
                }
                ?>
>
             <li><label> 积分抵扣:</label></li>
			<li><span id="activeJifenselect"></span></li>
			<li><span class="hc_order_lists_span_color" style="float:left;"> 抵扣比例:<?php 
                echo $_smarty_tpl->tpl_vars['scoretocost']->value;
                ?>
积分抵扣1元</span></li>
           </ol>
	     </li> -->
		 
	</ul>
	<!--<ul class="cart_score cart_common" id="jifendkou" jfendata="<?php 
                echo $_smarty_tpl->tpl_vars['scoretocost']->value;
                ?>
" data="<?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['member']->value['score']) === null || $tmp === '' ? 0 : $tmp;
                ?>
" <?php 
                if ($_smarty_tpl->tpl_vars['member']->value['uid'] < 1) {
                    ?>
style="display:none;"<?php 
                }
                ?>
>
		<li><label> 积分抵扣:</label></li>
		<li><span id="activeJifenselect"></span></li>
		<li><span class="hc_order_lists_span_color" style="float:left;"> 抵扣比例:<?php 
                echo $_smarty_tpl->tpl_vars['scoretocost']->value;
                ?>
积分抵扣1元</span></li>
	</ul>-->
	<div class="order_gap"></div>
 <ul class="cart_remark cart_common">
		<li><label>备 注:</label>
         <input type="text"/>
		 </li>
		<!--<li><textarea name="remark" id="remark"></textarea></li>
		<li class="remark_li" id="remark_li">
			<ul>
						<?php 
                if (isset($_smarty_tpl->tpl_vars['orderbz']->value) && !empty($_smarty_tpl->tpl_vars['orderbz']->value)) {
                    ?>
						<?php 
                    $_smarty_tpl->tpl_vars['orderbz'] = new Smarty_variable(unserialize($_smarty_tpl->tpl_vars['orderbz']->value), null, 0);
                    ?>
						 <?php 
                    $_smarty_tpl->tpl_vars['itv'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['itv']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['orderbz']->value;
                    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 (!empty($_smarty_tpl->tpl_vars['itv']->value)) {
                            ?>
						<li><?php 
                            echo $_smarty_tpl->tpl_vars['itv']->value;
                            ?>
</li>
						 <?php 
                        }
                        ?>
						<?php 
                    }
                    ?>
						<?php 
                }
                ?>
		  </ul>
		</li>-->
	</ul>
</div>
	<div class="clear"></div>
<div class="ajaxcart_bottom">
	 <table border="0" cellspacing="0" cellpadding="0"  style="width:780px;" align="center">
	 	<tr>
	 		 <td class="td1"> 配送费</td>
	 		 <td class="td1">打包费</td>
	 		 <td  class="td1">积分抵扣</td>
	 			<td class="td1">优惠卷</td>
	 			<td class="td1">优惠</td>
	 			<td class="td1">商品总价</td>
	 			<td class="td1">订单实价</td>
	 			<td rowspan="2" style="width:100px;text-align:center;"><div class="new_cart_oncls" onclick="close_ajaxcart();">继续下单</div></td>
	 			<td rowspan="2" style="width:120px;text-align:center;"><div class="new_cart_onsub" onclick="orderSubmit();" id="showtj">提交订单</div>
	 				<div class="new_cart_onsub"   id="showtj2" style="display:none;">处理中..</div></td>
	 			
	 	</tr>
	 	<tr>
	 		<td class="td1"> ¥<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['pscost'];
                ?>
</td>
	 		<td class="td1">¥<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['bagcost'];
                ?>
</td>
	 		<td class="td1">¥<font id="jfcost">0</font></td>
	 			<td class="td1">¥<font id="yhjcost">0</font></td>
	 			<td class="td1">¥<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['cx']['downcost'];
                ?>
</td>
	 			<td class="td1">¥<?php 
                echo $_smarty_tpl->tpl_vars['items']->value['sum'];
                ?>
</td>
	 			<?php 
                $_smarty_tpl->tpl_vars['jisuancost'] = new Smarty_variable($_smarty_tpl->tpl_vars['surecost']->value + $_smarty_tpl->tpl_vars['bagcost']->value + $_smarty_tpl->tpl_vars['areacost']->value, null, 0);
                ?>
	 			<td class="td1" id="surecost" data="<?php 
                echo $_smarty_tpl->tpl_vars['surecost']->value;
                ?>
"  bagcost="<?php 
                echo $_smarty_tpl->tpl_vars['bagcost']->value;
                ?>
" areacost="<?php 
                echo $_smarty_tpl->tpl_vars['areacost']->value;
                ?>
" alldata="<?php 
                echo $_smarty_tpl->tpl_vars['jisuancost']->value;
                ?>
">¥<?php 
                echo $_smarty_tpl->tpl_vars['jisuancost']->value;
                ?>
</td>

	 	</tr>
	</table>

</div>
 <?php 
            }
            ?>
 <?php 
        }
        ?>


<?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 
    }