|
- <?php
- require_once './php_include/Config.php';
- require_once './php_include/class.db.inc';
- require_once './php_include/disney.inc';
-
- if( !isset($_GET["tid"]) ) {
- $_GET["tid"] = 1;
- }
-
- //DB
- $objDbh = new Db;
- $objDbh->setAccount(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DB);
- $objDisney = new DbDisney($objDbh);
-
- $good_array = $objDisney->getGoodsArray($_GET["tid"]);
- ?>
-
- <html>
- <head>
- </head>
- <body>
- <table >
- <?php
- foreach($good_array as $good_info) {
- echo '<tr><td>'.$good_info['good_name'].'</td><td><a href="order.php?gid='.$good_info['id'].'">预定</a></td></tr>';
- }
- ?>
-
- </table>
- </body>
- </html>
-
-
|