<!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/pinyin.js"></script>
<script language="javascript" src="{#$base_weburl#}/js/admin_common.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()
	{
			var idsli_name 		= document.getElementById('sli_name');
			var idsli_sign 		= document.getElementById('sli_sign');
			var idsli_width 	= document.getElementById('sli_width');
			var idsli_height 	= document.getElementById('sli_height');
	
			if(idsli_name.value=='')
			{
				alert('{#$lang.sli_name_err#}');
				idsli_name.focus();
				return false;
			}else if(idsli_sign.value=='')
			{
				alert('{#$lang.sli_sign_err#}');
				idsli_sign.focus();
				return false;
			}else if(idsli_width.value=='')
			{
				alert('{#$lang.sli_width_err#}');
				idsli_width.focus();
				return false;
			}else if(idsli_height.value=='')
			{
				alert('{#$lang.sli_height_err#}');
				idsli_height.focus();
				return false;
			}
			
			document.formSub.target="_self"
			document.formSub.submit();
	}
	
</script>
</head>
<body>
    <div class="info-tit"><span class="glyphicon glyphicon-paperclip"> </span> <a href="index.php?load={#$master_act#}&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.sli_name#}</label>
          <div class="col-sm-4">
            <input class="form-control" name="sli_name" id="sli_name" value="{#$info.sli_name#}" type="text"  >
          </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.sli_sign#}</label>
          <div class="col-sm-4">
            <input class="form-control" name="sli_sign" id="sli_sign" value="{#$info.sli_sign#}" type="text"  >
          </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.sli_width#}</label>
          <div class="col-sm-3">
              <input class="form-control" name="sli_width" id="sli_width" value="{#$info.sli_width#}" type="text"  >
          </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.sli_height#}</label>
          <div class="col-sm-3">
              <input class="form-control" name="sli_height" id="sli_height" value="{#$info.sli_height#}" type="text"  >
          </div>
        </div>
  
        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"> {#$lang.field_list.sli_desc#}</label>
          <div class="col-sm-6">
          <textarea id="sli_desc" name="sli_desc" style="width:500">{#$info.sli_desc#}</textarea>
          </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.sli_enabled#}</label>
          <div class="col-sm-4">
{#foreach key=ek item=ei from=$lang.enabled_arr#}&nbsp;&nbsp;
{#$ei#}<input type="radio"   name="sli_enabled" id="sli_enabled[{#$ek#}]"  value="{#$ek#}" {#if $ek eq $info.sli_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="sli_id" id="sli_id"  value="{#$info.sli_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="{#$base_weburl#}/js/jquery.min.js"></script>
<script src="{#$base_weburl#}/js/base.js"></script>
</body>
</html>