{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" action="" method="post" enctype="multipart/form-data">
          <div class="input-group clr">
            <label class="control-label" for="percent">{$lang.percent}</label>
            <div class="inputs">
              <input id="percent" class="ipttheme" type="text" name="percent" required="true" value="{$smarty.post.percent|escape}" />
              {if isset($error.percent)}
              <small>{$error.percent}</small>
              {/if}
            </div>
          </div>
          <div class="input-group clr">
            <label class="control-label" for="from">{$lang.from_sum}</label>
            <div class="inputs">
              <input id="from" class="ipttheme" type="text" name="from" value="{$smarty.post.from|escape}" required="true" />
              {if isset($error.from)}
              <small>{$error.from}</small>
              {/if}
            </div>
          </div>
          <div class="input-group clr">
            <label class="control-label" for="too">{$lang.to_sum}</label>
            <div class="inputs">
              <input id="too" class="ipttheme" type="text" name="to" value="{$smarty.post.to|escape}" required="true" />
              {if isset($error.to)}
              <small>{$error.to}</small>
              {/if}
            </div>
          </div>
          <div class="form-submit">
            {if $smarty.get.c=='edit'}
            <button type="submit" name="edit" class="btntheme btnsize btn-primary">{$lang.edit}</button>
            {else}
            <button type="submit" name="add" class="btntheme btnsize btn-primary">{$lang.add}</button>
            {/if}
          </div>
        </form>
        </div>
      </div>
    </div>
    
    </div>
  </div>
</div>
</body>
</html>