Mercurial > epgrec.yaz
annotate templates/index.html @ 125:ef3df87f3c7d
mod: チャンネルスキップの大まかな実装終了
author | Sushi-k <epgrec@park.mda.or.jp> |
---|---|
date | Wed, 17 Mar 2010 18:12:01 +0900 |
parents | aa48eb5f1993 |
children | d6a932ac8d8e |
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 | |
12 <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script> | |
13 <script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script> | |
14 <link rel="stylesheet" href="start/jquery-ui-1.7.2.custom.css" type="text/css"> | |
15 <script type="text/javascript" src="js/mdabasic.js"></script> | |
16 <script type="text/javascript"> | |
17 function tvtimes_scroll(){ | |
18 var t2max = $('#tvtimes2').position().left; | |
19 var ftmin = $('#float_titles').position().top; | |
20 tvtimes2scrl(); | |
21 $(window).scroll(function () { | |
22 $('#tvtimes').css('left', parseInt($(document ).scrollLeft())); | |
23 var newTop = parseInt($(document ).scrollTop()); | |
24 if(newTop < ftmin) {newTop = ftmin;} | |
25 $('#float_titles').css('top', newTop); | |
26 tvtimes2scrl(); | |
27 $('#float_follows').css('left', parseInt($(document ).scrollLeft())); | |
28 }); | |
29 $(window).resize(function () { tvtimes2scrl();}); | |
30 function tvtimes2scrl(){ | |
31 var inwidth = parseInt($('body').innerWidth()); | |
32 // IE6 | |
33 if ($.browser.msie && $.browser.version == 6){ inwidth = document.documentElement.clientWidth;} | |
34 var newLeft = inwidth - parseInt($('#tvtimes2').width()) + parseInt($( document ).scrollLeft()); | |
35 if(newLeft > t2max ) {newLeft = t2max} | |
36 $('#tvtimes2').css('left', newLeft); | |
37 $('#float_follows').width(inwidth); | |
38 } | |
39 } | |
40 function prg_hover(){ | |
41 function aClick(){ | |
42 var TG = $(this).children('.prg_dummy'); | |
43 var startTime = new Date(TG.children('.prg_start').html()); | |
44 var duration = parseInt(TG.children('.prg_duration').html()); | |
45 var endTime = new Date(startTime.getTime() + duration * 1000); | |
46 var prgID = parseInt(TG.children('.prg_id').html()); | |
47 | |
48 var str = '<div class="prg_title">' + TG.children('.prg_title').html() +'</div>' + | |
49 '<div class="prg_rec_cfg ui-corner-all"><div class="prg_channel"><span class=" labelLeft">c潟鐚</span><span class="bold">' + TG.children('.prg_channel').html() + '</span></div>' + | |
50 '<div class="prg_startTime" style="clear: left"><span class=" labelLeft">ユ鐚</span>' + MDA.Days.time4Disp(startTime) + ' 鐔 ' + MDA.Days.time4DispH(endTime) + '</div>' + | |
51 '<div class="prg_duration" style="clear: left"><span class=" labelLeft">牙紙鐚</span><span class="bold">' + parseInt(duration / 60) +'</span>' + ((duration % 60)>0?'<span class="bold">' + parseInt(duration % 60) + '</span>腱':'') + '</div>' + | |
52 '</div>'; | |
53 if ($(this).hasClass('prg_rec')) { | |
54 str += '<div style="margin:2em 0 1em 0;text-align:center;"><a href="javascript:PRG.cancel(' + prgID + ')" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">篋膣c潟祉</a></div>'; | |
55 } else { | |
23
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
56 str += '<div style="margin:2em 0 1em 0;text-align:center;"><a href="javascript:PRG.rec(' + prgID + ')" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">膂≧篋膣</a><a href="javascript:PRG.customform(' + prgID + ')" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">篋膣鴻帥ゃ</a></div>'; |
1 | 57 } |
58 $('#floatBox4Dialog').html(str); | |
59 $('#floatBox4Dialog').dialog('open', 'center'); | |
60 }; | |
61 $('.prg').hover( | |
62 function(){ | |
63 $('#tv_chs .prg_hover').removeClass('prg_hover'); | |
64 if($(this).hasClass('prg_none')) return ; | |
65 $(this).addClass('prg_hover'); | |
66 var TG = $(this).children('.prg_dummy'); | |
67 var startTime = new Date(TG.children('.prg_start').html()); | |
68 var duration = parseInt(TG.children('.prg_duration').html()); | |
69 var endTime = new Date(startTime.getTime() + duration * 1000); | |
70 var str = '<div class="prg_title">' + TG.children('.prg_title').html() + '</div>' + | |
71 '<div class="prg_desc"><span class="prg_sub">' + TG.children('.prg_channel').html() + '鐚' + MDA.Days.time4Disp(startTime) + '鐔' + MDA.Days.time4DispH(endTime) + ' </span>' + TG.children('.prg_desc').html() + '</div>'; | |
72 $('#prg_info').html('<div class="prg_dummy">' + str + '</div>').show(); | |
73 $(this).click(aClick); | |
74 }, | |
75 function(){ | |
76 $(this).removeClass('prg_hover');$('#prg_info').hide(); | |
77 $(this).unbind('click',aClick); | |
78 } | |
79 ); | |
80 } | |
81 var PRG = { | |
122 | 82 chdialog:function(chash){ |
77 | 83 $('#channelDialog').dialog('close'); |
122 | 84 var skip = $('#ch_title_'+chash+' .ch_skip').html(); |
85 var st_name = $('#ch_title_'+chash+' .ch_name').html(); | |
86 var sid = $('#ch_title_'+chash+' .ch_sid').html(); | |
87 var disc = $('#ch_title_'+chash+' .ch_disc').html(); | |
77 | 88 |
122 | 89 var str = '<div class="prg_title">'; |
90 str += st_name; | |
91 str += '</div>'; | |
92 str += '<form method="post" action="setChannelInfo.php">'; | |
93 // 鴻 | |
125 | 94 str += '<div class="prg_channel"><span class="labelLeft">荀眼鐚</span>'; |
95 str += '<span>'; | |
122 | 96 if( skip == 1 ) { |
97 str += '<input type="checkbox" name="n_skip_name" id="id_ch_skip" value="'+skip+'" checked />'; | |
98 } | |
99 else { | |
100 str += '<input type="checkbox" name="n_skip_name" id="id_ch_skip" value="'+skip+'" />'; | |
101 } | |
125 | 102 str += '</span></div>'; |
122 | 103 // 泣若ID |
104 str += '<div class="prg_channel"><span class="labelLeft">泣若ID鐚</span>'; | |
105 str += '<span><input type="text" name="n_sid" size="20" id="id_sid" value="'; | |
106 str += sid; | |
107 str += '" /></span></div>'; | |
108 | |
109 str += '<input type="hidden" name="n_channel_disc" id="id_disc" value="'; | |
110 str += disc; | |
111 str += '" />'; | |
112 str += '<input type="hidden" name="n_channel_hash" id="id_hash" value="'; | |
113 str += chash; | |
114 str += '" />'; | |
115 | |
116 | |
117 str += '</form>'; | |
118 | |
119 str += '<div style="margin:2em 0 1em 0;text-align:center;"><a href="javascript:PRG.chupdate()" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">贋</a></div>'; | |
120 | |
121 $('#channelDialog').html(str); | |
122 $('#channelDialog').dialog('open', 'center'); | |
77 | 123 }, |
124 chupdate:function() { | |
125 var v_sid = $('#id_sid').val(); | |
126 var v_channel_disc = $('#id_disc').val(); | |
123
57ca9a15dfad
mod: チャンネルスキップ引き続き実装中(まだ動かない)
yoneda <epgrec@park.mda.or.jp>
parents:
122
diff
changeset
|
127 var v_hash = $('#id_hash').val(); |
57ca9a15dfad
mod: チャンネルスキップ引き続き実装中(まだ動かない)
yoneda <epgrec@park.mda.or.jp>
parents:
122
diff
changeset
|
128 var v_skip = $('#id_ch_skip').attr('checked'); |
125 | 129 var n_skip = v_skip ? 1 : 0; |
130 | |
123
57ca9a15dfad
mod: チャンネルスキップ引き続き実装中(まだ動かない)
yoneda <epgrec@park.mda.or.jp>
parents:
122
diff
changeset
|
131 $.post('setChannelInfo.php', { channel_disc: v_channel_disc, |
57ca9a15dfad
mod: チャンネルスキップ引き続き実装中(まだ動かない)
yoneda <epgrec@park.mda.or.jp>
parents:
122
diff
changeset
|
132 sid: v_sid, |
125 | 133 skip: n_skip |
123
57ca9a15dfad
mod: チャンネルスキップ引き続き実装中(まだ動かない)
yoneda <epgrec@park.mda.or.jp>
parents:
122
diff
changeset
|
134 }, function(data) { |
57ca9a15dfad
mod: チャンネルスキップ引き続き実装中(まだ動かない)
yoneda <epgrec@park.mda.or.jp>
parents:
122
diff
changeset
|
135 if(data.match(/^error/i)){ |
57ca9a15dfad
mod: チャンネルスキップ引き続き実装中(まだ動かない)
yoneda <epgrec@park.mda.or.jp>
parents:
122
diff
changeset
|
136 alert(data); |
57ca9a15dfad
mod: チャンネルスキップ引き続き実装中(まだ動かない)
yoneda <epgrec@park.mda.or.jp>
parents:
122
diff
changeset
|
137 } |
57ca9a15dfad
mod: チャンネルスキップ引き続き実装中(まだ動かない)
yoneda <epgrec@park.mda.or.jp>
parents:
122
diff
changeset
|
138 else { |
57ca9a15dfad
mod: チャンネルスキップ引き続き実装中(まだ動かない)
yoneda <epgrec@park.mda.or.jp>
parents:
122
diff
changeset
|
139 var old_skip = $('#ch_title_'+v_hash+' .ch_skip').html(); |
125 | 140 if( old_skip != n_skip ) { |
123
57ca9a15dfad
mod: チャンネルスキップ引き続き実装中(まだ動かない)
yoneda <epgrec@park.mda.or.jp>
parents:
122
diff
changeset
|
141 if( v_skip ) { |
124
aa48eb5f1993
mod: チャンネルスキップJavaScript修正
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
123
diff
changeset
|
142 (INISet.num_ch)--; |
123
57ca9a15dfad
mod: チャンネルスキップ引き続き実装中(まだ動かない)
yoneda <epgrec@park.mda.or.jp>
parents:
122
diff
changeset
|
143 $('#ch_title_'+v_hash ).addClass('ch_title_skip'); |
124
aa48eb5f1993
mod: チャンネルスキップJavaScript修正
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
123
diff
changeset
|
144 $('#tv_chs_'+v_hash ).addClass('ch_set_skip'); |
aa48eb5f1993
mod: チャンネルスキップJavaScript修正
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
123
diff
changeset
|
145 $('#ch_title_'+v_hash+' .ch_skip').html('1'); |
123
57ca9a15dfad
mod: チャンネルスキップ引き続き実装中(まだ動かない)
yoneda <epgrec@park.mda.or.jp>
parents:
122
diff
changeset
|
146 } |
57ca9a15dfad
mod: チャンネルスキップ引き続き実装中(まだ動かない)
yoneda <epgrec@park.mda.or.jp>
parents:
122
diff
changeset
|
147 else { |
124
aa48eb5f1993
mod: チャンネルスキップJavaScript修正
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
123
diff
changeset
|
148 (INISet.num_ch)++; |
123
57ca9a15dfad
mod: チャンネルスキップ引き続き実装中(まだ動かない)
yoneda <epgrec@park.mda.or.jp>
parents:
122
diff
changeset
|
149 $('#ch_title_'+v_hash ).removeClass('ch_title_skip'); |
124
aa48eb5f1993
mod: チャンネルスキップJavaScript修正
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
123
diff
changeset
|
150 $('#tv_chs_'+v_hash ).removeClass('ch_set_skip'); |
aa48eb5f1993
mod: チャンネルスキップJavaScript修正
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
123
diff
changeset
|
151 $('#ch_title_'+v_hash+' .ch_skip').html('0'); |
123
57ca9a15dfad
mod: チャンネルスキップ引き続き実装中(まだ動かない)
yoneda <epgrec@park.mda.or.jp>
parents:
122
diff
changeset
|
152 } |
125 | 153 if( PRG.F_Skip == 1 ) PRG.chSkipHide(); |
123
57ca9a15dfad
mod: チャンネルスキップ引き続き実装中(まだ動かない)
yoneda <epgrec@park.mda.or.jp>
parents:
122
diff
changeset
|
154 } |
57ca9a15dfad
mod: チャンネルスキップ引き続き実装中(まだ動かない)
yoneda <epgrec@park.mda.or.jp>
parents:
122
diff
changeset
|
155 } |
77 | 156 $('#channelDialog').dialog('close'); |
157 }); | |
158 }, | |
1 | 159 rec:function(id){ |
160 $.get(INISet.prgRecordURL, { program_id: id } ,function(data){ | |
161 if(data.match(/^error/i)){ | |
162 alert(data); | |
18
19cd7816b2c1
change: draw main program table too fast.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
163 $('#floatBox4Dialog').dialog('close'); |
1 | 164 }else{ |
165 $('#prgID_' + id).addClass('prg_rec'); | |
166 $('#floatBox4Dialog').dialog('close'); | |
167 } | |
168 }); | |
169 }, | |
170 cancel:function(id){ | |
171 $.get(INISet.prgCancelURL, { program_id: id } ,function(data){ | |
172 if(data.match(/^error/i)){ | |
173 alert(data); | |
18
19cd7816b2c1
change: draw main program table too fast.
Sushi-k <epgrec@park.mda.or.jp>
parents:
1
diff
changeset
|
174 $('#floatBox4Dialog').dialog('close'); |
1 | 175 }else{ |
176 $('#prgID_' + id).removeClass('prg_rec'); | |
177 $('#floatBox4Dialog').dialog('close'); | |
178 } | |
179 }); | |
23
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
180 }, |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
181 customform:function(id) { |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
182 $('#floatBox4Dialog').dialog('close'); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
183 $.get('reservationform.php', { program_id: id }, function(data) { |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
184 if(data.match(/^error/i)){ |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
185 alert(data); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
186 } |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
187 else { |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
188 var str = data; |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
189 str += '<div style="margin:2em 0 1em 0;text-align:center;"><a href="javascript:PRG.customrec()" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">篋膣</a></div>'; |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
190 $('#floatBox4Dialog').html(str); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
191 $('#floatBox4Dialog').dialog('open', 'center'); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
192 } |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
193 }); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
194 }, |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
195 customrec:function() { |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
196 var id_syear = $('#id_syear').val(); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
197 var id_smonth = $('#id_smonth').val(); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
198 var id_sday = $('#id_sday').val(); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
199 var id_shour = $('#id_shour').val(); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
200 var id_smin = $('#id_smin').val(); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
201 var id_eyear = $('#id_eyear').val(); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
202 var id_emonth = $('#id_emonth').val(); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
203 var id_eday = $('#id_eday').val(); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
204 var id_ehour = $('#id_ehour').val(); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
205 var id_emin = $('#id_emin').val(); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
206 var id_channel_id = $('#id_channel_id').val(); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
207 var id_record_mode = $('#id_record_mode').val(); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
208 var id_title = $('#id_title').val(); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
209 var id_description = $('#id_description').val(); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
210 var id_category_id = $('#id_category_id ').val(); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
211 var id_program_id = $('#id_program_id').val(); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
212 var with_program_id = $('#id_program_id').attr('checked'); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
213 |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
214 if( ! with_program_id ) id_program_id = 0; |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
215 |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
216 $.post('customReservation.php', { syear: id_syear, |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
217 smonth: id_smonth, |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
218 sday: id_sday, |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
219 shour: id_shour, |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
220 smin: id_smin, |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
221 eyear: id_eyear, |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
222 emonth: id_emonth, |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
223 eday: id_eday, |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
224 ehour: id_ehour, |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
225 emin: id_emin, |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
226 channel_id: id_channel_id, |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
227 record_mode: id_record_mode, |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
228 title: id_title, |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
229 description: id_description, |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
230 category_id: id_category_id, |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
231 program_id: id_program_id }, function(data) { |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
232 if(data.match(/^error/i)){ |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
233 $('#floatBox4Dialog').dialog('close'); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
234 alert(data); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
235 } |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
236 else { |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
237 var id = parseInt(data); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
238 if( id ) { |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
239 $('#prgID_' + id).addClass('prg_rec'); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
240 } |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
241 $('#floatBox4Dialog').dialog('close'); |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
242 } |
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
243 }); |
120 | 244 }, |
123
57ca9a15dfad
mod: チャンネルスキップ引き続き実装中(まだ動かない)
yoneda <epgrec@park.mda.or.jp>
parents:
122
diff
changeset
|
245 F_Skip: 1, |
121
ea54c3128da3
mod: チャンネルスキップ実装中(番組表の表示方法を変更した)
Sushi-k <epgrec@park.mda.or.jp>
parents:
120
diff
changeset
|
246 chSkipShow:function() { |
ea54c3128da3
mod: チャンネルスキップ実装中(番組表の表示方法を変更した)
Sushi-k <epgrec@park.mda.or.jp>
parents:
120
diff
changeset
|
247 $('#float_titles').width(INISet.num_all_ch * INISet.ch_width + 80); |
ea54c3128da3
mod: チャンネルスキップ実装中(番組表の表示方法を変更した)
Sushi-k <epgrec@park.mda.or.jp>
parents:
120
diff
changeset
|
248 $('#tv_chs').width(INISet.num_all_ch * INISet.ch_width ); |
ea54c3128da3
mod: チャンネルスキップ実装中(番組表の表示方法を変更した)
Sushi-k <epgrec@park.mda.or.jp>
parents:
120
diff
changeset
|
249 $('#tvtimes2').css( { left: INISet.num_all_ch * INISet.ch_width + 40 } ).show(); |
ea54c3128da3
mod: チャンネルスキップ実装中(番組表の表示方法を変更した)
Sushi-k <epgrec@park.mda.or.jp>
parents:
120
diff
changeset
|
250 tvtimes_scroll(); |
ea54c3128da3
mod: チャンネルスキップ実装中(番組表の表示方法を変更した)
Sushi-k <epgrec@park.mda.or.jp>
parents:
120
diff
changeset
|
251 $('#ch_title_bar div.ch_title_skip').show(); |
ea54c3128da3
mod: チャンネルスキップ実装中(番組表の表示方法を変更した)
Sushi-k <epgrec@park.mda.or.jp>
parents:
120
diff
changeset
|
252 $('#tv_chs div.ch_set_skip').show(); |
125 | 253 nowBar.INI(); |
121
ea54c3128da3
mod: チャンネルスキップ実装中(番組表の表示方法を変更した)
Sushi-k <epgrec@park.mda.or.jp>
parents:
120
diff
changeset
|
254 }, |
ea54c3128da3
mod: チャンネルスキップ実装中(番組表の表示方法を変更した)
Sushi-k <epgrec@park.mda.or.jp>
parents:
120
diff
changeset
|
255 chSkipHide:function() { |
ea54c3128da3
mod: チャンネルスキップ実装中(番組表の表示方法を変更した)
Sushi-k <epgrec@park.mda.or.jp>
parents:
120
diff
changeset
|
256 $('#ch_title_bar div.ch_title_skip').hide(); |
ea54c3128da3
mod: チャンネルスキップ実装中(番組表の表示方法を変更した)
Sushi-k <epgrec@park.mda.or.jp>
parents:
120
diff
changeset
|
257 $('#tv_chs div.ch_set_skip').hide(); |
ea54c3128da3
mod: チャンネルスキップ実装中(番組表の表示方法を変更した)
Sushi-k <epgrec@park.mda.or.jp>
parents:
120
diff
changeset
|
258 $('#float_titles').width( INISet.num_ch * INISet.ch_width + 80 ); |
ea54c3128da3
mod: チャンネルスキップ実装中(番組表の表示方法を変更した)
Sushi-k <epgrec@park.mda.or.jp>
parents:
120
diff
changeset
|
259 $('#tv_chs').width( INISet.num_ch * INISet.ch_width ); |
ea54c3128da3
mod: チャンネルスキップ実装中(番組表の表示方法を変更した)
Sushi-k <epgrec@park.mda.or.jp>
parents:
120
diff
changeset
|
260 $('#tvtimes2').css( { left: INISet.num_ch * INISet.ch_width + 40 }).show(); |
ea54c3128da3
mod: チャンネルスキップ実装中(番組表の表示方法を変更した)
Sushi-k <epgrec@park.mda.or.jp>
parents:
120
diff
changeset
|
261 tvtimes_scroll(); |
125 | 262 nowBar.INI(); |
121
ea54c3128da3
mod: チャンネルスキップ実装中(番組表の表示方法を変更した)
Sushi-k <epgrec@park.mda.or.jp>
parents:
120
diff
changeset
|
263 }, |
120 | 264 toggle:function() { |
123
57ca9a15dfad
mod: チャンネルスキップ引き続き実装中(まだ動かない)
yoneda <epgrec@park.mda.or.jp>
parents:
122
diff
changeset
|
265 if( this.F_Skip ) { |
121
ea54c3128da3
mod: チャンネルスキップ実装中(番組表の表示方法を変更した)
Sushi-k <epgrec@park.mda.or.jp>
parents:
120
diff
changeset
|
266 this.chSkipShow(); |
125 | 267 this.F_Skip = 0; |
120 | 268 } |
269 else { | |
121
ea54c3128da3
mod: チャンネルスキップ実装中(番組表の表示方法を変更した)
Sushi-k <epgrec@park.mda.or.jp>
parents:
120
diff
changeset
|
270 this.chSkipHide(); |
125 | 271 this.F_Skip = 1; |
120 | 272 } |
1 | 273 } |
274 } | |
275 var CTG = { | |
276 CN:'ctg', | |
277 CV:'0.1', | |
278 defaultCk:[], | |
279 INI:function(){ | |
280 var Ck = this.CkGet()[1]; | |
281 if(Ck){ $.each(Ck.split(','), function(){CTG.select(this);})} | |
282 }, | |
283 select:function(ctg){ | |
284 if($('#category_select .ctg-hide.ctg_'+ctg).length){ | |
285 $('#tv_chs .ctg_'+ctg).removeClass('ctg-hide'); | |
286 $('#category_select a.ctg_'+ctg).removeClass('ctg-hide'); | |
287 } else { | |
288 $('#tv_chs .ctg_'+ctg).addClass('ctg-hide'); | |
289 $('#category_select a.ctg_'+ctg).addClass('ctg-hide'); | |
290 } | |
291 this.oCk(); | |
292 }, | |
293 toggle:function (){$('#category_select ul').toggle();}, | |
294 oCk:function(){ | |
295 var T=$('#category_select ul li a.ctg-hide'); | |
296 var X=[]; | |
297 $.each(T.get(), function(){ | |
298 $(this).attr('class').match(/ctg_([^ ]+)/); | |
299 var TMC=RegExp.$1; | |
300 X.push(TMC); | |
301 }); | |
302 this.CkSet([X.join(',')]); | |
303 }, | |
304 CkGet:function (){ | |
305 var Ck = MDA.Cookie.get(this.CN); | |
306 if(!Ck){return this.defaultCk}; | |
307 Ck=Ck.replace(/^([^;]+;)/,''); | |
308 return Ck.split('+'); | |
309 }, | |
310 CkSet:function(V){ | |
311 MDA.Cookie.set(this.CN,'ver='+this.CV+'+'+V.join('+')); | |
312 } | |
313 }; | |
314 var nowBar = { | |
315 defaultID:'tableNowBas', | |
316 startTime:null, | |
317 endTime:null, | |
318 INI:function(){ | |
319 if (INISet.tableStartTime && INISet.tableStartTime && INISet.dotMin) { | |
320 $('#tvtable').append('<div id="' + this.defaultID + '" style="display:none">now</div>'); | |
321 this.startTime = new Date(INISet.tableStartTime); | |
322 this.endTime = new Date(INISet.tableEndTime); | |
323 $('#' + this.defaultID).width($('#float_titles').width()); | |
324 this.ch(); | |
325 } | |
326 }, | |
327 ch:function(){ | |
328 var now = new Date(); | |
329 if(this.startTime){ | |
330 if((now >= this.startTime) && (this.endTime >= now)){ | |
331 // console.log((now - this.startTime) / 60000); | |
332 $('#' + this.defaultID).css({top:(now - this.startTime) / 60000 * INISet.dotMin}).show() | |
333 } else { | |
334 $('#' + this.defaultID).hide() | |
335 } | |
336 } | |
337 } | |
338 } | |
339 | |
340 MDA.SCR = { | |
341 CN:'scr', | |
342 CV:'0.1', | |
343 defaultCk:{md:'',x:0,y:0}, | |
344 jqSel:[{sel:'#jump-time a.jump',md:'x'},{sel:'#jump-day a.jump',md:'xy'},{sel:'#jump-day a.jump-today',md:'x'},{sel:'#jump-broadcast a.jump',md:'y'}], | |
345 INI:function(){ | |
346 // this.defaultCk.y = $('#float_titles').position().top; | |
347 $.each(this.jqSel, function(){ | |
348 var md = this.md; | |
349 $(this.sel).click(function(){MDA.SCR.oCk(md)}) | |
350 }); | |
351 var Ck = this.CkGet(); | |
352 // console.log(Ck); | |
353 var x = (Ck.md.indexOf('x')>-1)?Ck.x:this.defaultCk.x; | |
354 var y = (Ck.md.indexOf('y')>-1)?Ck.y:this.defaultCk.y; | |
355 if (Ck.md) { | |
356 window.scrollBy(x, y); | |
357 } | |
358 this.CkClear(); | |
359 }, | |
360 channel:{ | |
361 save:function(){}, | |
362 load:function(){} | |
363 }, | |
364 time: { | |
365 }, | |
366 oCk:function(xy){ | |
367 this.CkSet(['md=' + ((!xy)?'xy':xy), | |
368 'x=' + $(document ).scrollLeft(), | |
369 'y=' + $(document ).scrollTop()]); | |
370 }, | |
371 CkGet:function (){ | |
372 var Ck = MDA.Cookie.get(this.CN); | |
373 if(!Ck){return this.defaultCk}; | |
374 Ck=Ck.replace(/^([^;]+;)/,'').split('+'); | |
375 var ret = {}; | |
376 $.each(Ck, function(){ | |
377 var str = this.split('=', 2); | |
378 ret[str[0]] = str[1]; | |
379 }) | |
380 return ret; | |
381 }, | |
382 CkSet:function(V){ | |
383 MDA.Cookie.set(this.CN,'ver='+this.CV+'+'+V.join('+')); | |
384 }, | |
385 CkClear:function(){ | |
386 MDA.Cookie.del(this.CN); | |
387 } | |
388 }; | |
389 | |
390 $(document).ready(function () { | |
391 MDA.Cookie.CookieName = 'tvProgmas_'; | |
392 CTG.toggle(); | |
393 tvtimes_scroll(); | |
394 prg_hover(); | |
395 var DG = $('#floatBox4Dialog'); | |
23
f3bf1be1a51b
Change: using ajax in custom reservation method
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents:
18
diff
changeset
|
396 DG.dialog({title:'牙私膣',width:600}); |
1 | 397 DG.dialog('close'); |
77 | 398 |
399 var DG2 = $('#channelDialog'); | |
125 | 400 DG2.dialog({title:'c潟',width:480}); |
77 | 401 DG2.dialog('close'); |
402 | |
121
ea54c3128da3
mod: チャンネルスキップ実装中(番組表の表示方法を変更した)
Sushi-k <epgrec@park.mda.or.jp>
parents:
120
diff
changeset
|
403 // PRG.toggle(); |
120 | 404 |
1 | 405 nowBar.INI(); |
406 CTG.INI(); | |
407 MDA.SCR.INI(); // 腟茵篏臀篆絖 | |
408 }); | |
409 | |
410 | |
411 </script> | |
412 | |
413 <style type="text/css"> | |
414 <!-- | |
415 body {padding:0;margin:0;font-size:10pt;} | |
416 a {text-decoration:none;} | |
417 | |
418 .bold {font-weight:bold;} | |
419 .small {font-size:75%;} | |
420 | |
421 h2 {padding: 4px} | |
422 | |
423 #float_titles {position:absolute;background-image: url(imgs/trancBG50.png);} | |
424 | |
425 #float_titles div.set.ctg_sel {background-color:#BBB;color:#3CF} | |
426 #float_titles .ctg_sel a{color:#111;} | |
427 | |
428 #float_titles div.set {float:left;background-color:#444;padding:4px;margin:4px;} | |
429 #float_titles span.title {float:left;color:#ACF;} | |
430 #float_titles ul {float:left;padding:0;margin:0;} | |
431 #float_titles ul li {float:left;list-style:none;margin:0 0 0 4px;} | |
432 #float_titles li a{padding:1px 4px;background-color:#555;color:#FFF;} | |
433 #float_titles li.selected a{background-color:#48B;} | |
434 #float_titles li a:hover{background-color:#28D;} | |
435 | |
436 #float_titles, #tvtable {} | |
437 #tvtable {line-height:1.2em;width:100%;position:relative;} | |
438 #tvtimes,#tvtimes2 {position:absolute; background-image: url(imgs/trancBG70.png);} | |
439 #tvtimes,#tvtimes2, .tvtimeDM {width:40px;} | |
440 #tv_chs {padding-left:40px;padding-right:40px;} | |
441 .tvtime { | |
34 | 442 height:{/literal}{$height_per_hour}{literal}px; |
1 | 443 color:#EEE; |
444 text-align:center; | |
445 font-weight:bold; | |
446 font-size:120%; | |
447 background-image: url(imgs/dot2.gif); | |
448 background-repeat: repeat-x; | |
449 background-position: left bottom; | |
450 } | |
451 #tvtable div.tvtimetop {padding:8px 0px;} | |
34 | 452 |
453 #tvtable div.ch_set {width:{/literal}{$ch_set_width}{literal}px;float:left;background-color:#BBB;} | |
121
ea54c3128da3
mod: チャンネルスキップ実装中(番組表の表示方法を変更した)
Sushi-k <epgrec@park.mda.or.jp>
parents:
120
diff
changeset
|
454 .ch_set_skip { display: none; } |
34 | 455 |
456 | |
1 | 457 #tvtable div.ch_title, #tvtable div.prg {margin-right:2px;} |
458 #tvtable div.ch_title {padding:8px 0px;background-color:#333;color:#DDD;font-weight:bold;text-align:center} | |
121
ea54c3128da3
mod: チャンネルスキップ実装中(番組表の表示方法を変更した)
Sushi-k <epgrec@park.mda.or.jp>
parents:
120
diff
changeset
|
459 .ch_title_skip {display: none;} |
120 | 460 |
122 | 461 .ch_disc {display :none;} |
462 .ch_skip {display :none;} | |
463 .ch_sid {display :none;} | |
464 .ch_name {display :none;} | |
465 .ch_hash {display :none;} | |
466 | |
1 | 467 #tvtable div.prg { |
468 overflow:hidden; | |
469 color:#444; | |
470 background-image: url(imgs/dot2.gif); | |
471 background-image: url(imgs/prg_bg2.png); | |
472 background-repeat: repeat-x; | |
473 background-position: left bottom; | |
474 -moz-border-radius: 0.6em 0.6em 0.3em 0.3em; | |
475 -webkit-border-radius: 0.6em; | |
476 -webkit-border-bottom-right-radius: 0.3em; | |
477 -webkit-border-bottom-left-radius: 0.3em; | |
478 } | |
479 #tvtable div.prg_none {background-color:#eee;} | |
480 #tvtable div.prg_dummy {margin:3px 6px;} | |
481 #tvtable div.prg_title {color:#111;font-weight:bold;} | |
482 #tvtable div.prg_subtitle {font-size:80%;} | |
483 #tvtable div.prg_desc {font-size:80%;} | |
484 | |
485 #tvtable div.prg_start,#tvtable div.prg_duration,#tvtable div.prg_channel ,#tvtable div.prg_id {display: none;} | |
486 | |
487 #tvtable div.ctg_news, #category_select a.ctg_news {background-color: #FFFFD8;} | |
488 #tvtable div.ctg_etc, #category_select a.ctg_etc {background-color: #FFFFFF;} | |
489 #tvtable div.ctg_information, #category_select a.ctg_information {background-color: #F2D8FF;} | |
490 #tvtable div.ctg_sports, #category_select a.ctg_sports {background-color: #D8FFFF;} | |
491 #tvtable div.ctg_cinema, #category_select a.ctg_cinema {background-color: #FFD8D8;} | |
492 #tvtable div.ctg_music, #category_select a.ctg_music {background-color: #D8D8FF;} | |
493 #tvtable div.ctg_drama, #category_select a.ctg_drama {background-color: #D8FFD8;} | |
494 #tvtable div.ctg_anime, #category_select a.ctg_anime {background-color: #FFE4C8;} | |
495 #tvtable div.ctg_variety, #category_select a.ctg_variety {background-color: #FFD2EB;} | |
496 #tvtable div.ctg_10, #category_select a.ctg_10 {background-color: #E4F4F4;} | |
497 #tvtable div.ctg-hide, #category_select a.ctg-hide {background-color: #F8F8F8;color:#888;} | |
498 #tvtable div.ctg-hide .prg_title, #category_select a.ctg-hide .prg_title{color:#666;} | |
499 #tvtable div.prg_rec {background-color: #F55;color:#FEE} | |
500 #tvtable div.prg_rec .prg_title,#tvtable div.prg_hover .prg_title {color:white;} | |
501 #tvtable div.prg_hover {background-color: #28D;color:#EFF} | |
502 | |
503 #float_titles { z-index:100} | |
34 | 504 #float_titles div.ch_title {width:{/literal}{$ch_set_width}{literal}px;float:left;color:#FFF;font-weight:bold;text-align:center} |
1 | 505 #float_titles div.ch_title div{padding:8px 0px;margin:0 6px 0 4px;background-image: url(imgs/trancBG50.png);} |
506 | |
120 | 507 |
1 | 508 #float_follows {position:absolute;} |
509 #prg_info { | |
510 display:none; | |
511 position:absolute; | |
512 top:0;left:0; | |
513 width:100%; | |
514 background-color:#246; | |
515 color:#BDF; | |
516 height:80px; | |
517 } | |
518 #prg_info div.prg_dummy{margin:4px 20px;} | |
519 #prg_info div.prg_title {font-weight:bold;font-size:120%;color:#FFF;} | |
520 #prg_info span.prg_sub {color:#FFF;} | |
521 | |
522 #tableNowBas {position:absolute;background:red;width:100%;top:190px;height:2px;overflow:hidden;} | |
523 | |
524 | |
525 #floatBox4Dialog .prg_title{font-size:120%;font-weight:bold;padding:0.4em 0;text-align:center;} | |
526 #floatBox4Dialog .prg_rec_cfg{background:#EEE;padding:1em 2em;margin:0.4em 0;} | |
527 #floatBox4Dialog .labelLeft {width:8em;float:left;text-align:right;} | |
528 #floatBox4Dialog .button {padding:0.4em 1em;} | |
77 | 529 |
530 #channelDialog .prg_title{font-size:120%;font-weight:bold;padding:0.4em 0;text-align:center;} | |
531 #channelDialog .prg_rec_cfg{background:#EEE;padding:1em 2em;margin:0.4em 0;} | |
532 #channelDialog .labelLeft {width:8em;float:left;text-align:right;} | |
533 #channelDialog .button {padding:0.4em 1em;} | |
534 | |
1 | 535 --> |
536 </style> | |
537 | |
538 | |
539 {/literal} | |
540 | |
541 | |
542 </head> | |
543 | |
544 <body> | |
545 | |
546 <h2>{$sitetitle}</h2> | |
547 | |
548 | |
120 | 549 <div id="float_titles" style="width: {math equation="x + 80" x=$chs_width }px;height:120px;"> |
1 | 550 <div id="float_follows"> |
551 | |
41 | 552 <div class="set"> |
553 <ul> | |
554 <li><a href="envSetting.php">医荐絎</a></li> | |
555 </ul> | |
556 </div> | |
557 | |
1 | 558 <div class="set ctg_sel" id="category_select"> |
559 <span class="title"><a href="javascript:CTG.toggle()">綣決粋;腓</a></span> | |
560 | |
561 <ul> | |
562 {foreach from=$cats item=cat} | |
563 <li><a href="javascript:CTG.select('{$cat.name_en}');" class="ctg_{$cat.name_en}">{$cat.name_jp}</a></li> | |
564 {/foreach} | |
565 </ul> | |
566 </div> | |
567 | |
568 <div id="time_selects"> | |
569 <div class="set" id="jump-broadcast" > | |
570 <span class="title">冗羈∫御</span> | |
571 <ul> | |
572 {foreach from=$types item=type } | |
573 <li {$type.selected}><a class="jump" href="{$type.link}">{$type.name}</a></li> | |
574 {/foreach} | |
575 </ul><br style="clear:left;" /> | |
576 </div> | |
577 | |
578 <div class="set" id="jump-time"> | |
579 <span class="title"></span> | |
580 <ul> | |
581 {foreach from=$toptimes item=top} | |
582 <li><a class="jump" href="{$top.link}">{$top.hour}鐔</a></li> | |
583 {/foreach} | |
584 </ul><br style="clear:left;" /> | |
585 </div> | |
120 | 586 |
587 <div class="set"> | |
588 <ul><li><a class="jump" href="javascript:PRG.toggle()">c潟茵腓</a></li></ul> | |
589 </div> | |
590 | |
1 | 591 <br style="clear:left;" /> |
592 | |
593 <div class="set"> | |
594 <ul> | |
595 <li><a href="programTable.php">腟罎膣</a></li> | |
596 <li><a href="reservationTable.php">牙私膣筝荀</a></li> | |
597 <li><a href="recordedTable.php">牙紙筝荀</a></li> | |
598 </ul> | |
599 </div> | |
600 | |
601 <div class="set" id="jump-day" > | |
602 <span class="title">ヤ</span> | |
603 <ul> | |
604 {foreach from=$days item=day} | |
605 <li {$day.selected}><a {if $day.d eq "憜" } class="jump-today" {else} class="jump" {/if} href="{$day.link}">{$day.d}{$day.ofweek}</a></li> | |
606 {/foreach} | |
607 </ul><br style="clear:left;" /> | |
608 </div> | |
609 | |
610 | |
611 </div> | |
612 <br style="clear:left;" /> | |
613 <div id="prg_info"><div class="dummy">test</div></div> | |
614 </div> | |
615 | |
120 | 616 |
617 <!-- c潟絮 --> | |
618 <div id="ch_title_bar" style="position:absolute;bottom:0;"> | |
1 | 619 <div class="tvtimeDM" style="float:left;"> </div> |
620 {foreach from=$programs item=program } | |
122 | 621 <div id="ch_title_{$program.ch_hash}" class="ch_title{if $program.skip == 1 } ch_title_skip{/if}" > |
622 <div class="ch_hash">{$program.ch_hash}</div> | |
623 <div class="ch_disc">{$program.channel_disc}</div> | |
624 <div class="ch_skip">{$program.skip}</div> | |
625 <div class="ch_sid">{$program.sid}</div> | |
626 <div class="ch_name">{$program.station_name}</div> | |
627 <div style="cursor: pointer" onClick="javascript:PRG.chdialog('{$program.ch_hash}')" >{$program.station_name}</div> | |
120 | 628 </div> |
1 | 629 {/foreach} |
630 </div> | |
120 | 631 |
1 | 632 <br style="clear:left;" /> |
633 <div id="prg_info"><div class="dummy"> </div></div> | |
634 </div> | |
635 | |
636 <div id="float_titles_dummy" style="width:1410px;height:120px;"> </div> | |
637 | |
638 | |
639 <div id="tvtable"> | |
640 | |
641 <div id="tvtimes"> | |
642 {foreach from=$tvtimes item=time} | |
643 <div class="tvtime">{$time}</div> | |
644 {/foreach} | |
645 </div> | |
646 | |
647 <div id="tv_chs" style="width: {$chs_width}px" > | |
648 {foreach from=$programs item=program } | |
122 | 649 <div id="tv_chs_{$program.ch_hash}" class="ch_set{if $program.skip == 1 } ch_set_skip{/if}" > |
121
ea54c3128da3
mod: チャンネルスキップ実装中(番組表の表示方法を変更した)
Sushi-k <epgrec@park.mda.or.jp>
parents:
120
diff
changeset
|
650 <div class="ch_programs" > |
1 | 651 {foreach from=$program.list item=item } |
652 <div {if $item.id}id="prgID_{$item.id}"{/if} class="prg {if ! $item.id}prg_none {/if} ctg_{$item.category_name}{if $item.rec gt 0 } prg_rec{/if}" style="height:{$item.height}px;"> | |
653 <div class="prg_dummy"> | |
654 <div class="prg_title">{$item.title|escape}</div> | |
655 <div class="prg_subtitle">{$item.starttime}</div> | |
656 <div class="prg_desc">{$item.description|escape}</div> | |
657 <div class="prg_channel">{$item.channel}</div> | |
658 <div class="prg_start">{$item.prg_start}</div> | |
659 <div class="prg_duration">{$item.duration}</div> | |
660 <div class="prg_id">{$item.id}</div> | |
661 </div> | |
662 </div> | |
663 {/foreach} | |
664 </div> | |
665 </div> | |
666 {/foreach} | |
667 </div> | |
668 | |
669 <div id="tvtimes2" style="top : 0px; left: {math equation="x + 40" x=$chs_width}px" > | |
670 {foreach from=$tvtimes item=time} | |
671 <div class="tvtime">{$time}</div> | |
672 {/foreach} | |
673 </div> | |
674 </div> | |
675 | |
676 | |
677 | |
678 <div id="floatBox4Dialog">jQuery UI Dialog</div> | |
77 | 679 <div id="channelDialog">jQuery UI Dialog</div> |
1 | 680 |
681 {literal} | |
682 <script type="text/javascript"> | |
683 var INISet = { | |
120 | 684 {/literal} |
1 | 685 prgRecordURL : 'simpleReservation.php', // 膂≧篋膣 |
686 prgRecordPlusURL : 'recordp.php', // 荅括完篋膣 | |
687 prgCancelURL : 'cancelReservation.php', // 篋膣c潟祉 | |
120 | 688 dotMin : {$height_per_min}, |
689 tableStartTime : '{$top_time}', | |
690 tableEndTime : '{$last_time}', | |
691 ch_width : {$ch_set_width}, | |
692 num_ch : {$num_ch}, | |
693 num_all_ch : {$num_all_ch} | |
694 {literal} | |
1 | 695 } |
696 </script> | |
697 {/literal} | |
698 </body> | |
699 </html> |