<?php require('system/login.php');  ?>
<?php require_once('../Connections/BE2.php'); ?>
<?php
/*
if(isset($_GET['del_id']) && ( $_GET['del_id']>0 )){
mysql_select_db($database_BE2, $BE2);
$delete_SQL = sprintf("delete from adpage WHERE pid='%s'",$_GET['del_id']);
$Rt2 = mysql_query($delete_SQL, $BE2) or die(mysql_error());
}
*/
mysql_select_db($database_BE2, $BE2);
 
$query_Rt2 = "SELECT * FROM tb3 where 1 order by be3";

$Rt2 = mysql_query($query_Rt2, $BE2) or die(mysql_error());
$row_Rt2 = mysql_fetch_assoc($Rt2);
$totalRows_Rt2  = mysql_num_rows($Rt2); 
?>
  
  <table width="788" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <th width="4%" nowrap="nowrap" class="font2">ID</th>
      <th width="24%" nowrap="nowrap" class="font2">服務分類</th>
      <th width="51%" align="left" nowrap="nowrap" class="font2">服務說明</th>
      <th nowrap="nowrap" class="font2">排列序</th>
      <th nowrap="nowrap" class="font2">&nbsp;</th>
      <th nowrap="nowrap" class="font2">&nbsp;</th>
    </tr>
    <?php 
	 if($totalRows_Rt2>0){ 
	  do { ?>
    <tr>
      <td align="center" class="font3"><a href="main.php?act=edittb3&amp;id=<?php echo $row_Rt2['be0']; ?>"><img src="images/edit.png" alt="修改項目名稱" title="修改項目名稱" width="16" height="16" border="0" /></a></td>
      <td align="center" class="font3"><?php echo $row_Rt2['be1']; ?></td>
      <td align="left" class="font3"><?php echo mb_substr($row_Rt2['be2'],0,20,"utf-8"); ?>...</td>
      <td width="12%" align="center" class="font3"><h3><font color="#FF0000"><?php echo $row_Rt2['be3'];?></font></h3></td>
      <td width="5%" align="center" class="font3">&nbsp;</td>
      <td width="4%" align="center" class="font3">&nbsp;</td>
    </tr>
    <?php } while ($row_Rt2 = mysql_fetch_assoc($Rt2)); 
	 }
	  ?>

  </table>

<?php
mysql_free_result($Rt2);
?>
