<!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={$charset}" />
<title>{$seo['title']}</title>
<meta name="Keywords" content="{$seo['keywords']}">
<meta name="Description" content="{$seo['description']}">
<link href="templates/{$CFG[tplname]}/style/user.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/validator/validator.min.js"></script>
<link href="js/validator/validator.css" type="text/css" rel="stylesheet" />
</head>
<body>
<!--{template header}-->
<div class="wrapper">
	<!-- 主体 -->
    <!--{template member_left_com}-->
	<div class="col_main">
    <!--{template member_topmenu}-->
	 <div class="post_li" style="width:800px;">
  <form name="post" method="post" onSubmit="return chkedit()" action="member.php" enctype="multipart/form-data">
      <ul>         
        <li class="f14"><h3>店铺名称</h3><strong class="f3f"><a href="{url_rewrite('com',array('act'=>'view','comid'=>$comid))}" target="_blank">{$comname}</a></strong> [{$catname}]</li>
        <li><h3>营业时间</h3>
                    <label for="starhour"></label>
					  <select name="starhour" id="starhour" style="padding:9px 10px;border:1px solid #e1e1e1;border-radius:4px;font-size:14px">
					    {php for($i=1;$i<=12;$i++){}
                        <option value="{$i}" {if ($hours[0]==$i)} selected="selected"{/if}>{$i}</option>				      
                        {php }}
				      </select> 点 ~  
                    <label for="endhour"></label>
					  <select name="endhour" id="endhour" style="padding:9px 10px;border:1px solid #e1e1e1;border-radius:4px;font-size:14px">
					    {php for($i=13;$i<=24;$i++){}
                        <option value="{$i}" {if ($hours[1]==$i)} selected="selected"{/if}>{$i}</option>
                        {php }}
				      </select>
					   点
                    </li>
        
        <li><h3>联系电话</h3><input type="text" name="phone" value="{$phone}" class="inputs"></li>
        <li><h3>地址</h3><select class="inputs" name=areaid id="areaid" style="padding:9px 10px;border:1px solid #e1e1e1;border-radius:4px;font-size:14px;margin-right:5px;">
		{$com_area}
		</select><input name="address" type="text" id="address" class="inputs" size=50 value="{$address}"/></li>
	<!--{if !empty($mappoint)}-->
	<script type="text/javascript" src="js/msgbox/msgbox.js"></script>
	<link href="js/msgbox/msgbox.css" type="text/css" rel="stylesheet" />
	     <li><h3>地图</h3><input id='mappoint' name='mappoint' type=text maxLength=50 value="<?=$mappoint?>" class="inputs" >
	<input name="markmap" type="button" value="标注地图" class="gray" onclick="Yubox.win('do.php?act=small_map&mark=1&width=500&height=250&p={$CFG[map]}',500,340,'标注地图',null,null,null,true);" class="inputs" ></li>
	<!--{/if}-->
    <li><h3>门头图片</h3>{if $thumb}<img class="ll" src="{$thumbs}" width="150px" />{else}未上传{/if}<input style="margin:8px 0 0 10px" type="file" name="thumb" id="thumb" /></li>
    <div class="clearfix h_15"></div>
    <div class="bor_2"></div>
    <div class="clearfix h_15"></div>
    <li><h3>商家介绍</h3><textarea name="introduce" class="inputs" style="width:600px;height:60px;margin-bottom:-10px">{$introduce}</textarea></li>
    <li><h3>会员消费提示</h3><input type="text" name="shoptip" value="{$shoptip}" style="width:500px;" class="inputs"> <100字符</li>
    <li><h3>配套环境</h3><input name="icon_wifi" type="checkbox" id="icon_wifi" value="wifi"{if in_array('wifi', $icon)} checked="checked"{/if} /><label for="icon_wifi">无线网</label><span class="pad10"></span><input name="icon_p" type="checkbox" id="icon_p" value="car"{if in_array('car', $icon)} checked="checked"{/if} /><label for="icon_p">停车位</label></li>
    <li class="t_c"><div class="clearfix h_15"></div>
<input type=hidden name=id value=<?=$comid?>>
<input type=hidden name=act value=updatecom>
<input type="submit" class="btn_1" name="submit" value="修改店铺信息" id="submit" />

    </li>
   </ul>
</form>
        </div>　
    </div>
    </div>
	<!--{template footer}-->
<script type="text/javascript">
$.validator("phone")
.setRequired("请正确填写电话")
.setTipSpanId("tip_span_phone")
.setFocusMsg("请正确填写电话，分机用“-”分开")
.setRegexp(/^1[34578]\d{9}$|^(0\d{2,4}-)?[2-9]\d{6,7}(-\d{2,5})?$|^[48]00(-?\d){7,10}$/, "电话格式错误，如87654321-001或400-1234-5678或138********", false);
</script>
</body>
</html>
