<!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>
<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 id_bra_name 		= document.getElementById('bra_name');
		//var idwebkeyword 		= document.getElementById('webkeyword');
		//var idsuggestionInfo 	= document.getElementById('suggestionInfo');

		if(id_bra_name.value=='')
		{
			alert(' 提 示：名称不能为空！请输入！');
			id_bra_name.focus();
			return false;
		}

	}
</script>
</head>
<body>
    <div class="info-tit"><span class="glyphicon glyphicon-paperclip"> </span> {#$txt_title#} > {#$edit_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_attribute_list.pra_name#}</label>
          <div class="col-sm-10">
            <input class="form-control" name="pra_name" id="pra_name" value="{#$info.pra_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"><font color="red">*</font> {#$lang.field_attribute_list.prt_id#}</label>
          <div class="col-sm-3" >
         <select name="prt_id" id="prt_id" class="form-control">
<option value="">请选择</option>
{#foreach item=prtitem from=$prt_info#}
<option value="{#$prtitem.prt_id#}"  {#if $prt_id eq $prtitem.prt_id#} selected="selected" {#/if#} >{#$prtitem.prt_name#}</option>
{#/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_attribute_list.pra_input_type#}</label>
          <div class="col-sm-3">
        {#foreach item=inputitem key=inputkey from=$lang.input_arr#}
<input name="pra_input_type" id="pra_input_type[{#$inputkey#}]" type="radio" value="{#$inputkey#}"  {#if $info.pra_input_type eq $inputkey#} checked="checked"  {#/if#} />{#$inputitem#}
{#/foreach#}
          </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_attribute_list.pra_values#}</label>
          <div class="col-sm-3">
		  		<textarea  class="form-control"  name="pra_values" id="pra_values" style="width:280px;">{#$info.pra_values#}</textarea>
          </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_attribute_list.pra_index#}</label>
           <div class="col-sm-6">
            {#foreach item=indexitem key=indexkey from=$lang.index_arr#}
<input name="pra_index" id="pra_index[{#$indexkey#}]" type="radio" value="{#$indexkey#}"  {#if $info.pra_index eq $indexkey#} checked="checked"  {#/if#}  />{#$indexitem#}
{#/foreach#}</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_attribute_list.pra_is_link#}</label>
           <div class="col-sm-6">
{#foreach item=linkitem key=linkkey from=$lang.link_arr#}
<input name="pra_is_link" id="pra_is_link[{#$linkkey#}]" type="radio" value="{#$linkkey#}"   {#if $info.pra_is_link eq $linkkey#} checked="checked"  {#/if#} />{#$linkitem#}
{#/foreach#}
			</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_attribute_list.pra_type#}</label>
           <div class="col-sm-6">
{#foreach item=typeitem key=typekey from=$lang.type_arr#}
<input name="pra_type" id="pra_type[{#$typekey#}]" type="radio" value="{#$typekey#}"  {#if $info.pra_type eq $typekey#} checked="checked"  {#/if#}  />{#$typeitem#}
{#/foreach#}
			</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_attribute_list.pra_list#}</label>
          <div class="col-sm-3">
         <input class="form-control" name="pra_list" id="pra_list" value="{#$info.pra_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>&nbsp;&nbsp;&nbsp;&nbsp;<a href="./index.php?load=pro_type&act=attribute_list{#if $prt_id neq ''#}&prt_id={#$prt_id#}{#/if#}">{#$lang.back_list#}</a>
          </div>
        </div>
        <input type="hidden" name="act_type" value="{#$act_type#}">
        <input type="hidden" name="bra_id" id="bra_id"  value="{#$info.bra_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>