Mercurial > epgrec.yaz
comparison templates/index.html @ 120:cb04c9ca1cb0
add: チャンネルスキップの追加途中(改造中)
author | yoneda <epgrec@park.mda.or.jp> |
---|---|
date | Sun, 14 Mar 2010 23:49:11 +0900 |
parents | cb7da56c4198 |
children | ea54c3128da3 |
comparison
equal
deleted
inserted
replaced
116:f268d7d10590 | 120:cb04c9ca1cb0 |
---|---|
187 $('#prgID_' + id).addClass('prg_rec'); | 187 $('#prgID_' + id).addClass('prg_rec'); |
188 } | 188 } |
189 $('#floatBox4Dialog').dialog('close'); | 189 $('#floatBox4Dialog').dialog('close'); |
190 } | 190 } |
191 }); | 191 }); |
192 }, | |
193 CH_Skip: 0, | |
194 toggle:function() { | |
195 if( this.CH_Skip ) { | |
196 $('#float_titles').width(INISet.num_all_ch * INISet.ch_width + 80); | |
197 $('#tv_chs').width(INISet.num_all_ch * INISet.ch_width ); | |
198 $('#tvtimes2').css( { left: INISet.num_all_ch * INISet.ch_width + 40 } ).show(); | |
199 tvtimes_scroll(); | |
200 $('#ch_title_bar div.ch_title_skip').show(); | |
201 $('#tv_chs div.ch_set_skip').show(); | |
202 | |
203 this.CH_Skip = 0; | |
204 } | |
205 else { | |
206 $('#tv_chs div.ch_set_skip').hide(); | |
207 $('#ch_title_bar div.ch_title_skip').hide(); | |
208 $('#float_titles').width( INISet.num_ch * INISet.ch_width + 80 ); | |
209 $('#tv_chs').width( INISet.num_ch * INISet.ch_width ); | |
210 $('#tvtimes2').css( { left: INISet.num_ch * INISet.ch_width + 40 }).show(); | |
211 tvtimes_scroll(); | |
212 this.CH_Skip = 1; | |
213 } | |
192 } | 214 } |
193 } | 215 } |
194 var CTG = { | 216 var CTG = { |
195 CN:'ctg', | 217 CN:'ctg', |
196 CV:'0.1', | 218 CV:'0.1', |
316 DG.dialog('close'); | 338 DG.dialog('close'); |
317 | 339 |
318 var DG2 = $('#channelDialog'); | 340 var DG2 = $('#channelDialog'); |
319 DG2.dialog({title:'c潟',width:600}); | 341 DG2.dialog({title:'c潟',width:600}); |
320 DG2.dialog('close'); | 342 DG2.dialog('close'); |
343 | |
344 PRG.toggle(); | |
321 | 345 |
322 nowBar.INI(); | 346 nowBar.INI(); |
323 CTG.INI(); | 347 CTG.INI(); |
324 MDA.SCR.INI(); // 腟茵篏臀篆絖 | 348 MDA.SCR.INI(); // 腟茵篏臀篆絖 |
325 }); | 349 }); |
366 background-position: left bottom; | 390 background-position: left bottom; |
367 } | 391 } |
368 #tvtable div.tvtimetop {padding:8px 0px;} | 392 #tvtable div.tvtimetop {padding:8px 0px;} |
369 | 393 |
370 #tvtable div.ch_set {width:{/literal}{$ch_set_width}{literal}px;float:left;background-color:#BBB;} | 394 #tvtable div.ch_set {width:{/literal}{$ch_set_width}{literal}px;float:left;background-color:#BBB;} |
395 #tvtable div.ch_set_skip {width:{/literal}{$ch_set_width}{literal}px;float:left;background-color:#BBB; } | |
371 | 396 |
372 | 397 |
373 #tvtable div.ch_title, #tvtable div.prg {margin-right:2px;} | 398 #tvtable div.ch_title, #tvtable div.prg {margin-right:2px;} |
374 #tvtable div.ch_title {padding:8px 0px;background-color:#333;color:#DDD;font-weight:bold;text-align:center} | 399 #tvtable div.ch_title {padding:8px 0px;background-color:#333;color:#DDD;font-weight:bold;text-align:center} |
400 #tvtable div.ch_title_skip, #tvtable div.prg {margin-right:2px;} | |
401 #tvtable div.ch_title_skip {padding:8px 0px;background-color:#333;color:#DDD;font-weight:bold;text-align:center; } | |
402 | |
375 #tvtable div.prg { | 403 #tvtable div.prg { |
376 overflow:hidden; | 404 overflow:hidden; |
377 color:#444; | 405 color:#444; |
378 background-image: url(imgs/dot2.gif); | 406 background-image: url(imgs/dot2.gif); |
379 background-image: url(imgs/prg_bg2.png); | 407 background-image: url(imgs/prg_bg2.png); |
410 | 438 |
411 #float_titles { z-index:100} | 439 #float_titles { z-index:100} |
412 #float_titles div.ch_title {width:{/literal}{$ch_set_width}{literal}px;float:left;color:#FFF;font-weight:bold;text-align:center} | 440 #float_titles div.ch_title {width:{/literal}{$ch_set_width}{literal}px;float:left;color:#FFF;font-weight:bold;text-align:center} |
413 #float_titles div.ch_title div{padding:8px 0px;margin:0 6px 0 4px;background-image: url(imgs/trancBG50.png);} | 441 #float_titles div.ch_title div{padding:8px 0px;margin:0 6px 0 4px;background-image: url(imgs/trancBG50.png);} |
414 | 442 |
443 #float_titles div.ch_title_skip {width:{/literal}{$ch_set_width}{literal}px;float:left;color:#FFF;font-weight:bold;text-align:center; } | |
444 #float_titles div.ch_title_skip div{padding:8px 0px;margin:0 6px 0 4px;background-image: url(imgs/trancBG50.png); } | |
445 | |
415 #float_follows {position:absolute;} | 446 #float_follows {position:absolute;} |
416 #prg_info { | 447 #prg_info { |
417 display:none; | 448 display:none; |
418 position:absolute; | 449 position:absolute; |
419 top:0;left:0; | 450 top:0;left:0; |
451 <body> | 482 <body> |
452 | 483 |
453 <h2>{$sitetitle}</h2> | 484 <h2>{$sitetitle}</h2> |
454 | 485 |
455 | 486 |
456 <div id="float_titles" style="width: {math equation="x + 80" x=$chs_width}px;height:120px;"> | 487 <div id="float_titles" style="width: {math equation="x + 80" x=$chs_width }px;height:120px;"> |
457 <div id="float_follows"> | 488 <div id="float_follows"> |
458 | 489 |
459 <div class="set"> | 490 <div class="set"> |
460 <ul> | 491 <ul> |
461 <li><a href="envSetting.php">医荐絎</a></li> | 492 <li><a href="envSetting.php">医荐絎</a></li> |
488 {foreach from=$toptimes item=top} | 519 {foreach from=$toptimes item=top} |
489 <li><a class="jump" href="{$top.link}">{$top.hour}鐔</a></li> | 520 <li><a class="jump" href="{$top.link}">{$top.hour}鐔</a></li> |
490 {/foreach} | 521 {/foreach} |
491 </ul><br style="clear:left;" /> | 522 </ul><br style="clear:left;" /> |
492 </div> | 523 </div> |
524 | |
525 <div class="set"> | |
526 <ul><li><a class="jump" href="javascript:PRG.toggle()">c潟茵腓</a></li></ul> | |
527 </div> | |
528 | |
493 <br style="clear:left;" /> | 529 <br style="clear:left;" /> |
494 | 530 |
495 <div class="set"> | 531 <div class="set"> |
496 <ul> | 532 <ul> |
497 <li><a href="programTable.php">腟罎膣</a></li> | 533 <li><a href="programTable.php">腟罎膣</a></li> |
513 </div> | 549 </div> |
514 <br style="clear:left;" /> | 550 <br style="clear:left;" /> |
515 <div id="prg_info"><div class="dummy">test</div></div> | 551 <div id="prg_info"><div class="dummy">test</div></div> |
516 </div> | 552 </div> |
517 | 553 |
518 <div style="position:absolute;bottom:0;"> | 554 |
555 <!-- c潟絮 --> | |
556 <div id="ch_title_bar" style="position:absolute;bottom:0;"> | |
519 <div class="tvtimeDM" style="float:left;"> </div> | 557 <div class="tvtimeDM" style="float:left;"> </div> |
520 {foreach from=$programs item=program } | 558 {foreach from=$programs item=program } |
521 <div class="ch_title" ><div style="cursor: pointer" onClick="javascript:PRG.chdialog('{$program.channel_disc}')" >{$program.station_name}</div></div> | 559 <div {if $program.skip == 1 } class="ch_title_skip" {else} class="ch_title" {/if} > |
560 <div {if $program.skip == 1 } class="ch_title_skip" {/if} style="cursor: pointer" onClick="javascript:PRG.chdialog('{$program.channel_disc}')" >{$program.station_name}</div> | |
561 </div> | |
522 {/foreach} | 562 {/foreach} |
523 </div> | 563 </div> |
564 | |
524 <br style="clear:left;" /> | 565 <br style="clear:left;" /> |
525 <div id="prg_info"><div class="dummy"> </div></div> | 566 <div id="prg_info"><div class="dummy"> </div></div> |
526 </div> | 567 </div> |
527 | 568 |
528 <div id="float_titles_dummy" style="width:1410px;height:120px;"> </div> | 569 <div id="float_titles_dummy" style="width:1410px;height:120px;"> </div> |
536 {/foreach} | 577 {/foreach} |
537 </div> | 578 </div> |
538 | 579 |
539 <div id="tv_chs" style="width: {$chs_width}px" > | 580 <div id="tv_chs" style="width: {$chs_width}px" > |
540 {foreach from=$programs item=program } | 581 {foreach from=$programs item=program } |
541 <div class="ch_set" style="width: {$ch_set_width}px" > | 582 <div {if $program.skip == 1 } class="ch_set_skip" {else} class="ch_set" {/if} style="width: {$ch_set_width}px" > |
542 <div class="ch_programs"> | 583 <div class="ch_programs"> |
543 {foreach from=$program.list item=item } | 584 {foreach from=$program.list item=item } |
544 <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;"> | 585 <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;"> |
545 <div class="prg_dummy"> | 586 <div class="prg_dummy"> |
546 <div class="prg_title">{$item.title|escape}</div> | 587 <div class="prg_title">{$item.title|escape}</div> |
571 <div id="channelDialog">jQuery UI Dialog</div> | 612 <div id="channelDialog">jQuery UI Dialog</div> |
572 | 613 |
573 {literal} | 614 {literal} |
574 <script type="text/javascript"> | 615 <script type="text/javascript"> |
575 var INISet = { | 616 var INISet = { |
617 {/literal} | |
576 prgRecordURL : 'simpleReservation.php', // 膂≧篋膣 | 618 prgRecordURL : 'simpleReservation.php', // 膂≧篋膣 |
577 prgRecordPlusURL : 'recordp.php', // 荅括完篋膣 | 619 prgRecordPlusURL : 'recordp.php', // 荅括完篋膣 |
578 prgCancelURL : 'cancelReservation.php', // 篋膣c潟祉 | 620 prgCancelURL : 'cancelReservation.php', // 篋膣c潟祉 |
579 dotMin : {/literal}{$height_per_min}{literal}, | 621 dotMin : {$height_per_min}, |
580 tableStartTime : {/literal}'{$top_time}', | 622 tableStartTime : '{$top_time}', |
581 tableEndTime : '{$last_time}'{literal} | 623 tableEndTime : '{$last_time}', |
624 ch_width : {$ch_set_width}, | |
625 num_ch : {$num_ch}, | |
626 num_all_ch : {$num_all_ch} | |
627 {literal} | |
582 } | 628 } |
583 </script> | 629 </script> |
584 {/literal} | 630 {/literal} |
585 </body> | 631 </body> |
586 </html> | 632 </html> |