From f43dabfebb503a8e3a16f465ada55a272aca0320 Mon Sep 17 00:00:00 2001 From: Sushi-k Date: Tue, 16 Mar 2010 12:46:37 +0900 Subject: [PATCH] =?utf8?q?mod:=20=E3=83=81=E3=83=A3=E3=83=B3=E3=83=8D?= =?utf8?q?=E3=83=AB=E3=82=B9=E3=82=AD=E3=83=83=E3=83=97=E5=AE=9F=E8=A3=85?= =?utf8?q?=E4=B8=AD=EF=BC=88=E7=95=AA=E7=B5=84=E8=A1=A8=E3=81=AE=E8=A1=A8?= =?utf8?q?=E7=A4=BA=E6=96=B9=E6=B3=95=E3=82=92=E5=A4=89=E6=9B=B4=E3=81=97?= =?utf8?q?=E3=81=9F=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- index.php | 1 + templates/index.html | 54 +++++++++++++++++++++++++++------------------------- 2 files changed, 29 insertions(+), 26 deletions(-) diff --git a/index.php b/index.php index 7210283..dfd5c4d 100755 --- a/index.php +++ b/index.php @@ -63,6 +63,7 @@ foreach( $channel_map as $channel_disc => $channel ) { $crec = new DBRecord( CHANNEL_TBL, "channel_disc", $channel_disc ); $programs[$st]["skip"] = $crec->skip; if( $crec->skip == 0 ) $num_ch++; + $programs[$st]["channel_disc"] = $channel_disc; $programs[$st]["station_name"] = $crec->name; $programs[$st]["channel_disc"] = $crec->channel_disc; diff --git a/templates/index.html b/templates/index.html index dfd3540..854792d 100755 --- a/templates/index.html +++ b/templates/index.html @@ -190,26 +190,31 @@ } }); }, - CH_Skip: 0, + CH_Skip: 1, + chSkipShow:function() { + $('#float_titles').width(INISet.num_all_ch * INISet.ch_width + 80); + $('#tv_chs').width(INISet.num_all_ch * INISet.ch_width ); + $('#tvtimes2').css( { left: INISet.num_all_ch * INISet.ch_width + 40 } ).show(); + tvtimes_scroll(); + $('#ch_title_bar div.ch_title_skip').show(); + $('#tv_chs div.ch_set_skip').show(); + this.CH_Skip = 0; + }, + chSkipHide:function() { + $('#ch_title_bar div.ch_title_skip').hide(); + $('#tv_chs div.ch_set_skip').hide(); + $('#float_titles').width( INISet.num_ch * INISet.ch_width + 80 ); + $('#tv_chs').width( INISet.num_ch * INISet.ch_width ); + $('#tvtimes2').css( { left: INISet.num_ch * INISet.ch_width + 40 }).show(); + tvtimes_scroll(); + this.CH_Skip = 1; + }, toggle:function() { if( this.CH_Skip ) { - $('#float_titles').width(INISet.num_all_ch * INISet.ch_width + 80); - $('#tv_chs').width(INISet.num_all_ch * INISet.ch_width ); - $('#tvtimes2').css( { left: INISet.num_all_ch * INISet.ch_width + 40 } ).show(); - tvtimes_scroll(); - $('#ch_title_bar div.ch_title_skip').show(); - $('#tv_chs div.ch_set_skip').show(); - - this.CH_Skip = 0; + this.chSkipShow(); } else { - $('#tv_chs div.ch_set_skip').hide(); - $('#ch_title_bar div.ch_title_skip').hide(); - $('#float_titles').width( INISet.num_ch * INISet.ch_width + 80 ); - $('#tv_chs').width( INISet.num_ch * INISet.ch_width ); - $('#tvtimes2').css( { left: INISet.num_ch * INISet.ch_width + 40 }).show(); - tvtimes_scroll(); - this.CH_Skip = 1; + this.chSkipHide(); } } } @@ -341,7 +346,7 @@ DG2.dialog({title:'チャンネル情報',width:600}); DG2.dialog('close'); - PRG.toggle(); +// PRG.toggle(); nowBar.INI(); CTG.INI(); @@ -392,13 +397,12 @@ h2 {padding: 4px} #tvtable div.tvtimetop {padding:8px 0px;} #tvtable div.ch_set {width:{/literal}{$ch_set_width}{literal}px;float:left;background-color:#BBB;} -#tvtable div.ch_set_skip {width:{/literal}{$ch_set_width}{literal}px;float:left;background-color:#BBB; } +.ch_set_skip { display: none; } #tvtable div.ch_title, #tvtable div.prg {margin-right:2px;} #tvtable div.ch_title {padding:8px 0px;background-color:#333;color:#DDD;font-weight:bold;text-align:center} -#tvtable div.ch_title_skip, #tvtable div.prg {margin-right:2px;} -#tvtable div.ch_title_skip {padding:8px 0px;background-color:#333;color:#DDD;font-weight:bold;text-align:center; } +.ch_title_skip {display: none;} #tvtable div.prg { overflow:hidden; @@ -440,8 +444,6 @@ h2 {padding: 4px} #float_titles div.ch_title {width:{/literal}{$ch_set_width}{literal}px;float:left;color:#FFF;font-weight:bold;text-align:center} #float_titles div.ch_title div{padding:8px 0px;margin:0 6px 0 4px;background-image: url(imgs/trancBG50.png);} -#float_titles div.ch_title_skip {width:{/literal}{$ch_set_width}{literal}px;float:left;color:#FFF;font-weight:bold;text-align:center; } -#float_titles div.ch_title_skip div{padding:8px 0px;margin:0 6px 0 4px;background-image: url(imgs/trancBG50.png); } #float_follows {position:absolute;} #prg_info { @@ -556,8 +558,8 @@ h2 {padding: 4px}
 
{foreach from=$programs item=program } -
-
{$program.station_name}
+
+
{$program.station_name}
{/foreach}
@@ -579,8 +581,8 @@ h2 {padding: 4px}
{foreach from=$programs item=program } -
-
+
+
{foreach from=$program.list item=item }
-- 2.11.0