Mercurial > epgrec.yaz
comparison Reservation.class.php @ 102:49145003e6a3
fix whitespace and new line code
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 08 Mar 2010 01:08:47 +0900 |
parents | e2c37cc736db |
children | f5d58cf2842f |
comparison
equal
deleted
inserted
replaced
101:8ac1bea85c5e | 102:49145003e6a3 |
---|---|
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") ? $settings->gr_tuners : $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) ."' ". |
86 "AND endtime > '".toDatetime($rec_start)."'" | 86 "AND endtime > '".toDatetime($rec_start)."'" |
87 ); | 87 ); |