我有这个代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" media="screen" href="Azulmedia.css" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
background-color: #FFF;
}
-->
</style>
</head>
<body>
<div class="box" style='display:inline-block;'><h1><center>Pending Reservations to Approve</center></h1>
<?php
require("aacfs.php");
$result=mysql_query("select * from reservation where signoff='' and status!='Cancelled' order by reservno") or die(mysql_error());
echo "<center><div class='box'><table class='hovertable'>
<th>Reservation No</th>
<th>Booking Date</th>
<th>Client Name</th>
<th>Flight Date</th>
<th>Aircraft</th>
<th>Itinerary</th>
<th>ETD</th>
<th>ETA</th>
<th>Confirmation Cut Off</th>
<th>Status</th>
<th>Reserved By</th>
</tr>";
if(mysql_num_rows($result)>0)
{
while($row=mysql_fetch_array($result))
{
$rvno=$row['reservno'];
$rn="2012-".$rvno;
echo"<tr><td>".$rn."</td><td>".$row['bdate']."</td><td>".$row['cliename']."</td><td>".$row['fdate']."</td><td>".$row['acode']."</td><td>".$row['itinerary']."</td><td>".$row['etd']."</td><td>".$row['eta']."</td><td>".$row['cutoff']."</td><td>".$row['status']."</td><td>".$row['adminid']."</td></tr>";
}
}
else
{ ?>
<tr><td colspan="14" style="text-align:center; color:#FF0000; font-size:16px;">*No Data Available*</td></tr>
<?php
}
echo "</div>";
?>
</div>
</br>
<div class="box" style='display:inline-block;'><h1><center>PTR to Edit</center></h1>
<?php
//require("aacfs.php");
$result1=mysql_query("select * from reservation where (etd < now() and status = 'Confirmed' and signoff!='') or (allowed='yes') order by reservno") or die(mysql_error());
echo "<center><div class='box'><table class='hovertable'>
<th>Reservation No</th>
<th>Booking Date</th>
<th>Client Name</th>
<th>Flight Date</th>
<th>Aircraft</th>
<th>Itinerary</th>
<th>ETD</th>
<th>ETA</th>
<th>Confirmation Cut Off</th>
<th>Status</th>
<th>Reserved By</th>
</tr>";
if(mysql_num_rows($result1)>0)
{
while($row1=mysql_fetch_array($result1))
{
$rvno=$row1['reservno'];
$rn="2012-".$rvno;
echo"<tr><td>".$rn."</td><td>".$row1['bdate']."</td><td>".$row1['cliename']."</td><td>".$row1['fdate']."</td><td>".$row1['acode']."</td><td>".$row1['itinerary']."</td><td>".$row1['etd']."</td><td>".$row1['eta']."</td><td>".$row1['cutoff']."</td><td>".$row1['status']."</td><td>".$row1['adminid']."</td></tr>";
}
}
else
{ ?>
<tr><td colspan="14" style="text-align:center; color:#FF0000; font-size:16px;">*No Data Available*</td></tr>
<?php
}
echo "</div>";
?>
</div>
</body>
</html>
它应该首先显示Pending Reservations to Approve
,然后是表格,然后PTR to Edit
是表格。但它显示如下:
我怎样才能分开两个表?首先是Pending Reservations to Approve
标题和表格,然后PTR to Edit
是其下方的标题和表格。