comparison templates/recordedTable.html @ 14:bbbc4f1ecf1d

added: remove video with real file.
author Sushi-k <epgrec@park.mda.or.jp>
date Tue, 14 Jul 2009 20:11:42 +0900
parents f5a9f0eb4858
children a34f2ff49097
comparison
equal deleted inserted replaced
13:b0fc647167f5 14:bbbc4f1ecf1d
7 <title>{$sitetitle}</title> 7 <title>{$sitetitle}</title>
8 <meta http-equiv="Content-Style-Type" content="text/css"> 8 <meta http-equiv="Content-Style-Type" content="text/css">
9 9
10 {literal} 10 {literal}
11 <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script> 11 <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
12 <script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
13 <link rel="stylesheet" href="start/jquery-ui-1.7.2.custom.css" type="text/css">
12 <script type="text/javascript"> 14 <script type="text/javascript">
15 <!--
13 var PRG = { 16 var PRG = {
17
18 dialog:function(id, title){
19 $('#floatBox4Dialog').dialog({title:'削除',width:500});
20 var str = '<div class="prg_title">' + title + 'を削除します</div>';
21 str += '<form><div style="text-align:center;">録画ファイルも削除する<input type="checkbox" id="delete_file" name="delete_file" value="1" /></div></form>';
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>';
23 $('#floatBox4Dialog').html(str);
24 $('#floatBox4Dialog').dialog('open', 'center');
25 },
14 rec:function(id){ 26 rec:function(id){
15 $.get(INISet.prgCancelURL, { reserve_id: id } ,function(data){ 27 var df = 0;
28
29 if( $('#delete_file').attr('checked') ) {
30 df = 1;
31 }
32 $('#floatBox4Dialog').dialog('close');
33
34 $.get(INISet.prgCancelURL, { reserve_id: id, delete_file: df } ,function(data){
16 35
17 if(data.match(/^error/i)){ 36 if(data.match(/^error/i)){
18 alert(data); 37 alert(data);
19 } 38 }
20 else { 39 else {
21 $('#resid_' + id ).hide(); 40 $('#resid_' + id ).hide();
22 } 41 }
23 }); 42 });
24 } 43 }
25 } 44 }
45 -->
26 </script> 46 </script>
27 <style type="text/css"> 47 <style type="text/css">
28 <!-- 48 <!--
29 body {padding:4px;margin:0;font-size:10pt;} 49 body {padding:4px;margin:0;font-size:10pt;}
30 a {text-decoration:none;} 50 a {text-decoration:none;}
65 table#reservation_table tr.ctg_music, #category_select a.ctg_music {background-color: #D8D8FF;} 85 table#reservation_table tr.ctg_music, #category_select a.ctg_music {background-color: #D8D8FF;}
66 table#reservation_table tr.ctg_drama, #category_select a.ctg_drama {background-color: #D8FFD8;} 86 table#reservation_table tr.ctg_drama, #category_select a.ctg_drama {background-color: #D8FFD8;}
67 table#reservation_table tr.ctg_anime, #category_select a.ctg_anime {background-color: #FFE4C8;} 87 table#reservation_table tr.ctg_anime, #category_select a.ctg_anime {background-color: #FFE4C8;}
68 table#reservation_table tr.ctg_variety, #category_select a.ctg_variety {background-color: #FFD2EB;} 88 table#reservation_table tr.ctg_variety, #category_select a.ctg_variety {background-color: #FFD2EB;}
69 table#reservation_table tr.ctg_10, #category_select a.ctg_10 {background-color: #E4F4F4;} 89 table#reservation_table tr.ctg_10, #category_select a.ctg_10 {background-color: #E4F4F4;}
90
91
92 #floatBox4Dialog .prg_title{font-size:120%;font-weight:bold;padding:0.4em 0;text-align:center;}
93 #floatBox4Dialog .prg_rec_cfg{background:#EEE;padding:1em 2em;margin:0.4em 0;}
94 #floatBox4Dialog .labelLeft {width:8em;float:left;text-align:right;}
95 #floatBox4Dialog .button {padding:0.4em 1em;}
70 96
71 97
72 --> 98 -->
73 </style> 99 </style>
74 {/literal} 100 {/literal}
116 {foreach from=$records item=rec } 142 {foreach from=$records item=rec }
117 <tr id="resid_{$rec.id}" class="ctg_{$rec.cat}"> 143 <tr id="resid_{$rec.id}" class="ctg_{$rec.cat}">
118 <td>{$rec.starttime}</td> 144 <td>{$rec.starttime}</td>
119 <td>{$rec.station_name}</td> 145 <td>{$rec.station_name}</td>
120 <td>{$rec.mode}</td> 146 <td>{$rec.mode}</td>
121 {if $use_thumbs}<td>{$rec.thumb}</td>{/if} 147 {if $use_thumbs}<td><a href="{$rec.asf}">{$rec.thumb}</a></td>{/if}
122 <td>{$rec.title}</td> 148 <td><a href="{$rec.asf}">{$rec.title}</a></td>
123 <td>{$rec.description}</td> 149 <td><a href="{$rec.asf}">{$rec.description}</a></td>
124 <td><input type="button" value="削除" onClick="javascript:PRG.rec('{$rec.id}')" /></td> 150 <td><input type="button" value="削除" onClick="javascript:PRG.dialog('{$rec.id}','{$rec.title}')" /></td>
125 </tr> 151 </tr>
126 {/foreach} 152 {/foreach}
127 </table> 153 </table>
128 154
129 {else} 155 {else}
130 現在、録画済データはありません 156 現在、録画済データはありません
131 {/if} 157 {/if}
132 158
133 159 <div id="floatBox4Dialog">jQuery UI Dialog</div>
134 160
135 {literal} 161 {literal}
136 <script type="text/javascript"> 162 <script type="text/javascript">
137 var INISet = { 163 var INISet = {
138 prgRecordURL : 'record.php', // 簡易予約 164 prgRecordURL : 'record.php', // 簡易予約