<!--
<?php
print <<<EOT
-->
<style>
.listtable {
	margin:5px auto;
}
.listtable td{
	text-align:center;
	padding:5px 5px 3px 5px;
}
.listtable .h td{
	background:#EEE;
}
</style>
<table width="794" border="0" cellspacing="0" cellpadding="0" align="center" class="MainTable">
  <tr> 
    <td height="100" valign="top" class="Main"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="dragTable">
        <tr> 
          <td class="head">
            竟价广告管理
          </td>
        </tr>
        <tr> 
          <td class="middle">  
            <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr> 
                  <td> 
                    <table width="100%" border="0" cellspacing="1" cellpadding="3" class="listtable">
                      <tr class="h"> 
                        <td width="15%">广告位名称</td>
                        <td width="10%">所在城市</td>
                        <td width="10%">购买者</td>
                        <td width="20%">有效日期</td>
                        <td width="15%">广告内容</td>
                        <td width="8%">广告价格</td>
                        <td width="8%">点击数</td>
                        <td width="14%">修改/删除</td>
                      </tr>
<!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
                    	<tr> 
                            <td>$rs[place_name]</td>
                            <td>$rs[city]</td>
                            <td>$rs[username]</td>
                            <td>开始:$rs[begin]<br />结束:$rs[end]</td>
                            <td><a href="$rs[adlink]">$rs[adword]</a></td>
                            <td>$rs[money]</td>
                            <td>$rs[hits]</td>
                            <td><a href="$webdb[www_url]/city_admin/compete.php?action=edit&job=list&id=$rs[ad_id]">修改</a>/<a href="$webdb[www_url]/city_admin/compete.php?action=del&job=list&id=$rs[ad_id]" onClick="return confirm('你确认要删除吗?不可恢复');">删除</a></td>
                      	</tr>
<!--
EOT;
}print <<<EOT
-->                 </table>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr> 
                        <td align="center" class="page">$showpage</td>
                      </tr>
                    </table>
                  </td>
                </tr>
            </table>
 
          </td>
        </tr>
        <tr>
          <td class="foot">
            <h3 class="L"></h3>
            <h3 class="R"></h3>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<!--
EOT;
?>
-->
