comparison index.php @ 76:69e0dabc765a

fixed: Reservation.class.php modified: config.php.sample modified: index.php modified: install/step1.php modified: install/step3.php install/grscan.php
author Sushi-k <epgrec@park.mda.or.jp>
date Tue, 23 Feb 2010 19:58:30 +0900
parents a2c4665b310c
children cb7da56c4198
comparison
equal deleted inserted replaced
70:1363ac056197 76:69e0dabc765a
47 $programs = array(); 47 $programs = array();
48 if( $type == "BS" ) $channel_map = $BS_CHANNEL_MAP; 48 if( $type == "BS" ) $channel_map = $BS_CHANNEL_MAP;
49 else if( $type == "GR" ) $channel_map = $GR_CHANNEL_MAP; 49 else if( $type == "GR" ) $channel_map = $GR_CHANNEL_MAP;
50 else if( $type == "CS" ) $channel_map = $CS_CHANNEL_MAP; 50 else if( $type == "CS" ) $channel_map = $CS_CHANNEL_MAP;
51 $st = 0; 51 $st = 0;
52 $prec = new DBRecord(PROGRAM_TBL); 52 $prec = null;
53 try {
54 $prec = new DBRecord(PROGRAM_TBL);
55 }
56 catch( Exception $e ) {
57 exit('プログラムテーブルが存在しないようです。インストールをやり直してください.');
58 }
53 foreach( $channel_map as $channel_disc => $channel ) { 59 foreach( $channel_map as $channel_disc => $channel ) {
54 $prev_end = $top_time; 60 $prev_end = $top_time;
55 try { 61 try {
56 $crec = new DBRecord( CHANNEL_TBL, "channel_disc", $channel_disc ); 62 $crec = new DBRecord( CHANNEL_TBL, "channel_disc", $channel_disc );
57 $programs[$st]["station_name"] = $crec->name; 63 $programs[$st]["station_name"] = $crec->name;
102 $programs[$st]['list'][$num]['rec'] = DBRecord::countRecords(RESERVE_TBL, "WHERE complete = '0' AND program_id = '".$prg['id']."'" ); 108 $programs[$st]['list'][$num]['rec'] = DBRecord::countRecords(RESERVE_TBL, "WHERE complete = '0' AND program_id = '".$prg['id']."'" );
103 $num++; 109 $num++;
104 } 110 }
105 } 111 }
106 catch( exception $e ) { 112 catch( exception $e ) {
107 exit( $e->getMessage() ); 113 // exit( $e->getMessage() );
114 // 何もしない
108 } 115 }
109 // 空きを埋める 116 // 空きを埋める
110 if( ($last_time - $prev_end) > 0 ) { 117 if( ($last_time - $prev_end) > 0 ) {
111 $height = ($last_time - $prev_end) * $settings->height_per_hour / 3600; 118 $height = ($last_time - $prev_end) * $settings->height_per_hour / 3600;
112 $height = $height; 119 $height = $height;