<!--{include file="<!--{$oetplpath}-->widget_header.tpl"}-->
<div class="oe_content_layout">
  <!--{include file="<!--{$oetplpath}-->widget_menu.tpl"}-->

  <div class="oe_cont_rt">
    
	<div class="oe_content_widget">

	  <div class="oe_tab_list">
        <ul>
          <li<!--{if $a == "run"}--> class="current"<!--{/if}-->><a href="<!--{$oefile}-->&c=<!--{$c}-->">店铺资料</a></li>
		  <li<!--{if $a == "intro"}--> class="current"<!--{/if}-->><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=intro">店铺介绍</a></li>
          <li><a href="<!--{$oefile}-->&c=rz">店铺认证</a></li>
        </ul>
      </div>
	  
	  <!--{if $a == "run"}-->
	  <h3 class="oe_f_title">
	    请填写真实的店铺资料，否则不给予审核
	  </h3>
	  <form id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post" />
	  <input type="hidden" name="a" id="a" value="saveedit" />
	  <table class="oe_table_info">
	   <tr>
		  <th align="left">店铺名称：</th>
		  <td><!--{$login.shop.shopname}--></td>
		</tr>
		<tr>
		  <th align="left"><font class="f_red">*</font> 店铺分类：</th>
		  <td>
		  <!--{hook mod='shopcat' type='select' name='catid' text='=请选择=' value=$login.shop.catid}-->
		  </td>
		</tr>
		<tr>
		  <th align="left" width="15%"><font class="f_red">*</font> 所在地区：</th>
		  <td width="85%">
			<!--{area type='select' name='area' depth='1' child='1' text='=请选择=' value=$login.shop.area1}-->
			<span id="json_area2">
			  <!--{if $login.shop.area1 > 0}-->
			  <!--{area type='select' name='area' depth='2' child='1' text='=请选择=' parentid=$login.shop.area1 value=$login.shop.area2}-->
			  <!--{else}-->
			  <select name="area2" id="area2"><option value="">=请选择=</option></select>
			  <!--{/if}-->
			</span>
			<span id="json_area3">
			  <!--{if $login.shop.area2 > 0}-->
			  <!--{area type='select' name='area' depth='3' child='1' text='=请选择=' parentid=$login.shop.area2 value=$login.shop.area3}-->
			  <!--{else}-->
			  <select name="area3" id="area3"><option value="">=请选择=</option></select>
			  <!--{/if}-->
			</span>
			<span id="json_area4">
			  <!--{if $login.shop.area3 > 0}-->
			  <!--{area type='select' name='area' depth='4' text='=请选择=' parentid=$login.shop.area3 value=$login.shop.area4}-->
			  <!--{/if}-->
			</span>
		  </td>
		</tr>
		<tr>
		  <th align="left"><font class="f_red"></font> 详细地址：</th>
		  <td><input type="text" name="address" id="address" class="input-200" value="<!--{$login.shop.address}-->" />（不需要填写省、市）</td>
		</tr>
		<tr>
		  <th align="left"><font class="f_red">*</font> 联系电话：</th>
		  <td><input type="text" name="phone" id="phone" class="input-200" value="<!--{$login.shop.phone}-->" /></td>
		</tr>
		<tr>
		  <th align="left"><font class="f_red"></font> 联系QQ：</th>
		  <td><input type="text" name="qq" id="qq" class="input-200" value="<!--{$login.shop.qq}-->" /></td>
		</tr>
		<tr>
		  <th align="left"><font class="f_red"></font> 营业时间：</th>
		  <td><input type="text" name="worktime" id="worktime" class="input-200" value="<!--{$login.shop.worktime}-->" /></td>
		</tr>
		<tr>
		  <th align="left"><font class="f_red">*</font> 店铺简介：</th>
		  <td>
		    <textarea name="intro" id="intro" style="width:70%;height:100px;"><!--{$login.shop.intro}--></textarea>
			<br />
			（200个字以内）
		  </td>
		</tr>
		<tr>
		  <th align="left"><font color="red">*</font>店铺LOGO：</th>
		  <td>
			<table class="oe_table_wrap">
			  <tr>
				<td width="60px">
				  <!--{if empty($login.shop.logo)}-->
				  <img f="view" style="cursor:pointer;" src="tpl/static/images/waitimg_s.jpg" width="60px" height="60px" class="_img_border" id="logo_preview" />
				  <!--{else}-->
				  <img f="view" style="cursor:pointer;" src="<!--{$login.shop.logo}-->" width="60px" height="60px" class="_img_border" id="logo_preview" />
				  <!--{/if}-->
				</td>
			    <td width="90px">
				  <div class="oe_img_upload">
					<label class="_uploadbtn">点击上传<input type="file" name="logo" id="logo" value="" /></label>
					<label class="_uploading" id="logo_loading">
					  <img src="<!--{$urlpath}-->tpl/static/images/loading.gif" />
					</label>
					<input type="hidden" id="logo_thumb" name="logo_thumb" value="" />
					<input type="hidden" id="logo_url" name="logo" value="<!--{$login.shop.logo}-->" />
				  </div>
				  <script type="text/javascript">
				  $(function(){
					  $("#logo").bind("change", function(){
						oemarryUploadImg("logo", "<!--{$oefile}-->&c=index&a=uploadimg&module=shoplogo&forbidcom=1&forbidwater=1");
					  });
				  });
				  </script>
				</td>
				<td>
				<!--{if $login.shop.logoflag == '-2'}-->
				<font color="gray">待审核</font>
				<!--{elseif $login.shop.logoflag == '-1'}-->
				<font color="red">未通过</font>
				<!--{/if}-->
				</td>
			  </tr>
			</table>
		  </td>
		</tr>
		<tr>
		  <th></th>
		  <td>
			<input type="button" id="btn_post" class="submit_btn1" value="编辑保存" /> 
		  </td>
		</tr>
	  </table>
	  </form>
	  <script type="text/javascript">
	  $(function(){
		$("#btn_post").bind("click", function(){
		    

			if ($("#address").val().length == 0) {
				ToastShow("请填写详细地址");
				return false;
			}

			$("form").submit();
		});
	  });
	  </script>
	  <!--{/if}-->


	  <!--{if $a == "intro"}-->
	  <!--{include file="<!--{$oetplpath}-->widget_editor.tpl"}-->
	  <h3 class="oe_f_title">
	    店铺介绍<span>（请详细介绍您店铺）</span>
	  </h3>
	  <form id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post" />
	  <input type="hidden" name="a" id="a" value="saveintro" />
	  <table class="oe_table_info">
	   <tr>
		  <td>
			<textarea name="content" id="content" style="width:98%;height:400px;"><!--{$login.shop.content}--></textarea>
		  </td>
		</tr>
		<tr>
		  <td align="center">
			<input type="button" id="btn_post" class="submit_btn1" value="编辑保存" /> 
		  </td>
		</tr>
	  </table>
	  </form>
	  <script type="text/javascript">
	  $(function(){
		$("#btn_post").bind("click", function(){
			$("#content").text(OEeditor.html());
			$("form").submit();
		});
	  });
	  </script>
	  <!--{/if}-->


	</div>
	<!--//oe_content_widget End-->

  </div>
  <div class="clear"></div>
  <!--//oe_cont_rt Enc-->
</div>
<!--{include file="<!--{$oetplpath}-->widget_footer.tpl"}-->
</body>
</html>