{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="balance">客服名称</label>
            <div class="inputs">
            <input id="" type="text" class="ipttheme" name="username" value="{$user_info.user_name}" required="true" />
            {if isset($error.username)}
            <small>{$error.username}</small>
            {/if}
            </div>
          </div>
          <div class="input-group clr">
            <label class="control-label" for="balance">客服邮箱</label>
            <div class="inputs">
            <input id="" type="text" class="ipttheme" name="email" value="{$user_info.email}" required="true" />
            {if isset($error.email)}
            <small>{$error.email}</small>
            {/if}
            </div>
          </div>
          <div class="input-group clr">
            <label class="control-label" for="balance">备注</label>
            <div class="inputs">
                <!--初始化编辑器-->
                <script id="balance" name="info" type="text/plain">{$user_info.info}</script>
                <!-- 配置文件 -->
                <script type="text/javascript" src="{$template_data}ueditor/ueditor.config.js"></script>
                <!-- 编辑器源码文件 -->
                <script type="text/javascript" src="{$template_data}ueditor/ueditor.all.js"></script>
                <!-- 实例化编辑器 -->
                <script type="text/javascript">
                    var ue = UE.getEditor('balance');
                </script>
            <!--<textarea id="" name="info">{$user_info.info}</textarea>-->

            </div>
          </div>
          {if $smarty.get.id}
          <div class="input-group clr">
            <label class="control-label" for="balance">客服状态</label>
            <div class="inputs">
              {if $user_info.status=='true'}
              <input class="checkbox" type="checkbox" name="status" id="status" checked="checked" />
              {else}
              <input class="checkbox" type="checkbox" name="status" id="status">
              {/if}
            </div>
          </div>
          {/if}
          <div class="form-submit">
            {if $smarty.get.id}
            <button id="personal_info_submit_button" class="btntheme btnsize btn-primary" type="submit" name="edit" >{$lang.edit}</button>
            {else}
            <button id="personal_info_submit_button" class="btntheme btnsize btn-primary" type="submit" name="add" >{$lang.add}</button>
            {/if}
          </div>
        </form>
        </div>
      </div>
    </div>
    
    </div>
  </div>
</div>
</body>
</html>