comparison reservationTable.php @ 39:8965ef108821

change: modify all scripts for web base setting.
author Sushi-k <epgrec@park.mda.or.jp>
date Tue, 28 Jul 2009 11:50:04 +0900
parents f5a9f0eb4858
children
comparison
equal deleted inserted replaced
38:2bc96d657ba1 39:8965ef108821
2 include_once('config.php'); 2 include_once('config.php');
3 include_once( INSTALL_PATH . '/DBRecord.class.php' ); 3 include_once( INSTALL_PATH . '/DBRecord.class.php' );
4 include_once( INSTALL_PATH . '/Smarty/Smarty.class.php' ); 4 include_once( INSTALL_PATH . '/Smarty/Smarty.class.php' );
5 5
6 try{ 6 try{
7 $rvs = DBRecord::createRecords(TBL_PREFIX.RESERVE_TBL, "WHERE complete='0' ORDER BY starttime ASC" ); 7 $rvs = DBRecord::createRecords(RESERVE_TBL, "WHERE complete='0' ORDER BY starttime ASC" );
8 8
9 $reservations = array(); 9 $reservations = array();
10 foreach( $rvs as $r ) { 10 foreach( $rvs as $r ) {
11 $cat = new DBRecord(TBL_PREFIX.CATEGORY_TBL, "id", $r->category_id ); 11 $cat = new DBRecord(CATEGORY_TBL, "id", $r->category_id );
12 $arr = array(); 12 $arr = array();
13 $arr['id'] = $r->id; 13 $arr['id'] = $r->id;
14 $arr['type'] = $r->type; 14 $arr['type'] = $r->type;
15 $arr['channel'] = $r->channel; 15 $arr['channel'] = $r->channel;
16 $arr['starttime'] = $r->starttime; 16 $arr['starttime'] = $r->starttime;