Mercurial > epgrec.yaz
annotate templates/recordedTable.html @ 164:254d8a21bf36
fix: 予約済みの未実行録画にrecomplete.phpが必要なので戻した
author | Sushi-k <epgrec@park.mda.or.jp> |
---|---|
date | Tue, 06 Apr 2010 11:03:45 +0900 |
parents | c6c6bd734f18 |
children |
rev | line source |
---|---|
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> | |
14
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
12 <script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script> |
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
13 <link rel="stylesheet" href="start/jquery-ui-1.7.2.custom.css" type="text/css"> |
1 | 14 <script type="text/javascript"> |
14
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
15 <!-- |
1 | 16 var PRG = { |
14
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
17 |
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
18 dialog:function(id, title){ |
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
19 $('#floatBox4Dialog').dialog({title:'',width:500}); |
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
20 var str = '<div class="prg_title">' + title + 'ゃ障</div>'; |
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
21 str += '<form><div style="text-align:center;">牙祉<ゃゃ<input type="checkbox" id="delete_file" name="delete_file" value="1" /></div></form>'; |
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
22 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>'; |
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
23 $('#floatBox4Dialog').html(str); |
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
24 $('#floatBox4Dialog').dialog('open', 'center'); |
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
25 }, |
1 | 26 rec:function(id){ |
14
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
27 var df = 0; |
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
28 if( $('#delete_file').attr('checked') ) { |
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
29 df = 1; |
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
30 } |
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
31 $('#floatBox4Dialog').dialog('close'); |
161
84220382fea8
mod: 録画中のキャンセルを可能にした(動作確認、まだ不完全かも)
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
53
diff
changeset
|
32 $('#floatBox4Dialog').html('や賢.......'); |
84220382fea8
mod: 録画中のキャンセルを可能にした(動作確認、まだ不完全かも)
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
53
diff
changeset
|
33 $('#floatBox4Dialog').dialog('open', 'center'); |
14
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
34 $.get(INISet.prgCancelURL, { reserve_id: id, delete_file: df } ,function(data){ |
1 | 35 if(data.match(/^error/i)){ |
161
84220382fea8
mod: 録画中のキャンセルを可能にした(動作確認、まだ不完全かも)
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
53
diff
changeset
|
36 $('#floatBox4Dialog').dialog('close'); |
1 | 37 alert(data); |
38 } | |
39 else { | |
162
c6c6bd734f18
fix: ミス修正
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
161
diff
changeset
|
40 // alert(data); |
1 | 41 $('#resid_' + id ).hide(); |
161
84220382fea8
mod: 録画中のキャンセルを可能にした(動作確認、まだ不完全かも)
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
53
diff
changeset
|
42 $('#floatBox4Dialog').dialog('close'); |
1 | 43 } |
44 }); | |
27
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
45 }, |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
46 editdialog:function(id) { |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
47 $('#floatBox4Dialog').dialog({title:'紊',width:500}); |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
48 var str; |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
49 str = '<div class="prg_title">牙ID:' + id + '</div>'; |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
50 str += '<input type="hidden" name="reserve_id" id="id_reserve_id" value="' + id + '" />'; |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
51 str += '<div><span class="labelLeft">帥ゃ</span><input name="title" id="id_title" size="30" value="'+ $('#tid_' + id ).html() + '" /></div>'; |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
52 str += '<div><span class="labelLeft">网荀</span><textarea name="description" id="id_description" cols="30" rows="5" >' + $('#did_' + id ).html() + '</textarea></div>'; |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
53 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>'; |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
54 |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
55 $('#floatBox4Dialog').html(str); |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
56 $('#floatBox4Dialog').dialog('open','center'); |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
57 }, |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
58 edit:function() { |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
59 var id_reserve_id = $('#id_reserve_id').val(); |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
60 var id_title = $('#id_title').val(); |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
61 var id_description = $('#id_description').val(); |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
62 |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
63 $.post('changeReservation.php', { reserve_id: id_reserve_id, |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
64 title: id_title, |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
65 description: id_description }, function( data ) { |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
66 if(data.match(/^error/i)){ |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
67 alert(data); |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
68 $('#floatBox4Dialog').dialog('close'); |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
69 |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
70 } |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
71 else { |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
72 $('#tid_' + id_reserve_id ).html( id_title ); |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
73 $('#did_' + id_reserve_id ).html( id_description ); |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
74 $('#floatBox4Dialog').dialog('close'); |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
75 } |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
76 }); |
1 | 77 } |
78 } | |
27
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
79 $(document).ready(function () { |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
80 var DG = $('#floatBox4Dialog'); |
29
ae5491d72470
modified: templates/recordedTable.html
yoneda <epgrec@park.mda.or.jp>
parents:
27
diff
changeset
|
81 DG.dialog({title:'紊',width:500}); |
27
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
82 DG.dialog('close'); |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
83 }); |
14
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
84 --> |
1 | 85 </script> |
86 <style type="text/css"> | |
87 <!-- | |
88 body {padding:4px;margin:0;font-size:10pt;} | |
89 a {text-decoration:none;} | |
90 | |
91 .bold {font-weight:bold;} | |
92 .small {font-size:75%;} | |
93 | |
94 a img {border:none; } | |
95 | |
96 table#reservation_table { | |
97 width: 960px; | |
98 border: 1px #BBB solid; | |
99 border-collapse: collapse; | |
100 border-spacing: 0; | |
101 } | |
102 | |
103 table#reservation_table th { | |
104 padding: 5px; | |
105 border: #E3E3E3 solid; | |
106 border-width: 0 0 1px 1px; | |
107 background: #BBB; | |
108 font-weight: bold; | |
109 line-height: 120%; | |
110 text-align: center; | |
111 } | |
112 table#reservation_table td { | |
113 padding: 5px; | |
114 border: 1px #BBB solid; | |
115 border-width: 0 0 1px 1px; | |
116 text-align: center; | |
117 } | |
118 | |
119 table#reservation_table tr.ctg_news, #category_select a.ctg_news {background-color: #FFFFD8;} | |
120 table#reservation_table tr.ctg_etc, #category_select a.ctg_etc {background-color: #FFFFFF;} | |
121 table#reservation_table tr.ctg_information, #category_select a.ctg_information {background-color: #F2D8FF;} | |
122 table#reservation_table tr.ctg_sports, #category_select a.ctg_sports {background-color: #D8FFFF;} | |
123 table#reservation_table tr.ctg_cinema, #category_select a.ctg_cinema {background-color: #FFD8D8;} | |
124 table#reservation_table tr.ctg_music, #category_select a.ctg_music {background-color: #D8D8FF;} | |
125 table#reservation_table tr.ctg_drama, #category_select a.ctg_drama {background-color: #D8FFD8;} | |
126 table#reservation_table tr.ctg_anime, #category_select a.ctg_anime {background-color: #FFE4C8;} | |
127 table#reservation_table tr.ctg_variety, #category_select a.ctg_variety {background-color: #FFD2EB;} | |
128 table#reservation_table tr.ctg_10, #category_select a.ctg_10 {background-color: #E4F4F4;} | |
129 | |
130 | |
14
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
131 #floatBox4Dialog .prg_title{font-size:120%;font-weight:bold;padding:0.4em 0;text-align:center;} |
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
132 #floatBox4Dialog .prg_rec_cfg{background:#EEE;padding:1em 2em;margin:0.4em 0;} |
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
133 #floatBox4Dialog .labelLeft {width:8em;float:left;text-align:right;} |
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
134 #floatBox4Dialog .button {padding:0.4em 1em;} |
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
135 |
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
136 |
1 | 137 --> |
138 </style> | |
139 {/literal} | |
140 | |
141 </head> | |
142 | |
143 <body> | |
144 | |
145 <h2>{$sitetitle}</h2> | |
146 | |
147 <p><a href="index.php">腟茵祉</a></p> | |
148 | |
149 <div> | |
150 腟莨若随 | |
151 <form method="post" action="recordedTable.php" > | |
152 <input type="hidden" name="do_search" value="1" /> | |
153 罎膣∵<input type="text" size="20" name="search" value="{$search}" /> | |
154 絮<select name="station"> | |
155 {foreach from=$stations item=st} | |
156 <option value="{$st.id}" {$st.selected}>{$st.name}</option> | |
157 {/foreach} | |
158 </select> | |
159 眼<select name="category_id"> | |
160 {foreach from=$cats item=cat} | |
161 <option value="{$cat.id}" {$cat.selected}>{$cat.name}</option> | |
162 {/foreach} | |
163 </select> | |
164 <input type="submit" value="腟莨若" /> | |
165 </form> | |
166 </div> | |
167 | |
168 帥ゃ絎鴻荀眼с障鐚吟荐絎ASFVLC∫d綽荀障鐚 | |
169 {if count($records)} | |
170 <table id="reservation_table"> | |
171 <tr> | |
172 <th>牙紙ユ</th> | |
173 <th>ch</th> | |
174 <th>≪若</th> | |
53 | 175 {if $use_thumbs == 1}<th>泣若</th>{/if} |
1 | 176 <th>帥ゃ</th> |
177 <th>絎</th> | |
27
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
178 <th>紊</th> |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
179 <th></th> |
1 | 180 </tr> |
181 | |
182 {foreach from=$records item=rec } | |
183 <tr id="resid_{$rec.id}" class="ctg_{$rec.cat}"> | |
184 <td>{$rec.starttime}</td> | |
185 <td>{$rec.station_name}</td> | |
186 <td>{$rec.mode}</td> | |
53 | 187 {if $use_thumbs == 1}<td><a href="{$rec.asf}">{$rec.thumb}</a></td>{/if} |
27
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
188 <td><a href="{$rec.asf}" id="tid_{$rec.id}">{$rec.title}</a></td> |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
189 <td><a href="{$rec.asf}" id="did_{$rec.id}">{$rec.description}</a></td> |
a34f2ff49097
add: editable title & description
yoneda <epgrec@park.mda.or.jp>
parents:
14
diff
changeset
|
190 <td><input type="button" value="紊" onClick="javascript:PRG.editdialog('{$rec.id}')" /></td> |
14
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
191 <td><input type="button" value="" onClick="javascript:PRG.dialog('{$rec.id}','{$rec.title}')" /></td> |
1 | 192 </tr> |
193 {/foreach} | |
194 </table> | |
195 | |
196 {else} | |
197 憜牙紙若帥障 | |
198 {/if} | |
199 | |
14
bbbc4f1ecf1d
added: remove video with real file.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
200 <div id="floatBox4Dialog">jQuery UI Dialog</div> |
1 | 201 |
202 {literal} | |
203 <script type="text/javascript"> | |
204 var INISet = { | |
205 prgRecordURL : 'record.php', // 膂≧篋膣 | |
206 prgRecordPlusURL : 'recordp.php', // 荅括完篋膣 | |
207 prgCancelURL : 'cancelReservation.php' // 篋膣c潟祉 | |
208 } | |
209 </script> | |
210 {/literal} | |
211 </body> | |
212 </html> |