<!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_dep_name 		= document.getElementById('dep_name');
		if(id_dep_name.value=='')
		{
			alert('{#$lang.err_name_empty#}');
			id_dep_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.dep_name#}</label>
          <div class="col-sm-10">
            <input class="form-control" name="dep_name" id="dep_name" value="{#$info.dep_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.dep_parent_id#}</label>
          <div class="col-sm-3">
         <select   name="dep_parent_id" id="dep_parent_id"  style="width:250px;"  class="form-control" >
<option value="0"   >{#$lang.select_dep_parent_id#}</option>
{#foreach key=key item=item from=$sminfo#}
{#if $sminfo neq ''#}
<option value="{#$item.dep_id#}"  {#if $info.dep_parent_id eq $item.dep_id#} selected="selected" {#/if#}{#if $info.dep_id eq  $item.dep_id#}disabled{#/if#}>{#$item.dep_name#}</option>
	{#if $item.arr neq ''#}
	{#foreach key=key item=twoitem from=$item.arr#}
	<option value="{#$twoitem.dep_id#}" {#if $info.dep_parent_id eq $twoitem.dep_id#} selected="selected" {#/if#}{#if $info.dep_id eq  $twoitem.dep_id#}disabled{#/if#}>|_ {#$twoitem.dep_name#}</option>
	
	{#if $twoitem.arr neq ''#}
	{#foreach  item=threeitem from=$twoitem.arr#}
	<option value="{#$threeitem.dep_id#}" {#if $info.dep_parent_id eq $threeitem.dep_id#} selected="selected" {#/if#}{#if $info.dep_id eq  $threeitem.dep_id#}disabled{#/if#}>|_ _ {#$threeitem.dep_name#}</option>
	
	{#if $threeitem.arr neq ''#}
	{#foreach  item=fouritem from=$threeitem.arr#}
		<option value="{#$fouritem.dep_id#}"  {#if $info.dep_parent_id eq $fouritem.dep_id#} selected="selected" {#/if#}{#if $info.dep_id eq  $fouritem.dep_id#}disabled{#/if#}>|_ _ _ {#$fouritem.dep_name#}</option>
		
	{#if $fouritem.arr neq ''#}
	{#foreach  item=fiveitem from=$fouritem.arr#}
		<option value="{#$fiveitem.dep_id#}" {#if $info.dep_parent_id eq $fiveitem.dep_id#} selected="selected" {#/if#}{#if $info.dep_id eq  $fiveitem.dep_id#}disabled{#/if#}>|_ _ _ _ {#$fiveitem.dep_name#}</option>
		
	{#if $fiveitem.arr neq ''#}
	{#foreach  item=sixitem from=$fiveitem.arr#}
		<option value="{#$sixitem.dep_id#}"  {#if $info.dep_parent_id eq $sixitem.dep_id#} selected="selected" {#/if#}{#if $info.dep_id eq  $sixitem.dep_id#}disabled{#/if#}>|_ _ _ _ _ _ {#$sixitem.dep_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"><font color="red">*</font> {#$lang.field_list.dep_exttel#}</label>
          <div class="col-sm-10">
            <input class="form-control" name="dep_exttel" id="dep_exttel" value="{#$info.dep_exttel#}" type="text"  style="width:450px;"  >
          </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.dep_remark#}</label>
          <div class="col-sm-10">
            <input class="form-control" name="dep_remark" id="dep_remark" value="{#$info.dep_remark#}" 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.dep_enabled#}</label>
          <div class="col-sm-3">
           {#foreach key=ek item=ei from=$lang.enabled_arr#}
{#$ei#}<input type="radio"   name="dep_enabled" id="dep_enabled[{#$ek#}]"  value="{#$ek#}"  {#if $info.dep_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.dep_list#}</label>
           <div class="col-sm-6">
            <input class="form-control" name="dep_list" id="dep_list" value="{#$info.dep_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="dep_id" id="dep_id"  value="{#$info.dep_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>