<?php
 include template("header"); ;echo '<div id="menu2"><a href="#">小菜单</a></div>
<div id="info" style="display:none">info</div>
<div id="data">
    <table>
        <thead><tr><th>序号</th><th>名称</th><th>大类</th><th>成本折扣</th><th>用户折扣</th><th>备注</th><th>操作</th></tr></thead>
        '; if(is_array($cat)){foreach($cat AS $index=>$one) { ;echo '        <form id="cat_modi" action="" method="post">
        <tr id="cat_'; echo $one['id'] ;echo '" onmouseover="cart_item_over(\'cat_'; echo $one['id']; ;echo '\')" onmouseout="cart_item_out(\'cat_'; echo $one['id']; ;echo '\')">
            <td>'; echo ++$index; ;echo '</td>
            <td>'; echo $one['name'] ;echo '</td>
            <td>'; echo $one['zone'] ;echo '</td>
            <td>'; echo $one['cost_discount'] ;echo '</td>
            <td>'; echo $one['user_discount'] ;echo '</td>
            <td>'; echo $one['remark'] ;echo '</td>
            <td><a href="javascript:cat_modi('; echo $one['id'] ;echo ')">修改</a></td>
        </tr>
        </form>
        '; }} ;echo '        <form id="cat_add" action="" method="post">
        <tr>
            <td></td>
            <td><input name="name" /></td>
            <td><input name="zone" /></td>
            <td><input name="cost_discount" size="6" /></td>
            <td><input name="user_discount" size="6" /></td>
            <td width="300"><input name="remark" size="50" /></td>
            <td><input type="submit" value="添加" /></td>
        </tr>
        </form>
        <tr><td colspan="7">'; echo $pagestring; ;echo '</td></tr>
    </table>
</div>
<div id="fm">
    <h2>标题</h2>
    <form id="login-user-form" method="post" action="/account/login.php" class="validator">
    </form>
</div>
<div id="op">
    <h2>操作部分</h2>
</div>
<div id="help">help</div>
'; include template("footer"); ?>
