You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

35 lines
689 B

  1. <?php
  2. require_once './php_include/Config.php';
  3. require_once './php_include/class.db.inc';
  4. require_once './php_include/disney.inc';
  5. if( !isset($_GET["tid"]) ) {
  6. $_GET["tid"] = 1;
  7. }
  8. //DB
  9. $objDbh = new Db;
  10. $objDbh->setAccount(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DB);
  11. $objDisney = new DbDisney($objDbh);
  12. $good_array = $objDisney->getGoodsArray($_GET["tid"]);
  13. ?>
  14. <html>
  15. <head>
  16. </head>
  17. <body>
  18. <table >
  19. <?php
  20. foreach($good_array as $good_info) {
  21. echo '<tr><td>'.$good_info['good_name'].'</td><td><a href="order.php?gid='.$good_info['id'].'">预定</a></td></tr>';
  22. }
  23. ?>
  24. </table>
  25. </body>
  26. </html>