Mercurial > epgrec.yaz
comparison templates/index.html @ 122:709bc9c69318
mod: ??????????????????????
| author | yoneda <epgrec@park.mda.or.jp> |
|---|---|
| date | Tue, 16 Mar 2010 23:08:59 +0900 |
| parents | ea54c3128da3 |
| children | 57ca9a15dfad |
comparison
equal
deleted
inserted
replaced
| 121:ea54c3128da3 | 122:709bc9c69318 |
|---|---|
| 77 $(this).unbind('click',aClick); | 77 $(this).unbind('click',aClick); |
| 78 } | 78 } |
| 79 ); | 79 ); |
| 80 } | 80 } |
| 81 var PRG = { | 81 var PRG = { |
| 82 chdialog:function(disc){ | 82 chdialog:function(chash){ |
| 83 $('#channelDialog').dialog('close'); | 83 $('#channelDialog').dialog('close'); |
| 84 $.get('channelInfo.php', { channel_disc: disc },function(data) { | 84 var skip = $('#ch_title_'+chash+' .ch_skip').html(); |
| 85 if(data.match(/^error/i)){ | 85 var st_name = $('#ch_title_'+chash+' .ch_name').html(); |
| 86 alert(data); | 86 var sid = $('#ch_title_'+chash+' .ch_sid').html(); |
| 87 } | 87 var disc = $('#ch_title_'+chash+' .ch_disc').html(); |
| 88 else { | 88 |
| 89 var str = data; | 89 var str = '<div class="prg_title">'; |
| 90 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>'; | 90 str += st_name; |
| 91 $('#channelDialog').html(str); | 91 str += '</div>'; |
| 92 $('#channelDialog').dialog('open', 'center'); | 92 str += '<form method="post" action="setChannelInfo.php">'; |
| 93 | 93 // スキップ |
| 94 } | 94 str += '<div class="prg_channel"><span class="labelLeft">視聴しない:</span>'; |
| 95 }); | 95 if( skip == 1 ) { |
| 96 | 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'); | |
| 97 }, | 122 }, |
| 98 chupdate:function() { | 123 chupdate:function() { |
| 99 var v_sid = $('#id_sid').val(); | 124 var v_sid = $('#id_sid').val(); |
| 100 var v_channel_disc = $('#id_disc').val(); | 125 var v_channel_disc = $('#id_disc').val(); |
| 101 $.post('channelSetSID.php', { channel_disc: v_channel_disc, | 126 $.post('channelSetSID.php', { channel_disc: v_channel_disc, |
| 402 | 427 |
| 403 #tvtable div.ch_title, #tvtable div.prg {margin-right:2px;} | 428 #tvtable div.ch_title, #tvtable div.prg {margin-right:2px;} |
| 404 #tvtable div.ch_title {padding:8px 0px;background-color:#333;color:#DDD;font-weight:bold;text-align:center} | 429 #tvtable div.ch_title {padding:8px 0px;background-color:#333;color:#DDD;font-weight:bold;text-align:center} |
| 405 .ch_title_skip {display: none;} | 430 .ch_title_skip {display: none;} |
| 406 | 431 |
| 432 .ch_disc {display :none;} | |
| 433 .ch_skip {display :none;} | |
| 434 .ch_sid {display :none;} | |
| 435 .ch_name {display :none;} | |
| 436 .ch_hash {display :none;} | |
| 437 | |
| 407 #tvtable div.prg { | 438 #tvtable div.prg { |
| 408 overflow:hidden; | 439 overflow:hidden; |
| 409 color:#444; | 440 color:#444; |
| 410 background-image: url(imgs/dot2.gif); | 441 background-image: url(imgs/dot2.gif); |
| 411 background-image: url(imgs/prg_bg2.png); | 442 background-image: url(imgs/prg_bg2.png); |
| 556 | 587 |
| 557 <!-- チャンネル局名 --> | 588 <!-- チャンネル局名 --> |
| 558 <div id="ch_title_bar" style="position:absolute;bottom:0;"> | 589 <div id="ch_title_bar" style="position:absolute;bottom:0;"> |
| 559 <div class="tvtimeDM" style="float:left;"> </div> | 590 <div class="tvtimeDM" style="float:left;"> </div> |
| 560 {foreach from=$programs item=program } | 591 {foreach from=$programs item=program } |
| 561 <div id="ch_title_{$program.channel_disc}" class="ch_title{if $program.skip == 1 } ch_title_skip{/if}" > | 592 <div id="ch_title_{$program.ch_hash}" class="ch_title{if $program.skip == 1 } ch_title_skip{/if}" > |
| 562 <div style="cursor: pointer" onClick="javascript:PRG.chdialog('{$program.channel_disc}')" >{$program.station_name}</div> | 593 <div class="ch_hash">{$program.ch_hash}</div> |
| 594 <div class="ch_disc">{$program.channel_disc}</div> | |
| 595 <div class="ch_skip">{$program.skip}</div> | |
| 596 <div class="ch_sid">{$program.sid}</div> | |
| 597 <div class="ch_name">{$program.station_name}</div> | |
| 598 <div style="cursor: pointer" onClick="javascript:PRG.chdialog('{$program.ch_hash}')" >{$program.station_name}</div> | |
| 563 </div> | 599 </div> |
| 564 {/foreach} | 600 {/foreach} |
| 565 </div> | 601 </div> |
| 566 | 602 |
| 567 <br style="clear:left;" /> | 603 <br style="clear:left;" /> |
| 579 {/foreach} | 615 {/foreach} |
| 580 </div> | 616 </div> |
| 581 | 617 |
| 582 <div id="tv_chs" style="width: {$chs_width}px" > | 618 <div id="tv_chs" style="width: {$chs_width}px" > |
| 583 {foreach from=$programs item=program } | 619 {foreach from=$programs item=program } |
| 584 <div id="tv_chs_{$program.channel_disc}" class="ch_set{if $program.skip == 1 } ch_set_skip{/if}" > | 620 <div id="tv_chs_{$program.ch_hash}" class="ch_set{if $program.skip == 1 } ch_set_skip{/if}" > |
| 585 <div class="ch_programs" > | 621 <div class="ch_programs" > |
| 586 {foreach from=$program.list item=item } | 622 {foreach from=$program.list item=item } |
| 587 <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;"> | 623 <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;"> |
| 588 <div class="prg_dummy"> | 624 <div class="prg_dummy"> |
| 589 <div class="prg_title">{$item.title|escape}</div> | 625 <div class="prg_title">{$item.title|escape}</div> |
