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