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

		if(id_prs_name.value=='')
		{
			alert('{#$lang.err_name_empty#}');
			id_prs_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.prs_name#}</label>
          <div class="col-sm-10">
            <input class="form-control" name="prs_name" id="prs_name" value="{#$info.prs_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.prs_parent_id#}</label>
          <div class="col-sm-3">
         <select   name="prs_parent_id" id="prs_parent_id"  style="width:250px;"  class="form-control" >
<option value="0"   >{#$lang.select_prs_parent_id#}</option>
{#foreach key=key item=item from=$asInfo#}
<option value="{#$item.prs_id#}"  {#if $info.prs_parent_id eq $item.prs_id#} selected="selected" {#/if#} >{#$item.prs_name#}</option>
	{#if $item.arr neq ''#}
	{#foreach key=key item=twoitem from=$item.arr#}
	<option value="{#$twoitem.prs_id#}" {#if $info.prs_parent_id eq $twoitem.prs_id#} selected="selected" {#/if#} >|_ {#$twoitem.prs_name#}</option>
	
	{#if $twoitem.arr neq ''#}
	{#foreach  item=threeitem from=$twoitem.arr#}
	<option value="{#$threeitem.prs_id#}" {#if $info.prs_parent_id eq $threeitem.prs_id#} selected="selected" {#/if#} >|_ _ {#$threeitem.prs_name#}</option>
	
	{#if $threeitem.arr neq ''#}
	{#foreach  item=fouritem from=$threeitem.arr#}
		<option value="{#$fouritem.prs_id#}"  {#if $info.prs_parent_id eq $fouritem.prs_id#} selected="selected" {#/if#}>|_ _ _ {#$fouritem.prs_name#}</option>
		
	{#if $fouritem.arr neq ''#}
	{#foreach  item=fiveitem from=$fouritem.arr#}
		<option value="{#$fiveitem.prs_id#}" {#if $info.prs_parent_id eq $fiveitem.prs_id#} selected="selected" {#/if#} >|_ _ _ _ {#$fiveitem.prs_name#}</option>
		
	{#if $fiveitem.arr neq ''#}
	{#foreach  item=sixitem from=$fiveitem.arr#}
		<option value="{#$sixitem.prs_id#}"  {#if $info.prs_parent_id eq $sixitem.prs_id#} selected="selected" {#/if#} >|_ _ _ _ _ _ {#$sixitem.prs_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.prs_enabled#}</label>
          <div class="col-sm-3">
           {#foreach key=ek item=ei from=$lang.enabled_arr#}
{#$ei#}<input type="radio"   name="prs_enabled" id="prs_enabled[{#$ek#}]"  value="{#$ek#}"  {#if $info.prs_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.prs_list#}</label>
           <div class="col-sm-6">
            <input class="form-control" name="prs_list" id="prs_list" value="{#$info.prs_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="prs_id" id="prs_id"  value="{#$info.prs_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>