comparison Reservation.class.php @ 120:cb04c9ca1cb0

add: チャンネルスキップの追加途中(改造中)
author yoneda <epgrec@park.mda.or.jp>
date Sun, 14 Mar 2010 23:49:11 +0900
parents f268d7d10590
children a971ef7888b4
comparison
equal deleted inserted replaced
116:f268d7d10590 120:cb04c9ca1cb0
75 } 75 }
76 76
77 $crec = new DBRecord( CHANNEL_TBL, "id", $channel_id ); 77 $crec = new DBRecord( CHANNEL_TBL, "id", $channel_id );
78 78
79 // √篋膣 = TUNER 79 // √篋膣 = TUNER
80 $tuners = ($crec->type == "GR") ? $settings->gr_tuners : $settings->bs_tuners; 80 $tuners = ($crec->type == "GR") ? (int)($settings->gr_tuners) : (int)($settings->bs_tuners);
81 $type_str = ($crec->type == "GR") ? "type = 'GR' " : "(type = 'BS' OR type = 'CS') "; 81 $type_str = ($crec->type == "GR") ? "type = 'GR' " : "(type = 'BS' OR type = 'CS') ";
82 82
83 $battings = DBRecord::countRecords( RESERVE_TBL, "WHERE complete = '0' ". 83 $battings = DBRecord::countRecords( RESERVE_TBL, "WHERE complete = '0' ".
84 "AND ".$type_str. 84 "AND ".$type_str.
85 "AND starttime < '".toDatetime($end_time) ."' ". 85 "AND starttime < '".toDatetime($end_time) ."' ".