Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- epgrec STZ版の画面と操作性をtvrockっぽくするパッチ
- 1. epgrecの設定ページを開き、"ページに表示する番組表の長さ(時間)"、"1局あたりの幅"、"1時間あたりの高さ" の値をそれぞれ、24、175、700 に設定。
- 2. http://mobiledetect.net/ から Mobile_detect.php をダウンロードして /var/www/epgrec に格納。
- 3. tvrock の予約ボタン画像を保存(reserve.gif)して、/var/www/epgrec/imgs に格納。
- 4. /var/www/epgrec で、patch -p1 < epgrock.diff を実行。
- 5. できあがり。
- diff -urN epgrec.org/Keyword.class.php epgrec/Keyword.class.php
- --- epgrec.org/Keyword.class.php 2017-07-22 02:33:25.000000000 +0900
- +++ epgrec/Keyword.class.php 2017-07-21 16:17:54.000000000 +0900
- @@ -24,7 +24,7 @@
- $channel_id = 0,
- $weekofday = 7,
- $prgtime = 24,
- - $limit = 300 ) {
- + $limit = 3000 ) {
- $sts = Settings::factory();
- $dbh = @mysql_connect($sts->db_host, $sts->db_user, $sts->db_pass );
- @@ -45,7 +45,11 @@
- $options .= " AND type = '".$type."'";
- }
- - if( $category_id != 0 ) {
- +// 映画の場合は、予備カテゴリーも含める
- + if( $category_id == 13 ) {
- + $options .= " AND (category_id = '13' OR category_id = '14')";
- + }
- + else if( $category_id != 0 ) {
- $options .= " AND category_id = '".$category_id."'";
- }
- diff -urN epgrec.org/Reservation.class.php epgrec/Reservation.class.php
- --- epgrec.org/Reservation.class.php 2017-07-22 02:33:25.000000000 +0900
- +++ epgrec/Reservation.class.php 2017-07-23 02:14:46.000000000 +0900
- @@ -212,7 +212,8 @@
- %SID% サービスID
- %DOW% 曜日(Sun-Mon)
- %DOWJ% 曜日(日-土)
- - %YEAR% 開始年
- + %YEAR% 開始年(YYYY)
- + %YEAR2% 開始年(YY) ←追加
- %MONTH% 開始月
- %DAY% 開始日
- %HOUR% 開始時
- @@ -242,6 +243,8 @@
- $filename = mb_str_replace("%DOWJ%",$day_of_week[(int)date("w", $start_time)], $filename );
- // %YEAR% 開始年
- $filename = mb_str_replace("%YEAR%",date("Y", $start_time), $filename );
- + // %YEAR% 開始年
- + $filename = mb_str_replace("%YEAR2%",date("y", $start_time), $filename );
- // %MONTH% 開始月
- $filename = mb_str_replace("%MONTH%",date("m", $start_time), $filename );
- // %DAY% 開始日
- diff -urN epgrec.org/Rock.inc.php epgrec/Rock.inc.php
- --- epgrec.org/Rock.inc.php 1970-01-01 09:00:00.000000000 +0900
- +++ epgrec/Rock.inc.php 2017-07-23 10:39:45.000000000 +0900
- @@ -0,0 +1,73 @@
- +<?php
- +
- +function getSimpleTitle($title) {
- + $title = mb_convert_kana($title, "rn");
- + $title = str_replace("【", "[", $title);
- + $title = str_replace("】", "]", $title);
- + $title = str_replace("[字]", "", $title);
- + $title = str_replace("[解]", "", $title);
- + $title = str_replace("[再]", "", $title);
- + $title = str_replace("[デ]", "", $title);
- + $title = str_replace("[二]", "", $title);
- + $title = str_replace("[SS]", "", $title);
- + $title = str_replace("[無]", "", $title);
- + $title = str_replace("[無料]", "", $title);
- + $title = str_replace("[多]", "", $title);
- + $title = str_replace("[5.1]", "", $title);
- + $title = str_replace("[テニス]", "", $title);
- + $title = str_replace("[HV]", "", $title);
- + $title = str_replace("[HD完全版]", "", $title);
- + $title = str_replace("[HDリマスター版]", "", $title);
- + $title = str_replace("[完全版]", "", $title);
- + $title = str_replace("(無料)", "", $title);
- + $title = str_replace("(字幕版)", "(字幕)", $title);
- + $title = str_replace("(吹替版)", "(吹替)", $title);
- + $title = str_replace("[吹]", "(吹替)", $title);
- +
- + return $title;
- +}
- +
- +function getSearchKey($search_key, $category_id) {
- + if ($r->category_id == 13 || $r->category_id == 14) {
- + return "";
- + }
- + $search_key = str_replace("【", "[", $search_key);
- + $search_key = str_replace("】", "]", $search_key);
- + $search_key = str_replace("[", "[", $search_key);
- + $search_key = str_replace("]", "]", $search_key);
- + $search_key = str_replace("<", "<", $search_key);
- + $search_key = str_replace(">", ">", $search_key);
- + $search_key = str_replace("(", "(", $search_key);
- + $search_key = str_replace(")", ")", $search_key);
- + $search_key = preg_replace("/◆.*$/", "", $search_key);
- + $search_key = preg_replace("/「/", "", $search_key, 5);
- + $search_key = preg_replace("/」/", "", $search_key, 5);
- + $search_key = preg_replace("/([^)]*)/", "", $search_key, 5);
- + $search_key = preg_replace("/\([^\)]*\)/", "", $search_key, 5);
- + $search_key = preg_replace("/\<[^\>]*\>/", "", $search_key, 5);
- + $search_key = preg_replace("/\[[^\]]*\]/", "", $search_key, 5);
- + $search_key = preg_replace("/\[.*\]/", "", $search_key, 5);
- + $search_key = str_replace("プレミアムシネマ", "", $search_key);
- +
- + return $search_key;
- +}
- +
- +function getStartDateTime($starttime) {
- + $date_and_time = split(" ", $starttime);
- + $start_date = split("-", $date_and_time[0]);
- + $start_time = split(":", $date_and_time[1]);
- + $datetime = new DateTime($date_and_time[0]);
- + $week = array("(日)", "(月)", "(火)", "(水)", "(木)", "(金)", "(土)");
- + $w = (int)$datetime->format('w');
- + $day_of_week = $week[$w];
- + return intval($start_date[1]) . "月" . $start_date[2] . "日" . $day_of_week . "<br>" . $start_time[0] . ":" . $start_time[1];
- +}
- +
- +function getEndTime($endtime) {
- + $date_and_time = split(" ", $endtime);
- + $end_date = split("-", $date_and_time[0]);
- + $end_time = split(":", $date_and_time[1]);
- + return $end_time[0] . ":" . $end_time[1];
- +}
- +
- +?>
- diff -urN epgrec.org/Rock_define.inc.php epgrec/Rock_define.inc.php
- --- epgrec.org/Rock_define.inc.php 1970-01-01 09:00:00.000000000 +0900
- +++ epgrec/Rock_define.inc.php 2017-07-23 11:12:39.000000000 +0900
- @@ -0,0 +1,9 @@
- +<?php
- +
- +define("PC_BASE_FONT_SIZE" , 12);
- +define("PC_FLOAT_FOLLOWS_FONT_SIZE" , 16);
- +define("MOBILE_BASE_FONT_SIZE" , 13); //13.5
- +define("MOBILE_FLOAT_FOLLOWS_FONT_SIZE", 18);
- +
- +?>
- +
- diff -urN epgrec.org/envSetting.php epgrec/envSetting.php
- --- epgrec.org/envSetting.php 2017-07-22 02:33:25.000000000 +0900
- +++ epgrec/envSetting.php 2017-07-18 01:30:40.000000000 +0900
- @@ -11,7 +11,7 @@
- $smarty->assign( "install_path", INSTALL_PATH );
- $smarty->assign( "post_to", "postsettings.php" );
- $smarty->assign( "sitetitle", "環境設定設定" );
- -$smarty->assign( "message", '<a href="index.php">設定せずに番組表に戻る</a>/<a href="systemSetting.php">システム設定へ</a>/<a href="logViewer.php">動作ログを見る</a>' );
- +$smarty->assign( "message", '<a href="index.php">設定せずに番組表に戻る</a>/<a href="systemSetting.php">システム設定へ</a>' );
- $smarty->display("envSetting.html");
- ?>
- diff -urN epgrec.org/getepg.php epgrec/getepg.php
- --- epgrec.org/getepg.php 2017-07-22 02:33:25.000000000 +0900
- +++ epgrec/getepg.php 2017-07-17 18:09:57.000000000 +0900
- @@ -119,7 +119,7 @@
- $num = DBRecord::countRecords( RESERVE_TBL, "WHERE complete = '0' AND (type = 'BS' OR type = 'CS') AND endtime > now() AND starttime < addtime( now(), '00:03:05')" );
- if($num < $settings->bs_tuners && check_file($temp_data_cs1)) {
- - $cmdline = "CHANNEL=".CS1_EPG_CHANNEL." DURATION=120 TYPE=CS TUNER=0 MODE=0 OUTPUT=".$temp_data_cs1." ".DO_RECORD . " >/dev/null 2>&1";
- + $cmdline = "CHANNEL=".CS1_EPG_CHANNEL." DURATION=180 TYPE=CS TUNER=0 MODE=0 OUTPUT=".$temp_data_cs1." ".DO_RECORD . " >/dev/null 2>&1";
- exec( $cmdline );
- $cmdline = INSTALL_PATH."/storeProgram.php CS1 ".$temp_data_cs1;
- $cs1_proc = epgrec_exec($cmdline);
- @@ -127,7 +127,7 @@
- $num = DBRecord::countRecords( RESERVE_TBL, "WHERE complete = '0' AND (type = 'BS' OR type = 'CS') AND endtime > now() AND starttime < addtime( now(), '00:03:05')" );
- if( ($num < $settings->bs_tuners) && check_file($temp_data_cs2) ) {
- - $cmdline = "CHANNEL=".CS2_EPG_CHANNEL." DURATION=120 TYPE=CS TUNER=0 MODE=0 OUTPUT=".$temp_data_cs2." ".DO_RECORD . " >/dev/null 2>&1";
- + $cmdline = "CHANNEL=".CS2_EPG_CHANNEL." DURATION=180 TYPE=CS TUNER=0 MODE=0 OUTPUT=".$temp_data_cs2." ".DO_RECORD . " >/dev/null 2>&1";
- exec( $cmdline );
- $cmdline = INSTALL_PATH."/storeProgram.php CS2 ".$temp_data_cs2;
- $cs2_proc = epgrec_exec( $cmdline );
- diff -urN epgrec.org/index.php epgrec/index.php
- --- epgrec.org/index.php 2017-07-22 02:33:25.000000000 +0900
- +++ epgrec/index.php 2017-07-23 11:30:24.000000000 +0900
- @@ -5,6 +5,10 @@
- include_once( INSTALL_PATH . "/Smarty/Smarty.class.php" );
- include_once( INSTALL_PATH . "/reclib.php" );
- include_once( INSTALL_PATH . "/Settings.class.php" );
- +include_once( INSTALL_PATH . "/Rock.inc.php" );
- +include_once( INSTALL_PATH . "/Rock_define.inc.php" );
- +require_once 'Mobile_Detect.php';
- +$detect = new Mobile_Detect;
- // 設定ファイルの有無を検査する
- if( ! file_exists( INSTALL_PATH."/settings/config.xml") ) {
- @@ -89,6 +93,7 @@
- $programs[$st]['list'][$num]['title'] = "";
- $programs[$st]['list'][$num]['starttime'] = "";
- $programs[$st]['list'][$num]['description'] = "";
- + $programs[$st]['list'][$num]['station_name'] = "";
- $num++;
- }
- $prev_end = $prg_endtime;
- @@ -108,21 +113,29 @@
- $cat = new DBRecord( CATEGORY_TBL, "id", $prg['category_id'] );
- $programs[$st]['list'][$num]['category_name'] = $cat->name_en;
- $programs[$st]['list'][$num]['height'] = $height;
- - $programs[$st]['list'][$num]['title'] = $prg['title'];
- + $programs[$st]['list'][$num]['title'] = getSimpleTitle($prg['title']);
- $programs[$st]['list'][$num]['starttime'] = date("H:i", $start )."" ;
- - $programs[$st]['list'][$num]['description'] = $prg['description'];
- + $programs[$st]['list'][$num]['ut_now'] = time();
- + $programs[$st]['list'][$num]['ut_start'] = strtotime($prg['starttime']);
- + $programs[$st]['list'][$num]['ut_end'] = strtotime($prg['endtime']);
- + $programs[$st]['list'][$num]['description'] = mb_convert_kana($prg['description'], "rn");
- $programs[$st]['list'][$num]['prg_start'] = str_replace( "-", "/", $prg['starttime']);
- $programs[$st]['list'][$num]['duration'] = "" . (toTimestamp($prg['endtime']) - toTimestamp($prg['starttime']));
- $programs[$st]['list'][$num]['channel'] = ($prg['type'] == "GR" ? "地上D" : "BS" ) . ":". $prg['channel'] . "ch";
- $programs[$st]['list'][$num]['id'] = "" . ($prg['id']);
- $programs[$st]['list'][$num]['rec'] = DBRecord::countRecords(RESERVE_TBL, "WHERE complete = '0' AND program_id = '".$prg['id']."'" );
- + $programs[$st]['list'][$num]['complate'] = DBRecord::countRecords(RESERVE_TBL, "WHERE complete = '1' AND program_id = '".$prg['id']."'" );
- +// 終了済?
- + $programs[$st]['list'][$num]['over'] = 0;
- + if ($programs[$st]['list'][$num]['ut_end']<$programs[$st]['list'][$num]['ut_now']) {
- + $programs[$st]['list'][$num]['over'] = 1;
- + }
- + $programs[$st]['list'][$num]['station_name'] = $crec->name;
- $num++;
- }
- }
- catch( exception $e ) {
- $num_ch++; // epgの無いチャンネル対応
- -// exit( $e->getMessage() );
- -// 何もしない
- }
- // 空きを埋める
- if( ($last_time - $prev_end) > 0 ) {
- @@ -164,61 +177,44 @@
- // タイプ選択
- $types = array();
- $i = 0;
- +if( $settings->gr_tuners != 0 ) {
- + $types[$i]['selected'] = $type == "GR" ? 'class="selected2"' : 'class="non_selected"';
- + $types[$i]['link'] = $_SERVER['SCRIPT_NAME'] . "?type=GR&length=".$program_length."&time=".date( "YmdH", $top_time);
- + $types[$i]['name'] = " 地デジ ";
- + $i++;
- +}
- if( $settings->bs_tuners != 0 ) {
- - $types[$i]['selected'] = $type == "BS" ? 'class="selected"' : "";
- + $types[$i]['selected'] = $type == "BS" ? 'class="selected2"' : 'class="non_selected"';
- $types[$i]['link'] = $_SERVER['SCRIPT_NAME'] . "?type=BS&length=".$program_length."&time=".date( "YmdH", $top_time);
- - $types[$i]['name'] = "BS";
- + $types[$i]['name'] = " BS ";
- $i++;
- // CS
- if ($settings->cs_rec_flg != 0) {
- - $types[$i]['selected'] = $type == "CS" ? 'class="selected"' : "";
- + $types[$i]['selected'] = $type == "CS" ? 'class="selected2"' : 'class="non_selected"';
- $types[$i]['link'] = $_SERVER['SCRIPT_NAME'] . "?type=CS&length=".$program_length."&time=".date( "YmdH", $top_time);
- - $types[$i]['name'] = "CS";
- + $types[$i]['name'] = " CS ";
- $i++;
- }
- }
- -if( $settings->gr_tuners != 0 ) {
- - $types[$i]['selected'] = $type == "GR" ? 'class="selected"' : "";
- - $types[$i]['link'] = $_SERVER['SCRIPT_NAME'] . "?type=GR&length=".$program_length."&time=".date( "YmdH", $top_time);
- - $types[$i]['name'] = "地上デジタル";
- - $i++;
- -}
- $smarty->assign( "types", $types );
- // 日付選択
- $days = array();
- $day = array();
- -$day['d'] = "昨日";
- -$day['link'] = $get_param . "&time=". date( "YmdH", time() - 3600 *24 );
- -$day['ofweek'] = "";
- -$day['selected'] = $top_time < mktime( 0, 0 , 0) ? 'class="selected"' : '';
- -
- -array_push( $days , $day );
- -$day['d'] = "現在";
- +$day['d'] = "今の時間";
- $day['link'] = $get_param;
- $day['ofweek'] = "";
- -$day['selected'] = "";
- +$day['selected'] = 'class="non_selected"';
- array_push( $days, $day );
- for( $i = 0 ; $i < 8 ; $i++ ) {
- $day['d'] = "".date("d", time() + 24 * 3600 * $i ) . "日";
- - $day['link'] = $get_param . "&time=".date( "Ymd", time() + 24 * 3600 * $i) . date("H" , $top_time );
- + $day['link'] = $get_param . "&time=".date( "Ymd", time() + 24 * 3600 * $i) . "00";
- $day['ofweek'] = $DAY_OF_WEEK[(int)date( "w", time() + 24 * 3600 * $i )];
- - $day['selected'] = date("d", $top_time) == date("d", time() + 24 * 3600 * $i ) ? 'class="selected"' : '';
- + $day['selected'] = date("d", $top_time) == date("d", time() + 24 * 3600 * $i ) ? 'class="selected2"' : 'class="non_selected"';
- array_push( $days, $day );
- }
- $smarty->assign( "days" , $days );
- -
- -// 時間選択
- -$toptimes = array();
- -for( $i = 0 ; $i < 24; $i+=4 ) {
- - $tmp = array();
- - $tmp['hour'] = sprintf( "%02d:00", $i );
- - $tmp['link'] = $get_param . "&time=".date("Ymd", $top_time ) . sprintf("%02d", $i );
- - array_push( $toptimes, $tmp );
- -}
- -$smarty->assign( "toptimes" , $toptimes );
- -
- $smarty->assign( "tvtimes", $tvtimes );
- $smarty->assign( "programs", $programs );
- $smarty->assign( "ch_set_width", (int)($settings->ch_set_width) );
- @@ -228,14 +224,19 @@
- $smarty->assign( "num_ch", $num_ch );
- $smarty->assign( "num_all_ch" , count( $channel_map ) );
- -// date("Y-m-d H:i:s", $timestamp);
- +// 端末種(PC/MOBILE)ごとにフォントサイズ設定
- +if ($detect->isMobile()) {
- + $smarty->assign("base_font_size", MOBILE_BASE_FONT_SIZE);
- + $smarty->assign("float_follows_font_size", MOBILE_FLOAT_FOLLOWS_FONT_SIZE);
- +} else {
- + $smarty->assign("base_font_size", PC_BASE_FONT_SIZE);
- + $smarty->assign("float_follows_font_size", PC_FLOAT_FOLLOWS_FONT_SIZE);
- +}
- -$sat_type = array('GR' => '地上デジタル', 'BS' => 'BSデジタル', 'CS' => 'CSデジタル');
- +$sat_type = array('GR' => '地上デジ', 'BS' => 'BS', 'CS' => 'CS');
- $sitetitle = date( "Y", $top_time ) . "年" . date( "m", $top_time ) . "月" . date( "d", $top_time ) . "日". date( "H", $top_time ) .
- "時~".$sat_type[$type]."番組表";
- -
- $smarty->assign("sitetitle", $sitetitle );
- -
- $smarty->assign("top_time", str_replace( "-", "/" ,toDatetime($top_time)) );
- $smarty->assign("last_time", str_replace( "-", "/" ,toDatetime($last_time)) );
- diff -urN epgrec.org/js/mdabasic.js epgrec/js/mdabasic.js
- --- epgrec.org/js/mdabasic.js 2017-07-22 02:33:25.000000000 +0900
- +++ epgrec/js/mdabasic.js 2017-07-20 17:14:40.000000000 +0900
- @@ -8,12 +8,12 @@
- return n;
- },
- time4Disp:function(T){
- - return '<span class="bold">' + parseInt(T.getMonth() + 1) + '</span><span class="small">月</span>' +
- - '<span class="bold">' + T.getDate() + '</span><span class="small">日</span>' +
- - '(<span class="bold">' + this.dayStr[T.getDay()] + '</span>) ' + this.time4DispH(T);
- + return '<span class="bold2">' + parseInt(T.getMonth() + 1) + '</span><span class="small">月</span>' +
- + '<span class="bold2">' + T.getDate() + '</span><span class="small">日</span>' +
- + '(<span class="bold2">' + this.dayStr[T.getDay()] + '</span>) ' + this.time4DispH(T);
- },
- time4DispH:function(T){
- - return '<span class="bold">' + this.num2str(T.getHours(),2) + ':' + this.num2str(T.getMinutes(),2) + '</span>'
- + return '<span class="bold2">' + this.num2str(T.getHours(),2) + ':' + this.num2str(T.getMinutes(),2) + '</span>'
- }
- }
- diff -urN epgrec.org/keywordTable.php epgrec/keywordTable.php
- --- epgrec.org/keywordTable.php 2017-07-22 02:33:25.000000000 +0900
- +++ epgrec/keywordTable.php 2017-07-23 10:46:45.000000000 +0900
- @@ -5,7 +5,9 @@
- include_once( INSTALL_PATH . "/reclib.php" );
- include_once( INSTALL_PATH . "/Reservation.class.php" );
- include_once( INSTALL_PATH . "/Keyword.class.php" );
- -// include_once( INSTALL_PATH . "/Settings.class.php" );
- +include_once( INSTALL_PATH . "/Rock_define.inc.php" );
- +require_once 'Mobile_Detect.php';
- +$detect = new Mobile_Detect;
- $weekofdays = array( "月", "火", "水", "木", "金", "土", "日", "なし" );
- @@ -42,8 +44,8 @@
- $keywords = array();
- try {
- $recs = Keyword::createRecords(KEYWORD_TBL);
- + $arr = array();
- foreach( $recs as $rec ) {
- - $arr = array();
- $arr['id'] = $rec->id;
- $arr['keyword'] = $rec->keyword;
- $arr['type'] = $rec->type == "*" ? "すべて" : $rec->type;
- @@ -61,13 +63,31 @@
- else $arr['category'] = 'すべて';
- $arr['use_regexp'] = $rec->use_regexp;
- -
- $arr['weekofday'] = $weekofdays["$rec->weekofday"];
- -
- $arr['prgtime'] = $prgtimes["$rec->prgtime"];
- -
- $arr['autorec_mode'] = $RECORD_MODE[(int)$rec->autorec_mode]['name'];
- + if ($arr['keyword'] == "*") {
- + $arr['keyword'] = $_POST['k_search'];
- + $arr['type'] = $_POST['k_type'] == "*" ? "すべて" : $_POST['k_type'];
- +
- + if( $_POST['k_station'] ) {
- + $crec = new DBRecord(CHANNEL_TBL, "id", $_POST['k_station'] );
- + $arr['channel'] = $crec->name;
- + }
- + else $arr['channel'] = 'すべて';
- +
- + if( $_POST['k_category'] ) {
- + $crec = new DBRecord(CATEGORY_TBL, "id", $_POST['k_category'] );
- + $arr['category'] = $crec->name_jp;
- + }
- + else $arr['category'] = 'すべて';
- +
- + $arr['use_regext'] = $_POST['k_use_regexp'];
- + $arr['weekofday'] = $weekofdays[$_POST['k_weekofday']];
- + $arr['prgtime'] = $prgtimes[$_POST['k_prgtime']];
- + $arr['autorec_mode'] = $RECORD_MODE[(int)$_POST['autorec_mode']]['name'];
- + }
- array_push( $keywords, $arr );
- }
- }
- @@ -78,6 +98,16 @@
- $smarty = new Smarty();
- $smarty->assign( "keywords", $keywords );
- -$smarty->assign( "sitetitle", "自動録画キーワードの管理" );
- +$smarty->assign( "sitetitle", "自動検索予約リスト" );
- +
- +// 端末種(PC/MOBILE)ごとにフォントサイズ設定
- +if ($detect->isMobile()) {
- + $smarty->assign("base_font_size", MOBILE_BASE_FONT_SIZE);
- + $smarty->assign("float_follows_font_size", MOBILE_FLOAT_FOLLOWS_FONT_SIZE);
- +} else {
- + $smarty->assign("base_font_size", PC_BASE_FONT_SIZE);
- + $smarty->assign("float_follows_font_size", PC_FLOAT_FOLLOWS_FONT_SIZE);
- +}
- +
- $smarty->display( "keywordTable.html" );
- -?>
- \ No newline at end of file
- +?>
- diff -urN epgrec.org/logViewer.php epgrec/logViewer.php
- --- epgrec.org/logViewer.php 2017-07-22 02:33:25.000000000 +0900
- +++ epgrec/logViewer.php 2017-07-23 11:04:09.000000000 +0900
- @@ -2,14 +2,26 @@
- include_once('config.php');
- include_once( INSTALL_PATH . '/DBRecord.class.php' );
- include_once( INSTALL_PATH . '/Smarty/Smarty.class.php' );
- +include_once( INSTALL_PATH . '/Rock_define.inc.php' );
- +require_once 'Mobile_Detect.php';
- +$detect = new Mobile_Detect;
- $arr = DBRecord::createRecords( LOG_TBL, " ORDER BY logtime DESC" );
- $smarty = new Smarty();
- -$smarty->assign( "sitetitle" , "epgrec動作ログ" );
- +$smarty->assign( "sitetitle" , "ログ" );
- $smarty->assign( "logs", $arr );
- +// 端末種(PC/MOBILE)ごとにフォントサイズ設定
- +if ($detect->isMobile()) {
- + $smarty->assign("base_font_size", MOBILE_BASE_FONT_SIZE);
- + $smarty->assign("float_follows_font_size", MOBILE_FLOAT_FOLLOWS_FONT_SIZE);
- +}else{
- + $smarty->assign("base_font_size", PC_BASE_FONT_SIZE);
- + $smarty->assign("float_follows_font_size", PC_FLOAT_FOLLOWS_FONT_SIZE);
- +}
- +
- $smarty->display( "logTable.html" );
- -?>
- \ No newline at end of file
- +?>
- diff -urN epgrec.org/programTable.php epgrec/programTable.php
- --- epgrec.org/programTable.php 2017-07-22 02:33:25.000000000 +0900
- +++ epgrec/programTable.php 2017-07-23 10:40:27.000000000 +0900
- @@ -4,6 +4,10 @@
- include_once( INSTALL_PATH . '/Smarty/Smarty.class.php' );
- include_once( INSTALL_PATH . '/Settings.class.php' );
- include_once( INSTALL_PATH . '/Keyword.class.php' );
- +include_once( INSTALL_PATH . '/Rock.inc.php' );
- +include_once( INSTALL_PATH . '/Rock_define.inc.php' );
- +require_once 'Mobile_Detect.php';
- +$detect = new Mobile_Detect;
- $settings = Settings::factory();
- @@ -63,7 +67,12 @@
- $do_keyword = 1;
- try{
- +$no_condition = 0;
- +if ($search == "" && $use_regexp == 0 && $type == "*" && $category_id == 0 && $channel_id == 0 && $weekofday == 7 && $prgtime == 24) {
- + $no_condition = 1;
- +} else {
- $precs = Keyword::search( $search, $use_regexp, $type, $category_id, $channel_id, $weekofday, $prgtime );
- +}
- $programs = array();
- foreach( $precs as $p ) {
- @@ -72,13 +81,17 @@
- $arr = array();
- $arr['type'] = $p->type;
- $arr['station_name'] = $ch->name;
- - $arr['starttime'] = $p->starttime;
- - $arr['endtime'] = $p->endtime;
- - $arr['title'] = $p->title;
- + $arr['starttime'] = getStartDateTime($p->starttime);
- + $arr['endtime'] = getEndTime($p->endtime);
- $arr['description'] = $p->description;
- $arr['id'] = $p->id;
- $arr['cat'] = $cat->name_en;
- $arr['rec'] = DBRecord::countRecords(RESERVE_TBL, "WHERE program_id='".$p->id."'");
- + $arr['ut_now'] = time();
- + $arr['ut_start'] = strtotime($p->starttime);
- + $arr['ut_end'] = strtotime($p->endtime);
- + $arr['search_key'] = getSearchKey($p->title);
- + $arr['title'] = getSimpleTitle($p->title);
- array_push( $programs, $arr );
- }
- @@ -104,7 +117,7 @@
- $types[0]['selected'] = $type == "*" ? "selected" : "";
- if( $settings->gr_tuners != 0 ) {
- $arr = array();
- - $arr['name'] = "GR";
- + $arr['name'] = "地デジ";
- $arr['value'] = "GR";
- $arr['selected'] = $type == "GR" ? "selected" : "";
- array_push( $types, $arr );
- @@ -155,7 +168,7 @@
- $smarty = new Smarty();
- - $smarty->assign("sitetitle","番組検索");
- + $smarty->assign( "sitetitle","キーワード検索");
- $smarty->assign("do_keyword", $do_keyword );
- $smarty->assign( "programs", $programs );
- $smarty->assign( "cats", $cats );
- @@ -175,9 +188,20 @@
- $smarty->assign( "autorec_modes", $autorec_modes );
- $smarty->assign( "prgtimes", $prgtimes );
- $smarty->assign( "prgtime", $prgtime );
- + $smarty->assign( "no_condition", $no_condition );
- +
- + // 端末種(PC/MOBILE)ごとにフォントサイズ設定
- + if ($detect->isMobile()) {
- + $smarty->assign("base_font_size", MOBILE_BASE_FONT_SIZE);
- + $smarty->assign("float_follows_font_size", MOBILE_FLOAT_FOLLOWS_FONT_SIZE);
- + } else {
- + $smarty->assign("base_font_size", PC_BASE_FONT_SIZE);
- + $smarty->assign("float_follows_font_size", PC_FLOAT_FOLLOWS_FONT_SIZE);
- + }
- +
- $smarty->display("programTable.html");
- }
- catch( exception $e ) {
- exit( $e->getMessage() );
- }
- -?>
- \ No newline at end of file
- +?>
- diff -urN epgrec.org/recordedTable.php epgrec/recordedTable.php
- --- epgrec.org/recordedTable.php 2017-07-22 02:33:25.000000000 +0900
- +++ epgrec/recordedTable.php 2017-07-23 11:03:01.000000000 +0900
- @@ -3,6 +3,10 @@
- include_once( INSTALL_PATH . '/DBRecord.class.php' );
- include_once( INSTALL_PATH . '/Smarty/Smarty.class.php' );
- include_once( INSTALL_PATH . '/Settings.class.php' );
- +include_once( INSTALL_PATH . '/Rock.inc.php' );
- +include_once( INSTALL_PATH . '/Rock_define.inc.php' );
- +require_once 'Mobile_Detect.php';
- +$detect = new Mobile_Detect;
- $settings = Settings::factory();
- @@ -30,7 +34,11 @@
- }
- }
- if( isset($_POST['category_id'])) {
- - if( $_POST['category_id'] != 0 ) {
- + if( $_POST['category_id'] == 13 ) {
- + $category_id = $_POST['category_id'];
- + $options .= " AND (category_id = '13' OR category_id = '14')";
- + }
- + else if( $_POST['category_id'] != 0 ) {
- $category_id = $_POST['category_id'];
- $options .= " AND category_id = '".$_POST['category_id']."'";
- }
- @@ -55,10 +63,16 @@
- $arr = array();
- $arr['id'] = $r->id;
- $arr['station_name'] = $ch->name;
- - $arr['starttime'] = $r->starttime;
- - $arr['endtime'] = $r->endtime;
- +// 開始時間取得
- + $arr['starttime'] = getStartDateTime($r->starttime);
- + $arr['ut_now'] = time();
- + $arr['ut_start'] = strtotime($r->starttime);
- + $arr['ut_end'] = strtotime($r->endtime);
- + $arr['endtime'] = getEndTime($r->endtime);
- $arr['asf'] = "".$settings->install_url."/viewer.php?reserve_id=".$r->id;
- - $arr['title'] = htmlspecialchars($r->title,ENT_QUOTES);
- + $arr['title'] = getSimpleTitle(htmlspecialchars($r->title,ENT_QUOTES));
- +
- +
- $arr['description'] = htmlspecialchars($r->description,ENT_QUOTES);
- $arr['thumb'] = "<img src=\"".$settings->install_url.$settings->thumbs."/".htmlentities($r->path, ENT_QUOTES,"UTF-8").".jpg\" />";
- $arr['cat'] = $cat->name_en;
- @@ -99,12 +113,21 @@
- $smarty = new Smarty();
- - $smarty->assign("sitetitle","録画済一覧");
- + $smarty->assign("sitetitle","録画済リスト");
- $smarty->assign( "records", $records );
- $smarty->assign( "search", $search );
- $smarty->assign( "stations", $stations );
- $smarty->assign( "cats", $cats );
- $smarty->assign( "use_thumbs", $settings->use_thumbs );
- +
- + // 端末種(PC/MOBILE)ごとにフォントサイズ設定
- + if ($detect->isMobile()) {
- + $smarty->assign("base_font_size", MOBILE_BASE_FONT_SIZE);
- + $smarty->assign("float_follows_font_size", MOBILE_FLOAT_FOLLOWS_FONT_SIZE);
- + } else {
- + $smarty->assign("base_font_size", PC_BASE_FONT_SIZE);
- + $smarty->assign("float_follows_font_size", PC_FLOAT_FOLLOWS_FONT_SIZE);
- + }
- $smarty->display("recordedTable.html");
- @@ -131,4 +154,4 @@
- return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . @$sz[$factor];
- }
- -?>
- \ No newline at end of file
- +?>
- diff -urN epgrec.org/redirect.php epgrec/redirect.php
- --- epgrec.org/redirect.php 1970-01-01 09:00:00.000000000 +0900
- +++ epgrec/redirect.php 2017-07-18 21:06:49.000000000 +0900
- @@ -0,0 +1,8 @@
- +<?php
- +$link = "https://movies.yahoo.co.jp/search/?query=";
- +if ($_SERVER["QUERY_STRING"] !== "") {
- + $link = $link.$_SERVER["QUERY_STRING"];
- +}
- +header("Location: {$link}");
- +exit;
- +?>
- diff -urN epgrec.org/reservationTable.php epgrec/reservationTable.php
- --- epgrec.org/reservationTable.php 2017-07-22 02:33:25.000000000 +0900
- +++ epgrec/reservationTable.php 2017-07-23 10:41:16.000000000 +0900
- @@ -2,34 +2,72 @@
- include_once('config.php');
- include_once( INSTALL_PATH . '/DBRecord.class.php' );
- include_once( INSTALL_PATH . '/Smarty/Smarty.class.php' );
- +include_once( INSTALL_PATH . "/Rock.inc.php" );
- +include_once( INSTALL_PATH . "/Rock_define.inc.php" );
- +require_once 'Mobile_Detect.php';
- +$detect = new Mobile_Detect;
- try{
- $rvs = DBRecord::createRecords(RESERVE_TBL, "WHERE complete='0' ORDER BY starttime ASC" );
- + $month = 0;
- + $day = 0;
- + $first_flg = 1;
- $reservations = array();
- foreach( $rvs as $r ) {
- $cat = new DBRecord(CATEGORY_TBL, "id", $r->category_id );
- $arr = array();
- $arr['id'] = $r->id;
- $arr['type'] = $r->type;
- - $arr['channel'] = $r->channel;
- - $arr['starttime'] = $r->starttime;
- - $arr['endtime'] = $r->endtime;
- + $ch_tbl = new DBRecord( CHANNEL_TBL, "channel_disc", $r->channel_disc );
- + $arr['channel'] = $ch_tbl->name;
- + $arr['starttime'] = getStartDateTime($r->starttime);
- + $arr['endtime'] = getEndTime($r->endtime);
- + $arr['ut_now'] = time();
- + $arr['ut_start'] = strtotime($r->starttime);
- + $arr['ut_end'] = strtotime($r->endtime);
- $arr['mode'] = $RECORD_MODE[$r->mode]['name'];
- - $arr['title'] = $r->title;
- + $arr['title'] = getSimpleTitle($r->title);
- + $arr['search_key'] = getSearchKey($r->title, $r->category_id);
- $arr['description'] = $r->description;
- $arr['cat'] = $cat->name_en;
- $arr['autorec'] = $r->autorec;
- +
- + // 日付変更チェック
- + $arr['change_day'] = 0;
- + $date_and_time = split(" ", $r->starttime);
- + $start_date = split("-", $date_and_time[0]);
- + if ($month != intval($start_date[1]) || $day != intval($start_date[2])) {
- + $month = intval($start_date[1]);
- + $day = intval($start_date[2]);
- + $arr['change_day'] = 1;
- + }
- + $arr['first_flg'] = $first_flg;
- + $arr['month'] = $month;
- + $arr['day'] = $day;
- + if ($first_flg == 1) {
- + $first_flg = 0;
- + }
- array_push( $reservations, $arr );
- }
- $smarty = new Smarty();
- - $smarty->assign("sitetitle","録画予約一覧");
- + $smarty->assign("sitetitle","予約リスト");
- $smarty->assign( "reservations", $reservations );
- +
- + // 端末種(PC/MOBILE)ごとにフォントサイズ設定
- + if ($detect->isMobile()) {
- + $smarty->assign("base_font_size", MOBILE_BASE_FONT_SIZE);
- + $smarty->assign("float_follows_font_size", MOBILE_FLOAT_FOLLOWS_FONT_SIZE);
- + } else {
- + $smarty->assign("base_font_size", PC_BASE_FONT_SIZE);
- + $smarty->assign("float_follows_font_size", PC_FLOAT_FOLLOWS_FONT_SIZE);
- + }
- +
- $smarty->display("reservationTable.html");
- }
- catch( exception $e ) {
- exit( $e->getMessage() );
- }
- -?>
- \ No newline at end of file
- +?>
- diff -urN epgrec.org/storeProgram.inc.php epgrec/storeProgram.inc.php
- --- epgrec.org/storeProgram.inc.php 2017-07-22 02:33:25.000000000 +0900
- +++ epgrec/storeProgram.inc.php 2017-07-23 02:13:54.000000000 +0900
- @@ -95,7 +95,8 @@
- reclog( "getepg::チャンネルレコード $channel_disc が発見できない", EPGREC_ERROR );
- }
- if( $channel_rec == null ) continue; // あり得ないことが起きた
- - if( $channel_rec->skip == 1 ) continue; // 受信しないチャンネル
- +// 全て受信する
- +// if( $channel_rec->skip == 1 ) continue; // 受信しないチャンネル
- $starttime = str_replace(" +0900", '', $program['start'] );
- $endtime = str_replace( " +0900", '', $program['stop'] );
- diff -urN epgrec.org/templates/envSetting.html epgrec/templates/envSetting.html
- --- epgrec.org/templates/envSetting.html 2017-07-22 02:33:25.000000000 +0900
- +++ epgrec/templates/envSetting.html 2017-07-18 21:46:37.000000000 +0900
- @@ -157,12 +157,13 @@
- <tr><td>%SID%</td><td>サービスID</td></tr>
- <tr><td>%DOW%</td><td>曜日(英3文字Sun-Mon)</td></tr>
- <tr><td>%DOWJ%</td><td>曜日(漢字1字日-土)</td></tr>
- - <tr><td>%YEAR%</td><td>開始年</td></tr>
- - <tr><td>%MONTH%</td><td>開始月</td></tr>
- - <tr><td>%DAY%</td><td>開始日</td></tr>
- - <tr><td>%HOUR%</td><td>開始時</td></tr>
- - <tr><td>%MIN%</td><td>開始分</td></tr>
- - <tr><td>%SEC%</td><td>開始秒</td></tr>
- + <tr><td>%YEAR%</td><td>開始年(YYYY)</td></tr>
- + <tr><td>%YEAR2%</td><td>開始年(YY)</td></tr>
- + <tr><td>%MONTH%</td><td>開始月(MM)</td></tr>
- + <tr><td>%DAY%</td><td>開始日(DD)</td></tr>
- + <tr><td>%HOUR%</td><td>開始時(hh)</td></tr>
- + <tr><td>%MIN%</td><td>開始分(mm)</td></tr>
- + <tr><td>%SEC%</td><td>開始秒(ss)</td></tr>
- <tr><td>%DURATION%</td><td>録画時間(秒)</td></tr>
- </tbody>
- </table>
- diff -urN epgrec.org/templates/index.html epgrec/templates/index.html
- --- epgrec.org/templates/index.html 2017-07-22 02:33:25.000000000 +0900
- +++ epgrec/templates/index.html 2017-07-23 11:23:43.000000000 +0900
- @@ -6,7 +6,7 @@
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>{$sitetitle}</title>
- <meta http-equiv="Content-Style-Type" content="text/css">
- -
- +<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=2.0,user-scalable=yes">
- {literal}
- <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
- @@ -29,12 +29,6 @@
- $(window).resize(function () { tvtimes2scrl();});
- function tvtimes2scrl(){
- var inwidth = parseInt($('body').innerWidth());
- - // IE6
- - if ($.browser.msie && $.browser.version == 6){ inwidth = document.documentElement.clientWidth;}
- - var newLeft = inwidth - parseInt($('#tvtimes2').width()) + parseInt($( document ).scrollLeft());
- - if(newLeft > t2max ) {newLeft = t2max}
- - $('#tvtimes2').css('left', newLeft);
- - $('#float_follows').width(inwidth);
- }
- }
- function prg_hover(){
- @@ -44,16 +38,29 @@
- var duration = parseInt(TG.children('.prg_duration').html());
- var endTime = new Date(startTime.getTime() + duration * 1000);
- var prgID = parseInt(TG.children('.prg_id').html());
- + var complate = TG.children('.prg_complate').html();
- + var over = TG.children('.prg_over').html();
- + var description = TG.children('.prg_desc').html();
- var str = '<div class="prg_title">' + TG.children('.prg_title').html() +'</div>' +
- - '<div class="prg_rec_cfg ui-corner-all"><div class="prg_channel"><span class=" labelLeft">チャンネル:</span><span class="bold">' + TG.children('.prg_channel').html() + '</span></div>' +
- - '<div class="prg_startTime" style="clear: left"><span class=" labelLeft">日時:</span>' + MDA.Days.time4Disp(startTime) + ' ~ ' + MDA.Days.time4DispH(endTime) + '</div>' +
- - '<div class="prg_duration" style="clear: left"><span class=" labelLeft">録画時間:</span><span class="bold">' + parseInt(duration / 60) +'</span>分' + ((duration % 60)>0?'<span class="bold">' + parseInt(duration % 60) + '</span>秒':'') + '</div>' +
- + '<div class="prg_rec_cfg ui-corner-all"><div class="prg_channel"><span class="labelLeft">チャンネル:</span><span class="bold2">' + TG.children('.prg_channel').html() + '</span></div>' +
- + '<div class="prg_startTime" style="clear: left"><span class="labelLeft">日時:</span>' + MDA.Days.time4Disp(startTime) + ' ~ ' + MDA.Days.time4DispH(endTime) + '</div>' +
- + '<div class="prg_duration" style="clear: left"><span class="labelLeft">録画時間:</span><span class="bold2">' + parseInt(duration / 60) +'</span>分' + ((duration % 60)>0?'<span>' + parseInt(duration % 60) + '</span>秒':'') + '</div>' +
- + '<div class="prg_desc" style="clear: left"><span class="labelLeft">番組内容:</span><span class="bold2">' + description + '</span></div>' +
- '</div>';
- if ($(this).hasClass('prg_rec')) {
- - str += '<div style="margin:2em 0 1em 0;text-align:center;"><a href="javascript:PRG.cancel(' + prgID + ')" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">予約キャンセル</a></div>';
- + if (complate == 1) {
- + str += '<div style="margin:2em 0 1em 0;text-align:center;"><a href="javascript:PRG.dialog_close();" id="cancel_btn" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">キャンセル</a></div>';//</div>';
- + } else {
- + str += '<div style="margin:2em 0 1em 0;text-align:center;"><a href="javascript:PRG.cancel(' + prgID + ')" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">予約取消</a> <a href="javascript:PRG.dialog_close();" id="cancel_btn" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">キャンセル</a></div>';//</div>';
- + }
- } else {
- - str += '<div style="margin:2em 0 1em 0;text-align:center;"><a href="javascript:PRG.rec(' + prgID + ')" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">簡易予約</a> <a href="javascript:PRG.customform(' + prgID + ')" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">予約カスタマイズ</a></div>';
- +// str += '<div style="margin:2em 0 1em 0;text-align:center;"><a href="javascript:PRG.rec(' + prgID + ')" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">簡易予約</a> <a href="javascript:PRG.customform(' + prgID + ')" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">予約カスタマイズ</a></div>';
- + if (over == 1) {
- + str += '<div style="margin:2em 0 1em 0;text-align:center;"><a href="javascript:PRG.dialog_close();" id="cancel_btn" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">キャンセル</a></div>';
- + } else {
- + str += '<div style="margin:2em 0 1em 0;text-align:center;"><a href="javascript:PRG.rec(' + prgID + ')" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">録画予約</a> <a href="javascript:PRG.dialog_close();" id="cancel_btn" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">キャンセル</a></div>';
- + }
- }
- $('#floatBox4Dialog').html(str);
- $('#floatBox4Dialog').dialog('open', 'center');
- @@ -68,17 +75,21 @@
- var duration = parseInt(TG.children('.prg_duration').html());
- var endTime = new Date(startTime.getTime() + duration * 1000);
- var str = '<div class="prg_title">' + TG.children('.prg_title').html() + '</div>' +
- - '<div class="prg_desc"><span class="prg_sub">' + TG.children('.prg_channel').html() + ':' + MDA.Days.time4Disp(startTime) + '~' + MDA.Days.time4DispH(endTime) + ' </span>' + TG.children('.prg_desc').html() + '</div>';
- - $('#prg_info').html('<div class="prg_dummy">' + str + '</div>').show();
- + '<div class="prg_desc"><span class="prg_sub">' + TG.children('.prg_channel').html() + ':' + MDA.Days.time4Disp(startTime) + '~' + MDA.Days.time4DispH(endTime) + ' </span>' + TG.children('.prg_desc').html() + '<br><img src="/imgs/reserve.gif"></div>';
- $(this).click(aClick);
- },
- function(){
- - $(this).removeClass('prg_hover');$('#prg_info').hide();
- $(this).unbind('click',aClick);
- }
- );
- }
- var PRG = {
- + dialog_close:function() {
- + $('#floatBox4Dialog').dialog('close');
- + },
- + channel_dialog_close:function() {
- + $('#channelDialog').dialog('close');
- + },
- chdialog:function(chash){
- $('#channelDialog').dialog('close');
- var skip = $('#ch_title_'+chash+' .ch_skip').html();
- @@ -100,9 +111,10 @@
- str += '<input type="checkbox" name="n_skip_name" id="id_ch_skip" value="'+skip+'" />';
- }
- str += '</span></div>';
- + str += '<div class="prg_title"><span></span></div>';
- // サービスID
- str += '<div class="prg_channel"><span class="labelLeft">サービスID:</span>';
- - str += '<span><input type="text" name="n_sid" size="20" id="id_sid" value="';
- + str += '<span><input type="text" readonly="readonly" name="n_sid" size="20" id="id_sid" value="';
- str += sid;
- str += '" /></span></div>';
- @@ -115,8 +127,8 @@
- str += '</form>';
- -
- - str += '<div style="margin:2em 0 1em 0;text-align:center;"><a href="javascript:PRG.chupdate()" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">更新</a></div>';
- +
- + str += '<div style="margin:2em 0 1em 0;text-align:center;"><a href="javascript:PRG.chupdate()" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">更新</a> <a href="javascript:PRG.channel_dialog_close();" id="cancel_btn" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">キャンセル</a></div>';
- $('#channelDialog').html(str);
- $('#channelDialog').dialog('open', 'center');
- @@ -171,6 +183,7 @@
- $('#floatBox4Dialog').dialog('close');
- }else{
- $('#prgID_' + id).addClass('prg_rec');
- + $('#prg_rec_msg_' + id).html('<br>録画予約<br><br>');
- $('#floatBox4Dialog').dialog('close');
- }
- });
- @@ -183,6 +196,7 @@
- $('#floatBox4Dialog').dialog('close');
- }else{
- $('#prgID_' + id).removeClass('prg_rec');
- + $('#prg_rec_msg_' + id).html('');
- $('#floatBox4Dialog').dialog('close');
- }
- });
- @@ -253,9 +267,9 @@
- },
- F_Skip: 1,
- chSkipShow:function() {
- - $('#float_titles').width(INISet.num_all_ch * INISet.ch_width + 80);
- + $('#float_titles').width(INISet.num_all_ch * INISet.ch_width + 61);
- $('#tv_chs').width(INISet.num_all_ch * INISet.ch_width );
- - $('#tvtimes2').css( { left: INISet.num_all_ch * INISet.ch_width + 40 } ).show();
- + $('#tvtimes2').css( { left: INISet.num_all_ch * INISet.ch_width + 31 } ).show();
- tvtimes_scroll();
- $('#ch_title_bar div.ch_title_skip').show();
- $('#tv_chs div.ch_set_skip').show();
- @@ -264,9 +278,9 @@
- chSkipHide:function() {
- $('#ch_title_bar div.ch_title_skip').hide();
- $('#tv_chs div.ch_set_skip').hide();
- - $('#float_titles').width( INISet.num_ch * INISet.ch_width + 80 );
- + $('#float_titles').width( INISet.num_ch * INISet.ch_width + 61 );
- $('#tv_chs').width( INISet.num_ch * INISet.ch_width );
- - $('#tvtimes2').css( { left: INISet.num_ch * INISet.ch_width + 40 }).show();
- + $('#tvtimes2').css( { left: INISet.num_ch * INISet.ch_width + 31 }).show();
- tvtimes_scroll();
- nowBar.INI();
- },
- @@ -329,7 +343,7 @@
- $('#tvtable').append('<div id="' + this.defaultID + '" style="display:none">now</div>');
- this.startTime = new Date(INISet.tableStartTime);
- this.endTime = new Date(INISet.tableEndTime);
- - $('#' + this.defaultID).width($('#float_titles').width());
- + $('#' + this.defaultID).width($('#float_titles').width() - 4);
- this.ch();
- }
- },
- @@ -337,7 +351,6 @@
- var now = new Date();
- if(this.startTime){
- if((now >= this.startTime) && (this.endTime >= now)){
- -// console.log((now - this.startTime) / 60000);
- $('#' + this.defaultID).css({top:(now - this.startTime) / 60000 * INISet.dotMin}).show()
- } else {
- $('#' + this.defaultID).hide()
- @@ -352,13 +365,11 @@
- defaultCk:{md:'',x:0,y:0},
- jqSel:[{sel:'#jump-time a.jump',md:'x'},{sel:'#jump-day a.jump',md:'xy'},{sel:'#jump-day a.jump-today',md:'x'},{sel:'#jump-broadcast a.jump',md:'y'}],
- INI:function(){
- -// this.defaultCk.y = $('#float_titles').position().top;
- $.each(this.jqSel, function(){
- var md = this.md;
- $(this.sel).click(function(){MDA.SCR.oCk(md)})
- });
- var Ck = this.CkGet();
- -// console.log(Ck);
- var x = (Ck.md.indexOf('x')>-1)?Ck.x:this.defaultCk.x;
- var y = (Ck.md.indexOf('y')>-1)?Ck.y:this.defaultCk.y;
- if (Ck.md) {
- @@ -409,9 +420,8 @@
- DG2.dialog({title:'チャンネル情報',width:480});
- DG2.dialog('close');
- -// PRG.toggle();
- -
- nowBar.INI();
- + setInterval("nowBar.INI()", 60000);
- CTG.INI();
- MDA.SCR.INI(); // 番組表の位置保存
- });
- @@ -421,39 +431,57 @@
- <style type="text/css">
- <!--
- -body {padding:0;margin:0;font-size:10pt;}
- +* {
- + word-break: break-all;
- + -webkit-text-size-adjust: none;
- + -webkit-overflow-scrolling: touch;
- + -webkit-touch-callout:none;
- + -webkit-user-select:none;
- +}
- +
- +html {
- + -webkit-text-size-adjust: none;
- + background-color: #888ca0;
- + background: #888ca0;
- + color: #02262f;
- + font-family: HiraKakuProN-W3;
- + font-size: 6.25%;
- + line-height: 1.25;
- +}
- +
- +body {padding:0;margin:0;font-size:12pt;background-color: #888ca0;}
- a {text-decoration:none;}
- .bold {font-weight:bold;}
- .small {font-size:75%;}
- -h2 {padding: 4px}
- +#float_titles {position:absolute;background-color:#888ca0;}
- -#float_titles {position:absolute;background-image: url(imgs/trancBG50.png);}
- -
- -#float_titles div.set.ctg_sel {background-color:#BBB;color:#3CF}
- +#float_titles div.set.ctg_sel {background-color:#bbb;color:#3CF}
- #float_titles .ctg_sel a{color:#111;}
- -#float_titles div.set {float:left;background-color:#444;padding:4px;margin:4px;}
- +#float_titles div.set {float:left;background-color:#888ca0;padding:0px;margin:5px;}
- #float_titles span.title {float:left;color:#ACF;}
- -#float_titles ul {float:left;padding:0;margin:0;}
- -#float_titles ul li {float:left;list-style:none;margin:0 0 0 4px;}
- -#float_titles li a{padding:1px 4px;background-color:#555;color:#FFF;}
- -#float_titles li.selected a{background-color:#48B;}
- -#float_titles li a:hover{background-color:#28D;}
- +#float_titles ul {float:left;padding:0px;margin:0px;}
- +#float_titles ul li {float:left;list-style:none;margin:5px 2px 0px 0px; }
- +#float_titles li a{padding:6px 10px;background-color:#8696c0;color:#e8e8ec;border: 1px solid #505080;}
- +#float_titles li.selected a{background-color:#c6d8fe; font-weight:bold; color:#444;}
- +#float_titles li.non_selected a{background-color:#b2b4c0; font-weight:bold; color:#444;}
- +#float_titles li.selected2 a{background-color:#ffffff; font-weight:bold; color:#000;}
- #float_titles, #tvtable {}
- #tvtable {line-height:1.2em;width:100%;position:relative;}
- -#tvtimes,#tvtimes2 {position:absolute; background-image: url(imgs/trancBG70.png);}
- -#tvtimes,#tvtimes2, .tvtimeDM {width:40px;}
- -#tv_chs {padding-left:40px;padding-right:40px;}
- +#tvtimes,#tvtimes2 {position:absolute; background-color: #d4d6e0; font-size: 12px;}
- +#tvtimes,#tvtimes2, .tvtimeDM {width:30px;}
- +#tv_chs {padding-left:30px;padding-right:30px;}
- .tvtime {
- height:{/literal}{$height_per_hour}{literal}px;
- - color:#EEE;
- + color:#444;
- text-align:center;
- font-weight:bold;
- + font-size: 9px;
- font-size:120%;
- - background-image: url(imgs/dot2.gif);
- + border-bottom: 1px solid #888ca0;
- background-repeat: repeat-x;
- background-position: left bottom;
- }
- @@ -477,43 +505,48 @@
- #tvtable div.prg {
- overflow:hidden;
- color:#444;
- - background-image: url(imgs/dot2.gif);
- - background-image: url(imgs/prg_bg2.png);
- background-repeat: repeat-x;
- background-position: left bottom;
- - -moz-border-radius: 0.6em 0.6em 0.3em 0.3em;
- - -webkit-border-radius: 0.6em;
- - -webkit-border-bottom-right-radius: 0.3em;
- - -webkit-border-bottom-left-radius: 0.3em;
- + margin: 0px;
- + padding: 0px;
- + border-left: 1px solid #888ca0;
- + border-bottom: 1px solid #888ca0;
- }
- -#tvtable div.prg_none {background-color:#eee;}
- +#tvtable div.prg_none {background-color:#aaaaaa;}
- #tvtable div.prg_dummy {margin:3px 6px;}
- -#tvtable div.prg_title {color:#111;font-weight:bold;}
- -#tvtable div.prg_subtitle {font-size:80%;}
- -#tvtable div.prg_desc {font-size:80%;}
- +#tvtable div.prg_title {color:#5068d4;font-weight:bold;text-decoration: underline;line-height: 1.5;}
- +#tvtable div.prg_subtitle {color:#444;font-weight:bold;margin-bottom:4px;}
- +#tvtable div.prg_desc {font-size:85%; color:#444; margin-top: 5px;line-height: 1.5;}
- +#float_titles.* {font-size:14px;}
- #tvtable div.prg_start,#tvtable div.prg_duration,#tvtable div.prg_channel ,#tvtable div.prg_id {display: none;}
- -#tvtable div.ctg_news, #category_select a.ctg_news {background-color: #FFFFD8;}
- -#tvtable div.ctg_etc, #category_select a.ctg_etc {background-color: #FFFFFF;}
- -#tvtable div.ctg_information, #category_select a.ctg_information {background-color: #F2D8FF;}
- -#tvtable div.ctg_sports, #category_select a.ctg_sports {background-color: #D8FFFF;}
- -#tvtable div.ctg_cinema, #category_select a.ctg_cinema {background-color: #FFD8D8;}
- -#tvtable div.ctg_music, #category_select a.ctg_music {background-color: #D8D8FF;}
- -#tvtable div.ctg_drama, #category_select a.ctg_drama {background-color: #D8FFD8;}
- -#tvtable div.ctg_anime, #category_select a.ctg_anime {background-color: #FFE4C8;}
- -#tvtable div.ctg_variety, #category_select a.ctg_variety {background-color: #FFD2EB;}
- -#tvtable div.ctg_10, #category_select a.ctg_10 {background-color: #E4F4F4;}
- +#tvtable div.ctg_news, #category_select a.ctg_news {background-color: #d4ffc8;}
- +#tvtable div.ctg_etc, #category_select a.ctg_etc {background-color: #ccfcf4;}
- +#tvtable div.ctg_information, #category_select a.ctg_information {background-color: #f0f0f0;}
- +#tvtable div.ctg_sports, #category_select a.ctg_sports {background-color: #ffccef;}
- +#tvtable div.ctg_cinema, #category_select a.ctg_cinema {background-color: #ccfcf4;}
- +#tvtable div.ctg_music, #category_select a.ctg_music {background-color: #b6f2ff;}
- +#tvtable div.ctg_drama, #category_select a.ctg_drama {background-color: #ffbbbb;}
- +#tvtable div.ctg_anime, #category_select a.ctg_anime {background-color: #dcddff;}
- +#tvtable div.ctg_variety, #category_select a.ctg_variety {background-color: #faffb0;}
- +#tvtable div.ctg_documentary, #category_select a.ctg_documentary {background-color: #f0f0f0;}
- +#tvtable div.ctg_hobby, #category_select a.ctg_hobby {background-color: #f8f8ff;}
- +#tvtable div.ctg_stage, #category_select a.ctg_stage {background-color: #e0f0f9;}
- +#tvtable div.ctg_welfare, #category_select a.ctg_welfare {background-color: #e0e0e0;}
- +#tvtable div.ctg_10, #category_select a.ctg_10 {background-color: #f0f0f0;}
- #tvtable div.ctg-hide, #category_select a.ctg-hide {background-color: #F8F8F8;color:#888;}
- #tvtable div.ctg-hide .prg_title, #category_select a.ctg-hide .prg_title{color:#666;}
- -#tvtable div.prg_rec {background-color: #F55;color:#FEE}
- -#tvtable div.prg_rec .prg_title,#tvtable div.prg_hover .prg_title {color:white;}
- -#tvtable div.prg_hover {background-color: #28D;color:#EFF}
- +#tvtable div.prg_rec {background-color: #ff7080;color:#333}
- +#tvtable div.prg_rec .prg_title,#tvtable .prg_title {color:#2840d4;}
- +#tvtable div.prg_rec_msg {font-weight:bold; text-align:center;}
- +.ctg_over {background-color: #aaaaaa;}
- +#jump-time { display: none; }
- +.ctg_sel { display: none; }
- #float_titles { z-index:100}
- #float_titles div.ch_title {width:{/literal}{$ch_set_width}{literal}px;float:left;color:#FFF;font-weight:bold;text-align:center}
- -#float_titles div.ch_title div{padding:8px 0px;margin:0 6px 0 4px;background-image: url(imgs/trancBG50.png);}
- -
- +#float_titles div.ch_title div{padding:8px 0px;margin:0 0px 0 0px;background-color: #f8f9fa; color: #484850;border-left: 1px solid #888ca0;border-bottom: 1px solid #888ca0;}
- #float_follows {position:absolute;}
- #prg_info {
- @@ -529,7 +562,7 @@
- #prg_info div.prg_title {font-weight:bold;font-size:120%;color:#FFF;}
- #prg_info span.prg_sub {color:#FFF;}
- -#tableNowBas {position:absolute;background:red;width:100%;top:190px;height:2px;overflow:hidden;}
- +#tableNowBas {position:absolute;width:100%;top:190px;height:0px;overflow:hidden; border: 2px dashed #ff5555; opacity: 0.5;}
- #floatBox4Dialog .prg_title{font-size:120%;font-weight:bold;padding:0.4em 0;text-align:center;}
- @@ -542,7 +575,6 @@
- #channelDialog .prg_rec_cfg{background:#EEE;padding:1em 2em;margin:0.4em 0;}
- #channelDialog .labelLeft {width:8em;float:left;text-align:right;}
- #channelDialog .button {padding:0.4em 1em;}
- -
- -->
- </style>
- @@ -552,21 +584,13 @@
- </head>
- -<body>
- -
- -<h2>{$sitetitle}</h2>
- -
- -
- -<div id="float_titles" style="width: {math equation="x + 80" x=$chs_width}px;height:120px;">
- -<div id="float_follows">
- -
- -<div class="set">
- - <ul>
- - <li><a href="envSetting.php">環境設定</a></li>
- - </ul>
- -</div>
- +<body style="font-size:{$base_font_size}pt">
- +<div id="float_titles" style="width: {math equation="x + 61" x=$chs_width}px;height:120px;">
- +<div id="float_follows" style="font-size: {$float_follows_font_size}px;">
- +<!-- upper -->
- <div class="set ctg_sel" id="category_select">
- + <!--強調表示はcssで非表示に -->
- <span class="title"><a href="javascript:CTG.toggle()">強調表示</a></span>
- <ul>
- @@ -576,56 +600,51 @@
- </ul>
- </div>
- +<div class="set">
- + <ul>
- + <li class="selected"><a href="#">番組表</a></li>
- + <li><a href="reservationTable.php">予約リスト</a></li>
- + <li><a href="programTable.php">キーワード検索</a></li>
- + <li><a href="keywordTable.php">自動検索予約リスト</a></li>
- + <li><a href="recordedTable.php">録画済リスト</a></li>
- + <li><a href="logViewer.php">ログ</a></li>
- + <li><a href="envSetting.php">設定</a></li>
- + </ul>
- +</div>
- +<!-- upper end -->
- +
- +<br style="clear:left;" />
- +
- +<!-- lower start -->
- <div id="time_selects">
- + <!-- 放送波選択-->
- <div class="set" id="jump-broadcast" >
- - <span class="title">放送波選択</span>
- <ul>
- {foreach from=$types item=type}
- - <li {$type.selected}><a class="jump" href="{$type.link}">{$type.name}</a></li>
- + <li {$type.selected}><a class="jump2" href="{$type.link}">{$type.name}</a></li>
- {/foreach}
- - </ul><br style="clear:left;" />
- - </div>
- -
- - <div class="set" id="jump-time">
- - <span class="title">時間</span>
- - <ul>
- - {foreach from=$toptimes item=top}
- - <li><a class="jump" href="{$top.link}">{$top.hour}~</a></li>
- - {/foreach}
- - </ul><br style="clear:left;" />
- - </div>
- -
- - <div class="set">
- - <ul><li><a class="jump" href="javascript:PRG.toggle()">チャンネル表示</a></li></ul>
- + </ul>
- </div>
- -
- - <br style="clear:left;" />
- -
- <div class="set">
- - <ul>
- - <li><a href="programTable.php">番組検索</a></li>
- - <li><a href="reservationTable.php">録画予約一覧</a></li>
- - <li><a href="recordedTable.php">録画済一覧</a></li>
- - </ul>
- + <ul><li><a class="jump" href="javascript:PRG.toggle()" style="background-color:#d4d6e0; color: #444; font-weight: bold;">表示切替</a></li></ul>
- </div>
- + <!-- 日付 -->
- <div class="set" id="jump-day" >
- - <span class="title">日付</span>
- <ul>
- {foreach from=$days item=day}
- - <li {$day.selected}><a {if $day.d eq "現在"} class="jump-today" {else} class="jump" {/if} href="{$day.link}">{$day.d}{$day.ofweek}</a></li>
- + <li {$day.selected}><a {if $day.d eq "今の時間"} class="jump-today" {else} class="jump2" {/if} href="{$day.link}">{$day.d}{$day.ofweek}</a></li>
- {/foreach}
- </ul><br style="clear:left;" />
- </div>
- -
- -
- </div>
- +
- <br style="clear:left;" />
- <div id="prg_info"><div class="dummy">test</div></div>
- </div>
- -<!-- チャンネル局名 -->
- +<!-- チャンネル局名ヘッダー -->
- <div id="ch_title_bar" style="position:absolute;bottom:0;">
- <div class="tvtimeDM" style="float:left;"> </div>
- {foreach from=$programs item=program}{if isset($program.ch_hash)}
- @@ -635,7 +654,7 @@
- <div class="ch_skip">{$program.skip}</div>
- <div class="ch_sid">{$program.sid}</div>
- <div class="ch_name">{$program.station_name}</div>
- - <div id="ch_title_str_{$program.ch_hash}" {if $program.skip == 1}class="ch_skip_color" {/if} style="cursor: pointer;" onClick="javascript:PRG.chdialog('{$program.ch_hash}')" >{$program.station_name}</div>
- + <div style="font-size: 90%;" id="ch_title_str_{$program.ch_hash}" {if $program.skip == 1}class="ch_skip_color" {/if} style="cursor: pointer;" onClick="javascript:PRG.chdialog('{$program.ch_hash}')" >{$program.station_name}</div>
- </div>
- {else}
- <div class="ch_title"><div style="font-style:italic">no epg</div></div>
- @@ -648,12 +667,10 @@
- <div id="float_titles_dummy" style="width:1410px;height:120px;"> </div>
- -
- <div id="tvtable">
- -
- <div id="tvtimes">
- {foreach from=$tvtimes item=time}
- - <div class="tvtime">{$time}</div>
- + <div class="tvtime"><br>{$time}<br>時</div>
- {/foreach}
- </div>
- @@ -664,36 +681,41 @@
- {else}
- <div class="ch_set"><div class="ch_programs">
- {/if}{foreach from=$program.list item=item}{if isset($item.id)}
- - <div {if $item.id}id="prgID_{$item.id}"{/if} class="prg {if ! $item.id}prg_none {/if} ctg_{$item.category_name}{if $item.rec gt 0} prg_rec{/if}" style="height:{$item.height}px;">
- + <div {if $item.id}id="prgID_{$item.id}"{/if} class="prg {if ! $item.id}prg_none {/if} ctg_{if $item.over == 1}over{else}{$item.category_name}{/if}{if $item.rec gt 0 || $item.complate} prg_rec{/if}" style="height:{$item.height}px;">
- <div class="prg_dummy">
- - <div class="prg_title">{$item.title|escape}</div>
- <div class="prg_subtitle">{$item.starttime}</div>
- - <div class="prg_desc">{$item.description|escape}</div>
- - <div class="prg_channel">{$item.channel}</div>
- + <div class="prg_rec_msg" id="prg_rec_msg_{$item.id}">{if $item.rec gt 0 || $item.complate gt 0}{if $item.ut_start < $item.ut_now && $item.ut_now < $item.ut_end && $item.complate == 0}<br>録画中<br><br>{else if $item.complate > 0}<br>録画終了<br><br>{else}<br>録画予約<br><br>{/if}{/if}</div>
- + <div class="prg_title">{$item.title|escape}</div>
- + <div class="prg_desc" style="{if $item.duration < 30*60}display: none;{/if}">{$item.description|escape}</div>
- + <div>{if $item.ut_now < $item.ut_end}<img src="/imgs/reserve.gif" style="margin-top: 6px;">{/if}</div>
- + <!--<div class="prg_channel">{$item.channel}</div>-->
- + <div class="prg_channel">{$item.station_name}</div>
- <div class="prg_start">{$item.prg_start}</div>
- <div class="prg_duration">{$item.duration}</div>
- + <div class="prg_complate" style="display: none;">{$item.complate}</div>
- + <div class="prg_over" style="display: none;">{$item.over}</div>
- <div class="prg_id">{$item.id}</div>
- </div>
- </div>
- {else}
- - <div class="prg prg_none ctg_none"{if isset($item.height)} style="height:{$item.height}px;"{/if}><div class="prg_dummy"><div class="prg_title"> </div></div></div>
- + <div class="prg prg_none ctg_none"{if isset($item.height)} style="height:{$item.height}px;"{/if}><div class="prg_dummy"><div class="prg_title"></div></div></div>
- {/if}{/foreach}
- </div>
- </div>
- {/foreach}
- </div>
- - <div id="tvtimes2" style="top : 0px; left: {math equation="x + 40" x=$chs_width}px" >
- + <div id="tvtimes2" style="top : 0px; left: {math equation="x + 31" x=$chs_width}px" >
- {foreach from=$tvtimes item=time}
- - <div class="tvtime">{$time}</div>
- + <div class="tvtime"><br>{$time}<br>時</div>
- {/foreach}
- </div>
- </div>
- -<div id="floatBox4Dialog">jQuery UI Dialog</div>
- -<div id="channelDialog">jQuery UI Dialog</div>
- +<div id="floatBox4Dialog"></div>
- +<div id="channelDialog"></div>
- {literal}
- <script type="text/javascript">
- diff -urN epgrec.org/templates/keywordTable.html epgrec/templates/keywordTable.html
- --- epgrec.org/templates/keywordTable.html 2017-07-22 02:33:25.000000000 +0900
- +++ epgrec/templates/keywordTable.html 2017-07-23 02:06:17.000000000 +0900
- @@ -4,7 +4,8 @@
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- -<title>{$sitetitle}</title>
- +<title>{$sitetitle}/{$kw}</title>
- +<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=2.0,user-scalable=yes">
- <meta http-equiv="Content-Style-Type" content="text/css">
- {literal}
- @@ -24,91 +25,146 @@
- </script>
- <style type="text/css">
- <!--
- -body {padding:4px;margin:0;font-size:10pt;}
- +* {
- + word-break: break-all;
- + -webkit-text-size-adjust: none;
- + -webkit-overflow-scrolling: touch;
- + -webkit-touch-callout:none;
- + -webkit-user-select:none;
- +}
- +
- +html {
- + -webkit-text-size-adjust: none;
- + background-color: #888ca0;
- + background: #888ca0;
- + color: #02262f;
- + font-family: HiraKakuProN-W3;
- + font-size: 6.25%;
- + line-height: 1.25;
- +}
- +body {padding:0px;margin:0;font-size:12pt;background-color: #888ca0;}
- a {text-decoration:none;}
- table#reservation_table {
- - width: 800px;
- + font-size: 95%;
- border: 1px #BBB solid;
- border-collapse: collapse;
- border-spacing: 0;
- }
- table#reservation_table th {
- - padding: 5px;
- - border: #E3E3E3 solid;
- - border-width: 0 0 1px 1px;
- - background: #BBB;
- + padding:5px;
- + border: #BBB solid;
- + border-width: 1px 1px 1px 1px;
- + background: #70c69a;
- + color: #fff;
- font-weight: bold;
- line-height: 120%;
- text-align: center;
- }
- table#reservation_table td {
- - padding: 5px;
- + padding-top: 15px;
- + padding-bottom: 15px;
- + padding-left: 5px;
- + padding-right: 5px;
- border: 1px #BBB solid;
- border-width: 0 0 1px 1px;
- text-align: center;
- }
- +table#reservation_table tr:nth-child(2n) {
- + background: #f0f0f8;
- +}
- +table#reservation_table tr:nth-child(2n+1) {
- + background: #f8f8ff;
- +}
- +input[type="submit"] {
- + background-image: linear-gradient(0deg, #a7d9f5, #eaf6fd);
- + border: 1px solid #3c7fb1;
- + border-radius: 0.3em;
- +}
- +input[type="button"] {
- + background-image: linear-gradient(0deg, #a7d9f5, #eaf6fd);
- + border: 1px solid #3c7fb1;
- + border-radius: 0.3em;
- +}
- -table#reservation_table tr.ctg_news, #category_select a.ctg_news {background-color: #FFFFD8;}
- -table#reservation_table tr.ctg_etc, #category_select a.ctg_etc {background-color: #FFFFFF;}
- -table#reservation_table tr.ctg_information, #category_select a.ctg_information {background-color: #F2D8FF;}
- -table#reservation_table tr.ctg_sports, #category_select a.ctg_sports {background-color: #D8FFFF;}
- -table#reservation_table tr.ctg_cinema, #category_select a.ctg_cinema {background-color: #FFD8D8;}
- -table#reservation_table tr.ctg_music, #category_select a.ctg_music {background-color: #D8D8FF;}
- -table#reservation_table tr.ctg_drama, #category_select a.ctg_drama {background-color: #D8FFD8;}
- -table#reservation_table tr.ctg_anime, #category_select a.ctg_anime {background-color: #FFE4C8;}
- -table#reservation_table tr.ctg_variety, #category_select a.ctg_variety {background-color: #FFD2EB;}
- -table#reservation_table tr.ctg_10, #category_select a.ctg_10 {background-color: #E4F4F4;}
- -table#reservation_table tr.prg_rec {background-color: #F55;color:#FEE}
- +#float_titles div.set {float:left;background-color:#888ca0;padding:0px;margin:5px;}
- +#float_titles ul {float:left;padding:0px;margin:0px;}
- +#float_titles ul li {float:left;list-style:none;margin:5px 2px 0px 0px; }
- +#float_titles li a{padding:6px 10px;background-color:#8696c0;color:#e8e8ec;border: 1px solid #505080;}
- +#float_titles li.selected a{background-color:#c6d8fe; font-weight:bold; color:#444;}
- +
- +table {
- + background-color:#ececf0;
- + margin-top: 10px;
- + margin-left: 10px;
- + margin-bottom: 10px;
- + padding:10px;
- +}
- +tr {
- + padding: 0px;
- + border: 1px solid #bbb;
- +}
- +td {
- + padding: 0px;
- +}
- +.mode {display: none;}
- -->
- </style>
- {/literal}
- </head>
- -<body>
- -
- -<h2>{$sitetitle}</h2>
- -
- -
- -<div><a href="programTable.php">番組検索へ</a>/<a href="reservationTable.php">予約一覧へ</a></div>
- +<body style="font-size:{$base_font_size}pt">
- +<div id="float_titles" style="font-size: {$float_follows_font_size}px;">
- + <div class="set">
- + <ul>
- + <li><a href="/">番組表</a></li>
- + <li><a href="reservationTable.php">予約リスト</a></li>
- + <li><a href="programTable.php">キーワード検索</a></li>
- + <li class="selected"><a href="keywordTable.php">自動検索予約リスト</a></li>
- + <li><a href="recordedTable.php">録画済リスト</a></li>
- + <li><a href="logViewer.php">ログ</a></li>
- + <li><a href="envSetting.php">設定</a></li>
- + </ul>
- + </div>
- +</div>
- +<br style="clear:left;">
- +<br>
- {if count($keywords)}
- <table id="reservation_table">
- <tr>
- - <th>id</th>
- + <th>自動<br>ID</th>
- <th>検索語句</th>
- - <th>正規表現</th>
- + <th>正規<br>表現</th>
- <th>種別</th>
- - <th>局</th>
- + <th>チャンネル</th>
- <th>カテゴリ</th>
- <th>曜日</th>
- <th>開始時</ht>
- - <th>録画モード</th>
- <th>削除</th>
- </tr>
- {foreach from=$keywords item=keyword}
- <tr id="keyid_{$keyword.id}">
- - <td><a href="recordedTable.php?key={$keyword.id}">{$keyword.id}</a></td>
- - <td><a href="recordedTable.php?key={$keyword.id}">{$keyword.keyword|escape}</a></td>
- - <td>{if $keyword.use_regexp}使う{else}使わない{/if}</td>
- - <td>{$keyword.type}</td>
- - <td>{$keyword.channel}</td>
- - <td>{$keyword.category}</td>
- - <td>{$keyword.weekofday}</td>
- - <td>{$keyword.prgtime}</td>
- - <td>{$keyword.autorec_mode}</td>
- - <td><input type="button" value="削除" onClick="javascript:PRG.delkey('{$keyword.id}')" /></td>
- + <td style="vertical-align: top; min-width: 60px;"><a href="recordedTable.php?key={$keyword.id}">{$keyword.id}</a></td>
- + <td style="vertical-align: top; text-align:left; width: 350px;"><a href="recordedTable.php?key={$keyword.id}" style="color:#5068d4;text-decoration: underline;">{$keyword.keyword|escape}</a></td>
- + <td style="vertical-align: top; min-width: 80px;">{if $keyword.use_regexp}使う{else}使わない{/if}</td>
- + <td style="vertical-align: top; min-width: 80px;">{$keyword.type}</td>
- + <td style="vertical-align: top; text-align:left; width: 170px;">{$keyword.channel}</td>
- + <td style="vertical-align: top; text-align:left; width: 150px;">{$keyword.category}</td>
- + <td style="vertical-align: top; min-width: 60px;">{$keyword.weekofday}</td>
- + <td style="vertical-align: top; min-width: 80px;">{$keyword.prgtime}</td>
- + <td style="min-width: 60px;"><input type="button" value="削除" onClick="javascript:PRG.delkey('{$keyword.id}')" /></td>
- </tr>
- {/foreach}
- </table>
- {else}
- - キーワードはありません
- + <div style="margin-left: 30px; margin-top: 30px;">キーワードはありません</div>
- {/if}
- diff -urN epgrec.org/templates/logTable.html epgrec/templates/logTable.html
- --- epgrec.org/templates/logTable.html 2017-07-22 02:33:25.000000000 +0900
- +++ epgrec/templates/logTable.html 2017-07-23 02:06:45.000000000 +0900
- @@ -4,17 +4,37 @@
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- +<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=2.0,user-scalable=yes">
- <title>{$sitetitle}</title>
- <meta http-equiv="Content-Style-Type" content="text/css">
- +<meta http-equiv="Content-Style-Type" content="text/css">
- {literal}
- <style type="text/css">
- <!--
- -body {padding:4px;margin:0;font-size:10pt;}
- +* {
- + word-break: break-all;
- + -webkit-text-size-adjust: none;
- + -webkit-overflow-scrolling: touch;
- + -webkit-touch-callout:none;
- + -webkit-user-select:none;
- +}
- +
- +html {
- + -webkit-text-size-adjust: none;
- + background-color: #888ca0;
- + background: #888ca0;
- + color: #02262f;
- + font-family: HiraKakuProN-W3;
- + font-size: 6.25%;
- + line-height: 1.25;
- +}
- +
- +body {padding:0;margin:0;font-size:12pt;background-color: #888ca0;}
- a {text-decoration:none;}
- table#log_table {
- - width: 800px;
- + font-size: 95%;
- border: 1px #BBB solid;
- border-collapse: collapse;
- border-spacing: 0;
- @@ -22,54 +42,118 @@
- table#log_table th {
- padding: 5px;
- - border: #E3E3E3 solid;
- - border-width: 0 0 1px 1px;
- - background: #BBB;
- + border: #BBB solid;
- + border-width: 1px 1px 1px 1px;
- + background: #6060a0;
- + color: #fff;
- font-weight: bold;
- line-height: 120%;
- text-align: center;
- }
- table#log_table td {
- - padding: 5px;
- + padding-top: 15px;
- + padding-bottom: 15px;
- + padding-left: 5px;
- + padding-right: 5px;
- border: 1px #BBB solid;
- border-width: 0 0 1px 1px;
- - text-align: center;
- + text-align: left;
- }
- -table#log_table td.errorlevel0 {background-color: #FFFFFF;}
- +table#log_table td.errorlevel0 {background-color: #e0e0e0;}
- table#log_table td.errorlevel1 {background-color: yellow;}
- table#log_table td.errorlevel2 {background-color: red;}
- +table#reservation_table tr:nth-child(2n) {
- + background: #f0f0f8;
- +}
- +table#reservation_table tr:nth-child(2n+1) {
- + background: #f8f8ff;
- +}
- +input[type="submit"] {
- + background-image: linear-gradient(0deg, #a7d9f5, #eaf6fd);
- + border: 1px solid #3c7fb1;
- + border-radius: 0.3em;
- +}
- +input[type="button"] {
- + background-image: linear-gradient(0deg, #a7d9f5, #eaf6fd);
- + border: 1px solid #3c7fb1;
- + border-radius: 0.3em;
- +}
- +input { font-size:90%; }
- +select { font-size:90%; }
- +
- +
- +
- +#float_titles div.set {float:left;background-color:#888ca0;padding:0px;margin:5px;}
- +#float_titles ul {float:left;padding:0px;margin:0px;}
- +#float_titles ul li {float:left;list-style:none;margin:5px 2px 0px 0px; }
- +#float_titles li a{padding:6px 10px;background-color:#8696c0;color:#e8e8ec;border: 1px solid #505080;}
- +#float_titles li.selected a{background-color:#c6d8fe; font-weight:bold; color:#444;}
- +
- +table {
- + background-color:#ececf0;
- + margin-top: 10px;
- + margin-left: 10px;
- + margin-bottom: 10px;
- + padding:10px;
- +}
- +tr {
- + padding: 0px;
- + border: 1px solid #BBB;
- +}
- +td {
- + padding: 0px;
- +}
- +
- +
- -->
- </style>
- {/literal}
- </head>
- -<body>
- +<body style="font-size:{$base_font_size}pt">
- -<h2>{$sitetitle}</h2>
- -
- -<div><a href="index.php">番組表に戻る</a></div>
- +<div id="float_titles" style="font-size: {$float_follows_font_size}px;">
- + <div class="set">
- + <ul>
- + <li><a href="/">番組表</a></li>
- + <li><a href="reservationTable.php">予約リスト</a></li>
- + <li><a href="programTable.php">キーワード検索</a></li>
- + <li><a href="keywordTable.php">自動検索予約リスト</a></li>
- + <li><a href="recordedTable.php">録画済リスト</a></li>
- + <li class="selected"><a href="logViewer.php">ログ</a></li>
- + <li><a href="envSetting.php">設定</a></li>
- + </ul>
- + </div>
- +</div>
- +<br style="clear:left;">
- +<br>
- +{if count($logs)}
- <table id="log_table">
- <tr>
- - <th>レベル</th>
- - <th>日時</th>
- - <th>内容</th>
- + <th style="vertical-align: middle; height: 28px;">レベル</th>
- + <th style="vertical-align: middle;">日時</th>
- + <th style="vertical-align: middle;">内容</th>
- </tr>
- {foreach from=$logs item=log}
- <tr>
- - <td class="errorlevel{$log->level}">
- + <td style="vertical-align: top; text-align: center; width: 80px;" class="errorlevel{$log->level}">
- {if $log->level == 0}情報
- {elseif $log->level == 1}警告
- {elseif $log->level == 2}エラー
- {/if}
- </td>
- - <td>{$log->logtime}</td>
- - <td>{$log->message|escape}</td>
- + <td style="vertical-align: top; text-align: left; width: 120px;">{str_replace(" ", "<br>", $log->logtime)}</td>
- + <td style="vertical-align: top; width: 900px;">{str_replace("】", "]", str_replace("【", "[", mb_convert_kana($log->message|escape, "rn")))}</td>
- </tr>
- {/foreach}
- +{else}
- + <div style="margin-left: 30px; margin-top: 30px;">ログはありません</div>
- +{/if}
- +
- </body>
- </html>
- diff -urN epgrec.org/templates/programTable.html epgrec/templates/programTable.html
- --- epgrec.org/templates/programTable.html 2017-07-22 02:33:25.000000000 +0900
- +++ epgrec/templates/programTable.html 2017-07-23 11:11:20.000000000 +0900
- @@ -6,6 +6,7 @@
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>{$sitetitle}</title>
- <meta http-equiv="Content-Style-Type" content="text/css">
- +<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=2.0,user-scalable=yes">
- {literal}
- <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
- @@ -14,12 +15,35 @@
- <script type="text/javascript" src="js/mdabasic.js"></script>
- <script type="text/javascript">
- var PRG = {
- + cancel:function(id){
- + $.get(INISet.prgCancelURL, { program_id: id } ,function(data){
- + $('#eraseDialog').html('キャンセル中......');
- + $('#eraseDialog').dialog('open','center');
- + if(data.match(/^error/i)){
- + $('#eraseDialog').dialog('close');
- + alert(data);
- + }
- + else {
- + //$('#resid_' + id ).hide();
- + $('#resid_' + id).removeClass('prg_rec');
- + $('#reserve_btn_' + id).val("予約");
- + $('#reserve_btn_' + id).get(0).onclick = "";
- + $('#reserve_btn_' + id).unbind('click');
- + $('#reserve_btn_' + id).bind('click', function() {PRG.rec(id)});
- + $('#eraseDialog').dialog('close');
- + }
- + });
- + },
- rec:function(id){
- $.get(INISet.prgRecordURL, { program_id: id } ,function(data){
- if(data.match(/^error/i)){
- alert(data);
- }else{
- $('#resid_' + id).addClass('prg_rec');
- + $('#reserve_btn_' + id).val("取消");
- + $('#reserve_btn_' + id).get(0).onclick = "";
- + $('#reserve_btn_' + id).unbind('click');
- + $('#reserve_btn_' + id).bind('click', function() {PRG.cancel(id)});
- }
- });
- },
- @@ -97,11 +121,30 @@
- </script>
- <style type="text/css">
- <!--
- -body {padding:4px;margin:0;font-size:10pt;}
- +* {
- + word-break: break-all;
- + -webkit-text-size-adjust: none;
- + -webkit-overflow-scrolling: touch;
- + -webkit-touch-callout:none;
- + -webkit-user-select:none;
- +}
- +
- +html {
- + -webkit-text-size-adjust: none;
- + background-color: #888ca0;
- + background: #888ca0;
- + color: #02262f;
- + font-family: HiraKakuProN-W3;
- + font-size: 6.25%;
- + line-height: 1.25;
- +}
- +
- +body {padding:0px;margin:0;font-size:12pt;background-color: #888ca0;}
- a {text-decoration:none;}
- +form {margin-bottom: 10px;}
- table#reservation_table {
- - width: 800px;
- + font-size: 95%;
- border: 1px #BBB solid;
- border-collapse: collapse;
- border-spacing: 0;
- @@ -109,154 +152,196 @@
- table#reservation_table th {
- padding: 5px;
- - border: #E3E3E3 solid;
- - border-width: 0 0 1px 1px;
- - background: #BBB;
- + border: #BBB solid;
- + border-width: 1px 1px 1px 1px;
- + background: #dea480;
- + color: #fff;
- font-weight: bold;
- line-height: 120%;
- text-align: center;
- }
- table#reservation_table td {
- - padding: 5px;
- + padding-top: 15px;
- + padding-bottom: 15px;
- + padding-left: 5px;
- + padding-right: 5px;
- border: 1px #BBB solid;
- border-width: 0 0 1px 1px;
- text-align: center;
- }
- +table#reservation_table tr:nth-child(2n) {
- + background: #f0f0f8;
- +}
- +table#reservation_table tr:nth-child(2n+1) {
- + background: #f8f8ff;
- +}
- +input[type="submit"] {
- + background-image: linear-gradient(0deg, #a7d9f5, #eaf6fd);
- + border: 1px solid #3c7fb1;
- + border-radius: 0.3em;
- +}
- +input[type="button"] {
- + background-image: linear-gradient(0deg, #a7d9f5, #eaf6fd);
- + border: 1px solid #3c7fb1;
- + border-radius: 0.3em;
- +}
- +input { font-size:90%; }
- +select { font-size:90%; }
- -table#reservation_table tr.ctg_news, #category_select a.ctg_news {background-color: #FFFFD8;}
- -table#reservation_table tr.ctg_etc, #category_select a.ctg_etc {background-color: #FFFFFF;}
- -table#reservation_table tr.ctg_information, #category_select a.ctg_information {background-color: #F2D8FF;}
- -table#reservation_table tr.ctg_sports, #category_select a.ctg_sports {background-color: #D8FFFF;}
- -table#reservation_table tr.ctg_cinema, #category_select a.ctg_cinema {background-color: #FFD8D8;}
- -table#reservation_table tr.ctg_music, #category_select a.ctg_music {background-color: #D8D8FF;}
- -table#reservation_table tr.ctg_drama, #category_select a.ctg_drama {background-color: #D8FFD8;}
- -table#reservation_table tr.ctg_anime, #category_select a.ctg_anime {background-color: #FFE4C8;}
- -table#reservation_table tr.ctg_variety, #category_select a.ctg_variety {background-color: #FFD2EB;}
- -table#reservation_table tr.ctg_10, #category_select a.ctg_10 {background-color: #E4F4F4;}
- -table#reservation_table tr.prg_rec {background-color: #F55;color:#FEE}
- +table#reservation_table tr.prg_rec {background-color: #ff7080;color:#333}
- +table#reservation_table tr.prg_rec .prg_title,#tvtable .prg_title {color:#2840d4;}
- +table#reservation_table tr.prg_rec_msg {font-weight:bold; text-align:center;}
- #floatBox4Dialog .prg_title{font-size:120%;font-weight:bold;padding:0.4em 0;text-align:center;}
- #floatBox4Dialog .prg_rec_cfg{background:#EEE;padding:1em 2em;margin:0.4em 0;}
- #floatBox4Dialog .labelLeft {width:8em;float:left;text-align:right;}
- #floatBox4Dialog .button {padding:0.4em 1em;}
- -
- -
- +#float_titles div.set {float:left;background-color:#888ca0;padding:0px;margin:5px;}
- +#float_titles ul {float:left;padding:0px;margin:0px;}
- +#float_titles ul li {float:left;list-style:none;margin:5px 2px 0px 0px; }
- +#float_titles li a{padding:6px 10px;background-color:#8696c0;color:#e8e8ec;border: 1px solid #505080;}
- +#float_titles li.selected a{background-color:#c6d8fe; font-weight:bold; color:#444;}
- +
- +table {
- + background-color:#ececf0;
- + margin-top: 10px;
- + margin-left: 10px;
- + margin-bottom: 10px;
- + padding:10px;
- +}
- +tr {
- + padding: 0px;
- + border: 1px solid #bbb;
- +}
- +td {
- + padding: 0px;
- + line-height: 150%;
- +}
- +.details { display: none;}
- +.kind { display: none;}
- -->
- +select { font-size: 100%;}
- </style>
- {/literal}
- </head>
- -<body>
- -
- -<h2>{$sitetitle}</h2>
- -
- -
- -
- -<div><a href="index.php">番組表に戻る</a>/<a href="keywordTable.php">自動録画キーワード管理へ</a></div>
- +<body style="font-size:{$base_font_size}pt">
- +<div id="float_titles" style="font-size: {$float_follows_font_size}px;">
- + <div class="set">
- + <ul>
- + <li><a href="/">番組表</a></li>
- + <li><a href="reservationTable.php">予約リスト</a></li>
- + <li class="selected"><a href="programTable.php">キーワード検索</a></li>
- + <li><a href="keywordTable.php">自動検索予約リスト</a></li>
- + <li><a href="recordedTable.php">録画済リスト</a></li>
- + <li><a href="logViewer.php">ログ</a></li>
- + <li><a href="envSetting.php">設定</a></li>
- + </ul>
- + </div>
- +</div>
- +<br style="clear:left;">
- <div>
- -絞り込み:
- +<!--絞り込み:-->
- <form method="post" action="programTable.php">
- <input type="hidden" name="do_search" value="1" />
- -検索語句<input type="text" size="20" name="search" value="{$search}" /><br />
- -正規表現使用<input type="checkbox" name="use_regexp" value="1" {if $use_regexp}checked{/if} />
- -種別<select name="type">
- +<table>
- +<tr><td> 検索語句</td><td><input type="text" size="20" name="search" value="{$search}" /> <input type="checkbox" name="use_regexp" value="1" {if $use_regexp}checked{/if} />正規表現を使う</td></tr>
- +<tr><td>種別</td><td><select name="type">
- {foreach from=$types item=type}
- <option value="{$type.value}" {$type.selected}>{$type.name}</option>
- {/foreach}
- </select>
- -局<select name="station">
- +</td></tr>
- +<tr><td>チャンネル</td><td><select name="station">
- {foreach from=$stations item=st}
- <option value="{$st.id}" {$st.selected}>{$st.name}</option>
- {/foreach}
- </select>
- -カテゴリ<select name="category_id">
- +</td></tr>
- +<tr><td>カテゴリ</td><td><select name="category_id">
- {foreach from=$cats item=cat}
- <option value="{$cat.id}" {$cat.selected}>{$cat.name}</option>
- {/foreach}
- </select>
- -開始時<select name="prgtime">
- +</td></tr>
- +<tr><td>開始時</td><td><select name="prgtime">
- {foreach from=$prgtimes item=prgt}
- <option value="{$prgt.value}" {$prgt.selected}>{$prgt.name}</option>
- {/foreach}
- </select>
- -
- -曜日<select name='weekofday'>
- +</td></tr>
- +<tr><td>曜日</td><td><select name='weekofday'>
- {foreach from=$weekofdays item=day}
- <option value="{$day.id}" {$day.selected}>{$day.name}</option>
- {/foreach}
- </select>
- -<input type="submit" value="絞り込む" />
- +</td></tr>
- +<tr><td colspan=2 align=center>
- +<input type="submit" value=" 検索 " />
- +</td></tr>
- +</table>
- </form>
- </div>
- -
- +{if $programs|@count < 3000 && $no_condition == 0}
- +<form method="post" action="keywordTable.php" style="margin-left: 20px;">
- + <input type="hidden" name="add_keyword" value="{$do_keyword}" />
- + <input type="hidden" name="k_use_regexp" value="{$use_regexp}" />
- + <input type="hidden" name="k_search" value="{$search}" />
- + <input type="hidden" name="k_type" value="{$k_type}" />
- + <input type="hidden" name="k_category" value="{$k_category}" />
- + <input type="hidden" name="k_station" value="{$k_station}" />
- + <input type="hidden" name="k_weekofday" value={$weekofday} />
- + <input type="hidden" name="k_prgtime" value={$prgtime} />
- + <input type="hidden" name="autorec_mode" value="1">
- + {$programs|@count}件 : <input type="submit" value="この条件を自動検索予約リストに登録" />
- +</form>
- +{/if}
- {if count($programs)}
- <table id="reservation_table">
- <tr>
- - <th>種別</th>
- - <th>局名</th>
- - <th>番組開始</th>
- - <th>番組終了</th>
- + <th>放送日時</th>
- + <th>チャンネル</th>
- <th>タイトル</th>
- <th>内容</th>
- - <th>簡易録画</th>
- - <th>詳細録画</th>
- + <th>録画<br>予約</th>
- </tr>
- {foreach from=$programs item=program}
- - <tr id="resid_{$program.id}" class="ctg_{$program.cat}{if $program.rec > 0} prg_rec{/if}">
- - <td>{$program.type}</td>
- - <td>{$program.station_name}</td>
- - <td>{$program.starttime}</td>
- - <td>{$program.endtime}</td>
- - <td>{$program.title|escape}</td>
- - <td>{$program.description|escape}</td>
- - <td><input type="button" value="録画" onClick="javascript:PRG.rec('{$program.id}')" /></td>
- - <td><input type="button" value="詳細" onClick="javascript:PRG.customform('{$program.id}')" /></td>
- + <tr id="resid_{$program.id}" class="ctg_{$program.cat}{if $program.rec > 0} prg_rec{/if}">
- + <td style="vertical-align: top; text-align: left; min-width: 120px;">{$program.starttime}〜{$program.endtime}</td>
- + <td style="vertical-align: top; text-align: left; min-width: 170px;">{$program.station_name}</td>
- +{if $program.search_key != ""}
- + <td style="vertical-align: top; text-align: left; width: 350px;"><a href="/redirect.php?{$program.search_key}" target="_blank" style="color:#5068d4;text-decoration: underline;">{$program.title|escape}</a> {if $program.ut_start < $program.ut_now && $program.ut_now < $program.ut_end}<b>[録画中]</b>{/if}</td>
- +{else}
- + <td style="vertical-align: top; text-align: left; width: 350px;">{$program.title|escape} {if $program.ut_start < $program.ut_now && $program.ut_now < $program.ut_end}<b>[録画中]</b>{/if}</td>
- +{/if}
- + <td style="vertical-align: top; text-align: left; width: 500px;">{mb_convert_kana($program.description|escape, "rn")}</td>
- +{if $program.rec > 0}
- + <td style="vertical-align: middle; min-width: 60px;"><input id="reserve_btn_{$program.id}" type="button" value="取消" onclick="javascript:PRG.cancel('{$program.id}')"></td>
- +{else}
- + <td style="vertical-align: middle; min-width: 60px;"><input id="reserve_btn_{$program.id}" type="button" value="予約" onclick="javascript:PRG.rec('{$program.id}')"></td>
- +{/if}
- </tr>
- {/foreach}
- </table>
- {else}
- - 該当する番組はありません
- + <div style="margin-left: 30px; margin-top: 30px;">{if $no_condition == 0}該当する番組はありません{else}検索条件を指定してください{/if}</div>
- {/if}
- -<div>{$programs|@count}件ヒット</div>
- -{if count($programs) >= 300}<div>表示最大300件まで</div>{/if}
- +{if count($programs) >= 3000}<div>表示最大3000件まで</div>{/if}
- {if $do_keyword}
- -{if (count($programs) < 300)}
- +{if (count($programs) < 3000)}
- <div>
- -<form method="post" action="keywordTable.php">
- - <b>語句:</b>{$search|escape}
- - <b>正規表現:</b>{if $use_regexp}使う{else}使わない{/if}
- - <b>種別:</b>{if $k_type == "*"}すべて{else}{$k_type}{/if}
- - <b>局:</b>{if $k_station == 0}すべて{else}{$k_station_name}{/if}
- - <b>カテゴリ:</b>{if $k_category == 0}すべて{else}{$k_category_name}{/if}
- - <b>曜日:</b>{if $weekofday == 7}なし{else}{$k_weekofday}曜{/if}
- - <b>時間:</b>{if $prgtime == 24}なし{else}{$prgtime}時~{/if}
- - <b>件数:</b>{$programs|@count}
- - <input type="hidden" name="add_keyword" value="{$do_keyword}" />
- - <input type="hidden" name="k_use_regexp" value="{$use_regexp}" />
- - <input type="hidden" name="k_search" value="{$search}" />
- - <input type="hidden" name="k_type" value="{$k_type}" />
- - <input type="hidden" name="k_category" value="{$k_category}" />
- - <input type="hidden" name="k_station" value="{$k_station}" />
- - <input type="hidden" name="k_weekofday" value={$weekofday} />
- - <input type="hidden" name="k_prgtime" value={$prgtime} />
- - <b>録画モード:</b><select name="autorec_mode" >
- - {foreach from=$autorec_modes item=mode name=recmode}
- - <option value="{$smarty.foreach.recmode.index}" {$mode.selected} >{$mode.name}</option>
- - {/foreach}
- - </select>
- - <br><input type="submit" value="この絞り込みを自動録画キーワードに登録" />
- - </form>
- +
- </div>
- {/if}
- {/if}
- -<div id="floatBox4Dialog">jQuery UI Dialog</div>
- +<div id="floatBox4Dialog"></div>
- {literal}
- <script type="text/javascript">
- diff -urN epgrec.org/templates/recordedTable.html epgrec/templates/recordedTable.html
- --- epgrec.org/templates/recordedTable.html 2017-07-22 02:33:25.000000000 +0900
- +++ epgrec/templates/recordedTable.html 2017-07-23 11:11:26.000000000 +0900
- @@ -6,6 +6,7 @@
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>{$sitetitle}</title>
- <meta http-equiv="Content-Style-Type" content="text/css">
- +<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=2.0,user-scalable=yes">
- {literal}
- <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
- @@ -14,12 +15,14 @@
- <script type="text/javascript">
- <!--
- var PRG = {
- -
- + dialog_close:function() {
- + $('#floatBox4Dialog').dialog('close');
- + },
- dialog:function(id, title){
- $('#floatBox4Dialog').dialog({title:'削除',width:500});
- var str = '<div class="prg_title">' + title + 'を削除します</div>';
- str += '<form><div style="text-align:center;">録画ファイルも削除する<input type="checkbox" id="delete_file" name="delete_file" value="1" /></div></form>';
- - str +='<div style="margin:2em 0 1em 0;text-align:center;"><a href="javascript:PRG.rec(' + id + ')" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">この録画を本当に削除する</a></div>';
- + str +='<div style="margin:2em 0 1em 0;text-align:center;"><a href="javascript:PRG.rec(' + id + ')" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">この録画を本当に削除する</a> <a href="javascript:PRG.dialog_close();" id="cancel_btn" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">キャンセル</a></div>';
- $('#floatBox4Dialog').html(str);
- $('#floatBox4Dialog').dialog('open', 'center');
- },
- @@ -37,7 +40,6 @@
- alert(data);
- }
- else {
- -// alert(data);
- $('#resid_' + id ).hide();
- $('#floatBox4Dialog').dialog('close');
- }
- @@ -50,7 +52,7 @@
- str += '<input type="hidden" name="reserve_id" id="id_reserve_id" value="' + id + '" />';
- str += '<div><span class="labelLeft">タイトル</span><input name="title" id="id_title" size="30" value="'+ $('#tid_' + id ).html() + '" /></div>';
- str += '<div><span class="labelLeft">概要</span><textarea name="description" id="id_description" cols="30" rows="5" >' + $('#did_' + id ).html() + '</textarea></div>';
- - str += '<div style="margin:2em 0 1em 0;text-align:center;"><a href="javascript:PRG.edit()" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">変更する</a></div>';
- + str += '<div style="margin:2em 0 1em 0;text-align:center;"><a href="javascript:PRG.edit()" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">変更する</a> <a href="javascript:PRG.dialog_close();" id="cancel_btn" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">キャンセル</a></div>';
- $('#floatBox4Dialog').html(str);
- $('#floatBox4Dialog').dialog('open','center');
- @@ -85,7 +87,25 @@
- </script>
- <style type="text/css">
- <!--
- -body {padding:4px;margin:0;font-size:10pt;}
- +* {
- + word-break: break-all;
- + -webkit-text-size-adjust: none;
- + -webkit-overflow-scrolling: touch;
- + -webkit-touch-callout:none;
- + -webkit-user-select:none;
- +}
- +
- +html {
- + -webkit-text-size-adjust: none;
- + background-color: #888ca0;
- + background: #888ca0;
- + color: #02262f;
- + font-family: HiraKakuProN-W3;
- + font-size: 6.25%;
- + line-height: 1.25;
- +}
- +
- +body {padding:0px;margin:0;font-size:12pt;background-color: #888ca0;}
- a {text-decoration:none;}
- .bold {font-weight:bold;}
- @@ -94,7 +114,7 @@
- a img {border:none; }
- table#reservation_table {
- - width: 960px;
- + font-size: 95%;
- border: 1px #BBB solid;
- border-collapse: collapse;
- border-spacing: 0;
- @@ -102,31 +122,41 @@
- table#reservation_table th {
- padding: 5px;
- - border: #E3E3E3 solid;
- - border-width: 0 0 1px 1px;
- - background: #BBB;
- + color: #fff;
- + border: #BBB solid;
- + border-width: 1px 1px 1px 1px;
- + background: #e8687a;
- font-weight: bold;
- line-height: 120%;
- text-align: center;
- }
- table#reservation_table td {
- - padding: 5px;
- + padding-top: 15px;
- + padding-bottom: 15px;
- + padding-left: 5px;
- + padding-right: 5px;
- border: 1px #BBB solid;
- border-width: 0 0 1px 1px;
- text-align: center;
- }
- -
- -table#reservation_table tr.ctg_news, #category_select a.ctg_news {background-color: #FFFFD8;}
- -table#reservation_table tr.ctg_etc, #category_select a.ctg_etc {background-color: #FFFFFF;}
- -table#reservation_table tr.ctg_information, #category_select a.ctg_information {background-color: #F2D8FF;}
- -table#reservation_table tr.ctg_sports, #category_select a.ctg_sports {background-color: #D8FFFF;}
- -table#reservation_table tr.ctg_cinema, #category_select a.ctg_cinema {background-color: #FFD8D8;}
- -table#reservation_table tr.ctg_music, #category_select a.ctg_music {background-color: #D8D8FF;}
- -table#reservation_table tr.ctg_drama, #category_select a.ctg_drama {background-color: #D8FFD8;}
- -table#reservation_table tr.ctg_anime, #category_select a.ctg_anime {background-color: #FFE4C8;}
- -table#reservation_table tr.ctg_variety, #category_select a.ctg_variety {background-color: #FFD2EB;}
- -table#reservation_table tr.ctg_10, #category_select a.ctg_10 {background-color: #E4F4F4;}
- -
- +table#reservation_table tr:nth-child(2n) {
- + background: #f0f0f8;
- +}
- +table#reservation_table tr:nth-child(2n+1) {
- + background: #f8f8ff;
- +}
- +input[type="submit"] {
- + background-image: linear-gradient(0deg, #a7d9f5, #eaf6fd);
- + border: 1px solid #3c7fb1;
- + border-radius: 0.3em;
- +}
- +input[type="button"] {
- + background-image: linear-gradient(0deg, #a7d9f5, #eaf6fd);
- + border: 1px solid #3c7fb1;
- + border-radius: 0.3em;
- +}
- +input { font-size:90%; }
- +select { font-size:100%; }
- #floatBox4Dialog .prg_title{font-size:120%;font-weight:bold;padding:0.4em 0;text-align:center;}
- #floatBox4Dialog .prg_rec_cfg{background:#EEE;padding:1em 2em;margin:0.4em 0;}
- @@ -134,72 +164,105 @@
- #floatBox4Dialog .button {padding:0.4em 1em;}
- +#float_titles div.set {float:left;background-color:#888ca0;padding:0px;margin:5px;}
- +#float_titles ul {float:left;padding:0px;margin:0px;}
- +#float_titles ul li {float:left;list-style:none;margin:5px 2px 0px 0px; }
- +#float_titles li a{padding:6px 10px;background-color:#8696c0;color:#e8e8ec;border: 1px solid #505080;}
- +#float_titles li.selected a{background-color:#c6d8fe; font-weight:bold; color:#444;}
- +
- +table {
- + background-color:#ececf0;
- + margin-top: 10px;
- + margin-left: 10px;
- + margin-bottom: 10px;
- + padding:10px;
- +}
- +tr {
- + padding: 0px;
- + border: 1px solid #BBB;
- +}
- +td {
- + padding: 0px;
- + line-height: 150%;
- +}
- -->
- </style>
- {/literal}
- </head>
- -<body>
- -
- -<h2>{$sitetitle}</h2>
- +<body style="font-size:{$base_font_size}pt">
- -<p><a href="index.php">番組表に戻る</a></p>
- +<div id="float_titles" style="font-size: {$float_follows_font_size}px;">
- + <div class="set">
- + <ul>
- + <li><a href="/">番組表</a></li>
- + <li><a href="reservationTable.php">予約リスト</a></li>
- + <li><a href="programTable.php">キーワード検索</a></li>
- + <li><a href="keywordTable.php">自動検索予約リスト</a></li>
- + <li class="selected"><a href="recordedTable.php">録画済リスト</a></li>
- + <li><a href="logViewer.php">ログ</a></li>
- + <li><a href="envSetting.php">設定</a></li>
- + </ul>
- + </div>
- +</div>
- +<br style="clear:left;">
- <div>
- -絞り込み:
- +<!--絞り込み:-->
- <form method="post" action="recordedTable.php" >
- <input type="hidden" name="do_search" value="1" />
- -検索語句<input type="text" size="20" name="search" value="{$search}" />
- -局<select name="station">
- +<table>
- +<tr><td>検索語句</td><td><input type="text" size="20" name="search" value="{$search}" /></td></tr>
- +<tr><td>チャンネル</td><td><select name="station">
- {foreach from=$stations item=st}
- <option value="{$st.id}" {$st.selected}>{$st.name}</option>
- {/foreach}
- </select>
- -カテゴリ<select name="category_id">
- +</td></tr>
- +<tr><td>カテゴリ</td><td><select name="category_id">
- {foreach from=$cats item=cat}
- <option value="{$cat.id}" {$cat.selected}>{$cat.name}</option>
- {/foreach}
- </select>
- -<input type="submit" value="絞り込む" />
- +</td></tr>
- +<tr><td colspan=2 align=center style="padding-top: 10px;"><input type="submit" value=" 検索 " />
- +</td></tr>
- +</table>
- </form>
- </div>
- -タイトルや内容をクリックすると視聴できます(ブラウザの設定でASFとVLCを関連付けている必要があります)
- +<!--タイトルや内容をクリックすると視聴できます(ブラウザの設定でASFとVLCを関連付けている必要があります)-->
- {if count($records)}
- <table id="reservation_table">
- <tr>
- <th>録画日時</th>
- - <th>ch</th>
- - <th>モード</th>
- - {if $use_thumbs == 1}<th>サムネール</th>{/if}
- + <th>チャンネル</th>
- <th>タイトル</th>
- <th>内容</th>
- - <th>ファイルサイズ</th>
- + <th>ファイル<br>サイズ</th>
- <th>変更</th>
- <th>削除</th>
- </tr>
- {foreach from=$records item=rec}
- - <tr id="resid_{$rec.id}" class="ctg_{$rec.cat}">
- - <td>{$rec.starttime}</td>
- - <td>{$rec.station_name}</td>
- - <td>{$rec.mode}</td>
- - {if $use_thumbs == 1}<td><a href="{$rec.asf}">{$rec.thumb}</a></td>{/if}
- - <td><a href="{$rec.asf}" id="tid_{$rec.id}">{$rec.title}</a></td>
- - <td><a href="{$rec.asf}" id="did_{$rec.id}">{$rec.description}</a></td>
- - <td>{$rec.fsize}</td>
- - <td><input type="button" value="変更" onClick="javascript:PRG.editdialog('{$rec.id}')" /></td>
- - <td><input type="button" value="削除" onClick="javascript:PRG.dialog('{$rec.id}','{$rec.title|escape}')" /></td>
- + <tr id="resid_{$rec.id}" class="ctg_{$rec.cat}" {if $rec.ut_start < $rec.ut_now && $rec.ut_now < $rec.ut_end}style="background-color: #ff7080;color:#333;"{/if}>
- + <td style="vertical-align: top; text-align: left; min-width: 120px;">{$rec.starttime}〜{$rec.endtime}</td>
- + <td style="vertical-align: top; text-align: left; min-width: 170px;">{$rec.station_name}</td>
- + <td style="vertical-align: top; text-align: left; width: 350px;"><a href="{$rec.asf}" id="tid_{$rec.id}" style="color:#5068d4;text-decoration: underline;">{$rec.title}</a> {if $rec.ut_start < $rec.ut_now && $rec.ut_now < $rec.ut_end}<b>[録画中]</b>{/if}</td>
- + <td style="vertical-align: top; text-align: left; width: 500px;" id="did_{$rec.id}">{$rec.description}</td>
- + <td style="vertical-align: top; min-width: 80px;">{$rec.fsize}</td>
- + <td style="min-width: 60px;"><input type="button" value="変更" onClick="javascript:PRG.editdialog('{$rec.id}')" /></td>
- + <td style="min-width: 60px;"><input type="button" value="削除" onClick="javascript:PRG.dialog('{$rec.id}','{$rec.title|escape}')" /></td>
- </tr>
- {/foreach}
- </table>
- {else}
- - 現在、録画済データはありません
- + <div style="margin-left: 30px; margin-top: 30px;">現在、録画済データはありません</div>
- {/if}
- -<div id="floatBox4Dialog">jQuery UI Dialog</div>
- +<div id="floatBox4Dialog"></div>
- {literal}
- <script type="text/javascript">
- diff -urN epgrec.org/templates/reservationTable.html epgrec/templates/reservationTable.html
- --- epgrec.org/templates/reservationTable.html 2017-07-22 02:33:25.000000000 +0900
- +++ epgrec/templates/reservationTable.html 2017-07-23 11:10:45.000000000 +0900
- @@ -6,6 +6,7 @@
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>{$sitetitle}</title>
- <meta http-equiv="Content-Style-Type" content="text/css">
- +<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=2.0,user-scalable=yes">
- {literal}
- <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
- @@ -73,11 +74,29 @@
- </script>
- <style type="text/css">
- <!--
- -body {padding:4px;margin:0;font-size:10pt;}
- +* {
- + word-break: break-all;
- + -webkit-text-size-adjust: none;
- + -webkit-overflow-scrolling: touch;
- + -webkit-touch-callout:none;
- + -webkit-user-select:none;
- +}
- +
- +html {
- + -webkit-text-size-adjust: none;
- + background-color: #888ca0;
- + background: #888ca0;
- + color: #02262f;
- + font-family: HiraKakuProN-W3;
- + font-size: 6.25%;
- + line-height: 1.25;
- +}
- +
- +body {padding:0px;margin:0;font-size:12pt;background-color: #888ca0;}
- a {text-decoration:none;}
- table#reservation_table {
- - width: 800px;
- + font-size: 95%;
- border: 1px #BBB solid;
- border-collapse: collapse;
- border-spacing: 0;
- @@ -85,30 +104,24 @@
- table#reservation_table th {
- padding: 5px;
- - border: #E3E3E3 solid;
- - border-width: 0 0 1px 1px;
- - background: #BBB;
- + border: #BBB solid;
- + border-width: 1px 1px 1px 1px;
- + color: #fff;
- + background: #80a4e0;
- font-weight: bold;
- line-height: 120%;
- text-align: center;
- }
- table#reservation_table td {
- - padding: 5px;
- + padding-top: 15px;
- + padding-bottom: 15px;
- + padding-left: 5px;
- + padding-right: 5px;
- border: 1px #BBB solid;
- border-width: 0 0 1px 1px;
- text-align: center;
- }
- -table#reservation_table tr.ctg_news, #category_select a.ctg_news {background-color: #FFFFD8;}
- -table#reservation_table tr.ctg_etc, #category_select a.ctg_etc {background-color: #FFFFFF;}
- -table#reservation_table tr.ctg_information, #category_select a.ctg_information {background-color: #F2D8FF;}
- -table#reservation_table tr.ctg_sports, #category_select a.ctg_sports {background-color: #D8FFFF;}
- -table#reservation_table tr.ctg_cinema, #category_select a.ctg_cinema {background-color: #FFD8D8;}
- -table#reservation_table tr.ctg_music, #category_select a.ctg_music {background-color: #D8D8FF;}
- -table#reservation_table tr.ctg_drama, #category_select a.ctg_drama {background-color: #D8FFD8;}
- -table#reservation_table tr.ctg_anime, #category_select a.ctg_anime {background-color: #FFE4C8;}
- -table#reservation_table tr.ctg_variety, #category_select a.ctg_variety {background-color: #FFD2EB;}
- -table#reservation_table tr.ctg_10, #category_select a.ctg_10 {background-color: #E4F4F4;}
- #floatBox4Dialog .prg_title{font-size:120%;font-weight:bold;padding:0.4em 0;text-align:center;}
- #floatBox4Dialog .prg_rec_cfg{background:#EEE;padding:1em 2em;margin:0.4em 0;}
- @@ -116,54 +129,102 @@
- #floatBox4Dialog .button {padding:0.4em 1em;}
- +#float_titles div.set {float:left;background-color:#888ca0;padding:0px;margin:5px;}
- +#float_titles ul {float:left;padding:0px;margin:0px;}
- +#float_titles ul li {float:left;list-style:none;margin:5px 2px 0px 0px; }
- +#float_titles li a{padding:6px 10px;background-color:#8696c0;color:#e8e8ec;border: 1px solid #505080;}
- +#float_titles li.selected a{background-color:#ffffff; font-weight:bold; color:#444;}
- +
- +#reservation_table tr.prg_rec {background-color: #ff7080;color:#333}
- +table#reservation_table tr:nth-child(2n) {
- + background: #f0f0f8;
- +}
- +table#reservation_table tr:nth-child(2n+1) {
- + background: #f8f8ff;
- +}
- +input[type="submit"] {
- + background-image: linear-gradient(0deg, #a7d9f5, #eaf6fd);
- + border: 1px solid #3c7fb1;
- + border-radius: 0.3em;
- +}
- +input[type="button"] {
- + background-image: linear-gradient(0deg, #a7d9f5, #eaf6fd);
- + border: 1px solid #3c7fb1;
- + border-radius: 0.3em;
- +}
- +
- +table {
- + background-color:#ececf0;
- + margin-top: 10px;
- + margin-left: 10px;
- + margin-bottom: 10px;
- + padding:10px;
- +}
- +tr {
- + padding: 0px;
- + border: 1px solid #bbb;
- +}
- +td {
- + padding: 0px;
- + line-height: 150%;
- +}
- -->
- </style>
- {/literal}
- </head>
- -<body>
- -
- -<h2>{$sitetitle}</h2>
- -
- -<div><a href="index.php">番組表に戻る</a></div>
- +<body style="font-size:{$base_font_size}pt">
- +<div id="float_titles" style="font-size: {$float_follows_font_size}px;">
- + <div class="set">
- + <ul>
- + <li><a href="/">番組表</a></li>
- + <li class="selected"><a href="reservationTable.php">予約リスト</a></li>
- + <li><a href="programTable.php">キーワード検索</a></li>
- + <li><a href="keywordTable.php">自動検索予約リスト</a></li>
- + <li><a href="recordedTable.php">録画済リスト</a></li>
- + <li><a href="logViewer.php">ログ</a></li>
- + <li><a href="envSetting.php">設定</a></li>
- + </ul>
- +</div>
- +</div>
- +<br style="clear:left;">
- +<br>
- {if count($reservations)}
- <table id="reservation_table">
- +{foreach from=$reservations item=reserve}
- +{if $reserve.change_day == 1}
- + <tr style="background: #888ca0;color:#fff;vertical-align: bottom;"><td colspan=6 style="padding-top: {if $reserve.first_flg == 1}0{else}30{/if}px; padding-bottom:0px;text-align: left; border-left: 1px solid #888ca0; border-right: 1px solid #888ca0;{if $reserve.first_flg == 1}border-top: 1px solid #888ca0;{/if}font-size: 110%;">{$reserve.month}月{$reserve.day}日・{$reserve.day_of_week}曜日</td></tr>
- <tr>
- - <th>id</th>
- - <th>種別</th>
- - <th>ch</th>
- - <th>開始</th>
- - <th>終了</th>
- - <th>モード</th>
- + <th>予約日時</th>
- + <th>チャンネル</th>
- <th>タイトル</th>
- <th>内容</th>
- - <th><a href="keywordTable.php">自動ID</a></th>
- - <th>削除</th>
- + <th>自動<br />ID</th>
- + <th>取消</th>
- </tr>
- -
- -{foreach from=$reservations item=reserve}
- - <tr id="resid_{$reserve.id}" class="ctg_{$reserve.cat}">
- - <td>{$reserve.id}</td>
- - <td>{$reserve.type}</td>
- - <td id="chid_{$reserve.id}">{$reserve.channel}</td>
- - <td id="stid_{$reserve.id}">{$reserve.starttime}</td>
- - <td>{$reserve.endtime}</td>
- - <td>{$reserve.mode}</td>
- - <td style="cursor: pointer" id="tid_{$reserve.id}" onClick="javascript:PRG.editdialog('{$reserve.id}')">{$reserve.title|escape}</td>
- - <td style="cursor: pointer" id="did_{$reserve.id}" onClick="javascript:PRG.editdialog('{$reserve.id}')">{$reserve.description|escape}</td>
- - <td>{if $reserve.autorec}{$reserve.autorec}{/if}</td>
- - <td><input type="button" value="削除" onClick="javascript:PRG.rec('{$reserve.id}')" /></td>
- +{/if}
- + <tr id="resid_{$reserve.id}" {if $reserve.ut_start < $reserve.ut_now && $reserve.ut_now < $reserve.ut_end}style="background-color: #ff7080;color:#333;"{/if}>
- + <td style="vertical-align: top; text-align: left; min-width: 120px;">{$reserve.starttime}〜{$reserve.endtime}</td>
- + <td style="vertical-align: top; text-align: left; min-width: 170px;" id="chid_{$reserve.id}">{$reserve.channel}</td>
- +{if $reserve.search_key != ""}
- + <td style="vertical-align: top; text-align: left; width: 350px;" id="tid_{$reserve.id}"><a href="/redirect.php?{$reserve.search_key}" target="_blank" style="color:#5068d4;text-decoration: underline;">{$reserve.title|escape}</a> {if $reserve.ut_start < $reserve.ut_now && $reserve.ut_now < $reserve.ut_end}<b>[録画中]{/if}</td>
- +{else}
- + <td style="vertical-align: top; text-align: left; width: 350px;" id="tid_{$reserve.id}">{$reserve.title|escape} {if $reserve.ut_start < $reserve.ut_now && $reserve.ut_now < $reserve.ut_end}<b>[録画中]{/if}</td>
- +{/if}
- + <td style="vertical-align: top; text-align: left; width: 500px;" id="did_{$reserve.id}">{$reserve.description|escape}</td>
- + <td style="min-width: 60px;">{if $reserve.autorec}{$reserve.autorec}{/if}</td>
- + <td style="min-width: 60px;"><input type="button" value="取消" onClick="javascript:PRG.rec('{$reserve.id}')" /></td>
- </tr>
- {/foreach}
- </table>
- {else}
- - 現在、予約はありません
- + <div style="margin-left: 30px; margin-top: 30px;">現在、予約はありません</div>
- {/if}
- -<div id="floatBox4Dialog">jQuery UI Dialog</div>
- -<div id="eraseDialog">jQuery UI Dialog</div>
- +<div id="floatBox4Dialog"></div>
- +<div id="eraseDialog"></div>
- {literal}
- <script type="text/javascript">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement