{include file="$admin_template_path/html/header.html"}
</head>
<body>
{include file="$admin_template_path/html/pagetops.html"}
{if $errorMessage}
<div id="errormsg">
<div class="msg">
  <div class="closebtn"><i data-icon="" class="icon-close"></i></div>
  {$errorMessage}
</div>
</div>
{literal}
<script type="text/javascript">
seajs.use(["modules/pageui/msg"], function(msg){
    msg.msginit("#errormsg");
});
</script>
{/literal}
{/if}

<div class="pagebg">
  <div class="mcontent pagemain clr">
    {include file="$admin_template_path/html/leftmenu.html"}
    <div class="pagemainconent">

    <div class="rightdetail_admin">
      <div class="sideblock">
        <div class="sideheader">添加</div>
        <div class="sidebody">
        <form action="" class="horizontal-form item-form disable-on-submit" method="post">
          <div class="input-group clr">
            <label class="control-label" for="edit">{$smarty.post.help_text}</label>
            <div class="inputs">
              <input class="ipttheme" id="edit" type="text" name="value" value="{$smarty.post.value|escape}" required="true"/>
              <input id="edit" type="{if !isset($smarty.post.system) || !$smarty.post.system }text{else}hidden{/if}" name="key" value="{$smarty.post.key|escape}" required="true" />
              {if isset($error.value)}
              <small>{$error.value}</small>
              {/if}
              {if isset($error.key)}
              <small>{$error.key}</small>
              {/if}
            </div>
          </div>
          <div class="form-submit">
            {if $smarty.get.c=='edit'}
            <button id="personal_info_submit_button" class="btntheme btnsize btn-primary" type="submit" name="edit" >编辑</button>
            {else}
            <button id="personal_info_submit_button" class="btntheme btnsize btn-primary" type="submit" name="add" >添加</button>
            {/if}
          </div>
        </form>
        </div>
      </div>
    </div>
    
    </div>
  </div>
</div>
</body>
</html>