Mercurial > epgrec.yaz
diff 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 |
line wrap: on
line diff
--- a/keywordTable.php Tue Feb 23 19:58:30 2010 +0900 +++ b/keywordTable.php Wed Feb 24 20:22:19 2010 +0900 @@ -7,8 +7,12 @@ include_once( INSTALL_PATH . "/Keyword.class.php" ); // include_once( INSTALL_PATH . "/Settings.class.php" ); + +$weekofdays = array( "月", "火", "水", "木", "金", "土", "日", "なし" ); + // 新規キーワードがポストされた + if( isset($_POST["add_keyword"]) ) { if( $_POST["add_keyword"] == 1 ) { try { @@ -18,6 +22,8 @@ $rec->category_id = $_POST['k_category']; $rec->channel_id = $_POST['k_station']; $rec->use_regexp = $_POST['k_use_regexp']; + $rec->weekofday = $_POST['k_weekofday']; + $rec->autorec_mode = $_POST['autorec_mode']; // 録画予約実行 $rec->reservation(); @@ -52,6 +58,10 @@ $arr['use_regexp'] = $rec->use_regexp; + $arr['weekofday'] = $weekofdays["$rec->weekofday"]; + + $arr['autorec_mode'] = $RECORD_MODE[(int)$rec->autorec_mode]['name']; + array_push( $keywords, $arr ); } }