<?php
 include template("header"); ;echo '<div id="menu2"><a href="'; echo WEB_ROOT; ;echo '/manage/provider_detail.php">添加供货商</a></div>
<div id="info" style="display:none">info</div>
<div id="data">
    <h2>供货商列表</h2>
    <table>
        <thead><tr><th>名称</th><th>品牌</th><th>渠道</th><th width="40">地区</th><th>地址</th><th>邮编</th>
            <th>电话</th><th>备注</th><th width="80">操作</th></tr></thead>
        '; if(is_array($provider)){foreach($provider AS $index=>$one) { ;echo '        <tr id="ID_'; echo $one['id']; ;echo '" onmouseover="cart_item_over(\'ID_'; echo $one['id']; ;echo '\')" onmouseout="cart_item_out(\'ID_'; echo $one['id']; ;echo '\')">
            <td><a href="'; echo WEB_ROOT; ;echo '/manage/provider_detail.php?id='; echo $one['id']; ;echo '">'; echo $one['name'] ;echo '</a></td>
            <td>'; echo $one['brand'] ;echo '</td>
            <td>'; echo $one['channel'] ;echo '</td>
            <td>'; echo $one['province'] ;echo '</td>
            <td>'; echo $one['address'] ;echo '</td>
            <td>'; echo $one['zipcode'] ;echo '</td>
            <td>'; echo $one['tel'] ;echo '</td>
            <td>'; echo $one['remark'] ;echo '</td>
            <td><a href="'; echo WEB_ROOT; ;echo '/manage/provider_detail.php?id='; echo $one['id']; ;echo '">修改</a>&nbsp;&nbsp;删除</td>
        </tr>
        '; }} ;echo '        <tr><td colspan="9">'; 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"); ?>
