<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>{#$txt_title#} - Powered by HuCart.COM</title>
<link href="./css/bootstrap.min.css" rel="stylesheet">
<link href="./css/info.css" rel="stylesheet">
<script language="javascript" src="{#$base_weburl#}/js/jq/jquery.js"></script>
<!--[if lt IE 9]>
  <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script language="javascript">
	var webroot_url = '{#$base_weburl#}';
	function submitFun()
	{
		
		if($('#adm_user' ).val()=='')
		{
			alert('{#$lang.err_adm_user_empty#}');
			$('#adm_user' ).focus();
			return false;
		}else if($('#adm_email').val()=='')
		{
			alert('{#$lang.err_adm_email_empty#}');
			$('#adm_email').focus();
			return false;
		}else if($('#adm_mobile').val()=='')
		{
			alert('{#$lang.err_adm_mobile_empty#}');
			$('#adm_mobile').focus();
			return false;
		}else{


		/* {#if $act_type neq 'edit'#} */
		if($('#adm_pwd').val()=='')
		{
			alert('{#$lang.err_adm_pwd_empty#}');
			$('#adm_pwd').focus();
			return false;
		}else if($('#re_adm_pwd').val()=='')
		{
			alert('{#$lang.err_re_adm_pwd_empty#}');
			$('#re_adm_pwd').focus();
			return false;
		}
		/* {#/if#} */
	   }
	}
	

	
</script>
</head>
<body>
    <div class="info-tit"><span class="glyphicon glyphicon-paperclip"> </span><a href="./index.php?load=admins&act=info_list">{#$lang.title#}</a> > {#$txt_title#} ({#$lang.need_edit#}&nbsp;&nbsp; {#$lang.need_add#} {#$lang.need_del#})</div>
    <!-- custom con start -->
    <div class="info-add">
      <form class="form-horizontal" name="add-form" id="add-form" method="post" action="{#$act_url#}">
        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"><font color="red">*</font> {#$lang.field_list.adm_user#}</label>
          <div class="col-sm-10">
          <!-- {#if $act_type neq 'edit'#} -->
            <input class="form-control" name="adm_user" id="adm_user" value="{#$info.adm_user#}" type="text"  style="width:450px;"  >
            <!--{#else#} --> 
            <input class="form-control" name="adm_user" id="adm_user" value="{#$info.adm_user#}" type="text"  style="width:450px;" disabled >
            <!--  {#/if#} -->
          </div>
        </div>
        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"><font color="red">*</font> {#$lang.field_list.adm_email#}</label>
          <div class="col-sm-10">
            <input class="form-control" name="adm_email" id="adm_email" value="{#$info.adm_email#}" type="text"  style="width:450px;"  >
          </div>
        </div>
        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"><font color="red">*</font> {#$lang.field_list.adm_mobile#}</label>
          <div class="col-sm-10">
            <input class="form-control" name="adm_mobile" id="adm_mobile" value="{#$info.adm_mobile#}" type="text"  style="width:450px;"  >
          </div>
        </div>
        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"><font color="red">*</font> {#$lang.field_list.adm_pwd#}</label>
          <div class="col-sm-10">
            <input class="form-control" name="adm_pwd" id="adm_pwd" value="" type="password"  style="width:450px;"  >
          </div>
        </div>
        
        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"><font color="red">*</font> {#$lang.field_list.re_adm_pwd#}</label>
          <div class="col-sm-10">
            <input class="form-control" name="re_adm_pwd" id="re_adm_pwd" value="" type="password"  style="width:450px;"  >
          </div>
        </div>

        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"><font color="red">*</font> {#$lang.field_list.adm_enabled#}</label>
          <div class="col-sm-10">
           {#foreach key=ek item=ei from=$lang.enabled_arr#}&nbsp;&nbsp;
    {#$ei#}<input type="radio"   name="adm_enabled" id="adm_enabled[{#$ek#}]"  value="{#$ek#}" {#if $ek eq $info.adm_enabled#} checked="checked" {#/if#}>
    {#/foreach#}
          </div>
        </div>

        <div class="form-group">
          <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-primary  btn-sm" onClick="return submitFun(this)" >{#$edit_submit#}</button>&nbsp;&nbsp;&nbsp;&nbsp;
            <button type="reset" class="btn btn-default btn-sm">{#$lang.reset#}</button>
          </div>
        </div>
        
        <input type="hidden" name="act_type" value="{#$act_type#}">
        <input type="hidden" name="adm_id" id="adm_id"  value="{#$info.adm_id#}">
      </form>
    </div>
    <!-- custom con end -->

    <footer class="footer">
      <div class="container">
        <p class="text-muted">Powered by <a href="http://Www.HuCart.COM" target="_blank">HuCart.COM</a></p>
      </div>
    </footer>
<script src="/js/jquery.min.js"></script>
<script src="/js/base.js"></script>
</body>
</html>