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

</body></html>