<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>{#$master_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()
	{
		var id_sort_name 		= document.getElementById('sort_name');
		if(id_sort_name.value=='')
		{
			alert('{#$lang.err_name_empty#}');
			id_sort_name.focus();
			return false;
		}

	}
</script>
</head>
<body>
    <div class="info-tit"><span class="glyphicon glyphicon-paperclip"> </span>{#$master_title#}{#$lang.title#} > {#$master_title#}{#$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.sort_name#}</label>
          <div class="col-sm-10">
            <input class="form-control" name="sort_name" id="sort_name" value="{#$info.sort_name#}" type="text"  style="width:450px;"  >
          </div>
        </div>
  
        
        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"> {#$lang.field_list.sort_parent_id#}</label>
          <div class="col-sm-3">
         <select   name="sort_parent_id" id="sort_parent_id"  style="width:250px;"  class="form-control" >
<option value="0"   >{#$lang.select_sort_parent_id#}</option>
{#foreach key=key item=item from=$sminfo#}
{#if $sminfo neq ''#}
<option value="{#$item.sort_id#}"  {#if $info.sort_parent_id eq $item.sort_id#} selected="selected" {#/if#} {#if $info.sort_id eq  $item.sort_id#}disabled{#/if#} >{#$item.sort_name#}</option>
	{#if $item.arr neq ''#}
	{#foreach key=key item=twoitem from=$item.arr#}
	<option value="{#$twoitem.sort_id#}" {#if $info.sort_parent_id eq $twoitem.sort_id#} selected="selected" {#/if#}  {#if $info.sort_id eq  $twoitem.sort_id#}disabled{#/if#} >|_ {#$twoitem.sort_name#}</option>
	
	{#if $twoitem.arr neq ''#}
	{#foreach  item=threeitem from=$twoitem.arr#}
	<option value="{#$threeitem.sort_id#}" {#if $info.sort_parent_id eq $threeitem.sort_id#} selected="selected" {#/if#}  {#if $info.sort_id eq  $threeitem.sort_id#}disabled{#/if#}  >|_ _ {#$threeitem.sort_name#}</option>
	
	{#if $threeitem.arr neq ''#}
	{#foreach  item=fouritem from=$threeitem.arr#}
		<option value="{#$fouritem.sort_id#}"  {#if $info.sort_parent_id eq $fouritem.sort_id#} selected="selected" {#/if#}  {#if $info.sort_id eq  $fouritem.sort_id#}disabled{#/if#} >|_ _ _ {#$fouritem.sort_name#}</option>
		
	{#if $fouritem.arr neq ''#}
	{#foreach  item=fiveitem from=$fouritem.arr#}
		<option value="{#$fiveitem.sort_id#}" {#if $info.sort_parent_id eq $fiveitem.sort_id#} selected="selected" {#/if#}   {#if $info.sort_id eq  $fiveitem.sort_id#}disabled{#/if#} >|_ _ _ _ {#$fiveitem.sort_name#}</option>
		
	{#if $fiveitem.arr neq ''#}
	{#foreach  item=sixitem from=$fiveitem.arr#}
		<option value="{#$sixitem.sort_id#}"  {#if $info.sort_parent_id eq $sixitem.sort_id#} selected="selected" {#/if#}  {#if $info.sort_id eq  $sixitem.sort_id#}disabled{#/if#}  >|_ _ _ _ _ _ {#$sixitem.sort_name#}</option>
	{#/foreach#}
	{#/if#}	
		
	{#/foreach#}
	{#/if#}	
		
	{#/foreach#}
	{#/if#}
	
	
	{#/foreach#}
	{#/if#}
	
	{#/foreach#}
	{#/if#}

{#/if#}
{#/foreach#}
</select>
          </div>
        </div>      
        
        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"> {#$lang.field_list.sort_enabled#}</label>
          <div class="col-sm-3">
           {#foreach key=ek item=ei from=$lang.enabled_arr#}
{#$ei#}<input type="radio"   name="sort_enabled" id="sort_enabled[{#$ek#}]"  value="{#$ek#}"  {#if $info.sort_enabled eq $ek#} checked="checked" {#/if#} >
{#/foreach#}
          </div>
        </div> 
 

        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"> {#$lang.field_list.sort_list#}</label>
           <div class="col-sm-6">
            <input class="form-control" name="sort_list" id="sort_list" value="{#$info.sort_list#}" type="text"  style="width:300px;"    ></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="sort_id" id="sort_id"  value="{#$info.sort_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>