<!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/post.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">
	<!-- 主体 -->
	<form name="post" id="form_post" action="" method="post" enctype="multipart/form-data">
	<div class="postnum">
      <ul>
        <li>
        <div class="ll"><span>1</span></div>
        <div class="rr">选择店铺分类<br /><span class="f12 f99">选择分类有助于你的店铺被查找</span></div>
        </li>
        <li>
        <div class="ll"><span class="select">2</span></div>
        <div class="rr f3f">填写店铺信息<br /><span class="f12 f99">填写店铺名称及电话，方便会员联系并消费</span></div>
        </li>
        <li>
        <div class="ll"><span>3</span></div>
        <div class="rr">完成<br /><span class="f12 f99">{$CFG['webname']}会在24小时内审核并联系商家</span></div>
        </li>
      </ul>
    </div>
    <div class="clearfix"></div>
    <div class="bor_1"></div>
			<div class="post_li">
				<ul>
					<li style="line-height:24px;"><h3>所选类别</h3><strong>{$com_catinfo[catname]}</strong> <span><a href="postcom.php" class="f12 f99">重选类别</a></span></li>
					<li style="line-height:24px;"><h3>当前城市</h3><strong>{$_COOKIE[cityname]}</strong></li>
					<li><h3>店铺名称</h3><input id="comnane" name="comname" class="inputs"  type="text"></li>
					<li><h3>门头图片</h3><input type="file" class="inputs" size="30" name="thumb" id="thumb" style="background:#fff;" /></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><textarea cols="80" class="inputs" rows="3" name="content" style="margin-bottom:-11px;" ></textarea></li>
					<li><h3>联系电话</h3><input type="text" class="inputs"  name="phone" id="phone" value="{$member[phone]}"/></li>
                    <li><h3>地址</h3>
                    <select name=areaid id="areaid" style="padding:9px 10px;border:1px solid #e1e1e1;border-radius:4px;font-size:14px">
					{$area_option_zl}
					</select>
                    <input type="text" class="inputs" name="address" size="40" /></li>

					{if $CFG[map]}
					<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" class="inputs"  name='mappoint' type=text value="{$member[mappoint]}" size="30" /> <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);"></span></li>
					{/if}
					<li class="t_c">
					<div class="clearfix h_15"></div>
                    <input id="keyword" type="hidden" name="keyword" />
					<input type="hidden" name="catid" value="{$catid}" />
					<input type="hidden" name="act" value="postok" />
                    <input type="submit" name="button" id="button" value="提交店铺信息" class="btn_1" />
					</li>
				</ul>	
		</div>
	<!-- 主体 结束 -->
	</form>
</div>
<!--{template footer}-->
<script type="text/javascript">
$.validator("comname")
.setTipSpanId("tip_span_comname")
.setFocusMsg("名称填写后不可更改，请确认后填写。2～18个字，不能填写电话、特殊符号")
.setRequired("请填写店铺名称")
.setServerCharset("UTF-8")
.setStrlenType("symbol")
.setMinLength(2, "店铺名称不足2个字")
.setMaxLength(18, "店铺名称字数多于18个字");

$.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>
