1
|
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.prgCancelURL, { reserve_id: id } ,function(data){
|
|
16
|
|
17 if(data.match(/^error/i)){
|
|
18 alert(data);
|
|
19 }
|
|
20 else {
|
|
21 $('#resid_' + id ).hide();
|
|
22 }
|
|
23 });
|
|
24 }
|
|
25 }
|
|
26 </script>
|
|
27 <style type="text/css">
|
|
28 <!--
|
|
29 body {padding:4px;margin:0;font-size:10pt;}
|
|
30 a {text-decoration:none;}
|
|
31
|
|
32 table#reservation_table {
|
|
33 width: 800px;
|
|
34 border: 1px #BBB solid;
|
|
35 border-collapse: collapse;
|
|
36 border-spacing: 0;
|
|
37 }
|
|
38
|
|
39 table#reservation_table th {
|
|
40 padding: 5px;
|
|
41 border: #E3E3E3 solid;
|
|
42 border-width: 0 0 1px 1px;
|
|
43 background: #BBB;
|
|
44 font-weight: bold;
|
|
45 line-height: 120%;
|
|
46 text-align: center;
|
|
47 }
|
|
48 table#reservation_table td {
|
|
49 padding: 5px;
|
|
50 border: 1px #BBB solid;
|
|
51 border-width: 0 0 1px 1px;
|
|
52 text-align: center;
|
|
53 }
|
|
54
|
|
55 table#reservation_table tr.ctg_news, #category_select a.ctg_news {background-color: #FFFFD8;}
|
|
56 table#reservation_table tr.ctg_etc, #category_select a.ctg_etc {background-color: #FFFFFF;}
|
|
57 table#reservation_table tr.ctg_information, #category_select a.ctg_information {background-color: #F2D8FF;}
|
|
58 table#reservation_table tr.ctg_sports, #category_select a.ctg_sports {background-color: #D8FFFF;}
|
|
59 table#reservation_table tr.ctg_cinema, #category_select a.ctg_cinema {background-color: #FFD8D8;}
|
|
60 table#reservation_table tr.ctg_music, #category_select a.ctg_music {background-color: #D8D8FF;}
|
|
61 table#reservation_table tr.ctg_drama, #category_select a.ctg_drama {background-color: #D8FFD8;}
|
|
62 table#reservation_table tr.ctg_anime, #category_select a.ctg_anime {background-color: #FFE4C8;}
|
|
63 table#reservation_table tr.ctg_variety, #category_select a.ctg_variety {background-color: #FFD2EB;}
|
|
64 table#reservation_table tr.ctg_10, #category_select a.ctg_10 {background-color: #E4F4F4;}
|
|
65
|
|
66
|
|
67 -->
|
|
68 </style>
|
|
69 {/literal}
|
|
70
|
|
71 </head>
|
|
72
|
|
73 <body>
|
|
74
|
|
75 <h2>{$sitetitle}</h2>
|
|
76
|
|
77 <div><a href="index.php">番組表に戻る</a></div>
|
|
78
|
|
79 {if count($reservations)}
|
|
80 <table id="reservation_table">
|
|
81 <tr>
|
|
82 <th>id</th>
|
|
83 <th>種別</th>
|
|
84 <th>ch</th>
|
|
85 <th>開始</th>
|
|
86 <th>終了</th>
|
|
87 <th>モード</th>
|
|
88 <th>タイトル</th>
|
|
89 <th>内容</th>
|
|
90 <th><a href="keywordTable.php">自動ID</a></th>
|
|
91 <th>削除</th>
|
|
92 </tr>
|
|
93
|
|
94 {foreach from=$reservations item=reserve}
|
|
95 <tr id="resid_{$reserve.id}" class="ctg_{$reserve.cat}">
|
|
96 <td>{$reserve.id}</td>
|
|
97 <td>{$reserve.type}</td>
|
|
98 <td>{$reserve.channel}</td>
|
|
99 <td>{$reserve.starttime}</td>
|
|
100 <td>{$reserve.endtime}</td>
|
|
101 <td>{$reserve.mode}</td>
|
|
102 <td>{$reserve.title|escape}</td>
|
|
103 <td>{$reserve.description|escape}</td>
|
|
104 <td>{if $reserve.autorec}{$reserve.autorec}{/if}</td>
|
|
105 <td><input type="button" value="削除" onClick="javascript:PRG.rec('{$reserve.id}')" /></td>
|
|
106 </tr>
|
|
107 {/foreach}
|
|
108 </table>
|
|
109 {else}
|
|
110 現在、予約はありません
|
|
111 {/if}
|
|
112
|
|
113
|
|
114
|
|
115 {literal}
|
|
116 <script type="text/javascript">
|
|
117 var INISet = {
|
|
118 prgRecordURL : 'record.php', // 簡易予約
|
|
119 prgRecordPlusURL : 'recordp.php', // 詳細予約
|
|
120 prgCancelURL : 'cancelReservation.php' // 予約キャンセル
|
|
121 }
|
|
122 </script>
|
|
123 {/literal}
|
|
124 </body>
|
|
125 </html>
|