<?php
 include template("header"); ;echo '<div id="menu2"><a href="#">小菜单</a></div>
<div id="data">data</div>
<div id="fm">
    <h2>标题</h2>
    <table>
    <form method="post" action="">
        <tr><td>父类别</td><td>
                <select>
                    <option value="0">根类别</option>
                    '; foreach($cat as $one){ ;echo '                    <option value="'; echo $one['id'] ;echo '">'; echo $one['name'] ;echo '（'; echo $one['pname'] ;echo '）</option>
                    '; } ;echo '                </select>
            </td></tr>
        <tr><td>名称</td><td><input name="name" /></td></tr>
        <tr><td>成本折扣</td><td><input name="cost_discount" /></td></tr>
        <tr><td>用户折扣</td><td><input name="user_discount" /></td></tr>
        <tr><td>备注</td><td><input name="remark" size="50" /></td></tr>
        <tr><td>排序</td><td><input name="sort_order" size="6" /></td></tr>
        <tr><td></td><td><input type="submit" value="添加类别" /></td></tr>
    </form>
    </table>
</div>
<div id="op">
    <h2>操作部分</h2>
</div>
<div id="help">help</div>
'; include template("footer"); ?>
