<?php
 include template("header"); ;echo '<div id="menu2">
    <a href="#">二级菜单</a>
</div>
<div id="data">
    <h2>'; echo $provider['name'] ;echo '</h2>
    <form id="provider_form" action="'; echo WEB_ROOT; ;echo '/manage/provider_detail.php'; if($id) echo "?id=".$id ;echo '" method="post">
    <table>
        <tr><td>名称</td><td><input type="text" name="name" value="'; echo $provider['name'] ;echo '" /></td>
            <td>品牌</td><td><input type="text" name="brand" value="'; echo $provider['brand'] ;echo '" /></td>
            <td>渠道</td><td><input type="text" name="channel" value="'; echo $provider['channel'] ;echo '" /></td>
            <td>地区</td><td><input type="text" name="province" value="'; echo $provider['province'] ;echo '" /></td>
        </tr>
        <tr><td>地址</td><td><input type="text" name="address" value="'; echo $provider['address'] ;echo '" /></td>
            <td>邮编</td><td><input type="text" name="zipcode" value="'; echo $provider['zipcode'] ;echo '" /></td>
            <td>电话</td><td><input type="text" name="tel" value="'; echo $provider['tel'] ;echo '" /></td>
            <td>备注</td><td><input type="text" name="remark" value="'; echo $provider['remark'] ;echo '" /></td>
        </tr>
    </table>
    </form>
</div>

<div id="op">
    '; if($id) {;echo '    <h2>【<a href="javascript:if(confirm(\'确定修改供货商资料吗？\'))$(\'#provider_form\').submit()">确定修改</a>】</h2>
    '; }else{ ;echo '    <h2>【<a href="javascript:if(confirm(\'确定修改供货商资料吗？\'))$(\'#provider_form\').submit()">确定添加</a>】</h2>
    '; } ;echo '</div>
<div id="help">help</div>
'; include template("footer"); ?>
