<!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()
	{
		var id_ars_name 			= document.getElementById('ars_name');
		//var idposition_id 		= document.getElementById('position_id');
		//var idwebkeyword 		= document.getElementById('webkeyword');
		//var idsuggestionInfo 	= document.getElementById('suggestionInfo');

		if(id_ars_name.value=='')
		{
			alert('{#$lang.err_name_empty#}');
			id_ars_name.focus();
			return false;
		}

	}
</script>
</head>
<body>
    <div class="info-tit"><span class="glyphicon glyphicon-paperclip"> </span> {#$lang.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.ars_name#}</label>
          <div class="col-sm-10">
            <input class="form-control" name="ars_name" id="ars_name" value="{#$info.ars_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.ars_parent_id#}</label>
          <div class="col-sm-3">
         <select   name="ars_parent_id" id="ars_parent_id"  style="width:250px;"  class="form-control" >
<option value="0"   >{#$lang.select_ars_parent_id#}</option>
{#foreach key=key item=item from=$asInfo#}
<option value="{#$item.ars_id#}"  {#if $info.ars_parent_id eq $item.ars_id#} selected="selected" {#/if#} >{#$item.ars_name#}</option>
	{#if $item.arr neq ''#}
	{#foreach key=key item=twoitem from=$item.arr#}
	<option value="{#$twoitem.ars_id#}" {#if $info.ars_parent_id eq $twoitem.ars_id#} selected="selected" {#/if#} >|_ {#$twoitem.ars_name#}</option>
	
	{#if $twoitem.arr neq ''#}
	{#foreach  item=threeitem from=$twoitem.arr#}
	<option value="{#$threeitem.ars_id#}" {#if $info.ars_parent_id eq $threeitem.ars_id#} selected="selected" {#/if#} >|_ _ {#$threeitem.ars_name#}</option>
	
	{#if $threeitem.arr neq ''#}
	{#foreach  item=fouritem from=$threeitem.arr#}
		<option value="{#$fouritem.ars_id#}"  {#if $info.ars_parent_id eq $fouritem.ars_id#} selected="selected" {#/if#}>|_ _ _ {#$fouritem.ars_name#}</option>
		
	{#if $fouritem.arr neq ''#}
	{#foreach  item=fiveitem from=$fouritem.arr#}
		<option value="{#$fiveitem.ars_id#}" {#if $info.ars_parent_id eq $fiveitem.ars_id#} selected="selected" {#/if#} >|_ _ _ _ {#$fiveitem.ars_name#}</option>
		
	{#if $fiveitem.arr neq ''#}
	{#foreach  item=sixitem from=$fiveitem.arr#}
		<option value="{#$sixitem.ars_id#}"  {#if $info.ars_parent_id eq $sixitem.ars_id#} selected="selected" {#/if#} >|_ _ _ _ _ _ {#$sixitem.ars_name#}</option>
	{#/foreach#}
	{#/if#}	
		
	{#/foreach#}
	{#/if#}	
		
	{#/foreach#}
	{#/if#}
	
	
	{#/foreach#}
	{#/if#}
	
	{#/foreach#}
	{#/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.ars_enabled#}</label>
          <div class="col-sm-3">
           {#foreach key=ek item=ei from=$lang.enabled_arr#}
{#$ei#}<input type="radio"   name="ars_enabled" id="ars_enabled[{#$ek#}]"  value="{#$ek#}"  {#if $info.ars_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.ars_list#}</label>
           <div class="col-sm-6">
            <input class="form-control" name="ars_list" id="ars_list" value="{#$info.ars_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="ars_id" id="ars_id"  value="{#$info.ars_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>