diff templates/recordedTable.html @ 1:f5a9f0eb4858

deleted: LICENSE.ja
author Sushi-k <epgrec@park.mda.or.jp>
date Wed, 08 Jul 2009 11:44:50 +0900
parents
children bbbc4f1ecf1d
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/recordedTable.html	Wed Jul 08 11:44:50 2009 +0900
@@ -0,0 +1,145 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>{$sitetitle}</title>
+<meta http-equiv="Content-Style-Type" content="text/css">
+
+{literal}
+<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
+<script type="text/javascript">
+	var PRG = {
+		rec:function(id){
+			$.get(INISet.prgCancelURL, { reserve_id: id } ,function(data){
+				
+				if(data.match(/^error/i)){
+					alert(data);
+				}
+				else {
+					$('#resid_' + id ).hide();
+				}
+			});
+		}
+	}
+</script>
+<style type="text/css">
+<!--
+body {padding:4px;margin:0;font-size:10pt;}
+a {text-decoration:none;}
+
+.bold {font-weight:bold;}
+.small {font-size:75%;}
+
+a img {border:none; }
+
+table#reservation_table {
+    width: 960px;
+    border: 1px #BBB solid;
+    border-collapse: collapse;
+    border-spacing: 0;
+}
+
+table#reservation_table th {
+    padding: 5px;
+    border: #E3E3E3 solid;
+    border-width: 0 0 1px 1px;
+    background: #BBB;
+    font-weight: bold;
+    line-height: 120%;
+    text-align: center;
+}
+table#reservation_table td {
+    padding: 5px;
+    border: 1px #BBB solid;
+    border-width: 0 0 1px 1px;
+    text-align: center;
+}
+
+table#reservation_table tr.ctg_news, #category_select a.ctg_news {background-color: #FFFFD8;}
+table#reservation_table tr.ctg_etc, #category_select a.ctg_etc {background-color: #FFFFFF;}
+table#reservation_table tr.ctg_information, #category_select a.ctg_information {background-color: #F2D8FF;}
+table#reservation_table tr.ctg_sports, #category_select a.ctg_sports {background-color: #D8FFFF;}
+table#reservation_table tr.ctg_cinema, #category_select a.ctg_cinema {background-color: #FFD8D8;}
+table#reservation_table tr.ctg_music, #category_select a.ctg_music {background-color: #D8D8FF;}
+table#reservation_table tr.ctg_drama, #category_select a.ctg_drama {background-color: #D8FFD8;}
+table#reservation_table tr.ctg_anime, #category_select a.ctg_anime {background-color: #FFE4C8;}
+table#reservation_table tr.ctg_variety, #category_select a.ctg_variety {background-color: #FFD2EB;}
+table#reservation_table tr.ctg_10, #category_select a.ctg_10 {background-color: #E4F4F4;}
+
+
+-->
+</style>
+{/literal}
+
+</head>
+
+<body>
+
+<h2>{$sitetitle}</h2>
+
+<p><a href="index.php">番組表に戻る</a></p>
+
+<div>
+絞り込み:
+<form method="post" action="recordedTable.php" >
+<input type="hidden" name="do_search" value="1" />
+検索語句<input type="text" size="20" name="search" value="{$search}" />
+局<select name="station">
+  {foreach from=$stations item=st}
+    <option value="{$st.id}" {$st.selected}>{$st.name}</option>
+  {/foreach}
+  </select>
+カテゴリ<select name="category_id">
+  {foreach from=$cats item=cat}
+  <option value="{$cat.id}" {$cat.selected}>{$cat.name}</option>
+  {/foreach}
+</select>
+<input type="submit" value="絞り込む" />
+</form>
+</div>
+
+タイトルや内容をクリックすると視聴できます(ブラウザの設定でASFとVLCを関連付けている必要があります)
+{if count($records)}
+<table id="reservation_table">
+ <tr>
+  <th>録画日時</th>
+  <th>ch</th>
+  <th>モード</th>
+  {if $use_thumbs}<th>サムネール</th>{/if}
+  <th>タイトル</th>
+  <th>内容</th>
+  <th>情報削除</th>
+ </tr>
+
+{foreach from=$records item=rec }
+ <tr id="resid_{$rec.id}" class="ctg_{$rec.cat}">
+  <td>{$rec.starttime}</td>
+  <td>{$rec.station_name}</td>
+  <td>{$rec.mode}</td>
+  {if $use_thumbs}<td>{$rec.thumb}</td>{/if}
+  <td>{$rec.title}</td>
+  <td>{$rec.description}</td>
+  <td><input type="button" value="削除" onClick="javascript:PRG.rec('{$rec.id}')" /></td>
+ </tr>
+{/foreach}
+</table>
+
+{else}
+  現在、録画済データはありません
+{/if}
+
+
+
+{literal}
+<script type="text/javascript">
+var INISet = {
+	prgRecordURL : 'record.php',			// 簡易予約
+	prgRecordPlusURL : 'recordp.php',		// 詳細予約
+	prgCancelURL : 'cancelReservation.php'		// 予約キャンセル
+}
+</script>
+{/literal}
+</body>
+</html>