<!--{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">
	
	  <!--{if $a == "run"}-->
	  <h3 class="oe_f_title _bottom_border _margin_bottom">
	    我的帐号
		<span></span>
		<strong><a href="<!--{$oefile}-->&c=my&a=editpass">修改密码</a></strong>
	  </h3>
	  <!--{include file="<!--{$oetplpath}-->widget_myinfo.tpl"}-->
	  <!--{include file="<!--{$oetplpath}-->widget_mypower.tpl"}-->
	  <!--{/if}-->


	  <!--{if $a == "editpass"}-->
        <div class="oe_tab_list">
            <ul>
                <li<!--{if $a == "editpass"}--> class="current"<!--{/if}-->><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=editpass">修改密码</a></li>
                <li<!--{if $a == "setpayword"}--> class="current"<!--{/if}-->><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=setpayword">设置支付密码</a></li>
                <li<!--{if $a == "editpayword"}--> class="current"<!--{/if}-->><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=editpayword">修改支付密码</a></li>
            </ul>
        </div>
	  <form id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post" />
	  <input type="hidden" name="a" id="a" value="savepass" />
	  <table class="oe_table_info">
	    <tr>
	      <th width="20%">原密码：<font color="red">*</font></th>
		  <td><input type="password" name="oldpassword" id="oldpassword" class="input-200" maxlength="16" /></td>
	    </tr>
	    <tr>
	      <th>新密码：<font color="red">*</font></th>
		  <td><input type="password" name="newpassword" id="newpassword" class="input-200" maxlength="16" />（请设置6~16个字符的新密码）</td>
	    </tr>
	    <tr>
	      <th>确认密码：<font color="red">*</font></th>
		  <td><input type="password" name="confirmpassword" id="confirmpassword" class="input-200" maxlength="16" /></td>
	    </tr>
		<tr>
	      <td></td>
		  <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 ($("#oldpassword").val().length == 0) {
				ToastShow("请输入原密码");
				return false;
			}
			if ($("#newpassword").val().length <6 || $("#newpassword").val().length>16) {
				ToastShow("请输入6~16位的新密码");
				return false;
			}
			if ($("#confirmpassword").val() != $("#newpassword").val()) {
				ToastShow("确认密码不正确");
				return false;
			}
			$("#myform").submit();
		});
	  });
	  </script>
	  <!--{/if}-->

        <!--{if $a == "setpayword"}-->
        <div class="oe_tab_list">
            <ul>
                <li<!--{if $a == "editpass"}--> class="current"<!--{/if}-->><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=editpass">修改密码</a></li>
                <li<!--{if $a == "setpayword"}--> class="current"<!--{/if}-->><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=setpayword">设置支付密码</a></li>
                <li<!--{if $a == "editpayword"}--> class="current"<!--{/if}-->><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=editpayword">修改支付密码</a></li>
            </ul>
        </div>
        <form id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post" />
        <input type="hidden" name="a" id="a" value="savesetpay" />
        <table class="oe_table_info">
            <tr>
                <th width="20%">支付密码：<font color="red">*</font></th>
                <td><input type="password" name="payword" id="payword" class="input-200" maxlength="16" /></td>
            </tr>
            <tr>
                <th>确认密码：<font color="red">*</font></th>
                <td><input type="password" name="confirmpayword" id="confirmpayword" class="input-200" maxlength="16" /></td>
            </tr>
            <tr>
                <td></td>
                <td><input type="button" id="btn_post" class="submit_btn2" value="编辑保存" /></td>
            </tr>
        </table>
        </form>
        <script type="text/javascript">
            $(function(){
                $("#btn_post").bind("click", function(){
                    if ($("#payword").val().length == 0) {
                        ToastShow("请输入支付密码");
                        return false;
                    }
                    if ($("#payword").val().length <6 || $("#payword").val().length>16) {
                        ToastShow("请输入6~16位的支付密码");
                        return false;
                    }
                    if ($("#confirmpayword").val() != $("#payword").val()) {
                        ToastShow("确认密码不正确");
                        return false;
                    }
                    $("#myform").submit();
                });
            });
        </script>
        <!--{/if}-->

        <!--{if $a == "editpayword"}-->
        <div class="oe_tab_list">
            <ul>
                <li<!--{if $a == "editpass"}--> class="current"<!--{/if}-->><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=editpass">修改密码</a></li>
                <li<!--{if $a == "setpayword"}--> class="current"<!--{/if}-->><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=setpayword">设置支付密码</a></li>
                <li<!--{if $a == "editpayword"}--> class="current"<!--{/if}-->><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=editpayword">修改支付密码</a></li>
            </ul>
        </div>
        <form id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post" />
        <input type="hidden" name="a" id="a" value="savepay" />
        <table class="oe_table_info">
            <tr>
                <th width="20%">原支付密码：<font color="red">*</font></th>
                <td><input type="password" name="oldpayword" id="oldpayword" class="input-200" maxlength="16" /></td>
            </tr>
            <tr>
                <th width="20%">新支付密码：<font color="red">*</font></th>
                <td><input type="password" name="payword" id="payword" class="input-200" maxlength="16" /></td>
            </tr>
            <tr>
                <th>确认密码：<font color="red">*</font></th>
                <td><input type="password" name="confirmpayword" id="confirmpayword" class="input-200" maxlength="16" /></td>
            </tr>
            <tr>
                <td></td>
                <td><input type="button" id="btn_post" class="submit_btn2" value="编辑保存" /></td>
            </tr>
        </table>
        </form>
        <script type="text/javascript">
            $(function(){
                $("#btn_post").bind("click", function(){
                    if ($("#oldpayword").val().length == 0) {
                        ToastShow("请输入原密码");
                        return false;
                    }
                    if ($("#payword").val().length == 0) {
                        ToastShow("请输入支付密码");
                        return false;
                    }
                    if ($("#payword").val().length <6 || $("#payword").val().length>16) {
                        ToastShow("请输入6~16位的支付密码");
                        return false;
                    }
                    if ($("#confirmpayword").val() != $("#payword").val()) {
                        ToastShow("确认密码不正确");
                        return false;
                    }
                    $("#myform").submit();
                });
            });
        </script>
        <!--{/if}-->


	  <!--{if $a == "nopower"}-->

      <div class="oe_nopower">
        <img src="<!--{$merchantskin}-->images/stop.jpg" />
        <h3>
		  抱歉：目前您店铺等级【<!--{$login.shop.shoplevel.levelname}-->】没有操作权限<br />请升级店铺获得相应的权限
		</h3>
        <p>
		店铺权限分配详情，<a href="<!--{$oefile}-->&c=vip">点击查看并升级&gt;&gt;</a><br />
        以下展示您当前店铺的权限，打勾表示有权限，打叉表示没有权限。<br>
	    </p>
      </div>
	  <!--{include file="<!--{$oetplpath}-->widget_mypower.tpl"}-->

	  <!--{/if}-->


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

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