comparison templates/programTable.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 f3bf1be1a51b
comparison
equal deleted inserted replaced
0:96312e6ab8d4 1:f5a9f0eb4858
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
3
4 <html>
5 <head>
6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7 <title>{$sitetitle}</title>
8 <meta http-equiv="Content-Style-Type" content="text/css">
9
10 {literal}
11 <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
12 <script type="text/javascript">
13 var PRG = {
14 rec:function(id){
15 $.get(INISet.prgRecordURL, { program_id: id } ,function(data){
16 if(data.match(/^error/i)){
17 alert(data);
18 }else{
19 $('#resid_' + id).addClass('prg_rec');
20 }
21 });
22 }
23 }
24 </script>
25 <style type="text/css">
26 <!--
27 body {padding:4px;margin:0;font-size:10pt;}
28 a {text-decoration:none;}
29
30 table#reservation_table {
31 width: 800px;
32 border: 1px #BBB solid;
33 border-collapse: collapse;
34 border-spacing: 0;
35 }
36
37 table#reservation_table th {
38 padding: 5px;
39 border: #E3E3E3 solid;
40 border-width: 0 0 1px 1px;
41 background: #BBB;
42 font-weight: bold;
43 line-height: 120%;
44 text-align: center;
45 }
46 table#reservation_table td {
47 padding: 5px;
48 border: 1px #BBB solid;
49 border-width: 0 0 1px 1px;
50 text-align: center;
51 }
52
53 table#reservation_table tr.ctg_news, #category_select a.ctg_news {background-color: #FFFFD8;}
54 table#reservation_table tr.ctg_etc, #category_select a.ctg_etc {background-color: #FFFFFF;}
55 table#reservation_table tr.ctg_information, #category_select a.ctg_information {background-color: #F2D8FF;}
56 table#reservation_table tr.ctg_sports, #category_select a.ctg_sports {background-color: #D8FFFF;}
57 table#reservation_table tr.ctg_cinema, #category_select a.ctg_cinema {background-color: #FFD8D8;}
58 table#reservation_table tr.ctg_music, #category_select a.ctg_music {background-color: #D8D8FF;}
59 table#reservation_table tr.ctg_drama, #category_select a.ctg_drama {background-color: #D8FFD8;}
60 table#reservation_table tr.ctg_anime, #category_select a.ctg_anime {background-color: #FFE4C8;}
61 table#reservation_table tr.ctg_variety, #category_select a.ctg_variety {background-color: #FFD2EB;}
62 table#reservation_table tr.ctg_10, #category_select a.ctg_10 {background-color: #E4F4F4;}
63 table#reservation_table tr.prg_rec {background-color: #F55;color:#FEE}
64
65
66 -->
67 </style>
68 {/literal}
69
70 </head>
71
72 <body>
73
74 <h2>{$sitetitle}</h2>
75
76
77
78 <div><a href="index.php">番組表に戻る</a>/<a href="keywordTable.php">自動録画キーワード管理へ</a></div>
79
80 <div>
81 絞り込み:
82 <form method="post" action="programTable.php">
83 <input type="hidden" name="do_search" value="1" />
84 検索語句<input type="text" size="20" name="search" value="{$search}" />
85 正規表現使用<input type="checkbox" name="use_regexp" value="1" {if $use_regexp}checked{/if} />
86 種別<select name="type">
87 {foreach from=$types item=type}
88 <option value="{$type.value}" {$type.selected}>{$type.name}</option>
89 {/foreach}
90 </select>
91 局<select name="station">
92 {foreach from=$stations item=st}
93 <option value="{$st.id}" {$st.selected}>{$st.name}</option>
94 {/foreach}
95 </select>
96 カテゴリ<select name="category_id">
97 {foreach from=$cats item=cat}
98 <option value="{$cat.id}" {$cat.selected}>{$cat.name}</option>
99 {/foreach}
100 </select>
101 <input type="submit" value="絞り込む" />
102 </form>
103 </div>
104
105
106
107 {if count($programs)}
108 <table id="reservation_table">
109 <tr>
110 <th>種別</th>
111 <th>局名</th>
112 <th>番組開始</th>
113 <th>番組終了</th>
114 <th>タイトル</th>
115 <th>内容</th>
116 <th>簡易録画</th>
117 <th>詳細録画</th>
118 </tr>
119
120 {foreach from=$programs item=program}
121 <tr id="resid_{$program.id}" class="ctg_{$program.cat}{if $program.rec > 0} prg_rec{/if}">
122 <td>{$program.type}</td>
123 <td>{$program.station_name}</td>
124 <td>{$program.starttime}</td>
125 <td>{$program.endtime}</td>
126 <td>{$program.title|escape}</td>
127 <td>{$program.description|escape}</td>
128 <td><input type="button" value="録画" onClick="javascript:PRG.rec('{$program.id}')" /></td>
129 <td><a href="reservation.php?program_id={$program.id}">詳細へ</a></td>
130 </tr>
131 {/foreach}
132 </table>
133 {else}
134 該当する番組はありません
135 {/if}
136 <div>{$programs|@count}件ヒット</div>
137 {if count($programs) >= 300}<div>表示最大300件まで</div>{/if}
138 {if $do_keyword}
139 {if (count($programs) < 300)}
140 <div>
141 <form method="post" action="keywordTable.php">
142 <b>語句:</b>{$search|escape}
143 <b>正規表現:</b>{if $use_regexp}使う{else}使わない{/if}
144 <b>種別:</b>{if $k_type == "*"}すべて{else}{$k_type}{/if}
145 <b>局:</b>{if $k_station == 0}すべて{else}{$k_station_name}{/if}
146 <b>カテゴリ:</b>{if $k_category == 0}すべて{else}{$k_category_name}{/if}
147 <b>件数:</b>{$programs|@count}
148 <input type="hidden" name="add_keyword" value="{$do_keyword}" />
149 <input type="hidden" name="k_use_regexp" value="{$use_regexp}" />
150 <input type="hidden" name="k_search" value="{$search}" />
151 <input type="hidden" name="k_type" value="{$k_type}" />
152 <input type="hidden" name="k_category" value="{$k_category}" />
153 <input type="hidden" name="k_station" value="{$k_station}" />
154 <input type="submit" value="この絞り込みを自動録画キーワードに登録" />
155 </form>
156 </div>
157 {/if}
158 {/if}
159
160
161
162
163 {literal}
164 <script type="text/javascript">
165 var INISet = {
166 prgRecordURL : 'simpleReservation.php', // 簡易予約
167 prgRecordPlusURL : 'recordp.php', // 詳細予約
168 prgCancelURL : 'cancelReservation.php' // 予約キャンセル
169 }
170 </script>
171 {/literal}
172 </body>
173 </html>