{include file="head.html"}
<div id="maincontent">
  <div class="wrap">
    <form action="__URL__/add" id="form" method="post">
      <div class="infobox">
        <h3>{lang='添加菜单'}</h3>
        <table class="form-table table_style">
          <tr>
            <td width="100">{lang='菜单名称'}：</td>
            <td><input class="regular-text" type='text' id="name" name="name" /></td>
          </tr>
          <tr>
            <td width="100">{lang='所属菜单'}：</td>
            <td><select name="pid" id="pid">
                <option value="" >{lang='顶部菜单'}</option>
                <?php if(!empty($list)) foreach($list as $vo){?>
                <option value="{$vo['id']}"  >{$vo['cname']}</option>
                <?php }?>
              </select></td>
          </tr>
          <tr>
            <td width="100">{lang='菜单排序'}：</td>
            <td><input name="sorter" type='text' class="regular-text" id="sorter" value="0" /></td>
          </tr>
          <tr>
            <td>{lang='指向URL'}：</td>
            <td><input class="regular-text" type='text' id="url" name="url" /></td>
          </tr>
          <tr>
            <td width="100">{lang='指向目标'}：</td>
            <td>
            <select name="target" id="target">
                <option value="1" >{lang='左菜单'}</option>
                <option value="2" >{lang='右内容'}</option>
              </select>
            </td>
          </tr>
        </table>
      </div>
      <div class="submit_body">
        <input name="psot_do" id="psot_do" type="hidden" value="yes" />      
        <button class="regular-button" type="button" onclick="post()">{lang='添加'}</button>
   </div>
    </form>
  </div>
</div>

</body></html>