<?php  require('system/login.php');  ?>
<?php require_once('../Connections/BE2.php'); ?>
<?php
 
mysql_select_db($database_BE2, $BE2);

$query_Rt2 = sprintf("SELECT * FROM order_rtype WHERE 1 order by rid" ); ;//,$colname_Rt2
 
$Rt2 = mysql_query($query_Rt2, $BE2) or die(mysql_error());
$row_Rt2 = mysql_fetch_assoc($Rt2);
 
?>
 

<table width="840" border="0" cellpadding="2" cellspacing="2">
  <tr>
    <th width="20" height="28" nowrap class="font2">ID(代號)</th>
    <th width="38" nowrap class="font2">說明</th>
    <th width="76" nowrap class="font2">交易對象</th>
    <th width="55" nowrap class="font2">交易%</th>
    <th width="76" nowrap class="font2">即時可用</th>
    <th width="38" nowrap class="font2">編輯</th>
  </tr>
    <tr>
    <td height="3" colspan="6" background="images/dot3.gif"></td>
  </tr>
  <?php 
  $i=0;
   do { 
   $i++;
  ?>
    <tr onMouseOver="this.style.backgroundColor='#2172A1';" onMouseOut=this.style.backgroundColor="#fff">
      <td height="27" align="center"><?= $row_Rt2['rid']; ?></td>
      <td height="27" align="center"><?= $row_Rt2['rdoc']; ?></td>
      <td height="27" align="center"><?= $row_Rt2['rdoc2']; ?></td>
      <td align="center"><?= $row_Rt2['pric']; ?>%</td>
      <td align="center"><?= $row_Rt2['ruse']; ?></td>
      <td> <a href="main.php?act=rtype_edit&id=<?= $row_Rt2['rid']; ?>"><img src="images/edit.png" alt="修改" title="edit修改" width="23" height="20" border="0" /></a>  </td>
    </tr>
  <tr>
    <td height="2" colspan="6" background="images/dot3.gif"></td>
  </tr>	
    <?php } while ($row_Rt2 = mysql_fetch_assoc($Rt2)); ?>
  <tr>
    <td colspan="6">&nbsp;</td>
  </tr>
</table>
 
<?php
mysql_free_result($Rt2);
?>
