<?php
 include template("header"); ;echo '<div id="menu2"><a href="#">小菜单</a></div>
<div id="info" style="display:none">info</div>
<div id="data">
    <h2>最新折扣列表</h2>
    <table>
        <thead><tr><th rowspan="2">序号</th><th rowspan="2">名称</th><th rowspan="2">大类</th><th>你的折扣</th></tr></thead>
        '; if(is_array($cat)){foreach($cat AS $index=>$one) { ;echo '        <tr id="fare_'; echo $one['id']; ;echo '" onmouseover="cart_item_over(\'fare_'; echo $one['id']; ;echo '\')" onmouseout="cart_item_out(\'fare_'; echo $one['id']; ;echo '\')">
            <td>'; echo $index; ;echo '</td>
            <td>'; echo $one['name'] ;echo '</td>
            <td>'; echo $one['zone'] ;echo '</td>
            <td>'; echo ($one['user_discount']+$yours_pt<=$one['cost_discount']) ? $one['cost_discount']+0.01 : $one['user_discount']+$yours_pt ;echo '</td>
        </tr>
        '; }} ;echo '    </table>
</div>
<div id="help">help</div>
'; include template("footer"); ?>
