Mercurial > epgrec.yaz
comparison keywordTable.php @ 77:cb7da56c4198
modified: Keyword.class.php
modified: config.php.sample
modified: index.php
modified: install/step1.php
modified: keywordTable.php
modified: programTable.php
modified: simpleReservation.php
modified: templates/index.html
modified: templates/keywordTable.html
modified: templates/programTable.html
author | Sushi-k <epgrec@park.mda.or.jp> |
---|---|
date | Wed, 24 Feb 2010 20:22:19 +0900 |
parents | 8965ef108821 |
children | 57676bb30f64 |
comparison
equal
deleted
inserted
replaced
76:69e0dabc765a | 77:cb7da56c4198 |
---|---|
5 include_once( INSTALL_PATH . "/reclib.php" ); | 5 include_once( INSTALL_PATH . "/reclib.php" ); |
6 include_once( INSTALL_PATH . "/Reservation.class.php" ); | 6 include_once( INSTALL_PATH . "/Reservation.class.php" ); |
7 include_once( INSTALL_PATH . "/Keyword.class.php" ); | 7 include_once( INSTALL_PATH . "/Keyword.class.php" ); |
8 // include_once( INSTALL_PATH . "/Settings.class.php" ); | 8 // include_once( INSTALL_PATH . "/Settings.class.php" ); |
9 | 9 |
10 | |
11 $weekofdays = array( "月", "火", "水", "木", "金", "土", "日", "なし" ); | |
12 | |
10 // 新規キーワードがポストされた | 13 // 新規キーワードがポストされた |
14 | |
11 | 15 |
12 if( isset($_POST["add_keyword"]) ) { | 16 if( isset($_POST["add_keyword"]) ) { |
13 if( $_POST["add_keyword"] == 1 ) { | 17 if( $_POST["add_keyword"] == 1 ) { |
14 try { | 18 try { |
15 $rec = new Keyword(); | 19 $rec = new Keyword(); |
16 $rec->keyword = $_POST['k_search']; | 20 $rec->keyword = $_POST['k_search']; |
17 $rec->type = $_POST['k_type']; | 21 $rec->type = $_POST['k_type']; |
18 $rec->category_id = $_POST['k_category']; | 22 $rec->category_id = $_POST['k_category']; |
19 $rec->channel_id = $_POST['k_station']; | 23 $rec->channel_id = $_POST['k_station']; |
20 $rec->use_regexp = $_POST['k_use_regexp']; | 24 $rec->use_regexp = $_POST['k_use_regexp']; |
25 $rec->weekofday = $_POST['k_weekofday']; | |
26 $rec->autorec_mode = $_POST['autorec_mode']; | |
21 | 27 |
22 // 録画予約実行 | 28 // 録画予約実行 |
23 $rec->reservation(); | 29 $rec->reservation(); |
24 } | 30 } |
25 catch( Exception $e ) { | 31 catch( Exception $e ) { |
50 } | 56 } |
51 else $arr['category'] = 'すべて'; | 57 else $arr['category'] = 'すべて'; |
52 | 58 |
53 $arr['use_regexp'] = $rec->use_regexp; | 59 $arr['use_regexp'] = $rec->use_regexp; |
54 | 60 |
61 $arr['weekofday'] = $weekofdays["$rec->weekofday"]; | |
62 | |
63 $arr['autorec_mode'] = $RECORD_MODE[(int)$rec->autorec_mode]['name']; | |
64 | |
55 array_push( $keywords, $arr ); | 65 array_push( $keywords, $arr ); |
56 } | 66 } |
57 } | 67 } |
58 catch( Exception $e ) { | 68 catch( Exception $e ) { |
59 exit( $e->getMessage() ); | 69 exit( $e->getMessage() ); |