<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>{#$info.sli_name#} - 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 idsort_id 			= document.getElementById('sort_id');
			var idsli_file 			= document.getElementById('sli_file');
			var idsli_size 			= document.getElementById('sli_size');

			//var idsuggestionInfo 	= document.getElementById('suggestionInfo');
	
			if(idsli_name.value=='')
			{
				alert('{#$lang.sli_name_err#}');
				idsli_name.focus();
				return false;
			}else if(idsort_id.value=='')
			{
				alert('{#$lang.sort_id_err#}');
				idsort_id.focus();
				return false;
			}else if(idsli_file.value=='')
			{
				alert('{#$lang.sli_file_err#}');
				idsli_file.focus();
				return false;
			}else if(idsli_size.value=='')
			{
				alert('{#$lang.sli_size_err#}');
				idsli_size.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> > <a href="index.php?load={#$master_act#}&act=item_list&id={#$id#}">{#$info.sli_name#}</a> ({#$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">

        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"><font color="red">*</font> {#$lang.field_item_list.slt_url#}</label>
          <div class="col-sm-3">
              <input class="form-control" name="slt_url" id="slt_url" value="{#$item_info.slt_url#}" type="text"  >
          </div><div class="col-sm-3" style="margin-left:12px;"><button type="button" class="btn btn-default"  onclick="select_img('{#$master_act#}','slt_url')" >{#$lang.add_file#}</button></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_item_list.slt_title#}</label>
          <div class="col-sm-3">
              <input class="form-control" name="slt_title" id="slt_title" value="{#$item_info.slt_title#}" type="text"  >
          </div>
        </div>

        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"> {#$lang.field_item_list.slt_desc#}</label>
          <div class="col-sm-4">
          {#$ckeditorLoad#}
          </div>
        </div>
        
        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"> {#$lang.field_item_list.slt_list#}</label>
          <div class="col-sm-3">
            <input class="form-control" name="slt_list" id="slt_list" value="{#$item_info.slt_list#}" 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_item_list.slt_enabled#}</label>
          <div class="col-sm-4">
{#foreach key=ek item=ei from=$lang.enabled_arr#}&nbsp;&nbsp;
{#$ei#}<input type="radio"   name="slt_enabled" id="slt_enabled[{#$ek#}]"  value="{#$ek#}" {#if $ek eq $item_info.slt_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="id" id="id"  value="{#$id#}">
         <input type="hidden" name="slt_id" id="slt_id"  value="{#$item_info.slt_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>