comparison templates/keywordTable.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 87ded65fa485
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 delkey:function(id){
15 $.get(INISet.prgDelKeyURL, { keyword_id: id } ,function(data){
16 if(data.match(/^error/i)){
17 alert(data);
18 }else{
19 $('#keyid_' + id).hide();
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 <div><a href="programTable.php">番組検索へ</a>/<a href="reservationTable.php">予約一覧へ</a></div>
78
79
80 {if count($keywords)}
81 <table id="reservation_table">
82 <tr>
83 <th>id</th>
84 <th>検索語句</th>
85 <th>正規表現</th>
86 <th>種別</th>
87 <th>局</th>
88 <th>カテゴリ</th>
89 <th>削除</th>
90 </tr>
91
92 {foreach from=$keywords item=keyword}
93 <tr id="keyid_{$keyword.id}">
94 <td>{$keyword.id}</td>
95 <td>{$keyword.keyword|escape}</td>
96 <td>{if $keyword.use_regexp}使う{else}使わない{/if}</td>
97 <td>{$keyword.type}</td>
98 <td>{$keyword.channel}</td>
99 <td>{$keyword.category}</td>
100 <td><input type="button" value="削除" onClick="javascript:PRG.delkey('{$keyword.id}')" /></td>
101 </tr>
102 {/foreach}
103 </table>
104 {else}
105 キーワードはありません
106 {/if}
107
108
109 {literal}
110 <script type="text/javascript">
111 var INISet = {
112 prgDelKeyURL : 'deleteKeyword.php' // キーワード削除
113 }
114 </script>
115 {/literal}
116 </body>
117 </html>