Advertisement
Guest User

epgrock patch v.0.0.6

a guest
Jul 22nd, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 108.87 KB | None | 0 0
  1. epgrec STZ版の画面と操作性をtvrockっぽくするパッチ
  2.  
  3. 1. epgrecの設定ページを開き、"ページに表示する番組表の長さ(時間)"、"1局あたりの幅"、"1時間あたりの高さ" の値をそれぞれ、24、175、700 に設定。
  4. 2. http://mobiledetect.net/ から Mobile_detect.php をダウンロードして /var/www/epgrec に格納。
  5. 3. tvrock の予約ボタン画像を保存(reserve.gif)して、/var/www/epgrec/imgs に格納。
  6. 4. /var/www/epgrec で、patch -p1 < epgrock.diff を実行。
  7. 5. できあがり。
  8.  
  9. ※カスタマイズ予約を利用する場合は、/var/www/epgrec/template/index.html の 494行目を削除してください。
  10.  
  11.  
  12.  
  13. diff -urN epgrec.org/Keyword.class.php epgrec/Keyword.class.php
  14. --- epgrec.org/Keyword.class.php 2017-07-22 02:33:25.000000000 +0900
  15. +++ epgrec/Keyword.class.php 2017-07-21 16:17:54.000000000 +0900
  16. @@ -24,7 +24,7 @@
  17. $channel_id = 0,
  18. $weekofday = 7,
  19. $prgtime = 24,
  20. - $limit = 300 ) {
  21. + $limit = 3000 ) {
  22. $sts = Settings::factory();
  23.  
  24. $dbh = @mysql_connect($sts->db_host, $sts->db_user, $sts->db_pass );
  25. @@ -45,7 +45,11 @@
  26. $options .= " AND type = '".$type."'";
  27. }
  28.  
  29. - if( $category_id != 0 ) {
  30. +// 映画の場合は、予備カテゴリーも含める
  31. + if( $category_id == 13 ) {
  32. + $options .= " AND (category_id = '13' OR category_id = '14')";
  33. + }
  34. + else if( $category_id != 0 ) {
  35. $options .= " AND category_id = '".$category_id."'";
  36. }
  37.  
  38. diff -urN epgrec.org/Reservation.class.php epgrec/Reservation.class.php
  39. --- epgrec.org/Reservation.class.php 2017-07-22 02:33:25.000000000 +0900
  40. +++ epgrec/Reservation.class.php 2017-07-23 02:14:46.000000000 +0900
  41. @@ -212,7 +212,8 @@
  42. %SID% サービスID
  43. %DOW% 曜日(Sun-Mon)
  44. %DOWJ% 曜日(日-土)
  45. - %YEAR% 開始年
  46. + %YEAR% 開始年(YYYY)
  47. + %YEAR2% 開始年(YY) ←追加
  48. %MONTH% 開始月
  49. %DAY% 開始日
  50. %HOUR% 開始時
  51. @@ -242,6 +243,8 @@
  52. $filename = mb_str_replace("%DOWJ%",$day_of_week[(int)date("w", $start_time)], $filename );
  53. // %YEAR% 開始年
  54. $filename = mb_str_replace("%YEAR%",date("Y", $start_time), $filename );
  55. + // %YEAR% 開始年
  56. + $filename = mb_str_replace("%YEAR2%",date("y", $start_time), $filename );
  57. // %MONTH% 開始月
  58. $filename = mb_str_replace("%MONTH%",date("m", $start_time), $filename );
  59. // %DAY% 開始日
  60. diff -urN epgrec.org/Rock.inc.php epgrec/Rock.inc.php
  61. --- epgrec.org/Rock.inc.php 1970-01-01 09:00:00.000000000 +0900
  62. +++ epgrec/Rock.inc.php 2017-07-23 13:01:17.000000000 +0900
  63. @@ -0,0 +1,82 @@
  64. +<?php
  65. +
  66. +function getSimpleTitle($title) {
  67. + $title = mb_convert_kana($title, "rn");
  68. + $title = str_replace("【", "[", $title);
  69. + $title = str_replace("】", "]", $title);
  70. + $title = str_replace("[字]", "", $title);
  71. + $title = str_replace("[解]", "", $title);
  72. + $title = str_replace("[再]", "", $title);
  73. + $title = str_replace("[デ]", "", $title);
  74. + $title = str_replace("[二]", "", $title);
  75. + $title = str_replace("[SS]", "", $title);
  76. + $title = str_replace("[無]", "", $title);
  77. + $title = str_replace("[無料]", "", $title);
  78. + $title = str_replace("[多]", "", $title);
  79. + $title = str_replace("[5.1]", "", $title);
  80. + $title = str_replace("[テニス]", "", $title);
  81. + $title = str_replace("[HV]", "", $title);
  82. + $title = str_replace("[HD完全版]", "", $title);
  83. + $title = str_replace("[HDリマスター版]", "", $title);
  84. + $title = str_replace("[完全版]", "", $title);
  85. + $title = str_replace("(無料)", "", $title);
  86. + $title = str_replace("(字幕版)", "(字幕)", $title);
  87. + $title = str_replace("(吹替版)", "(吹替)", $title);
  88. + $title = str_replace("[吹]", "(吹替)", $title);
  89. +
  90. + return $title;
  91. +}
  92. +
  93. +function getSearchKey($search_key, $category_id) {
  94. + if ($r->category_id == 13 || $r->category_id == 14) {
  95. + return "";
  96. + }
  97. + $search_key = str_replace("【", "[", $search_key);
  98. + $search_key = str_replace("】", "]", $search_key);
  99. + $search_key = str_replace("[", "[", $search_key);
  100. + $search_key = str_replace("]", "]", $search_key);
  101. + $search_key = str_replace("<", "<", $search_key);
  102. + $search_key = str_replace(">", ">", $search_key);
  103. + $search_key = str_replace("(", "(", $search_key);
  104. + $search_key = str_replace(")", ")", $search_key);
  105. + $search_key = preg_replace("/◆.*$/", "", $search_key);
  106. + $search_key = preg_replace("/「/", "", $search_key, 5);
  107. + $search_key = preg_replace("/」/", "", $search_key, 5);
  108. + $search_key = preg_replace("/([^)]*)/", "", $search_key, 5);
  109. + $search_key = preg_replace("/\([^\)]*\)/", "", $search_key, 5);
  110. + $search_key = preg_replace("/\<[^\>]*\>/", "", $search_key, 5);
  111. + $search_key = preg_replace("/\[[^\]]*\]/", "", $search_key, 5);
  112. + $search_key = preg_replace("/\[.*\]/", "", $search_key, 5);
  113. + $search_key = str_replace("プレミアムシネマ", "", $search_key);
  114. +
  115. + return $search_key;
  116. +}
  117. +
  118. +function getStartDateTime($starttime) {
  119. + $date_and_time = split(" ", $starttime);
  120. + $start_date = split("-", $date_and_time[0]);
  121. + $start_time = split(":", $date_and_time[1]);
  122. + $datetime = new DateTime($date_and_time[0]);
  123. + $week = array("(日)", "(月)", "(火)", "(水)", "(木)", "(金)", "(土)");
  124. + $w = (int)$datetime->format('w');
  125. + $day_of_week = $week[$w];
  126. + return intval($start_date[1]) . "月" . $start_date[2] . "日" . $day_of_week . "<br>" . $start_time[0] . ":" . $start_time[1];
  127. +}
  128. +
  129. +function getEndTime($endtime) {
  130. + $date_and_time = split(" ", $endtime);
  131. + $end_date = split("-", $date_and_time[0]);
  132. + $end_time = split(":", $date_and_time[1]);
  133. + return $end_time[0] . ":" . $end_time[1];
  134. +}
  135. +
  136. +function getDayOfWeek($starttime) {
  137. + $date_and_time = split(" ", $starttime);
  138. + $start_date = split("-", $date_and_time[0]);
  139. + $datetime = new DateTime($date_and_time[0]);
  140. + $week = array("日", "月", "火", "水", "木", "金", "土");
  141. + $w = (int)$datetime->format('w');
  142. + return $week[$w];
  143. +}
  144. +
  145. +?>
  146. diff -urN epgrec.org/Rock_define.inc.php epgrec/Rock_define.inc.php
  147. --- epgrec.org/Rock_define.inc.php 1970-01-01 09:00:00.000000000 +0900
  148. +++ epgrec/Rock_define.inc.php 2017-07-23 11:12:39.000000000 +0900
  149. @@ -0,0 +1,9 @@
  150. +<?php
  151. +
  152. +define("PC_BASE_FONT_SIZE" , 12);
  153. +define("PC_FLOAT_FOLLOWS_FONT_SIZE" , 16);
  154. +define("MOBILE_BASE_FONT_SIZE" , 13); //13.5
  155. +define("MOBILE_FLOAT_FOLLOWS_FONT_SIZE", 18);
  156. +
  157. +?>
  158. +
  159. diff -urN epgrec.org/envSetting.php epgrec/envSetting.php
  160. --- epgrec.org/envSetting.php 2017-07-22 02:33:25.000000000 +0900
  161. +++ epgrec/envSetting.php 2017-07-18 01:30:40.000000000 +0900
  162. @@ -11,7 +11,7 @@
  163. $smarty->assign( "install_path", INSTALL_PATH );
  164. $smarty->assign( "post_to", "postsettings.php" );
  165. $smarty->assign( "sitetitle", "環境設定設定" );
  166. -$smarty->assign( "message", '<a href="index.php">設定せずに番組表に戻る</a>/<a href="systemSetting.php">システム設定へ</a>/<a href="logViewer.php">動作ログを見る</a>' );
  167. +$smarty->assign( "message", '<a href="index.php">設定せずに番組表に戻る</a>/<a href="systemSetting.php">システム設定へ</a>' );
  168.  
  169. $smarty->display("envSetting.html");
  170. ?>
  171. diff -urN epgrec.org/getepg.php epgrec/getepg.php
  172. --- epgrec.org/getepg.php 2017-07-22 02:33:25.000000000 +0900
  173. +++ epgrec/getepg.php 2017-07-17 18:09:57.000000000 +0900
  174. @@ -119,7 +119,7 @@
  175. $num = DBRecord::countRecords( RESERVE_TBL, "WHERE complete = '0' AND (type = 'BS' OR type = 'CS') AND endtime > now() AND starttime < addtime( now(), '00:03:05')" );
  176. if($num < $settings->bs_tuners && check_file($temp_data_cs1)) {
  177.  
  178. - $cmdline = "CHANNEL=".CS1_EPG_CHANNEL." DURATION=120 TYPE=CS TUNER=0 MODE=0 OUTPUT=".$temp_data_cs1." ".DO_RECORD . " >/dev/null 2>&1";
  179. + $cmdline = "CHANNEL=".CS1_EPG_CHANNEL." DURATION=180 TYPE=CS TUNER=0 MODE=0 OUTPUT=".$temp_data_cs1." ".DO_RECORD . " >/dev/null 2>&1";
  180. exec( $cmdline );
  181. $cmdline = INSTALL_PATH."/storeProgram.php CS1 ".$temp_data_cs1;
  182. $cs1_proc = epgrec_exec($cmdline);
  183. @@ -127,7 +127,7 @@
  184.  
  185. $num = DBRecord::countRecords( RESERVE_TBL, "WHERE complete = '0' AND (type = 'BS' OR type = 'CS') AND endtime > now() AND starttime < addtime( now(), '00:03:05')" );
  186. if( ($num < $settings->bs_tuners) && check_file($temp_data_cs2) ) {
  187. - $cmdline = "CHANNEL=".CS2_EPG_CHANNEL." DURATION=120 TYPE=CS TUNER=0 MODE=0 OUTPUT=".$temp_data_cs2." ".DO_RECORD . " >/dev/null 2>&1";
  188. + $cmdline = "CHANNEL=".CS2_EPG_CHANNEL." DURATION=180 TYPE=CS TUNER=0 MODE=0 OUTPUT=".$temp_data_cs2." ".DO_RECORD . " >/dev/null 2>&1";
  189. exec( $cmdline );
  190. $cmdline = INSTALL_PATH."/storeProgram.php CS2 ".$temp_data_cs2;
  191. $cs2_proc = epgrec_exec( $cmdline );
  192. diff -urN epgrec.org/index.php epgrec/index.php
  193. --- epgrec.org/index.php 2017-07-22 02:33:25.000000000 +0900
  194. +++ epgrec/index.php 2017-07-23 12:55:37.000000000 +0900
  195. @@ -5,6 +5,10 @@
  196. include_once( INSTALL_PATH . "/Smarty/Smarty.class.php" );
  197. include_once( INSTALL_PATH . "/reclib.php" );
  198. include_once( INSTALL_PATH . "/Settings.class.php" );
  199. +include_once( INSTALL_PATH . "/Rock.inc.php" );
  200. +include_once( INSTALL_PATH . "/Rock_define.inc.php" );
  201. +require_once 'Mobile_Detect.php';
  202. +$detect = new Mobile_Detect;
  203.  
  204. // 設定ファイルの有無を検査する
  205. if( ! file_exists( INSTALL_PATH."/settings/config.xml") ) {
  206. @@ -89,6 +93,7 @@
  207. $programs[$st]['list'][$num]['title'] = "";
  208. $programs[$st]['list'][$num]['starttime'] = "";
  209. $programs[$st]['list'][$num]['description'] = "";
  210. + $programs[$st]['list'][$num]['station_name'] = "";
  211. $num++;
  212. }
  213. $prev_end = $prg_endtime;
  214. @@ -108,21 +113,29 @@
  215. $cat = new DBRecord( CATEGORY_TBL, "id", $prg['category_id'] );
  216. $programs[$st]['list'][$num]['category_name'] = $cat->name_en;
  217. $programs[$st]['list'][$num]['height'] = $height;
  218. - $programs[$st]['list'][$num]['title'] = $prg['title'];
  219. + $programs[$st]['list'][$num]['title'] = getSimpleTitle($prg['title']);
  220. $programs[$st]['list'][$num]['starttime'] = date("H:i", $start )."" ;
  221. - $programs[$st]['list'][$num]['description'] = $prg['description'];
  222. + $programs[$st]['list'][$num]['ut_now'] = time();
  223. + $programs[$st]['list'][$num]['ut_start'] = strtotime($prg['starttime']);
  224. + $programs[$st]['list'][$num]['ut_end'] = strtotime($prg['endtime']);
  225. + $programs[$st]['list'][$num]['description'] = mb_convert_kana($prg['description'], "rn");
  226. $programs[$st]['list'][$num]['prg_start'] = str_replace( "-", "/", $prg['starttime']);
  227. $programs[$st]['list'][$num]['duration'] = "" . (toTimestamp($prg['endtime']) - toTimestamp($prg['starttime']));
  228. $programs[$st]['list'][$num]['channel'] = ($prg['type'] == "GR" ? "地上D" : "BS" ) . ":". $prg['channel'] . "ch";
  229. $programs[$st]['list'][$num]['id'] = "" . ($prg['id']);
  230. $programs[$st]['list'][$num]['rec'] = DBRecord::countRecords(RESERVE_TBL, "WHERE complete = '0' AND program_id = '".$prg['id']."'" );
  231. + $programs[$st]['list'][$num]['complate'] = DBRecord::countRecords(RESERVE_TBL, "WHERE complete = '1' AND program_id = '".$prg['id']."'" );
  232. +// 終了済?
  233. + $programs[$st]['list'][$num]['over'] = 0;
  234. + if ($programs[$st]['list'][$num]['ut_end']<$programs[$st]['list'][$num]['ut_now']) {
  235. + $programs[$st]['list'][$num]['over'] = 1;
  236. + }
  237. + $programs[$st]['list'][$num]['station_name'] = $crec->name;
  238. $num++;
  239. }
  240. }
  241. catch( exception $e ) {
  242. $num_ch++; // epgの無いチャンネル対応
  243. -// exit( $e->getMessage() );
  244. -// 何もしない
  245. }
  246. // 空きを埋める
  247. if( ($last_time - $prev_end) > 0 ) {
  248. @@ -164,61 +177,44 @@
  249. // タイプ選択
  250. $types = array();
  251. $i = 0;
  252. +if( $settings->gr_tuners != 0 ) {
  253. + $types[$i]['selected'] = $type == "GR" ? 'class="selected2"' : 'class="non_selected"';
  254. + $types[$i]['link'] = $_SERVER['SCRIPT_NAME'] . "?type=GR&length=".$program_length."&time=".date( "YmdH", $top_time);
  255. + $types[$i]['name'] = "&nbsp;地デジ&nbsp;";
  256. + $i++;
  257. +}
  258. if( $settings->bs_tuners != 0 ) {
  259. - $types[$i]['selected'] = $type == "BS" ? 'class="selected"' : "";
  260. + $types[$i]['selected'] = $type == "BS" ? 'class="selected2"' : 'class="non_selected"';
  261. $types[$i]['link'] = $_SERVER['SCRIPT_NAME'] . "?type=BS&length=".$program_length."&time=".date( "YmdH", $top_time);
  262. - $types[$i]['name'] = "BS";
  263. + $types[$i]['name'] = "&nbsp;&nbsp;BS&nbsp;&nbsp;";
  264. $i++;
  265.  
  266. // CS
  267. if ($settings->cs_rec_flg != 0) {
  268. - $types[$i]['selected'] = $type == "CS" ? 'class="selected"' : "";
  269. + $types[$i]['selected'] = $type == "CS" ? 'class="selected2"' : 'class="non_selected"';
  270. $types[$i]['link'] = $_SERVER['SCRIPT_NAME'] . "?type=CS&length=".$program_length."&time=".date( "YmdH", $top_time);
  271. - $types[$i]['name'] = "CS";
  272. + $types[$i]['name'] = "&nbsp;&nbsp;CS&nbsp;&nbsp;";
  273. $i++;
  274. }
  275. }
  276. -if( $settings->gr_tuners != 0 ) {
  277. - $types[$i]['selected'] = $type == "GR" ? 'class="selected"' : "";
  278. - $types[$i]['link'] = $_SERVER['SCRIPT_NAME'] . "?type=GR&length=".$program_length."&time=".date( "YmdH", $top_time);
  279. - $types[$i]['name'] = "地上デジタル";
  280. - $i++;
  281. -}
  282. $smarty->assign( "types", $types );
  283.  
  284. // 日付選択
  285. $days = array();
  286. $day = array();
  287. -$day['d'] = "昨日";
  288. -$day['link'] = $get_param . "&time=". date( "YmdH", time() - 3600 *24 );
  289. -$day['ofweek'] = "";
  290. -$day['selected'] = $top_time < mktime( 0, 0 , 0) ? 'class="selected"' : '';
  291. -
  292. -array_push( $days , $day );
  293. -$day['d'] = "現在";
  294. +$day['d'] = "今の時間";
  295. $day['link'] = $get_param;
  296. $day['ofweek'] = "";
  297. -$day['selected'] = "";
  298. +$day['selected'] = 'class="non_selected"';
  299. array_push( $days, $day );
  300. for( $i = 0 ; $i < 8 ; $i++ ) {
  301. $day['d'] = "".date("d", time() + 24 * 3600 * $i ) . "日";
  302. - $day['link'] = $get_param . "&time=".date( "Ymd", time() + 24 * 3600 * $i) . date("H" , $top_time );
  303. + $day['link'] = $get_param . "&time=".date( "Ymd", time() + 24 * 3600 * $i) . "00";
  304. $day['ofweek'] = $DAY_OF_WEEK[(int)date( "w", time() + 24 * 3600 * $i )];
  305. - $day['selected'] = date("d", $top_time) == date("d", time() + 24 * 3600 * $i ) ? 'class="selected"' : '';
  306. + $day['selected'] = date("d", $top_time) == date("d", time() + 24 * 3600 * $i ) ? 'class="selected2"' : 'class="non_selected"';
  307. array_push( $days, $day );
  308. }
  309. $smarty->assign( "days" , $days );
  310. -
  311. -// 時間選択
  312. -$toptimes = array();
  313. -for( $i = 0 ; $i < 24; $i+=4 ) {
  314. - $tmp = array();
  315. - $tmp['hour'] = sprintf( "%02d:00", $i );
  316. - $tmp['link'] = $get_param . "&time=".date("Ymd", $top_time ) . sprintf("%02d", $i );
  317. - array_push( $toptimes, $tmp );
  318. -}
  319. -$smarty->assign( "toptimes" , $toptimes );
  320. -
  321. $smarty->assign( "tvtimes", $tvtimes );
  322. $smarty->assign( "programs", $programs );
  323. $smarty->assign( "ch_set_width", (int)($settings->ch_set_width) );
  324. @@ -228,14 +224,20 @@
  325. $smarty->assign( "num_ch", $num_ch );
  326. $smarty->assign( "num_all_ch" , count( $channel_map ) );
  327.  
  328. -// date("Y-m-d H:i:s", $timestamp);
  329. -
  330. -$sat_type = array('GR' => '地上デジタル', 'BS' => 'BSデジタル', 'CS' => 'CSデジタル');
  331. -$sitetitle = date( "Y", $top_time ) . "年" . date( "m", $top_time ) . "月" . date( "d", $top_time ) . "日". date( "H", $top_time ) .
  332. - "時~".$sat_type[$type]."番組表";
  333. +// 端末種(PC/MOBILE)ごとにフォントサイズ設定
  334. +if ($detect->isMobile()) {
  335. + $smarty->assign("base_font_size", MOBILE_BASE_FONT_SIZE);
  336. + $smarty->assign("float_follows_font_size", MOBILE_FLOAT_FOLLOWS_FONT_SIZE);
  337. + $smarty->assign("is_mobile", 1);
  338. +} else {
  339. + $smarty->assign("base_font_size", PC_BASE_FONT_SIZE);
  340. + $smarty->assign("float_follows_font_size", PC_FLOAT_FOLLOWS_FONT_SIZE);
  341. + $smarty->assign("is_mobile", 0);
  342. +}
  343.  
  344. +$sat_type = array('GR' => '地デジ', 'BS' => 'BS', 'CS' => 'CS');
  345. +$sitetitle = "TV番組表:" . $sat_type[$type]. " " ./*date( "Y", $top_time ) . "年" . */ intval(date( "m", $top_time )) . "月" . intval(date( "d", $top_time )) . "日". intval(date( "H", $top_time )) . "時~";
  346. $smarty->assign("sitetitle", $sitetitle );
  347. -
  348. $smarty->assign("top_time", str_replace( "-", "/" ,toDatetime($top_time)) );
  349. $smarty->assign("last_time", str_replace( "-", "/" ,toDatetime($last_time)) );
  350.  
  351. diff -urN epgrec.org/js/mdabasic.js epgrec/js/mdabasic.js
  352. --- epgrec.org/js/mdabasic.js 2017-07-22 02:33:25.000000000 +0900
  353. +++ epgrec/js/mdabasic.js 2017-07-20 17:14:40.000000000 +0900
  354. @@ -8,12 +8,12 @@
  355. return n;
  356. },
  357. time4Disp:function(T){
  358. - return '<span class="bold">' + parseInt(T.getMonth() + 1) + '</span><span class="small">月</span>' +
  359. - '<span class="bold">' + T.getDate() + '</span><span class="small">日</span>' +
  360. - '(<span class="bold">' + this.dayStr[T.getDay()] + '</span>) ' + this.time4DispH(T);
  361. + return '<span class="bold2">' + parseInt(T.getMonth() + 1) + '</span><span class="small">月</span>' +
  362. + '<span class="bold2">' + T.getDate() + '</span><span class="small">日</span>' +
  363. + '(<span class="bold2">' + this.dayStr[T.getDay()] + '</span>) ' + this.time4DispH(T);
  364. },
  365. time4DispH:function(T){
  366. - return '<span class="bold">' + this.num2str(T.getHours(),2) + ':' + this.num2str(T.getMinutes(),2) + '</span>'
  367. + return '<span class="bold2">' + this.num2str(T.getHours(),2) + ':' + this.num2str(T.getMinutes(),2) + '</span>'
  368. }
  369. }
  370.  
  371. diff -urN epgrec.org/keywordTable.php epgrec/keywordTable.php
  372. --- epgrec.org/keywordTable.php 2017-07-22 02:33:25.000000000 +0900
  373. +++ epgrec/keywordTable.php 2017-07-23 10:46:45.000000000 +0900
  374. @@ -5,7 +5,9 @@
  375. include_once( INSTALL_PATH . "/reclib.php" );
  376. include_once( INSTALL_PATH . "/Reservation.class.php" );
  377. include_once( INSTALL_PATH . "/Keyword.class.php" );
  378. -// include_once( INSTALL_PATH . "/Settings.class.php" );
  379. +include_once( INSTALL_PATH . "/Rock_define.inc.php" );
  380. +require_once 'Mobile_Detect.php';
  381. +$detect = new Mobile_Detect;
  382.  
  383.  
  384. $weekofdays = array( "月", "火", "水", "木", "金", "土", "日", "なし" );
  385. @@ -42,8 +44,8 @@
  386. $keywords = array();
  387. try {
  388. $recs = Keyword::createRecords(KEYWORD_TBL);
  389. + $arr = array();
  390. foreach( $recs as $rec ) {
  391. - $arr = array();
  392. $arr['id'] = $rec->id;
  393. $arr['keyword'] = $rec->keyword;
  394. $arr['type'] = $rec->type == "*" ? "すべて" : $rec->type;
  395. @@ -61,13 +63,31 @@
  396. else $arr['category'] = 'すべて';
  397.  
  398. $arr['use_regexp'] = $rec->use_regexp;
  399. -
  400. $arr['weekofday'] = $weekofdays["$rec->weekofday"];
  401. -
  402. $arr['prgtime'] = $prgtimes["$rec->prgtime"];
  403. -
  404. $arr['autorec_mode'] = $RECORD_MODE[(int)$rec->autorec_mode]['name'];
  405.  
  406. + if ($arr['keyword'] == "*") {
  407. + $arr['keyword'] = $_POST['k_search'];
  408. + $arr['type'] = $_POST['k_type'] == "*" ? "すべて" : $_POST['k_type'];
  409. +
  410. + if( $_POST['k_station'] ) {
  411. + $crec = new DBRecord(CHANNEL_TBL, "id", $_POST['k_station'] );
  412. + $arr['channel'] = $crec->name;
  413. + }
  414. + else $arr['channel'] = 'すべて';
  415. +
  416. + if( $_POST['k_category'] ) {
  417. + $crec = new DBRecord(CATEGORY_TBL, "id", $_POST['k_category'] );
  418. + $arr['category'] = $crec->name_jp;
  419. + }
  420. + else $arr['category'] = 'すべて';
  421. +
  422. + $arr['use_regext'] = $_POST['k_use_regexp'];
  423. + $arr['weekofday'] = $weekofdays[$_POST['k_weekofday']];
  424. + $arr['prgtime'] = $prgtimes[$_POST['k_prgtime']];
  425. + $arr['autorec_mode'] = $RECORD_MODE[(int)$_POST['autorec_mode']]['name'];
  426. + }
  427. array_push( $keywords, $arr );
  428. }
  429. }
  430. @@ -78,6 +98,16 @@
  431. $smarty = new Smarty();
  432.  
  433. $smarty->assign( "keywords", $keywords );
  434. -$smarty->assign( "sitetitle", "自動録画キーワードの管理" );
  435. +$smarty->assign( "sitetitle", "自動検索予約リスト" );
  436. +
  437. +// 端末種(PC/MOBILE)ごとにフォントサイズ設定
  438. +if ($detect->isMobile()) {
  439. + $smarty->assign("base_font_size", MOBILE_BASE_FONT_SIZE);
  440. + $smarty->assign("float_follows_font_size", MOBILE_FLOAT_FOLLOWS_FONT_SIZE);
  441. +} else {
  442. + $smarty->assign("base_font_size", PC_BASE_FONT_SIZE);
  443. + $smarty->assign("float_follows_font_size", PC_FLOAT_FOLLOWS_FONT_SIZE);
  444. +}
  445. +
  446. $smarty->display( "keywordTable.html" );
  447. -?>
  448. \ No newline at end of file
  449. +?>
  450. diff -urN epgrec.org/logViewer.php epgrec/logViewer.php
  451. --- epgrec.org/logViewer.php 2017-07-22 02:33:25.000000000 +0900
  452. +++ epgrec/logViewer.php 2017-07-23 11:04:09.000000000 +0900
  453. @@ -2,14 +2,26 @@
  454. include_once('config.php');
  455. include_once( INSTALL_PATH . '/DBRecord.class.php' );
  456. include_once( INSTALL_PATH . '/Smarty/Smarty.class.php' );
  457. +include_once( INSTALL_PATH . '/Rock_define.inc.php' );
  458. +require_once 'Mobile_Detect.php';
  459. +$detect = new Mobile_Detect;
  460.  
  461.  
  462. $arr = DBRecord::createRecords( LOG_TBL, " ORDER BY logtime DESC" );
  463.  
  464. $smarty = new Smarty();
  465.  
  466. -$smarty->assign( "sitetitle" , "epgrec動作ログ" );
  467. +$smarty->assign( "sitetitle" , "ログ" );
  468. $smarty->assign( "logs", $arr );
  469.  
  470. +// 端末種(PC/MOBILE)ごとにフォントサイズ設定
  471. +if ($detect->isMobile()) {
  472. + $smarty->assign("base_font_size", MOBILE_BASE_FONT_SIZE);
  473. + $smarty->assign("float_follows_font_size", MOBILE_FLOAT_FOLLOWS_FONT_SIZE);
  474. +}else{
  475. + $smarty->assign("base_font_size", PC_BASE_FONT_SIZE);
  476. + $smarty->assign("float_follows_font_size", PC_FLOAT_FOLLOWS_FONT_SIZE);
  477. +}
  478. +
  479. $smarty->display( "logTable.html" );
  480. -?>
  481. \ No newline at end of file
  482. +?>
  483. diff -urN epgrec.org/programTable.php epgrec/programTable.php
  484. --- epgrec.org/programTable.php 2017-07-22 02:33:25.000000000 +0900
  485. +++ epgrec/programTable.php 2017-07-23 13:02:14.000000000 +0900
  486. @@ -4,6 +4,10 @@
  487. include_once( INSTALL_PATH . '/Smarty/Smarty.class.php' );
  488. include_once( INSTALL_PATH . '/Settings.class.php' );
  489. include_once( INSTALL_PATH . '/Keyword.class.php' );
  490. +include_once( INSTALL_PATH . '/Rock.inc.php' );
  491. +include_once( INSTALL_PATH . '/Rock_define.inc.php' );
  492. +require_once 'Mobile_Detect.php';
  493. +$detect = new Mobile_Detect;
  494.  
  495. $settings = Settings::factory();
  496.  
  497. @@ -63,8 +67,16 @@
  498. $do_keyword = 1;
  499.  
  500. try{
  501. +$no_condition = 0;
  502. +if ($search == "" && $use_regexp == 0 && $type == "*" && $category_id == 0 && $channel_id == 0 && $weekofday == 7 && $prgtime == 24) {
  503. + $no_condition = 1;
  504. +} else {
  505. $precs = Keyword::search( $search, $use_regexp, $type, $category_id, $channel_id, $weekofday, $prgtime );
  506. +}
  507.  
  508. + $month = 0;
  509. + $day = 0;
  510. + $first_flg = 1;
  511. $programs = array();
  512. foreach( $precs as $p ) {
  513. $ch = new DBRecord(CHANNEL_TBL, "id", $p->channel_id );
  514. @@ -72,14 +84,35 @@
  515. $arr = array();
  516. $arr['type'] = $p->type;
  517. $arr['station_name'] = $ch->name;
  518. - $arr['starttime'] = $p->starttime;
  519. - $arr['endtime'] = $p->endtime;
  520. - $arr['title'] = $p->title;
  521. + $arr['starttime'] = getStartDateTime($p->starttime);
  522. + $arr['day_of_week'] = getDayOfWeek($p->starttime);
  523. + $arr['endtime'] = getEndTime($p->endtime);
  524. $arr['description'] = $p->description;
  525. $arr['id'] = $p->id;
  526. $arr['cat'] = $cat->name_en;
  527. $arr['rec'] = DBRecord::countRecords(RESERVE_TBL, "WHERE program_id='".$p->id."'");
  528. + $arr['ut_now'] = time();
  529. + $arr['ut_start'] = strtotime($p->starttime);
  530. + $arr['ut_end'] = strtotime($p->endtime);
  531. + $arr['search_key'] = getSearchKey($p->title);
  532. + $arr['title'] = getSimpleTitle($p->title);
  533.  
  534. + // 日付変更チェック
  535. + $arr['change_day'] = 0;
  536. + $date_and_time = split(" ", $p->starttime);
  537. + $start_date = split("-", $date_and_time[0]);
  538. + if ($month != intval($start_date[1]) || $day != intval($start_date[2])) {
  539. + $month = intval($start_date[1]);
  540. + $day = intval($start_date[2]);
  541. + $arr['change_day'] = 1;
  542. + }
  543. + $arr['first_flg'] = $first_flg;
  544. + $arr['month'] = $month;
  545. + $arr['day'] = $day;
  546. + if ($first_flg == 1) {
  547. + $first_flg = 0;
  548. + }
  549. +
  550. array_push( $programs, $arr );
  551. }
  552.  
  553. @@ -104,7 +137,7 @@
  554. $types[0]['selected'] = $type == "*" ? "selected" : "";
  555. if( $settings->gr_tuners != 0 ) {
  556. $arr = array();
  557. - $arr['name'] = "GR";
  558. + $arr['name'] = "地デジ";
  559. $arr['value'] = "GR";
  560. $arr['selected'] = $type == "GR" ? "selected" : "";
  561. array_push( $types, $arr );
  562. @@ -155,7 +188,7 @@
  563.  
  564.  
  565. $smarty = new Smarty();
  566. - $smarty->assign("sitetitle","番組検索");
  567. + $smarty->assign( "sitetitle","キーワード検索");
  568. $smarty->assign("do_keyword", $do_keyword );
  569. $smarty->assign( "programs", $programs );
  570. $smarty->assign( "cats", $cats );
  571. @@ -175,9 +208,20 @@
  572. $smarty->assign( "autorec_modes", $autorec_modes );
  573. $smarty->assign( "prgtimes", $prgtimes );
  574. $smarty->assign( "prgtime", $prgtime );
  575. + $smarty->assign( "no_condition", $no_condition );
  576. +
  577. + // 端末種(PC/MOBILE)ごとにフォントサイズ設定
  578. + if ($detect->isMobile()) {
  579. + $smarty->assign("base_font_size", MOBILE_BASE_FONT_SIZE);
  580. + $smarty->assign("float_follows_font_size", MOBILE_FLOAT_FOLLOWS_FONT_SIZE);
  581. + } else {
  582. + $smarty->assign("base_font_size", PC_BASE_FONT_SIZE);
  583. + $smarty->assign("float_follows_font_size", PC_FLOAT_FOLLOWS_FONT_SIZE);
  584. + }
  585. +
  586. $smarty->display("programTable.html");
  587. }
  588. catch( exception $e ) {
  589. exit( $e->getMessage() );
  590. }
  591. -?>
  592. \ No newline at end of file
  593. +?>
  594. diff -urN epgrec.org/recordedTable.php epgrec/recordedTable.php
  595. --- epgrec.org/recordedTable.php 2017-07-22 02:33:25.000000000 +0900
  596. +++ epgrec/recordedTable.php 2017-07-23 13:02:30.000000000 +0900
  597. @@ -3,6 +3,10 @@
  598. include_once( INSTALL_PATH . '/DBRecord.class.php' );
  599. include_once( INSTALL_PATH . '/Smarty/Smarty.class.php' );
  600. include_once( INSTALL_PATH . '/Settings.class.php' );
  601. +include_once( INSTALL_PATH . '/Rock.inc.php' );
  602. +include_once( INSTALL_PATH . '/Rock_define.inc.php' );
  603. +require_once 'Mobile_Detect.php';
  604. +$detect = new Mobile_Detect;
  605.  
  606. $settings = Settings::factory();
  607.  
  608. @@ -30,7 +34,11 @@
  609. }
  610. }
  611. if( isset($_POST['category_id'])) {
  612. - if( $_POST['category_id'] != 0 ) {
  613. + if( $_POST['category_id'] == 13 ) {
  614. + $category_id = $_POST['category_id'];
  615. + $options .= " AND (category_id = '13' OR category_id = '14')";
  616. + }
  617. + else if( $_POST['category_id'] != 0 ) {
  618. $category_id = $_POST['category_id'];
  619. $options .= " AND category_id = '".$_POST['category_id']."'";
  620. }
  621. @@ -48,6 +56,9 @@
  622.  
  623. try{
  624. $rvs = DBRecord::createRecords(RESERVE_TBL, $options );
  625. + $month = 0;
  626. + $day = 0;
  627. + $first_flg = 1;
  628. $records = array();
  629. foreach( $rvs as $r ) {
  630. $cat = new DBRecord(CATEGORY_TBL, "id", $r->category_id );
  631. @@ -55,10 +66,15 @@
  632. $arr = array();
  633. $arr['id'] = $r->id;
  634. $arr['station_name'] = $ch->name;
  635. - $arr['starttime'] = $r->starttime;
  636. - $arr['endtime'] = $r->endtime;
  637. + $arr['starttime'] = getStartDateTime($r->starttime);
  638. + $arr['day_of_week'] = getDayOfWeek($r->starttime);
  639. + $arr['ut_now'] = time();
  640. + $arr['ut_start'] = strtotime($r->starttime);
  641. + $arr['ut_end'] = strtotime($r->endtime);
  642. + $arr['endtime'] = getEndTime($r->endtime);
  643. $arr['asf'] = "".$settings->install_url."/viewer.php?reserve_id=".$r->id;
  644. - $arr['title'] = htmlspecialchars($r->title,ENT_QUOTES);
  645. + $arr['title'] = getSimpleTitle(htmlspecialchars($r->title,ENT_QUOTES));
  646. +
  647. $arr['description'] = htmlspecialchars($r->description,ENT_QUOTES);
  648. $arr['thumb'] = "<img src=\"".$settings->install_url.$settings->thumbs."/".htmlentities($r->path, ENT_QUOTES,"UTF-8").".jpg\" />";
  649. $arr['cat'] = $cat->name_en;
  650. @@ -68,6 +84,22 @@
  651. else
  652. $arr['fsize'] = '';
  653.  
  654. + // 日付変更チェック
  655. + $arr['change_day'] = 0;
  656. + $date_and_time = split(" ", $r->starttime);
  657. + $start_date = split("-", $date_and_time[0]);
  658. + if ($month != intval($start_date[1]) || $day != intval($start_date[2])) {
  659. + $month = intval($start_date[1]);
  660. + $day = intval($start_date[2]);
  661. + $arr['change_day'] = 1;
  662. + }
  663. + $arr['first_flg'] = $first_flg;
  664. + $arr['month'] = $month;
  665. + $arr['day'] = $day;
  666. + if ($first_flg == 1) {
  667. + $first_flg = 0;
  668. + }
  669. +
  670. array_push( $records, $arr );
  671. }
  672.  
  673. @@ -99,12 +131,21 @@
  674.  
  675.  
  676. $smarty = new Smarty();
  677. - $smarty->assign("sitetitle","録画済一覧");
  678. + $smarty->assign("sitetitle","録画済リスト");
  679. $smarty->assign( "records", $records );
  680. $smarty->assign( "search", $search );
  681. $smarty->assign( "stations", $stations );
  682. $smarty->assign( "cats", $cats );
  683. $smarty->assign( "use_thumbs", $settings->use_thumbs );
  684. +
  685. + // 端末種(PC/MOBILE)ごとにフォントサイズ設定
  686. + if ($detect->isMobile()) {
  687. + $smarty->assign("base_font_size", MOBILE_BASE_FONT_SIZE);
  688. + $smarty->assign("float_follows_font_size", MOBILE_FLOAT_FOLLOWS_FONT_SIZE);
  689. + } else {
  690. + $smarty->assign("base_font_size", PC_BASE_FONT_SIZE);
  691. + $smarty->assign("float_follows_font_size", PC_FLOAT_FOLLOWS_FONT_SIZE);
  692. + }
  693.  
  694. $smarty->display("recordedTable.html");
  695.  
  696. @@ -131,4 +172,4 @@
  697. return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . @$sz[$factor];
  698. }
  699.  
  700. -?>
  701. \ No newline at end of file
  702. +?>
  703. diff -urN epgrec.org/redirect.php epgrec/redirect.php
  704. --- epgrec.org/redirect.php 1970-01-01 09:00:00.000000000 +0900
  705. +++ epgrec/redirect.php 2017-07-18 21:06:49.000000000 +0900
  706. @@ -0,0 +1,8 @@
  707. +<?php
  708. +$link = "https://movies.yahoo.co.jp/search/?query=";
  709. +if ($_SERVER["QUERY_STRING"] !== "") {
  710. + $link = $link.$_SERVER["QUERY_STRING"];
  711. +}
  712. +header("Location: {$link}");
  713. +exit;
  714. +?>
  715. diff -urN epgrec.org/reservationTable.php epgrec/reservationTable.php
  716. --- epgrec.org/reservationTable.php 2017-07-22 02:33:25.000000000 +0900
  717. +++ epgrec/reservationTable.php 2017-07-23 13:01:29.000000000 +0900
  718. @@ -2,34 +2,73 @@
  719. include_once('config.php');
  720. include_once( INSTALL_PATH . '/DBRecord.class.php' );
  721. include_once( INSTALL_PATH . '/Smarty/Smarty.class.php' );
  722. +include_once( INSTALL_PATH . "/Rock.inc.php" );
  723. +include_once( INSTALL_PATH . "/Rock_define.inc.php" );
  724. +require_once 'Mobile_Detect.php';
  725. +$detect = new Mobile_Detect;
  726.  
  727. try{
  728. $rvs = DBRecord::createRecords(RESERVE_TBL, "WHERE complete='0' ORDER BY starttime ASC" );
  729.  
  730. + $month = 0;
  731. + $day = 0;
  732. + $first_flg = 1;
  733. $reservations = array();
  734. foreach( $rvs as $r ) {
  735. $cat = new DBRecord(CATEGORY_TBL, "id", $r->category_id );
  736. $arr = array();
  737. $arr['id'] = $r->id;
  738. $arr['type'] = $r->type;
  739. - $arr['channel'] = $r->channel;
  740. - $arr['starttime'] = $r->starttime;
  741. - $arr['endtime'] = $r->endtime;
  742. + $ch_tbl = new DBRecord( CHANNEL_TBL, "channel_disc", $r->channel_disc );
  743. + $arr['channel'] = $ch_tbl->name;
  744. + $arr['starttime'] = getStartDateTime($r->starttime);
  745. + $arr['day_of_week'] = getDayOfWeek($r->starttime);
  746. + $arr['endtime'] = getEndTime($r->endtime);
  747. + $arr['ut_now'] = time();
  748. + $arr['ut_start'] = strtotime($r->starttime);
  749. + $arr['ut_end'] = strtotime($r->endtime);
  750. $arr['mode'] = $RECORD_MODE[$r->mode]['name'];
  751. - $arr['title'] = $r->title;
  752. + $arr['title'] = getSimpleTitle($r->title);
  753. + $arr['search_key'] = getSearchKey($r->title, $r->category_id);
  754. $arr['description'] = $r->description;
  755. $arr['cat'] = $cat->name_en;
  756. $arr['autorec'] = $r->autorec;
  757. +
  758. + // 日付変更チェック
  759. + $arr['change_day'] = 0;
  760. + $date_and_time = split(" ", $r->starttime);
  761. + $start_date = split("-", $date_and_time[0]);
  762. + if ($month != intval($start_date[1]) || $day != intval($start_date[2])) {
  763. + $month = intval($start_date[1]);
  764. + $day = intval($start_date[2]);
  765. + $arr['change_day'] = 1;
  766. + }
  767. + $arr['first_flg'] = $first_flg;
  768. + $arr['month'] = $month;
  769. + $arr['day'] = $day;
  770. + if ($first_flg == 1) {
  771. + $first_flg = 0;
  772. + }
  773.  
  774. array_push( $reservations, $arr );
  775. }
  776.  
  777. $smarty = new Smarty();
  778. - $smarty->assign("sitetitle","録画予約一覧");
  779. + $smarty->assign("sitetitle","予約リスト");
  780. $smarty->assign( "reservations", $reservations );
  781. +
  782. + // 端末種(PC/MOBILE)ごとにフォントサイズ設定
  783. + if ($detect->isMobile()) {
  784. + $smarty->assign("base_font_size", MOBILE_BASE_FONT_SIZE);
  785. + $smarty->assign("float_follows_font_size", MOBILE_FLOAT_FOLLOWS_FONT_SIZE);
  786. + } else {
  787. + $smarty->assign("base_font_size", PC_BASE_FONT_SIZE);
  788. + $smarty->assign("float_follows_font_size", PC_FLOAT_FOLLOWS_FONT_SIZE);
  789. + }
  790. +
  791. $smarty->display("reservationTable.html");
  792. }
  793. catch( exception $e ) {
  794. exit( $e->getMessage() );
  795. }
  796. -?>
  797. \ No newline at end of file
  798. +?>
  799. diff -urN epgrec.org/storeProgram.inc.php epgrec/storeProgram.inc.php
  800. --- epgrec.org/storeProgram.inc.php 2017-07-22 02:33:25.000000000 +0900
  801. +++ epgrec/storeProgram.inc.php 2017-07-23 02:13:54.000000000 +0900
  802. @@ -95,7 +95,8 @@
  803. reclog( "getepg::チャンネルレコード $channel_disc が発見できない", EPGREC_ERROR );
  804. }
  805. if( $channel_rec == null ) continue; // あり得ないことが起きた
  806. - if( $channel_rec->skip == 1 ) continue; // 受信しないチャンネル
  807. +// 全て受信する
  808. +// if( $channel_rec->skip == 1 ) continue; // 受信しないチャンネル
  809.  
  810. $starttime = str_replace(" +0900", '', $program['start'] );
  811. $endtime = str_replace( " +0900", '', $program['stop'] );
  812. diff -urN epgrec.org/templates/envSetting.html epgrec/templates/envSetting.html
  813. --- epgrec.org/templates/envSetting.html 2017-07-22 02:33:25.000000000 +0900
  814. +++ epgrec/templates/envSetting.html 2017-07-18 21:46:37.000000000 +0900
  815. @@ -157,12 +157,13 @@
  816. <tr><td>%SID%</td><td>サービスID</td></tr>
  817. <tr><td>%DOW%</td><td>曜日(英3文字Sun-Mon)</td></tr>
  818. <tr><td>%DOWJ%</td><td>曜日(漢字1字日-土)</td></tr>
  819. - <tr><td>%YEAR%</td><td>開始年</td></tr>
  820. - <tr><td>%MONTH%</td><td>開始月</td></tr>
  821. - <tr><td>%DAY%</td><td>開始日</td></tr>
  822. - <tr><td>%HOUR%</td><td>開始時</td></tr>
  823. - <tr><td>%MIN%</td><td>開始分</td></tr>
  824. - <tr><td>%SEC%</td><td>開始秒</td></tr>
  825. + <tr><td>%YEAR%</td><td>開始年(YYYY)</td></tr>
  826. + <tr><td>%YEAR2%</td><td>開始年(YY)</td></tr>
  827. + <tr><td>%MONTH%</td><td>開始月(MM)</td></tr>
  828. + <tr><td>%DAY%</td><td>開始日(DD)</td></tr>
  829. + <tr><td>%HOUR%</td><td>開始時(hh)</td></tr>
  830. + <tr><td>%MIN%</td><td>開始分(mm)</td></tr>
  831. + <tr><td>%SEC%</td><td>開始秒(ss)</td></tr>
  832. <tr><td>%DURATION%</td><td>録画時間(秒)</td></tr>
  833. </tbody>
  834. </table>
  835. diff -urN epgrec.org/templates/index.html epgrec/templates/index.html
  836. --- epgrec.org/templates/index.html 2017-07-22 02:33:25.000000000 +0900
  837. +++ epgrec/templates/index.html 2017-07-23 13:49:25.000000000 +0900
  838. @@ -1,12 +1,12 @@
  839. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  840. "http://www.w3.org/TR/html4/loose.dtd">
  841.  
  842. -<html>
  843. +<html style="{if $is_mobile == 1}-webkit-user-select:none;{/if}">
  844. <head>
  845. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  846. <title>{$sitetitle}</title>
  847. <meta http-equiv="Content-Style-Type" content="text/css">
  848. -
  849. +<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=2.0,user-scalable=yes">
  850. {literal}
  851.  
  852. <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
  853. @@ -29,12 +29,6 @@
  854. $(window).resize(function () { tvtimes2scrl();});
  855. function tvtimes2scrl(){
  856. var inwidth = parseInt($('body').innerWidth());
  857. - // IE6
  858. - if ($.browser.msie && $.browser.version == 6){ inwidth = document.documentElement.clientWidth;}
  859. - var newLeft = inwidth - parseInt($('#tvtimes2').width()) + parseInt($( document ).scrollLeft());
  860. - if(newLeft > t2max ) {newLeft = t2max}
  861. - $('#tvtimes2').css('left', newLeft);
  862. - $('#float_follows').width(inwidth);
  863. }
  864. }
  865. function prg_hover(){
  866. @@ -44,16 +38,30 @@
  867. var duration = parseInt(TG.children('.prg_duration').html());
  868. var endTime = new Date(startTime.getTime() + duration * 1000);
  869. var prgID = parseInt(TG.children('.prg_id').html());
  870. + var complate = TG.children('.prg_complate').html();
  871. + var over = TG.children('.prg_over').html();
  872. + var description = TG.children('.prg_desc').html();
  873.  
  874. var str = '<div class="prg_title">' + TG.children('.prg_title').html() +'</div>' +
  875. - '<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>' +
  876. - '<div class="prg_startTime" style="clear: left"><span class=" labelLeft">日時:</span>' + MDA.Days.time4Disp(startTime) + ' ~ ' + MDA.Days.time4DispH(endTime) + '</div>' +
  877. - '<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>' +
  878. - '</div>';
  879. + '<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>' +
  880. + '<div class="prg_startTime" style="clear: left"><span class="labelLeft">日時:</span>' + MDA.Days.time4Disp(startTime) + ' ~ ' + MDA.Days.time4DispH(endTime) + '</div>' +
  881. + '<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>';
  882. + if (description.length) {
  883. + str += '<div class="prg_desc" style="clear: left"><span class="labelLeft">番組内容:</span><span class="bold2">' + description + '</span></div>';
  884. + }
  885. + str += '</div>';
  886. if ($(this).hasClass('prg_rec')) {
  887. - 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>';
  888. + if (complate == 1) {
  889. + 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>';
  890. + } else {
  891. + 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>';
  892. + }
  893. } else {
  894. - 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>';
  895. + if (over == 1) {
  896. + 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>';
  897. + } else {
  898. + 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 customize_reserv_btn">予約カスタマイズ</a> <a href="javascript:PRG.dialog_close();" id="cancel_btn" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">キャンセル</a></div>';
  899. + }
  900. }
  901. $('#floatBox4Dialog').html(str);
  902. $('#floatBox4Dialog').dialog('open', 'center');
  903. @@ -68,17 +76,21 @@
  904. var duration = parseInt(TG.children('.prg_duration').html());
  905. var endTime = new Date(startTime.getTime() + duration * 1000);
  906. var str = '<div class="prg_title">' + TG.children('.prg_title').html() + '</div>' +
  907. - '<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>';
  908. - $('#prg_info').html('<div class="prg_dummy">' + str + '</div>').show();
  909. + '<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>';
  910. $(this).click(aClick);
  911. },
  912. function(){
  913. - $(this).removeClass('prg_hover');$('#prg_info').hide();
  914. $(this).unbind('click',aClick);
  915. }
  916. );
  917. }
  918. var PRG = {
  919. + dialog_close:function() {
  920. + $('#floatBox4Dialog').dialog('close');
  921. + },
  922. + channel_dialog_close:function() {
  923. + $('#channelDialog').dialog('close');
  924. + },
  925. chdialog:function(chash){
  926. $('#channelDialog').dialog('close');
  927. var skip = $('#ch_title_'+chash+' .ch_skip').html();
  928. @@ -100,9 +112,10 @@
  929. str += '<input type="checkbox" name="n_skip_name" id="id_ch_skip" value="'+skip+'" />';
  930. }
  931. str += '</span></div>';
  932. + str += '<div class="prg_title"><span></span></div>';
  933. // サービスID
  934. str += '<div class="prg_channel"><span class="labelLeft">サービスID:</span>';
  935. - str += '<span><input type="text" name="n_sid" size="20" id="id_sid" value="';
  936. + str += '<span><input type="text" readonly="readonly" name="n_sid" size="20" id="id_sid" value="';
  937. str += sid;
  938. str += '" /></span></div>';
  939.  
  940. @@ -115,8 +128,8 @@
  941.  
  942.  
  943. str += '</form>';
  944. -
  945. - 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>';
  946. +
  947. + 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>';
  948.  
  949. $('#channelDialog').html(str);
  950. $('#channelDialog').dialog('open', 'center');
  951. @@ -171,6 +184,7 @@
  952. $('#floatBox4Dialog').dialog('close');
  953. }else{
  954. $('#prgID_' + id).addClass('prg_rec');
  955. + $('#prg_rec_msg_' + id).html('<br>録画予約<br><br>');
  956. $('#floatBox4Dialog').dialog('close');
  957. }
  958. });
  959. @@ -183,6 +197,7 @@
  960. $('#floatBox4Dialog').dialog('close');
  961. }else{
  962. $('#prgID_' + id).removeClass('prg_rec');
  963. + $('#prg_rec_msg_' + id).html('');
  964. $('#floatBox4Dialog').dialog('close');
  965. }
  966. });
  967. @@ -253,9 +268,9 @@
  968. },
  969. F_Skip: 1,
  970. chSkipShow:function() {
  971. - $('#float_titles').width(INISet.num_all_ch * INISet.ch_width + 80);
  972. + $('#float_titles').width(INISet.num_all_ch * INISet.ch_width + 61);
  973. $('#tv_chs').width(INISet.num_all_ch * INISet.ch_width );
  974. - $('#tvtimes2').css( { left: INISet.num_all_ch * INISet.ch_width + 40 } ).show();
  975. + $('#tvtimes2').css( { left: INISet.num_all_ch * INISet.ch_width + 31 } ).show();
  976. tvtimes_scroll();
  977. $('#ch_title_bar div.ch_title_skip').show();
  978. $('#tv_chs div.ch_set_skip').show();
  979. @@ -264,9 +279,9 @@
  980. chSkipHide:function() {
  981. $('#ch_title_bar div.ch_title_skip').hide();
  982. $('#tv_chs div.ch_set_skip').hide();
  983. - $('#float_titles').width( INISet.num_ch * INISet.ch_width + 80 );
  984. + $('#float_titles').width( INISet.num_ch * INISet.ch_width + 61 );
  985. $('#tv_chs').width( INISet.num_ch * INISet.ch_width );
  986. - $('#tvtimes2').css( { left: INISet.num_ch * INISet.ch_width + 40 }).show();
  987. + $('#tvtimes2').css( { left: INISet.num_ch * INISet.ch_width + 31 }).show();
  988. tvtimes_scroll();
  989. nowBar.INI();
  990. },
  991. @@ -329,7 +344,7 @@
  992. $('#tvtable').append('<div id="' + this.defaultID + '" style="display:none">now</div>');
  993. this.startTime = new Date(INISet.tableStartTime);
  994. this.endTime = new Date(INISet.tableEndTime);
  995. - $('#' + this.defaultID).width($('#float_titles').width());
  996. + $('#' + this.defaultID).width($('#float_titles').width() - 4);
  997. this.ch();
  998. }
  999. },
  1000. @@ -337,7 +352,6 @@
  1001. var now = new Date();
  1002. if(this.startTime){
  1003. if((now >= this.startTime) && (this.endTime >= now)){
  1004. -// console.log((now - this.startTime) / 60000);
  1005. $('#' + this.defaultID).css({top:(now - this.startTime) / 60000 * INISet.dotMin}).show()
  1006. } else {
  1007. $('#' + this.defaultID).hide()
  1008. @@ -352,13 +366,11 @@
  1009. defaultCk:{md:'',x:0,y:0},
  1010. 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'}],
  1011. INI:function(){
  1012. -// this.defaultCk.y = $('#float_titles').position().top;
  1013. $.each(this.jqSel, function(){
  1014. var md = this.md;
  1015. $(this.sel).click(function(){MDA.SCR.oCk(md)})
  1016. });
  1017. var Ck = this.CkGet();
  1018. -// console.log(Ck);
  1019. var x = (Ck.md.indexOf('x')>-1)?Ck.x:this.defaultCk.x;
  1020. var y = (Ck.md.indexOf('y')>-1)?Ck.y:this.defaultCk.y;
  1021. if (Ck.md) {
  1022. @@ -409,9 +421,8 @@
  1023. DG2.dialog({title:'チャンネル情報',width:480});
  1024. DG2.dialog('close');
  1025.  
  1026. -// PRG.toggle();
  1027. -
  1028. nowBar.INI();
  1029. + setInterval("nowBar.INI()", 60000);
  1030. CTG.INI();
  1031. MDA.SCR.INI(); // 番組表の位置保存
  1032. });
  1033. @@ -421,39 +432,56 @@
  1034.  
  1035. <style type="text/css">
  1036. <!--
  1037. -body {padding:0;margin:0;font-size:10pt;}
  1038. +* {
  1039. + word-break: break-all;
  1040. + -webkit-text-size-adjust: none;
  1041. + -webkit-overflow-scrolling: touch;
  1042. + -webkit-touch-callout:none;
  1043. +}
  1044. +
  1045. +html {
  1046. + -webkit-text-size-adjust: none;
  1047. + background-color: #888ca0;
  1048. + background: #888ca0;
  1049. + color: #02262f;
  1050. + font-family: HiraKakuProN-W3;
  1051. + font-size: 6.25%;
  1052. + line-height: 1.25;
  1053. +}
  1054. +
  1055. +body {padding:0;margin:0;font-size:12pt;background-color: #888ca0;}
  1056. a {text-decoration:none;}
  1057.  
  1058. .bold {font-weight:bold;}
  1059. .small {font-size:75%;}
  1060.  
  1061. -h2 {padding: 4px}
  1062. +#float_titles {position:absolute;background-color:#888ca0;}
  1063.  
  1064. -#float_titles {position:absolute;background-image: url(imgs/trancBG50.png);}
  1065. -
  1066. -#float_titles div.set.ctg_sel {background-color:#BBB;color:#3CF}
  1067. +#float_titles div.set.ctg_sel {background-color:#bbb;color:#3CF}
  1068. #float_titles .ctg_sel a{color:#111;}
  1069.  
  1070. -#float_titles div.set {float:left;background-color:#444;padding:4px;margin:4px;}
  1071. +#float_titles div.set {float:left;background-color:#888ca0;padding:0px;margin:5px;}
  1072. #float_titles span.title {float:left;color:#ACF;}
  1073. -#float_titles ul {float:left;padding:0;margin:0;}
  1074. -#float_titles ul li {float:left;list-style:none;margin:0 0 0 4px;}
  1075. -#float_titles li a{padding:1px 4px;background-color:#555;color:#FFF;}
  1076. -#float_titles li.selected a{background-color:#48B;}
  1077. -#float_titles li a:hover{background-color:#28D;}
  1078. +#float_titles ul {float:left;padding:0px;margin:0px;}
  1079. +#float_titles ul li {float:left;list-style:none;margin:5px 2px 0px 0px; }
  1080. +#float_titles li a{padding:6px 10px;background-color:#8696c0;color:#e8e8ec;border: 1px solid #505080;}
  1081. +#float_titles li.selected a{background-color:#c6d8fe; font-weight:bold; color:#444;}
  1082. +#float_titles li.non_selected a{background-color:#b2b4c0; font-weight:bold; color:#444;}
  1083. +#float_titles li.selected2 a{background-color:#ffffff; font-weight:bold; color:#000;}
  1084.  
  1085. #float_titles, #tvtable {}
  1086. #tvtable {line-height:1.2em;width:100%;position:relative;}
  1087. -#tvtimes,#tvtimes2 {position:absolute; background-image: url(imgs/trancBG70.png);}
  1088. -#tvtimes,#tvtimes2, .tvtimeDM {width:40px;}
  1089. -#tv_chs {padding-left:40px;padding-right:40px;}
  1090. +#tvtimes,#tvtimes2 {position:absolute; background-color: #d4d6e0; font-size: 12px;}
  1091. +#tvtimes,#tvtimes2, .tvtimeDM {width:30px;}
  1092. +#tv_chs {padding-left:30px;padding-right:30px;}
  1093. .tvtime {
  1094. height:{/literal}{$height_per_hour}{literal}px;
  1095. - color:#EEE;
  1096. + color:#444;
  1097. text-align:center;
  1098. font-weight:bold;
  1099. + font-size: 9px;
  1100. font-size:120%;
  1101. - background-image: url(imgs/dot2.gif);
  1102. + border-bottom: 1px solid #888ca0;
  1103. background-repeat: repeat-x;
  1104. background-position: left bottom;
  1105. }
  1106. @@ -462,6 +490,8 @@
  1107. #tvtable div.ch_set {width:{/literal}{$ch_set_width}{literal}px;float:left;background-color:#BBB;}
  1108. .ch_set_skip { display: none; }
  1109.  
  1110. +/* カスタマイズ予約を使う場合は、下記1行を削除してください。*/
  1111. +.customize_reserv_btn {display: none;}
  1112.  
  1113. #tvtable div.ch_title, #tvtable div.prg {margin-right:2px;}
  1114. #tvtable div.ch_title {padding:8px 0px;background-color:#333;color:#DDD;font-weight:bold;text-align:center}
  1115. @@ -477,43 +507,48 @@
  1116. #tvtable div.prg {
  1117. overflow:hidden;
  1118. color:#444;
  1119. - background-image: url(imgs/dot2.gif);
  1120. - background-image: url(imgs/prg_bg2.png);
  1121. background-repeat: repeat-x;
  1122. background-position: left bottom;
  1123. - -moz-border-radius: 0.6em 0.6em 0.3em 0.3em;
  1124. - -webkit-border-radius: 0.6em;
  1125. - -webkit-border-bottom-right-radius: 0.3em;
  1126. - -webkit-border-bottom-left-radius: 0.3em;
  1127. + margin: 0px;
  1128. + padding: 0px;
  1129. + border-left: 1px solid #888ca0;
  1130. + border-bottom: 1px solid #888ca0;
  1131. }
  1132. -#tvtable div.prg_none {background-color:#eee;}
  1133. +#tvtable div.prg_none {background-color:#aaaaaa;}
  1134. #tvtable div.prg_dummy {margin:3px 6px;}
  1135. -#tvtable div.prg_title {color:#111;font-weight:bold;}
  1136. -#tvtable div.prg_subtitle {font-size:80%;}
  1137. -#tvtable div.prg_desc {font-size:80%;}
  1138. +#tvtable div.prg_title {color:#5068d4;font-weight:bold;text-decoration: underline;line-height: 1.5;}
  1139. +#tvtable div.prg_subtitle {color:#444;font-weight:bold;margin-bottom:4px;}
  1140. +#tvtable div.prg_desc {font-size:85%; color:#444; margin-top: 5px;line-height: 1.5;}
  1141. +#float_titles.* {font-size:14px;}
  1142.  
  1143. #tvtable div.prg_start,#tvtable div.prg_duration,#tvtable div.prg_channel ,#tvtable div.prg_id {display: none;}
  1144.  
  1145. -#tvtable div.ctg_news, #category_select a.ctg_news {background-color: #FFFFD8;}
  1146. -#tvtable div.ctg_etc, #category_select a.ctg_etc {background-color: #FFFFFF;}
  1147. -#tvtable div.ctg_information, #category_select a.ctg_information {background-color: #F2D8FF;}
  1148. -#tvtable div.ctg_sports, #category_select a.ctg_sports {background-color: #D8FFFF;}
  1149. -#tvtable div.ctg_cinema, #category_select a.ctg_cinema {background-color: #FFD8D8;}
  1150. -#tvtable div.ctg_music, #category_select a.ctg_music {background-color: #D8D8FF;}
  1151. -#tvtable div.ctg_drama, #category_select a.ctg_drama {background-color: #D8FFD8;}
  1152. -#tvtable div.ctg_anime, #category_select a.ctg_anime {background-color: #FFE4C8;}
  1153. -#tvtable div.ctg_variety, #category_select a.ctg_variety {background-color: #FFD2EB;}
  1154. -#tvtable div.ctg_10, #category_select a.ctg_10 {background-color: #E4F4F4;}
  1155. +#tvtable div.ctg_news, #category_select a.ctg_news {background-color: #d4ffc8;}
  1156. +#tvtable div.ctg_etc, #category_select a.ctg_etc {background-color: #ccfcf4;}
  1157. +#tvtable div.ctg_information, #category_select a.ctg_information {background-color: #f0f0f0;}
  1158. +#tvtable div.ctg_sports, #category_select a.ctg_sports {background-color: #ffccef;}
  1159. +#tvtable div.ctg_cinema, #category_select a.ctg_cinema {background-color: #ccfcf4;}
  1160. +#tvtable div.ctg_music, #category_select a.ctg_music {background-color: #b6f2ff;}
  1161. +#tvtable div.ctg_drama, #category_select a.ctg_drama {background-color: #ffbbbb;}
  1162. +#tvtable div.ctg_anime, #category_select a.ctg_anime {background-color: #dcddff;}
  1163. +#tvtable div.ctg_variety, #category_select a.ctg_variety {background-color: #faffb0;}
  1164. +#tvtable div.ctg_documentary, #category_select a.ctg_documentary {background-color: #f0f0f0;}
  1165. +#tvtable div.ctg_hobby, #category_select a.ctg_hobby {background-color: #f8f8ff;}
  1166. +#tvtable div.ctg_stage, #category_select a.ctg_stage {background-color: #e0f0f9;}
  1167. +#tvtable div.ctg_welfare, #category_select a.ctg_welfare {background-color: #e0e0e0;}
  1168. +#tvtable div.ctg_10, #category_select a.ctg_10 {background-color: #f0f0f0;}
  1169. #tvtable div.ctg-hide, #category_select a.ctg-hide {background-color: #F8F8F8;color:#888;}
  1170. #tvtable div.ctg-hide .prg_title, #category_select a.ctg-hide .prg_title{color:#666;}
  1171. -#tvtable div.prg_rec {background-color: #F55;color:#FEE}
  1172. -#tvtable div.prg_rec .prg_title,#tvtable div.prg_hover .prg_title {color:white;}
  1173. -#tvtable div.prg_hover {background-color: #28D;color:#EFF}
  1174. +#tvtable div.prg_rec {background-color: #ff7080;color:#333}
  1175. +#tvtable div.prg_rec .prg_title,#tvtable .prg_title {color:#2840d4;}
  1176. +#tvtable div.prg_rec_msg {font-weight:bold; text-align:center;}
  1177. +.ctg_over {background-color: #aaaaaa;}
  1178. +#jump-time { display: none; }
  1179. +.ctg_sel { display: none; }
  1180.  
  1181. #float_titles { z-index:100}
  1182. #float_titles div.ch_title {width:{/literal}{$ch_set_width}{literal}px;float:left;color:#FFF;font-weight:bold;text-align:center}
  1183. -#float_titles div.ch_title div{padding:8px 0px;margin:0 6px 0 4px;background-image: url(imgs/trancBG50.png);}
  1184. -
  1185. +#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;}
  1186.  
  1187. #float_follows {position:absolute;}
  1188. #prg_info {
  1189. @@ -529,7 +564,7 @@
  1190. #prg_info div.prg_title {font-weight:bold;font-size:120%;color:#FFF;}
  1191. #prg_info span.prg_sub {color:#FFF;}
  1192.  
  1193. -#tableNowBas {position:absolute;background:red;width:100%;top:190px;height:2px;overflow:hidden;}
  1194. +#tableNowBas {position:absolute;width:100%;top:190px;height:0px;overflow:hidden; border: 2px dashed #ff5555; opacity: 0.5;}
  1195.  
  1196.  
  1197. #floatBox4Dialog .prg_title{font-size:120%;font-weight:bold;padding:0.4em 0;text-align:center;}
  1198. @@ -542,7 +577,6 @@
  1199. #channelDialog .prg_rec_cfg{background:#EEE;padding:1em 2em;margin:0.4em 0;}
  1200. #channelDialog .labelLeft {width:8em;float:left;text-align:right;}
  1201. #channelDialog .button {padding:0.4em 1em;}
  1202. -
  1203. -->
  1204. </style>
  1205.  
  1206. @@ -552,21 +586,13 @@
  1207.  
  1208. </head>
  1209.  
  1210. -<body>
  1211. -
  1212. -<h2>{$sitetitle}</h2>
  1213. -
  1214. -
  1215. -<div id="float_titles" style="width: {math equation="x + 80" x=$chs_width}px;height:120px;">
  1216. -<div id="float_follows">
  1217. -
  1218. -<div class="set">
  1219. - <ul>
  1220. - <li><a href="envSetting.php">環境設定</a></li>
  1221. - </ul>
  1222. -</div>
  1223. +<body style="font-size:{$base_font_size}pt">
  1224.  
  1225. +<div id="float_titles" style="width: {math equation="x + 61" x=$chs_width}px;height:120px;">
  1226. +<div id="float_follows" style="font-size: {$float_follows_font_size}px;">
  1227. +<!-- upper -->
  1228. <div class="set ctg_sel" id="category_select">
  1229. + <!--強調表示はcssで非表示に -->
  1230. <span class="title"><a href="javascript:CTG.toggle()">強調表示</a></span>
  1231.  
  1232. <ul>
  1233. @@ -576,56 +602,51 @@
  1234. </ul>
  1235. </div>
  1236.  
  1237. +<div class="set">
  1238. + <ul>
  1239. + <li class="selected"><a href="#">番組表</a></li>
  1240. + <li><a href="reservationTable.php">予約リスト</a></li>
  1241. + <li><a href="programTable.php">キーワード検索</a></li>
  1242. + <li><a href="keywordTable.php">自動検索予約リスト</a></li>
  1243. + <li><a href="recordedTable.php">録画済リスト</a></li>
  1244. + <li><a href="logViewer.php">ログ</a></li>
  1245. + <li><a href="envSetting.php">設定</a></li>
  1246. + </ul>
  1247. +</div>
  1248. +<!-- upper end -->
  1249. +
  1250. +<br style="clear:left;" />
  1251. +
  1252. +<!-- lower start -->
  1253. <div id="time_selects">
  1254. + <!-- 放送波選択-->
  1255. <div class="set" id="jump-broadcast" >
  1256. - <span class="title">放送波選択</span>
  1257. <ul>
  1258. {foreach from=$types item=type}
  1259. - <li {$type.selected}><a class="jump" href="{$type.link}">{$type.name}</a></li>
  1260. + <li {$type.selected}><a class="jump2" href="{$type.link}">{$type.name}</a></li>
  1261. {/foreach}
  1262. - </ul><br style="clear:left;" />
  1263. - </div>
  1264. -
  1265. - <div class="set" id="jump-time">
  1266. - <span class="title">時間</span>
  1267. - <ul>
  1268. - {foreach from=$toptimes item=top}
  1269. - <li><a class="jump" href="{$top.link}">{$top.hour}~</a></li>
  1270. - {/foreach}
  1271. - </ul><br style="clear:left;" />
  1272. + </ul>
  1273. </div>
  1274. -
  1275. <div class="set">
  1276. - <ul><li><a class="jump" href="javascript:PRG.toggle()">チャンネル表示</a></li></ul>
  1277. - </div>
  1278. -
  1279. - <br style="clear:left;" />
  1280. -
  1281. - <div class="set">
  1282. - <ul>
  1283. - <li><a href="programTable.php">番組検索</a></li>
  1284. - <li><a href="reservationTable.php">録画予約一覧</a></li>
  1285. - <li><a href="recordedTable.php">録画済一覧</a></li>
  1286. - </ul>
  1287. + <ul><li><a class="jump" href="javascript:PRG.toggle()" style="background-color:#d4d6e0; color: #444; font-weight: bold;">表示切替</a></li></ul>
  1288. </div>
  1289.  
  1290. + <!-- 日付 -->
  1291. <div class="set" id="jump-day" >
  1292. - <span class="title">日付</span>
  1293. <ul>
  1294. {foreach from=$days item=day}
  1295. - <li {$day.selected}><a {if $day.d eq "現在"} class="jump-today" {else} class="jump" {/if} href="{$day.link}">{$day.d}{$day.ofweek}</a></li>
  1296. + <li {$day.selected}><a {if $day.d eq "今の時間"} class="jump-today" {else} class="jump2" {/if} href="{$day.link}">{$day.d}{$day.ofweek}</a></li>
  1297. {/foreach}
  1298. </ul><br style="clear:left;" />
  1299. </div>
  1300. -
  1301. -
  1302. </div>
  1303. +
  1304. <br style="clear:left;" />
  1305. <div id="prg_info"><div class="dummy">test</div></div>
  1306. </div>
  1307.  
  1308.  
  1309. -<!-- チャンネル局名 -->
  1310. +<!-- チャンネル局名ヘッダー -->
  1311. <div id="ch_title_bar" style="position:absolute;bottom:0;">
  1312. <div class="tvtimeDM" style="float:left;">&nbsp;</div>
  1313. {foreach from=$programs item=program}{if isset($program.ch_hash)}
  1314. @@ -635,7 +656,7 @@
  1315. <div class="ch_skip">{$program.skip}</div>
  1316. <div class="ch_sid">{$program.sid}</div>
  1317. <div class="ch_name">{$program.station_name}</div>
  1318. - <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>
  1319. + <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>
  1320. </div>
  1321. {else}
  1322. <div class="ch_title"><div style="font-style:italic">no epg</div></div>
  1323. @@ -648,12 +669,10 @@
  1324.  
  1325. <div id="float_titles_dummy" style="width:1410px;height:120px;">&nbsp;</div>
  1326.  
  1327. -
  1328. <div id="tvtable">
  1329. -
  1330. <div id="tvtimes">
  1331. {foreach from=$tvtimes item=time}
  1332. - <div class="tvtime">{$time}</div>
  1333. + <div class="tvtime"><br>{$time}<br>時</div>
  1334. {/foreach}
  1335. </div>
  1336.  
  1337. @@ -664,36 +683,41 @@
  1338. {else}
  1339. <div class="ch_set"><div class="ch_programs">
  1340. {/if}{foreach from=$program.list item=item}{if isset($item.id)}
  1341. - <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;">
  1342. + <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;">
  1343. <div class="prg_dummy">
  1344. - <div class="prg_title">{$item.title|escape}</div>
  1345. <div class="prg_subtitle">{$item.starttime}</div>
  1346. - <div class="prg_desc">{$item.description|escape}</div>
  1347. - <div class="prg_channel">{$item.channel}</div>
  1348. + <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>
  1349. + <div class="prg_title">{$item.title|escape}</div>
  1350. + <div class="prg_desc" style="{if $item.duration < 30*60}display: none;{/if}">{$item.description|escape}</div>
  1351. + <div>{if $item.ut_now < $item.ut_end}<img src="/imgs/reserve.gif" style="margin-top: 6px;">{/if}</div>
  1352. + <!--<div class="prg_channel">{$item.channel}</div>-->
  1353. + <div class="prg_channel">{$item.station_name}</div>
  1354. <div class="prg_start">{$item.prg_start}</div>
  1355. <div class="prg_duration">{$item.duration}</div>
  1356. + <div class="prg_complate" style="display: none;">{$item.complate}</div>
  1357. + <div class="prg_over" style="display: none;">{$item.over}</div>
  1358. <div class="prg_id">{$item.id}</div>
  1359. </div>
  1360. </div>
  1361. {else}
  1362. - <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">&nbsp;</div></div></div>
  1363. + <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>
  1364. {/if}{/foreach}
  1365. </div>
  1366. </div>
  1367. {/foreach}
  1368. </div>
  1369.  
  1370. - <div id="tvtimes2" style="top : 0px; left: {math equation="x + 40" x=$chs_width}px" >
  1371. + <div id="tvtimes2" style="top : 0px; left: {math equation="x + 31" x=$chs_width}px" >
  1372. {foreach from=$tvtimes item=time}
  1373. - <div class="tvtime">{$time}</div>
  1374. + <div class="tvtime"><br>{$time}<br>時</div>
  1375. {/foreach}
  1376. </div>
  1377. </div>
  1378.  
  1379.  
  1380.  
  1381. -<div id="floatBox4Dialog">jQuery UI Dialog</div>
  1382. -<div id="channelDialog">jQuery UI Dialog</div>
  1383. +<div id="floatBox4Dialog"></div>
  1384. +<div id="channelDialog"></div>
  1385.  
  1386. {literal}
  1387. <script type="text/javascript">
  1388. diff -urN epgrec.org/templates/keywordTable.html epgrec/templates/keywordTable.html
  1389. --- epgrec.org/templates/keywordTable.html 2017-07-22 02:33:25.000000000 +0900
  1390. +++ epgrec/templates/keywordTable.html 2017-07-23 12:57:26.000000000 +0900
  1391. @@ -1,10 +1,11 @@
  1392. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  1393. "http://www.w3.org/TR/html4/loose.dtd">
  1394.  
  1395. -<html>
  1396. +<html style="{if $is_mobile == 1}-webkit-user-select:none;{/if}">
  1397. <head>
  1398. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  1399. -<title>{$sitetitle}</title>
  1400. +<title>{$sitetitle}/{$kw}</title>
  1401. +<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=2.0,user-scalable=yes">
  1402. <meta http-equiv="Content-Style-Type" content="text/css">
  1403.  
  1404. {literal}
  1405. @@ -24,91 +25,145 @@
  1406. </script>
  1407. <style type="text/css">
  1408. <!--
  1409. -body {padding:4px;margin:0;font-size:10pt;}
  1410. +* {
  1411. + word-break: break-all;
  1412. + -webkit-text-size-adjust: none;
  1413. + -webkit-overflow-scrolling: touch;
  1414. + -webkit-touch-callout:none;
  1415. +}
  1416. +
  1417. +html {
  1418. + -webkit-text-size-adjust: none;
  1419. + background-color: #888ca0;
  1420. + background: #888ca0;
  1421. + color: #02262f;
  1422. + font-family: HiraKakuProN-W3;
  1423. + font-size: 6.25%;
  1424. + line-height: 1.25;
  1425. +}
  1426. +body {padding:0px;margin:0;font-size:12pt;background-color: #888ca0;}
  1427. a {text-decoration:none;}
  1428.  
  1429. table#reservation_table {
  1430. - width: 800px;
  1431. + font-size: 95%;
  1432. border: 1px #BBB solid;
  1433. border-collapse: collapse;
  1434. border-spacing: 0;
  1435. }
  1436.  
  1437. table#reservation_table th {
  1438. - padding: 5px;
  1439. - border: #E3E3E3 solid;
  1440. - border-width: 0 0 1px 1px;
  1441. - background: #BBB;
  1442. + padding:5px;
  1443. + border: #BBB solid;
  1444. + border-width: 1px 1px 1px 1px;
  1445. + background: #70c69a;
  1446. + color: #fff;
  1447. font-weight: bold;
  1448. line-height: 120%;
  1449. text-align: center;
  1450. }
  1451. table#reservation_table td {
  1452. - padding: 5px;
  1453. + padding-top: 15px;
  1454. + padding-bottom: 15px;
  1455. + padding-left: 5px;
  1456. + padding-right: 5px;
  1457. border: 1px #BBB solid;
  1458. border-width: 0 0 1px 1px;
  1459. text-align: center;
  1460. }
  1461. +table#reservation_table tr:nth-child(2n) {
  1462. + background: #f0f0f8;
  1463. +}
  1464. +table#reservation_table tr:nth-child(2n+1) {
  1465. + background: #f8f8ff;
  1466. +}
  1467. +input[type="submit"] {
  1468. + background-image: linear-gradient(0deg, #a7d9f5, #eaf6fd);
  1469. + border: 1px solid #3c7fb1;
  1470. + border-radius: 0.3em;
  1471. +}
  1472. +input[type="button"] {
  1473. + background-image: linear-gradient(0deg, #a7d9f5, #eaf6fd);
  1474. + border: 1px solid #3c7fb1;
  1475. + border-radius: 0.3em;
  1476. +}
  1477.  
  1478. -table#reservation_table tr.ctg_news, #category_select a.ctg_news {background-color: #FFFFD8;}
  1479. -table#reservation_table tr.ctg_etc, #category_select a.ctg_etc {background-color: #FFFFFF;}
  1480. -table#reservation_table tr.ctg_information, #category_select a.ctg_information {background-color: #F2D8FF;}
  1481. -table#reservation_table tr.ctg_sports, #category_select a.ctg_sports {background-color: #D8FFFF;}
  1482. -table#reservation_table tr.ctg_cinema, #category_select a.ctg_cinema {background-color: #FFD8D8;}
  1483. -table#reservation_table tr.ctg_music, #category_select a.ctg_music {background-color: #D8D8FF;}
  1484. -table#reservation_table tr.ctg_drama, #category_select a.ctg_drama {background-color: #D8FFD8;}
  1485. -table#reservation_table tr.ctg_anime, #category_select a.ctg_anime {background-color: #FFE4C8;}
  1486. -table#reservation_table tr.ctg_variety, #category_select a.ctg_variety {background-color: #FFD2EB;}
  1487. -table#reservation_table tr.ctg_10, #category_select a.ctg_10 {background-color: #E4F4F4;}
  1488. -table#reservation_table tr.prg_rec {background-color: #F55;color:#FEE}
  1489.  
  1490. +#float_titles div.set {float:left;background-color:#888ca0;padding:0px;margin:5px;}
  1491. +#float_titles ul {float:left;padding:0px;margin:0px;}
  1492. +#float_titles ul li {float:left;list-style:none;margin:5px 2px 0px 0px; }
  1493. +#float_titles li a{padding:6px 10px;background-color:#8696c0;color:#e8e8ec;border: 1px solid #505080;}
  1494. +#float_titles li.selected a{background-color:#c6d8fe; font-weight:bold; color:#444;}
  1495. +
  1496. +table {
  1497. + background-color:#ececf0;
  1498. + margin-top: 10px;
  1499. + margin-left: 10px;
  1500. + margin-bottom: 10px;
  1501. + padding:10px;
  1502. +}
  1503. +tr {
  1504. + padding: 0px;
  1505. + border: 1px solid #bbb;
  1506. +}
  1507. +td {
  1508. + padding: 0px;
  1509. +}
  1510.  
  1511. +.mode {display: none;}
  1512. -->
  1513. </style>
  1514. {/literal}
  1515.  
  1516. </head>
  1517.  
  1518. -<body>
  1519. -
  1520. -<h2>{$sitetitle}</h2>
  1521. -
  1522. -
  1523. -<div><a href="programTable.php">番組検索へ</a>/<a href="reservationTable.php">予約一覧へ</a></div>
  1524. +<body style="font-size:{$base_font_size}pt">
  1525.  
  1526. +<div id="float_titles" style="font-size: {$float_follows_font_size}px;">
  1527. + <div class="set">
  1528. + <ul>
  1529. + <li><a href="/">番組表</a></li>
  1530. + <li><a href="reservationTable.php">予約リスト</a></li>
  1531. + <li><a href="programTable.php">キーワード検索</a></li>
  1532. + <li class="selected"><a href="keywordTable.php">自動検索予約リスト</a></li>
  1533. + <li><a href="recordedTable.php">録画済リスト</a></li>
  1534. + <li><a href="logViewer.php">ログ</a></li>
  1535. + <li><a href="envSetting.php">設定</a></li>
  1536. + </ul>
  1537. + </div>
  1538. +</div>
  1539. +<br style="clear:left;">
  1540. +<br>
  1541.  
  1542. {if count($keywords)}
  1543. <table id="reservation_table">
  1544. <tr>
  1545. - <th>id</th>
  1546. + <th>自動<br>ID</th>
  1547. <th>検索語句</th>
  1548. - <th>正規表現</th>
  1549. + <th>正規<br>表現</th>
  1550. <th>種別</th>
  1551. - <th>局</th>
  1552. + <th>チャンネル</th>
  1553. <th>カテゴリ</th>
  1554. <th>曜日</th>
  1555. <th>開始時</ht>
  1556. - <th>録画モード</th>
  1557. <th>削除</th>
  1558. </tr>
  1559.  
  1560. {foreach from=$keywords item=keyword}
  1561. <tr id="keyid_{$keyword.id}">
  1562. - <td><a href="recordedTable.php?key={$keyword.id}">{$keyword.id}</a></td>
  1563. - <td><a href="recordedTable.php?key={$keyword.id}">{$keyword.keyword|escape}</a></td>
  1564. - <td>{if $keyword.use_regexp}使う{else}使わない{/if}</td>
  1565. - <td>{$keyword.type}</td>
  1566. - <td>{$keyword.channel}</td>
  1567. - <td>{$keyword.category}</td>
  1568. - <td>{$keyword.weekofday}</td>
  1569. - <td>{$keyword.prgtime}</td>
  1570. - <td>{$keyword.autorec_mode}</td>
  1571. - <td><input type="button" value="削除" onClick="javascript:PRG.delkey('{$keyword.id}')" /></td>
  1572. + <td style="vertical-align: top; min-width: 60px;"><a href="recordedTable.php?key={$keyword.id}">{$keyword.id}</a></td>
  1573. + <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>
  1574. + <td style="vertical-align: top; min-width: 80px;">{if $keyword.use_regexp}使う{else}使わない{/if}</td>
  1575. + <td style="vertical-align: top; min-width: 80px;">{$keyword.type}</td>
  1576. + <td style="vertical-align: top; text-align:left; width: 170px;">{$keyword.channel}</td>
  1577. + <td style="vertical-align: top; text-align:left; width: 150px;">{$keyword.category}</td>
  1578. + <td style="vertical-align: top; min-width: 60px;">{$keyword.weekofday}</td>
  1579. + <td style="vertical-align: top; min-width: 80px;">{$keyword.prgtime}</td>
  1580. + <td style="min-width: 60px;"><input type="button" value="削除" onClick="javascript:PRG.delkey('{$keyword.id}')" /></td>
  1581. </tr>
  1582. {/foreach}
  1583. </table>
  1584. {else}
  1585. - キーワードはありません
  1586. + <div style="margin-left: 30px; margin-top: 30px;">キーワードはありません</div>
  1587. {/if}
  1588.  
  1589.  
  1590. diff -urN epgrec.org/templates/logTable.html epgrec/templates/logTable.html
  1591. --- epgrec.org/templates/logTable.html 2017-07-22 02:33:25.000000000 +0900
  1592. +++ epgrec/templates/logTable.html 2017-07-23 12:57:30.000000000 +0900
  1593. @@ -1,20 +1,39 @@
  1594. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  1595. "http://www.w3.org/TR/html4/loose.dtd">
  1596.  
  1597. -<html>
  1598. +<html style="{if $is_mobile == 1}-webkit-user-select:none;{/if}">
  1599. <head>
  1600. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  1601. +<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=2.0,user-scalable=yes">
  1602. <title>{$sitetitle}</title>
  1603. <meta http-equiv="Content-Style-Type" content="text/css">
  1604. +<meta http-equiv="Content-Style-Type" content="text/css">
  1605.  
  1606. {literal}
  1607. <style type="text/css">
  1608. <!--
  1609. -body {padding:4px;margin:0;font-size:10pt;}
  1610. +* {
  1611. + word-break: break-all;
  1612. + -webkit-text-size-adjust: none;
  1613. + -webkit-overflow-scrolling: touch;
  1614. + -webkit-touch-callout:none;
  1615. +}
  1616. +
  1617. +html {
  1618. + -webkit-text-size-adjust: none;
  1619. + background-color: #888ca0;
  1620. + background: #888ca0;
  1621. + color: #02262f;
  1622. + font-family: HiraKakuProN-W3;
  1623. + font-size: 6.25%;
  1624. + line-height: 1.25;
  1625. +}
  1626. +
  1627. +body {padding:0;margin:0;font-size:12pt;background-color: #888ca0;}
  1628. a {text-decoration:none;}
  1629.  
  1630. table#log_table {
  1631. - width: 800px;
  1632. + font-size: 95%;
  1633. border: 1px #BBB solid;
  1634. border-collapse: collapse;
  1635. border-spacing: 0;
  1636. @@ -22,54 +41,118 @@
  1637.  
  1638. table#log_table th {
  1639. padding: 5px;
  1640. - border: #E3E3E3 solid;
  1641. - border-width: 0 0 1px 1px;
  1642. - background: #BBB;
  1643. + border: #BBB solid;
  1644. + border-width: 1px 1px 1px 1px;
  1645. + background: #6060a0;
  1646. + color: #fff;
  1647. font-weight: bold;
  1648. line-height: 120%;
  1649. text-align: center;
  1650. }
  1651. table#log_table td {
  1652. - padding: 5px;
  1653. + padding-top: 15px;
  1654. + padding-bottom: 15px;
  1655. + padding-left: 5px;
  1656. + padding-right: 5px;
  1657. border: 1px #BBB solid;
  1658. border-width: 0 0 1px 1px;
  1659. - text-align: center;
  1660. + text-align: left;
  1661. }
  1662.  
  1663. -table#log_table td.errorlevel0 {background-color: #FFFFFF;}
  1664. +table#log_table td.errorlevel0 {background-color: #e0e0e0;}
  1665. table#log_table td.errorlevel1 {background-color: yellow;}
  1666. table#log_table td.errorlevel2 {background-color: red;}
  1667.  
  1668. +table#reservation_table tr:nth-child(2n) {
  1669. + background: #f0f0f8;
  1670. +}
  1671. +table#reservation_table tr:nth-child(2n+1) {
  1672. + background: #f8f8ff;
  1673. +}
  1674. +input[type="submit"] {
  1675. + background-image: linear-gradient(0deg, #a7d9f5, #eaf6fd);
  1676. + border: 1px solid #3c7fb1;
  1677. + border-radius: 0.3em;
  1678. +}
  1679. +input[type="button"] {
  1680. + background-image: linear-gradient(0deg, #a7d9f5, #eaf6fd);
  1681. + border: 1px solid #3c7fb1;
  1682. + border-radius: 0.3em;
  1683. +}
  1684. +input { font-size:90%; }
  1685. +select { font-size:90%; }
  1686. +
  1687. +
  1688. +
  1689. +#float_titles div.set {float:left;background-color:#888ca0;padding:0px;margin:5px;}
  1690. +#float_titles ul {float:left;padding:0px;margin:0px;}
  1691. +#float_titles ul li {float:left;list-style:none;margin:5px 2px 0px 0px; }
  1692. +#float_titles li a{padding:6px 10px;background-color:#8696c0;color:#e8e8ec;border: 1px solid #505080;}
  1693. +#float_titles li.selected a{background-color:#c6d8fe; font-weight:bold; color:#444;}
  1694. +
  1695. +table {
  1696. + background-color:#ececf0;
  1697. + margin-top: 10px;
  1698. + margin-left: 10px;
  1699. + margin-bottom: 10px;
  1700. + padding:10px;
  1701. +}
  1702. +tr {
  1703. + padding: 0px;
  1704. + border: 1px solid #BBB;
  1705. +}
  1706. +td {
  1707. + padding: 0px;
  1708. +}
  1709. +
  1710. +
  1711. -->
  1712. </style>
  1713. {/literal}
  1714.  
  1715. </head>
  1716.  
  1717. -<body>
  1718. +<body style="font-size:{$base_font_size}pt">
  1719.  
  1720. -<h2>{$sitetitle}</h2>
  1721. -
  1722. -<div><a href="index.php">番組表に戻る</a></div>
  1723. +<div id="float_titles" style="font-size: {$float_follows_font_size}px;">
  1724. + <div class="set">
  1725. + <ul>
  1726. + <li><a href="/">番組表</a></li>
  1727. + <li><a href="reservationTable.php">予約リスト</a></li>
  1728. + <li><a href="programTable.php">キーワード検索</a></li>
  1729. + <li><a href="keywordTable.php">自動検索予約リスト</a></li>
  1730. + <li><a href="recordedTable.php">録画済リスト</a></li>
  1731. + <li class="selected"><a href="logViewer.php">ログ</a></li>
  1732. + <li><a href="envSetting.php">設定</a></li>
  1733. + </ul>
  1734. + </div>
  1735. +</div>
  1736. +<br style="clear:left;">
  1737. +<br>
  1738.  
  1739. +{if count($logs)}
  1740. <table id="log_table">
  1741. <tr>
  1742. - <th>レベル</th>
  1743. - <th>日時</th>
  1744. - <th>内容</th>
  1745. + <th style="vertical-align: middle; height: 28px;">レベル</th>
  1746. + <th style="vertical-align: middle;">日時</th>
  1747. + <th style="vertical-align: middle;">内容</th>
  1748. </tr>
  1749.  
  1750. {foreach from=$logs item=log}
  1751. <tr>
  1752. - <td class="errorlevel{$log->level}">
  1753. + <td style="vertical-align: top; text-align: center; width: 80px;" class="errorlevel{$log->level}">
  1754. {if $log->level == 0}情報
  1755. {elseif $log->level == 1}警告
  1756. {elseif $log->level == 2}エラー
  1757. {/if}
  1758. </td>
  1759. - <td>{$log->logtime}</td>
  1760. - <td>{$log->message|escape}</td>
  1761. + <td style="vertical-align: top; text-align: left; width: 120px;">{str_replace(" ", "<br>", $log->logtime)}</td>
  1762. + <td style="vertical-align: top; width: 900px;">{str_replace("】", "]", str_replace("【", "[", mb_convert_kana($log->message|escape, "rn")))}</td>
  1763. </tr>
  1764. {/foreach}
  1765. +{else}
  1766. + <div style="margin-left: 30px; margin-top: 30px;">ログはありません</div>
  1767. +{/if}
  1768. +
  1769. </body>
  1770. </html>
  1771. diff -urN epgrec.org/templates/programTable.html epgrec/templates/programTable.html
  1772. --- epgrec.org/templates/programTable.html 2017-07-22 02:33:25.000000000 +0900
  1773. +++ epgrec/templates/programTable.html 2017-07-23 12:57:34.000000000 +0900
  1774. @@ -1,11 +1,12 @@
  1775. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  1776. "http://www.w3.org/TR/html4/loose.dtd">
  1777.  
  1778. -<html>
  1779. +<html style="{if $is_mobile == 1}-webkit-user-select:none;{/if}">
  1780. <head>
  1781. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  1782. <title>{$sitetitle}</title>
  1783. <meta http-equiv="Content-Style-Type" content="text/css">
  1784. +<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=2.0,user-scalable=yes">
  1785.  
  1786. {literal}
  1787. <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
  1788. @@ -14,12 +15,35 @@
  1789. <script type="text/javascript" src="js/mdabasic.js"></script>
  1790. <script type="text/javascript">
  1791. var PRG = {
  1792. + cancel:function(id){
  1793. + $.get(INISet.prgCancelURL, { program_id: id } ,function(data){
  1794. + $('#eraseDialog').html('キャンセル中......');
  1795. + $('#eraseDialog').dialog('open','center');
  1796. + if(data.match(/^error/i)){
  1797. + $('#eraseDialog').dialog('close');
  1798. + alert(data);
  1799. + }
  1800. + else {
  1801. + //$('#resid_' + id ).hide();
  1802. + $('#resid_' + id).removeClass('prg_rec');
  1803. + $('#reserve_btn_' + id).val("予約");
  1804. + $('#reserve_btn_' + id).get(0).onclick = "";
  1805. + $('#reserve_btn_' + id).unbind('click');
  1806. + $('#reserve_btn_' + id).bind('click', function() {PRG.rec(id)});
  1807. + $('#eraseDialog').dialog('close');
  1808. + }
  1809. + });
  1810. + },
  1811. rec:function(id){
  1812. $.get(INISet.prgRecordURL, { program_id: id } ,function(data){
  1813. if(data.match(/^error/i)){
  1814. alert(data);
  1815. }else{
  1816. $('#resid_' + id).addClass('prg_rec');
  1817. + $('#reserve_btn_' + id).val("取消");
  1818. + $('#reserve_btn_' + id).get(0).onclick = "";
  1819. + $('#reserve_btn_' + id).unbind('click');
  1820. + $('#reserve_btn_' + id).bind('click', function() {PRG.cancel(id)});
  1821. }
  1822. });
  1823. },
  1824. @@ -97,11 +121,29 @@
  1825. </script>
  1826. <style type="text/css">
  1827. <!--
  1828. -body {padding:4px;margin:0;font-size:10pt;}
  1829. +* {
  1830. + word-break: break-all;
  1831. + -webkit-text-size-adjust: none;
  1832. + -webkit-overflow-scrolling: touch;
  1833. + -webkit-touch-callout:none;
  1834. +}
  1835. +
  1836. +html {
  1837. + -webkit-text-size-adjust: none;
  1838. + background-color: #888ca0;
  1839. + background: #888ca0;
  1840. + color: #02262f;
  1841. + font-family: HiraKakuProN-W3;
  1842. + font-size: 6.25%;
  1843. + line-height: 1.25;
  1844. +}
  1845. +
  1846. +body {padding:0px;margin:0;font-size:12pt;background-color: #888ca0;}
  1847. a {text-decoration:none;}
  1848. +form {margin-bottom: 10px;}
  1849.  
  1850. table#reservation_table {
  1851. - width: 800px;
  1852. + font-size: 95%;
  1853. border: 1px #BBB solid;
  1854. border-collapse: collapse;
  1855. border-spacing: 0;
  1856. @@ -109,154 +151,199 @@
  1857.  
  1858. table#reservation_table th {
  1859. padding: 5px;
  1860. - border: #E3E3E3 solid;
  1861. - border-width: 0 0 1px 1px;
  1862. - background: #BBB;
  1863. + border: #BBB solid;
  1864. + border-width: 1px 1px 1px 1px;
  1865. + background: #dea480;
  1866. + color: #fff;
  1867. font-weight: bold;
  1868. line-height: 120%;
  1869. text-align: center;
  1870. }
  1871. table#reservation_table td {
  1872. - padding: 5px;
  1873. + padding-top: 15px;
  1874. + padding-bottom: 15px;
  1875. + padding-left: 5px;
  1876. + padding-right: 5px;
  1877. border: 1px #BBB solid;
  1878. border-width: 0 0 1px 1px;
  1879. text-align: center;
  1880. }
  1881. +table#reservation_table tr:nth-child(2n) {
  1882. + background: #f0f0f8;
  1883. +}
  1884. +table#reservation_table tr:nth-child(2n+1) {
  1885. + background: #f8f8ff;
  1886. +}
  1887. +input[type="submit"] {
  1888. + background-image: linear-gradient(0deg, #a7d9f5, #eaf6fd);
  1889. + border: 1px solid #3c7fb1;
  1890. + border-radius: 0.3em;
  1891. +}
  1892. +input[type="button"] {
  1893. + background-image: linear-gradient(0deg, #a7d9f5, #eaf6fd);
  1894. + border: 1px solid #3c7fb1;
  1895. + border-radius: 0.3em;
  1896. +}
  1897. +input { font-size:90%; }
  1898. +select { font-size:90%; }
  1899.  
  1900. -table#reservation_table tr.ctg_news, #category_select a.ctg_news {background-color: #FFFFD8;}
  1901. -table#reservation_table tr.ctg_etc, #category_select a.ctg_etc {background-color: #FFFFFF;}
  1902. -table#reservation_table tr.ctg_information, #category_select a.ctg_information {background-color: #F2D8FF;}
  1903. -table#reservation_table tr.ctg_sports, #category_select a.ctg_sports {background-color: #D8FFFF;}
  1904. -table#reservation_table tr.ctg_cinema, #category_select a.ctg_cinema {background-color: #FFD8D8;}
  1905. -table#reservation_table tr.ctg_music, #category_select a.ctg_music {background-color: #D8D8FF;}
  1906. -table#reservation_table tr.ctg_drama, #category_select a.ctg_drama {background-color: #D8FFD8;}
  1907. -table#reservation_table tr.ctg_anime, #category_select a.ctg_anime {background-color: #FFE4C8;}
  1908. -table#reservation_table tr.ctg_variety, #category_select a.ctg_variety {background-color: #FFD2EB;}
  1909. -table#reservation_table tr.ctg_10, #category_select a.ctg_10 {background-color: #E4F4F4;}
  1910. -table#reservation_table tr.prg_rec {background-color: #F55;color:#FEE}
  1911. +table#reservation_table tr.prg_rec {background-color: #ff7080;color:#333}
  1912. +table#reservation_table tr.prg_rec .prg_title,#tvtable .prg_title {color:#2840d4;}
  1913. +table#reservation_table tr.prg_rec_msg {font-weight:bold; text-align:center;}
  1914.  
  1915. #floatBox4Dialog .prg_title{font-size:120%;font-weight:bold;padding:0.4em 0;text-align:center;}
  1916. #floatBox4Dialog .prg_rec_cfg{background:#EEE;padding:1em 2em;margin:0.4em 0;}
  1917. #floatBox4Dialog .labelLeft {width:8em;float:left;text-align:right;}
  1918. #floatBox4Dialog .button {padding:0.4em 1em;}
  1919.  
  1920. -
  1921. -
  1922. +#float_titles div.set {float:left;background-color:#888ca0;padding:0px;margin:5px;}
  1923. +#float_titles ul {float:left;padding:0px;margin:0px;}
  1924. +#float_titles ul li {float:left;list-style:none;margin:5px 2px 0px 0px; }
  1925. +#float_titles li a{padding:6px 10px;background-color:#8696c0;color:#e8e8ec;border: 1px solid #505080;}
  1926. +#float_titles li.selected a{background-color:#c6d8fe; font-weight:bold; color:#444;}
  1927. +
  1928. +table {
  1929. + background-color:#ececf0;
  1930. + margin-top: 10px;
  1931. + margin-left: 10px;
  1932. + margin-bottom: 10px;
  1933. + padding:10px;
  1934. +}
  1935. +tr {
  1936. + padding: 0px;
  1937. + border: 1px solid #bbb;
  1938. +}
  1939. +td {
  1940. + padding: 0px;
  1941. + line-height: 150%;
  1942. +}
  1943. +.details { display: none;}
  1944. +.kind { display: none;}
  1945. -->
  1946. +select { font-size: 100%;}
  1947. </style>
  1948. {/literal}
  1949.  
  1950. </head>
  1951.  
  1952. -<body>
  1953. -
  1954. -<h2>{$sitetitle}</h2>
  1955. -
  1956. -
  1957. -
  1958. -<div><a href="index.php">番組表に戻る</a>/<a href="keywordTable.php">自動録画キーワード管理へ</a></div>
  1959. +<body style="font-size:{$base_font_size}pt">
  1960. +<div id="float_titles" style="font-size: {$float_follows_font_size}px;">
  1961. + <div class="set">
  1962. + <ul>
  1963. + <li><a href="/">番組表</a></li>
  1964. + <li><a href="reservationTable.php">予約リスト</a></li>
  1965. + <li class="selected"><a href="programTable.php">キーワード検索</a></li>
  1966. + <li><a href="keywordTable.php">自動検索予約リスト</a></li>
  1967. + <li><a href="recordedTable.php">録画済リスト</a></li>
  1968. + <li><a href="logViewer.php">ログ</a></li>
  1969. + <li><a href="envSetting.php">設定</a></li>
  1970. + </ul>
  1971. + </div>
  1972. +</div>
  1973. +<br style="clear:left;">
  1974.  
  1975. <div>
  1976. -絞り込み:
  1977. +<!--絞り込み:-->
  1978. <form method="post" action="programTable.php">
  1979. <input type="hidden" name="do_search" value="1" />
  1980. -検索語句<input type="text" size="20" name="search" value="{$search}" /><br />
  1981. -正規表現使用<input type="checkbox" name="use_regexp" value="1" {if $use_regexp}checked{/if} />
  1982. -種別<select name="type">
  1983. +<table>
  1984. +<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>
  1985. +<tr><td>種別</td><td><select name="type">
  1986. {foreach from=$types item=type}
  1987. <option value="{$type.value}" {$type.selected}>{$type.name}</option>
  1988. {/foreach}
  1989. </select>
  1990. -局<select name="station">
  1991. +</td></tr>
  1992. +<tr><td>チャンネル</td><td><select name="station">
  1993. {foreach from=$stations item=st}
  1994. <option value="{$st.id}" {$st.selected}>{$st.name}</option>
  1995. {/foreach}
  1996. </select>
  1997. -カテゴリ<select name="category_id">
  1998. +</td></tr>
  1999. +<tr><td>カテゴリ</td><td><select name="category_id">
  2000. {foreach from=$cats item=cat}
  2001. <option value="{$cat.id}" {$cat.selected}>{$cat.name}</option>
  2002. {/foreach}
  2003. </select>
  2004. -開始時<select name="prgtime">
  2005. +</td></tr>
  2006. +<tr><td>開始時</td><td><select name="prgtime">
  2007. {foreach from=$prgtimes item=prgt}
  2008. <option value="{$prgt.value}" {$prgt.selected}>{$prgt.name}</option>
  2009. {/foreach}
  2010. </select>
  2011. -
  2012. -曜日<select name='weekofday'>
  2013. +</td></tr>
  2014. +<tr><td>曜日</td><td><select name='weekofday'>
  2015. {foreach from=$weekofdays item=day}
  2016. <option value="{$day.id}" {$day.selected}>{$day.name}</option>
  2017. {/foreach}
  2018. </select>
  2019. -<input type="submit" value="絞り込む" />
  2020. +</td></tr>
  2021. +<tr><td colspan=2 align=center>
  2022. +<input type="submit" value=" 検索 " />
  2023. +</td></tr>
  2024. +</table>
  2025. </form>
  2026. </div>
  2027.  
  2028. -
  2029. +{if $programs|@count < 3000 && $no_condition == 0}
  2030. +<form method="post" action="keywordTable.php" style="margin-left: 20px;">
  2031. + <input type="hidden" name="add_keyword" value="{$do_keyword}" />
  2032. + <input type="hidden" name="k_use_regexp" value="{$use_regexp}" />
  2033. + <input type="hidden" name="k_search" value="{$search}" />
  2034. + <input type="hidden" name="k_type" value="{$k_type}" />
  2035. + <input type="hidden" name="k_category" value="{$k_category}" />
  2036. + <input type="hidden" name="k_station" value="{$k_station}" />
  2037. + <input type="hidden" name="k_weekofday" value={$weekofday} />
  2038. + <input type="hidden" name="k_prgtime" value={$prgtime} />
  2039. + <input type="hidden" name="autorec_mode" value="1">
  2040. + {$programs|@count}件 : <input type="submit" value="この条件を自動検索予約リストに登録" />
  2041. +</form>
  2042. +{/if}
  2043.  
  2044. {if count($programs)}
  2045. <table id="reservation_table">
  2046. +
  2047. +{foreach from=$programs item=program}
  2048. +{if $program.change_day == 1}
  2049. + <tr style="background: #888ca0;color:#fff;vertical-align: bottom;"><td colspan=6 style="padding-top: {if $program.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 $program.first_flg == 1}border-top: 1px solid #888ca0;{/if}font-size: 110%;">{$program.month}月{$program.day}日・{$program.day_of_week}曜日</td></tr>
  2050. <tr>
  2051. - <th>種別</th>
  2052. - <th>局名</th>
  2053. - <th>番組開始</th>
  2054. - <th>番組終了</th>
  2055. + <th>放送日時</th>
  2056. + <th>チャンネル</th>
  2057. <th>タイトル</th>
  2058. <th>内容</th>
  2059. - <th>簡易録画</th>
  2060. - <th>詳細録画</th>
  2061. + <th>録画<br>予約</th>
  2062. </tr>
  2063. -
  2064. -{foreach from=$programs item=program}
  2065. - <tr id="resid_{$program.id}" class="ctg_{$program.cat}{if $program.rec > 0} prg_rec{/if}">
  2066. - <td>{$program.type}</td>
  2067. - <td>{$program.station_name}</td>
  2068. - <td>{$program.starttime}</td>
  2069. - <td>{$program.endtime}</td>
  2070. - <td>{$program.title|escape}</td>
  2071. - <td>{$program.description|escape}</td>
  2072. - <td><input type="button" value="録画" onClick="javascript:PRG.rec('{$program.id}')" /></td>
  2073. - <td><input type="button" value="詳細" onClick="javascript:PRG.customform('{$program.id}')" /></td>
  2074. +{/if}
  2075. + <tr id="resid_{$program.id}" class="ctg_{$program.cat}{if $program.rec > 0} prg_rec{/if}">
  2076. + <td style="vertical-align: top; text-align: left; min-width: 120px;">{$program.starttime}〜{$program.endtime}</td>
  2077. + <td style="vertical-align: top; text-align: left; min-width: 170px;">{$program.station_name}</td>
  2078. +{if $program.search_key != ""}
  2079. + <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>
  2080. +{else}
  2081. + <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>
  2082. +{/if}
  2083. + <td style="vertical-align: top; text-align: left; width: 500px;">{mb_convert_kana($program.description|escape, "rn")}</td>
  2084. +{if $program.rec > 0}
  2085. + <td style="vertical-align: middle; min-width: 60px;"><input id="reserve_btn_{$program.id}" type="button" value="取消" onclick="javascript:PRG.cancel('{$program.id}')"></td>
  2086. +{else}
  2087. + <td style="vertical-align: middle; min-width: 60px;"><input id="reserve_btn_{$program.id}" type="button" value="予約" onclick="javascript:PRG.rec('{$program.id}')"></td>
  2088. +{/if}
  2089. </tr>
  2090. {/foreach}
  2091. </table>
  2092. {else}
  2093. - 該当する番組はありません
  2094. + <div style="margin-left: 30px; margin-top: 30px;">{if $no_condition == 0}該当する番組はありません{else}検索条件を指定してください{/if}</div>
  2095. {/if}
  2096. -<div>{$programs|@count}件ヒット</div>
  2097. -{if count($programs) >= 300}<div>表示最大300件まで</div>{/if}
  2098. +{if count($programs) >= 3000}<div>表示最大3000件まで</div>{/if}
  2099. {if $do_keyword}
  2100. -{if (count($programs) < 300)}
  2101. +{if (count($programs) < 3000)}
  2102. <div>
  2103. -<form method="post" action="keywordTable.php">
  2104. - <b>語句:</b>{$search|escape}
  2105. - <b>正規表現:</b>{if $use_regexp}使う{else}使わない{/if}
  2106. - <b>種別:</b>{if $k_type == "*"}すべて{else}{$k_type}{/if}
  2107. - <b>局:</b>{if $k_station == 0}すべて{else}{$k_station_name}{/if}
  2108. - <b>カテゴリ:</b>{if $k_category == 0}すべて{else}{$k_category_name}{/if}
  2109. - <b>曜日:</b>{if $weekofday == 7}なし{else}{$k_weekofday}曜{/if}
  2110. - <b>時間:</b>{if $prgtime == 24}なし{else}{$prgtime}時~{/if}
  2111. - <b>件数:</b>{$programs|@count}
  2112. - <input type="hidden" name="add_keyword" value="{$do_keyword}" />
  2113. - <input type="hidden" name="k_use_regexp" value="{$use_regexp}" />
  2114. - <input type="hidden" name="k_search" value="{$search}" />
  2115. - <input type="hidden" name="k_type" value="{$k_type}" />
  2116. - <input type="hidden" name="k_category" value="{$k_category}" />
  2117. - <input type="hidden" name="k_station" value="{$k_station}" />
  2118. - <input type="hidden" name="k_weekofday" value={$weekofday} />
  2119. - <input type="hidden" name="k_prgtime" value={$prgtime} />
  2120. - <b>録画モード:</b><select name="autorec_mode" >
  2121. - {foreach from=$autorec_modes item=mode name=recmode}
  2122. - <option value="{$smarty.foreach.recmode.index}" {$mode.selected} >{$mode.name}</option>
  2123. - {/foreach}
  2124. - </select>
  2125. - <br><input type="submit" value="この絞り込みを自動録画キーワードに登録" />
  2126. - </form>
  2127. +
  2128. </div>
  2129. {/if}
  2130. {/if}
  2131.  
  2132. -<div id="floatBox4Dialog">jQuery UI Dialog</div>
  2133. +<div id="floatBox4Dialog"></div>
  2134.  
  2135. {literal}
  2136. <script type="text/javascript">
  2137. diff -urN epgrec.org/templates/recordedTable.html epgrec/templates/recordedTable.html
  2138. --- epgrec.org/templates/recordedTable.html 2017-07-22 02:33:25.000000000 +0900
  2139. +++ epgrec/templates/recordedTable.html 2017-07-23 12:57:37.000000000 +0900
  2140. @@ -1,11 +1,12 @@
  2141. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2142. "http://www.w3.org/TR/html4/loose.dtd">
  2143.  
  2144. -<html>
  2145. +<html style="{if $is_mobile == 1}-webkit-user-select:none;{/if}">
  2146. <head>
  2147. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  2148. <title>{$sitetitle}</title>
  2149. <meta http-equiv="Content-Style-Type" content="text/css">
  2150. +<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=2.0,user-scalable=yes">
  2151.  
  2152. {literal}
  2153. <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
  2154. @@ -14,12 +15,14 @@
  2155. <script type="text/javascript">
  2156. <!--
  2157. var PRG = {
  2158. -
  2159. + dialog_close:function() {
  2160. + $('#floatBox4Dialog').dialog('close');
  2161. + },
  2162. dialog:function(id, title){
  2163. $('#floatBox4Dialog').dialog({title:'削除',width:500});
  2164. var str = '<div class="prg_title">' + title + 'を削除します</div>';
  2165. str += '<form><div style="text-align:center;">録画ファイルも削除する<input type="checkbox" id="delete_file" name="delete_file" value="1" /></div></form>';
  2166. - 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>';
  2167. + 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>';
  2168. $('#floatBox4Dialog').html(str);
  2169. $('#floatBox4Dialog').dialog('open', 'center');
  2170. },
  2171. @@ -37,7 +40,6 @@
  2172. alert(data);
  2173. }
  2174. else {
  2175. -// alert(data);
  2176. $('#resid_' + id ).hide();
  2177. $('#floatBox4Dialog').dialog('close');
  2178. }
  2179. @@ -50,7 +52,7 @@
  2180. str += '<input type="hidden" name="reserve_id" id="id_reserve_id" value="' + id + '" />';
  2181. str += '<div><span class="labelLeft">タイトル</span><input name="title" id="id_title" size="30" value="'+ $('#tid_' + id ).html() + '" /></div>';
  2182. str += '<div><span class="labelLeft">概要</span><textarea name="description" id="id_description" cols="30" rows="5" >' + $('#did_' + id ).html() + '</textarea></div>';
  2183. - 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>';
  2184. + 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>';
  2185.  
  2186. $('#floatBox4Dialog').html(str);
  2187. $('#floatBox4Dialog').dialog('open','center');
  2188. @@ -85,7 +87,24 @@
  2189. </script>
  2190. <style type="text/css">
  2191. <!--
  2192. -body {padding:4px;margin:0;font-size:10pt;}
  2193. +* {
  2194. + word-break: break-all;
  2195. + -webkit-text-size-adjust: none;
  2196. + -webkit-overflow-scrolling: touch;
  2197. + -webkit-touch-callout:none;
  2198. +}
  2199. +
  2200. +html {
  2201. + -webkit-text-size-adjust: none;
  2202. + background-color: #888ca0;
  2203. + background: #888ca0;
  2204. + color: #02262f;
  2205. + font-family: HiraKakuProN-W3;
  2206. + font-size: 6.25%;
  2207. + line-height: 1.25;
  2208. +}
  2209. +
  2210. +body {padding:0px;margin:0;font-size:12pt;background-color: #888ca0;}
  2211. a {text-decoration:none;}
  2212.  
  2213. .bold {font-weight:bold;}
  2214. @@ -94,7 +113,7 @@
  2215. a img {border:none; }
  2216.  
  2217. table#reservation_table {
  2218. - width: 960px;
  2219. + font-size: 95%;
  2220. border: 1px #BBB solid;
  2221. border-collapse: collapse;
  2222. border-spacing: 0;
  2223. @@ -102,31 +121,41 @@
  2224.  
  2225. table#reservation_table th {
  2226. padding: 5px;
  2227. - border: #E3E3E3 solid;
  2228. - border-width: 0 0 1px 1px;
  2229. - background: #BBB;
  2230. + color: #fff;
  2231. + border: #BBB solid;
  2232. + border-width: 1px 1px 1px 1px;
  2233. + background: #e8687a;
  2234. font-weight: bold;
  2235. line-height: 120%;
  2236. text-align: center;
  2237. }
  2238. table#reservation_table td {
  2239. - padding: 5px;
  2240. + padding-top: 15px;
  2241. + padding-bottom: 15px;
  2242. + padding-left: 5px;
  2243. + padding-right: 5px;
  2244. border: 1px #BBB solid;
  2245. border-width: 0 0 1px 1px;
  2246. text-align: center;
  2247. }
  2248. -
  2249. -table#reservation_table tr.ctg_news, #category_select a.ctg_news {background-color: #FFFFD8;}
  2250. -table#reservation_table tr.ctg_etc, #category_select a.ctg_etc {background-color: #FFFFFF;}
  2251. -table#reservation_table tr.ctg_information, #category_select a.ctg_information {background-color: #F2D8FF;}
  2252. -table#reservation_table tr.ctg_sports, #category_select a.ctg_sports {background-color: #D8FFFF;}
  2253. -table#reservation_table tr.ctg_cinema, #category_select a.ctg_cinema {background-color: #FFD8D8;}
  2254. -table#reservation_table tr.ctg_music, #category_select a.ctg_music {background-color: #D8D8FF;}
  2255. -table#reservation_table tr.ctg_drama, #category_select a.ctg_drama {background-color: #D8FFD8;}
  2256. -table#reservation_table tr.ctg_anime, #category_select a.ctg_anime {background-color: #FFE4C8;}
  2257. -table#reservation_table tr.ctg_variety, #category_select a.ctg_variety {background-color: #FFD2EB;}
  2258. -table#reservation_table tr.ctg_10, #category_select a.ctg_10 {background-color: #E4F4F4;}
  2259. -
  2260. +table#reservation_table tr:nth-child(2n) {
  2261. + background: #f0f0f8;
  2262. +}
  2263. +table#reservation_table tr:nth-child(2n+1) {
  2264. + background: #f8f8ff;
  2265. +}
  2266. +input[type="submit"] {
  2267. + background-image: linear-gradient(0deg, #a7d9f5, #eaf6fd);
  2268. + border: 1px solid #3c7fb1;
  2269. + border-radius: 0.3em;
  2270. +}
  2271. +input[type="button"] {
  2272. + background-image: linear-gradient(0deg, #a7d9f5, #eaf6fd);
  2273. + border: 1px solid #3c7fb1;
  2274. + border-radius: 0.3em;
  2275. +}
  2276. +input { font-size:90%; }
  2277. +select { font-size:100%; }
  2278.  
  2279. #floatBox4Dialog .prg_title{font-size:120%;font-weight:bold;padding:0.4em 0;text-align:center;}
  2280. #floatBox4Dialog .prg_rec_cfg{background:#EEE;padding:1em 2em;margin:0.4em 0;}
  2281. @@ -134,72 +163,107 @@
  2282. #floatBox4Dialog .button {padding:0.4em 1em;}
  2283.  
  2284.  
  2285. +#float_titles div.set {float:left;background-color:#888ca0;padding:0px;margin:5px;}
  2286. +#float_titles ul {float:left;padding:0px;margin:0px;}
  2287. +#float_titles ul li {float:left;list-style:none;margin:5px 2px 0px 0px; }
  2288. +#float_titles li a{padding:6px 10px;background-color:#8696c0;color:#e8e8ec;border: 1px solid #505080;}
  2289. +#float_titles li.selected a{background-color:#c6d8fe; font-weight:bold; color:#444;}
  2290. +
  2291. +table {
  2292. + background-color:#ececf0;
  2293. + margin-top: 10px;
  2294. + margin-left: 10px;
  2295. + margin-bottom: 10px;
  2296. + padding:10px;
  2297. +}
  2298. +tr {
  2299. + padding: 0px;
  2300. + border: 1px solid #BBB;
  2301. +}
  2302. +td {
  2303. + padding: 0px;
  2304. + line-height: 150%;
  2305. +}
  2306. -->
  2307. </style>
  2308. {/literal}
  2309.  
  2310. </head>
  2311.  
  2312. -<body>
  2313. -
  2314. -<h2>{$sitetitle}</h2>
  2315. +<body style="font-size:{$base_font_size}pt">
  2316.  
  2317. -<p><a href="index.php">番組表に戻る</a></p>
  2318. +<div id="float_titles" style="font-size: {$float_follows_font_size}px;">
  2319. + <div class="set">
  2320. + <ul>
  2321. + <li><a href="/">番組表</a></li>
  2322. + <li><a href="reservationTable.php">予約リスト</a></li>
  2323. + <li><a href="programTable.php">キーワード検索</a></li>
  2324. + <li><a href="keywordTable.php">自動検索予約リスト</a></li>
  2325. + <li class="selected"><a href="recordedTable.php">録画済リスト</a></li>
  2326. + <li><a href="logViewer.php">ログ</a></li>
  2327. + <li><a href="envSetting.php">設定</a></li>
  2328. + </ul>
  2329. + </div>
  2330. +</div>
  2331. +<br style="clear:left;">
  2332.  
  2333. <div>
  2334. -絞り込み:
  2335. +<!--絞り込み:-->
  2336. <form method="post" action="recordedTable.php" >
  2337. <input type="hidden" name="do_search" value="1" />
  2338. -検索語句<input type="text" size="20" name="search" value="{$search}" />
  2339. -局<select name="station">
  2340. +<table>
  2341. +<tr><td>検索語句</td><td><input type="text" size="20" name="search" value="{$search}" /></td></tr>
  2342. +<tr><td>チャンネル</td><td><select name="station">
  2343. {foreach from=$stations item=st}
  2344. <option value="{$st.id}" {$st.selected}>{$st.name}</option>
  2345. {/foreach}
  2346. </select>
  2347. -カテゴリ<select name="category_id">
  2348. +</td></tr>
  2349. +<tr><td>カテゴリ</td><td><select name="category_id">
  2350. {foreach from=$cats item=cat}
  2351. <option value="{$cat.id}" {$cat.selected}>{$cat.name}</option>
  2352. {/foreach}
  2353. </select>
  2354. -<input type="submit" value="絞り込む" />
  2355. +</td></tr>
  2356. +<tr><td colspan=2 align=center style="padding-top: 10px;"><input type="submit" value=" 検索 " />
  2357. +</td></tr>
  2358. +</table>
  2359. </form>
  2360. </div>
  2361.  
  2362. -タイトルや内容をクリックすると視聴できます(ブラウザの設定でASFとVLCを関連付けている必要があります)
  2363. +<!--タイトルや内容をクリックすると視聴できます(ブラウザの設定でASFとVLCを関連付けている必要があります)-->
  2364. {if count($records)}
  2365. <table id="reservation_table">
  2366. +{foreach from=$records item=rec}
  2367. +{if $rec.change_day == 1}
  2368. + <tr style="background: #888ca0;color:#fff;vertical-align: bottom;"><td colspan=7 style="padding-top: {if $rec.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 $rec.first_flg == 1}border-top: 1px solid #888ca0;{/if}font-size: 110%;">{$rec.month}月{$rec.day}日・{$rec.day_of_week}曜日</td></tr>
  2369. <tr>
  2370. <th>録画日時</th>
  2371. - <th>ch</th>
  2372. - <th>モード</th>
  2373. - {if $use_thumbs == 1}<th>サムネール</th>{/if}
  2374. + <th>チャンネル</th>
  2375. <th>タイトル</th>
  2376. <th>内容</th>
  2377. - <th>ファイルサイズ</th>
  2378. + <th>ファイル<br>サイズ</th>
  2379. <th>変更</th>
  2380. <th>削除</th>
  2381. </tr>
  2382. -
  2383. -{foreach from=$records item=rec}
  2384. - <tr id="resid_{$rec.id}" class="ctg_{$rec.cat}">
  2385. - <td>{$rec.starttime}</td>
  2386. - <td>{$rec.station_name}</td>
  2387. - <td>{$rec.mode}</td>
  2388. - {if $use_thumbs == 1}<td><a href="{$rec.asf}">{$rec.thumb}</a></td>{/if}
  2389. - <td><a href="{$rec.asf}" id="tid_{$rec.id}">{$rec.title}</a></td>
  2390. - <td><a href="{$rec.asf}" id="did_{$rec.id}">{$rec.description}</a></td>
  2391. - <td>{$rec.fsize}</td>
  2392. - <td><input type="button" value="変更" onClick="javascript:PRG.editdialog('{$rec.id}')" /></td>
  2393. - <td><input type="button" value="削除" onClick="javascript:PRG.dialog('{$rec.id}','{$rec.title|escape}')" /></td>
  2394. +{/if}
  2395. + <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}>
  2396. + <td style="vertical-align: top; text-align: left; min-width: 120px;">{$rec.starttime}〜{$rec.endtime}</td>
  2397. + <td style="vertical-align: top; text-align: left; min-width: 170px;">{$rec.station_name}</td>
  2398. + <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>
  2399. + <td style="vertical-align: top; text-align: left; width: 500px;" id="did_{$rec.id}">{$rec.description}</td>
  2400. + <td style="vertical-align: top; min-width: 80px;">{$rec.fsize}</td>
  2401. + <td style="min-width: 60px;"><input type="button" value="変更" onClick="javascript:PRG.editdialog('{$rec.id}')" /></td>
  2402. + <td style="min-width: 60px;"><input type="button" value="削除" onClick="javascript:PRG.dialog('{$rec.id}','{$rec.title|escape}')" /></td>
  2403. </tr>
  2404. {/foreach}
  2405. </table>
  2406.  
  2407. {else}
  2408. - 現在、録画済データはありません
  2409. + <div style="margin-left: 30px; margin-top: 30px;">現在、録画済データはありません</div>
  2410. {/if}
  2411.  
  2412. -<div id="floatBox4Dialog">jQuery UI Dialog</div>
  2413. +<div id="floatBox4Dialog"></div>
  2414.  
  2415. {literal}
  2416. <script type="text/javascript">
  2417. diff -urN epgrec.org/templates/reservationTable.html epgrec/templates/reservationTable.html
  2418. --- epgrec.org/templates/reservationTable.html 2017-07-22 02:33:25.000000000 +0900
  2419. +++ epgrec/templates/reservationTable.html 2017-07-23 12:57:41.000000000 +0900
  2420. @@ -1,11 +1,12 @@
  2421. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2422. "http://www.w3.org/TR/html4/loose.dtd">
  2423.  
  2424. -<html>
  2425. +<html style="{if $is_mobile == 1}-webkit-user-select:none;{/if}">
  2426. <head>
  2427. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  2428. <title>{$sitetitle}</title>
  2429. <meta http-equiv="Content-Style-Type" content="text/css">
  2430. +<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=2.0,user-scalable=yes">
  2431.  
  2432. {literal}
  2433. <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
  2434. @@ -73,11 +74,28 @@
  2435. </script>
  2436. <style type="text/css">
  2437. <!--
  2438. -body {padding:4px;margin:0;font-size:10pt;}
  2439. +* {
  2440. + word-break: break-all;
  2441. + -webkit-text-size-adjust: none;
  2442. + -webkit-overflow-scrolling: touch;
  2443. + -webkit-touch-callout:none;
  2444. +}
  2445. +
  2446. +html {
  2447. + -webkit-text-size-adjust: none;
  2448. + background-color: #888ca0;
  2449. + background: #888ca0;
  2450. + color: #02262f;
  2451. + font-family: HiraKakuProN-W3;
  2452. + font-size: 6.25%;
  2453. + line-height: 1.25;
  2454. +}
  2455. +
  2456. +body {padding:0px;margin:0;font-size:12pt;background-color: #888ca0;}
  2457. a {text-decoration:none;}
  2458.  
  2459. table#reservation_table {
  2460. - width: 800px;
  2461. + font-size: 95%;
  2462. border: 1px #BBB solid;
  2463. border-collapse: collapse;
  2464. border-spacing: 0;
  2465. @@ -85,30 +103,24 @@
  2466.  
  2467. table#reservation_table th {
  2468. padding: 5px;
  2469. - border: #E3E3E3 solid;
  2470. - border-width: 0 0 1px 1px;
  2471. - background: #BBB;
  2472. + border: #BBB solid;
  2473. + border-width: 1px 1px 1px 1px;
  2474. + color: #fff;
  2475. + background: #80a4e0;
  2476. font-weight: bold;
  2477. line-height: 120%;
  2478. text-align: center;
  2479. }
  2480. table#reservation_table td {
  2481. - padding: 5px;
  2482. + padding-top: 15px;
  2483. + padding-bottom: 15px;
  2484. + padding-left: 5px;
  2485. + padding-right: 5px;
  2486. border: 1px #BBB solid;
  2487. border-width: 0 0 1px 1px;
  2488. text-align: center;
  2489. }
  2490.  
  2491. -table#reservation_table tr.ctg_news, #category_select a.ctg_news {background-color: #FFFFD8;}
  2492. -table#reservation_table tr.ctg_etc, #category_select a.ctg_etc {background-color: #FFFFFF;}
  2493. -table#reservation_table tr.ctg_information, #category_select a.ctg_information {background-color: #F2D8FF;}
  2494. -table#reservation_table tr.ctg_sports, #category_select a.ctg_sports {background-color: #D8FFFF;}
  2495. -table#reservation_table tr.ctg_cinema, #category_select a.ctg_cinema {background-color: #FFD8D8;}
  2496. -table#reservation_table tr.ctg_music, #category_select a.ctg_music {background-color: #D8D8FF;}
  2497. -table#reservation_table tr.ctg_drama, #category_select a.ctg_drama {background-color: #D8FFD8;}
  2498. -table#reservation_table tr.ctg_anime, #category_select a.ctg_anime {background-color: #FFE4C8;}
  2499. -table#reservation_table tr.ctg_variety, #category_select a.ctg_variety {background-color: #FFD2EB;}
  2500. -table#reservation_table tr.ctg_10, #category_select a.ctg_10 {background-color: #E4F4F4;}
  2501.  
  2502. #floatBox4Dialog .prg_title{font-size:120%;font-weight:bold;padding:0.4em 0;text-align:center;}
  2503. #floatBox4Dialog .prg_rec_cfg{background:#EEE;padding:1em 2em;margin:0.4em 0;}
  2504. @@ -116,54 +128,102 @@
  2505. #floatBox4Dialog .button {padding:0.4em 1em;}
  2506.  
  2507.  
  2508. +#float_titles div.set {float:left;background-color:#888ca0;padding:0px;margin:5px;}
  2509. +#float_titles ul {float:left;padding:0px;margin:0px;}
  2510. +#float_titles ul li {float:left;list-style:none;margin:5px 2px 0px 0px; }
  2511. +#float_titles li a{padding:6px 10px;background-color:#8696c0;color:#e8e8ec;border: 1px solid #505080;}
  2512. +#float_titles li.selected a{background-color:#ffffff; font-weight:bold; color:#444;}
  2513. +
  2514. +#reservation_table tr.prg_rec {background-color: #ff7080;color:#333}
  2515. +table#reservation_table tr:nth-child(2n) {
  2516. + background: #f0f0f8;
  2517. +}
  2518. +table#reservation_table tr:nth-child(2n+1) {
  2519. + background: #f8f8ff;
  2520. +}
  2521. +input[type="submit"] {
  2522. + background-image: linear-gradient(0deg, #a7d9f5, #eaf6fd);
  2523. + border: 1px solid #3c7fb1;
  2524. + border-radius: 0.3em;
  2525. +}
  2526. +input[type="button"] {
  2527. + background-image: linear-gradient(0deg, #a7d9f5, #eaf6fd);
  2528. + border: 1px solid #3c7fb1;
  2529. + border-radius: 0.3em;
  2530. +}
  2531. +
  2532. +table {
  2533. + background-color:#ececf0;
  2534. + margin-top: 10px;
  2535. + margin-left: 10px;
  2536. + margin-bottom: 10px;
  2537. + padding:10px;
  2538. +}
  2539. +tr {
  2540. + padding: 0px;
  2541. + border: 1px solid #bbb;
  2542. +}
  2543. +td {
  2544. + padding: 0px;
  2545. + line-height: 150%;
  2546. +}
  2547. -->
  2548. </style>
  2549. {/literal}
  2550.  
  2551. </head>
  2552.  
  2553. -<body>
  2554. -
  2555. -<h2>{$sitetitle}</h2>
  2556. -
  2557. -<div><a href="index.php">番組表に戻る</a></div>
  2558. +<body style="font-size:{$base_font_size}pt">
  2559. +<div id="float_titles" style="font-size: {$float_follows_font_size}px;">
  2560. + <div class="set">
  2561. + <ul>
  2562. + <li><a href="/">番組表</a></li>
  2563. + <li class="selected"><a href="reservationTable.php">予約リスト</a></li>
  2564. + <li><a href="programTable.php">キーワード検索</a></li>
  2565. + <li><a href="keywordTable.php">自動検索予約リスト</a></li>
  2566. + <li><a href="recordedTable.php">録画済リスト</a></li>
  2567. + <li><a href="logViewer.php">ログ</a></li>
  2568. + <li><a href="envSetting.php">設定</a></li>
  2569. + </ul>
  2570. +</div>
  2571. +</div>
  2572. +<br style="clear:left;">
  2573. +<br>
  2574.  
  2575. {if count($reservations)}
  2576. <table id="reservation_table">
  2577. +{foreach from=$reservations item=reserve}
  2578. +{if $reserve.change_day == 1}
  2579. + <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>
  2580. <tr>
  2581. - <th>id</th>
  2582. - <th>種別</th>
  2583. - <th>ch</th>
  2584. - <th>開始</th>
  2585. - <th>終了</th>
  2586. - <th>モード</th>
  2587. + <th>予約日時</th>
  2588. + <th>チャンネル</th>
  2589. <th>タイトル</th>
  2590. <th>内容</th>
  2591. - <th><a href="keywordTable.php">自動ID</a></th>
  2592. - <th>削除</th>
  2593. + <th>自動<br />ID</th>
  2594. + <th>取消</th>
  2595. </tr>
  2596. -
  2597. -{foreach from=$reservations item=reserve}
  2598. - <tr id="resid_{$reserve.id}" class="ctg_{$reserve.cat}">
  2599. - <td>{$reserve.id}</td>
  2600. - <td>{$reserve.type}</td>
  2601. - <td id="chid_{$reserve.id}">{$reserve.channel}</td>
  2602. - <td id="stid_{$reserve.id}">{$reserve.starttime}</td>
  2603. - <td>{$reserve.endtime}</td>
  2604. - <td>{$reserve.mode}</td>
  2605. - <td style="cursor: pointer" id="tid_{$reserve.id}" onClick="javascript:PRG.editdialog('{$reserve.id}')">{$reserve.title|escape}</td>
  2606. - <td style="cursor: pointer" id="did_{$reserve.id}" onClick="javascript:PRG.editdialog('{$reserve.id}')">{$reserve.description|escape}</td>
  2607. - <td>{if $reserve.autorec}{$reserve.autorec}{/if}</td>
  2608. - <td><input type="button" value="削除" onClick="javascript:PRG.rec('{$reserve.id}')" /></td>
  2609. +{/if}
  2610. + <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}>
  2611. + <td style="vertical-align: top; text-align: left; min-width: 120px;">{$reserve.starttime}〜{$reserve.endtime}</td>
  2612. + <td style="vertical-align: top; text-align: left; min-width: 170px;" id="chid_{$reserve.id}">{$reserve.channel}</td>
  2613. +{if $reserve.search_key != ""}
  2614. + <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>
  2615. +{else}
  2616. + <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>
  2617. +{/if}
  2618. + <td style="vertical-align: top; text-align: left; width: 500px;" id="did_{$reserve.id}">{$reserve.description|escape}</td>
  2619. + <td style="min-width: 60px;">{if $reserve.autorec}{$reserve.autorec}{/if}</td>
  2620. + <td style="min-width: 60px;"><input type="button" value="取消" onClick="javascript:PRG.rec('{$reserve.id}')" /></td>
  2621. </tr>
  2622. {/foreach}
  2623. </table>
  2624. {else}
  2625. - 現在、予約はありません
  2626. + <div style="margin-left: 30px; margin-top: 30px;">現在、予約はありません</div>
  2627. {/if}
  2628.  
  2629. -<div id="floatBox4Dialog">jQuery UI Dialog</div>
  2630. -<div id="eraseDialog">jQuery UI Dialog</div>
  2631. +<div id="floatBox4Dialog"></div>
  2632. +<div id="eraseDialog"></div>
  2633.  
  2634. {literal}
  2635. <script type="text/javascript">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement