チェンジセット 119: trunk/install/php/viewepg.php

差分発生行の前後
無視リスト:
コミット日時:
2010/10/01 18:37:21 (14 年前)
コミッタ:
sorshi
ログメッセージ:

AutoPagerize?対応

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • trunk/install/php/viewepg.php

    r111 r119  
    4747  $start = ereg_replace( "[^0-9]", "", $start);  
    4848} 
     49 
     50 
    4951?> 
    5052<body BGCOLOR="#ffffff" TEXT="#494949" LINK="#0047ff" VLINK="#000000" ALINK="#c6edff" > 
     
    5961<?php  
    6062 
     63/////////////////////////////////////////////////////////////////////////// 
     64//現在の日付情報取得 
     65$begin =  date("YmdHi"); 
     66$beginyear =   substr($begin,0,4); 
     67$beginmonth =   substr($begin,4,2); 
     68$beginday =   substr($begin,6,2); 
     69$beginhour =   substr($begin,8,2); 
     70$beginmin =   substr($begin,10,2); 
     71/////////////////////////////////////////////////////////////////////////// 
     72 
    6173$startyear =   substr($start,0,4); 
    6274$startmonth =   substr($start,4,2); 
     
    6476$starthour =   substr($start,8,2); 
    6577$startmin =   substr($start,10,2); 
    66 print "($startyear/$startmonth/$startday $starthour:$startmin-)<BR>\n"; 
     78$day_of_the_week = date ("(D)",mktime($starthour , 0 , 0, $startmonth , $startday  , $startyear)); 
     79 
     80print "($startyear/$startmonth/$startday $day_of_the_week $starthour:$startmin-)<BR>\n"; 
     81 
    6782 
    6883$yesterday = date ("YmdHi",mktime($starthour , 0 , 0, $startmonth , $startday -1 , $startyear)); 
    6984$dayyesterday = date ("m/d(D)",mktime($starthour , 0 , 0, $startmonth , $startday -1 , $startyear)); 
     85 
     86///////////////////////////////////////////////////////////  
     87//時刻の隣の【翌日】の変数 
     88$tomorrow  = date ("YmdHi",mktime($starthour , 0 , 0, $startmonth , $startday +1 , $startyear));    
     89///////////////////////////////////////////////////////////  
     90//EPG番組表を取得しますのとなりの日付の【曜日】の変数 
     91$daytomorrow  = date ("m/d(D)",mktime($starthour , 0 , 0, $startmonth , $startday +1 , $startyear)); 
     92/////////////////////////////////////////////////////////// 
     93 
     94 
    7095$today0400 = date ("YmdHi",mktime(4 , 0 , 0, $startmonth , $startday  , $startyear)); 
    7196$today0800 = date ("YmdHi",mktime(8 , 0 , 0, $startmonth , $startday  , $startyear)); 
     
    7499$today2000 = date ("YmdHi",mktime(20 , 0 , 0, $startmonth , $startday , $startyear)); 
    75100$today2359 = date ("YmdHi",mktime(23 , 59 , 0, $startmonth , $startday , $startyear)); 
    76 $day1after = date ("YmdHi",mktime($starthour , 0 , 0, $startmonth , $startday +1 , $startyear)); 
    77 $day1 = date ("m/d(D)",mktime($starthour , 0 , 0, $startmonth , $startday +1 , $startyear)); 
    78 $day2after = date ("YmdHi",mktime($starthour , 0 , 0, $startmonth , $startday +2 , $startyear)); 
    79 $day2 = date ("m/d(D)",mktime($starthour , 0 , 0, $startmonth , $startday +2 , $startyear)); 
    80 $day3after = date ("YmdHi",mktime($starthour , 0 , 0, $startmonth , $startday +3 , $startyear)); 
    81 $day3 = date ("m/d(D)",mktime($starthour , 0 , 0, $startmonth , $startday +3 , $startyear)); 
    82 $day4after = date ("YmdHi",mktime($starthour , 0 , 0, $startmonth , $startday +4 , $startyear)); 
    83 $day4 = date ("m/d(D)",mktime($starthour , 0 , 0, $startmonth , $startday +4 , $startyear)); 
    84 $day5after = date ("YmdHi",mktime($starthour , 0 , 0, $startmonth , $startday +5 , $startyear)); 
    85 $day5 = date ("m/d(D)",mktime($starthour , 0 , 0, $startmonth , $startday +5 , $startyear)); 
    86 $day6after = date ("YmdHi",mktime($starthour , 0 , 0, $startmonth , $startday +6 , $startyear)); 
    87 $day6 = date ("m/d(D)",mktime($starthour , 0 , 0, $startmonth , $startday +6 , $startyear)); 
    88 $day7after = date ("YmdHi",mktime($starthour , 0 , 0, $startmonth , $startday +7 , $startyear)); 
    89 $day7 = date ("m/d(D)",mktime($starthour , 0 , 0, $startmonth , $startday +7 , $startyear)); 
    90  
     101 
     102 
     103/////////////////////////////////////////////////////////////////// 
     104//1週間分のページのリンクの変数 
     105$day0after = date ("YmdHi",mktime($beginhour , 0 , 0, $beginmonth , $beginday  , $beginyear)); 
     106$day0 = date ("m/d(D)",mktime($beginhour , 0 , 0, $beginmonth , $beginday  , $beginyear)); 
     107$day1after = date ("YmdHi",mktime($beginhour , 0 , 0, $beginmonth , $beginday +1 , $beginyear)); 
     108$day1 = date ("m/d(D)",mktime($beginhour , 0 , 0, $beginmonth , $beginday +1 , $beginyear)); 
     109$day2after = date ("YmdHi",mktime($beginhour , 0 , 0, $beginmonth , $beginday +2 , $beginyear)); 
     110$day2 = date ("m/d(D)",mktime($beginhour , 0 , 0, $beginmonth , $beginday +2 , $beginyear)); 
     111$day3after = date ("YmdHi",mktime($beginhour , 0 , 0, $beginmonth , $beginday +3 , $beginyear)); 
     112$day3 = date ("m/d(D)",mktime($beginhour , 0 , 0, $beginmonth , $beginday +3 , $beginyear)); 
     113$day4after = date ("YmdHi",mktime($beginhour , 0 , 0, $beginmonth , $beginday +4 , $beginyear)); 
     114$day4 = date ("m/d(D)",mktime($beginhour , 0 , 0, $beginmonth , $beginday +4 , $beginyear)); 
     115$day5after = date ("YmdHi",mktime($beginhour , 0 , 0, $beginmonth , $beginday +5 , $beginyear)); 
     116$day5 = date ("m/d(D)",mktime($beginhour , 0 , 0, $beginmonth , $beginday +5 , $beginyear)); 
     117$day6after = date ("YmdHi",mktime($beginhour , 0 , 0, $beginmonth , $beginday +6 , $beginyear)); 
     118$day6 = date ("m/d(D)",mktime($beginhour , 0 , 0, $beginmonth , $beginday +6 , $beginyear)); 
     119$day7after = date ("YmdHi",mktime($beginhour , 0 , 0, $beginmonth , $beginday +7 , $beginyear)); 
     120$day7 = date ("m/d(D)",mktime($beginhour , 0 , 0, $beginmonth , $beginday +7 , $beginyear)); 
     121/////////////////////////////////////////////////////////////////// 
    91122 
    92123 
     
    119150 
    120151 
    121 print "←<A HREF=\"./viewepg.php?p=$page&start=$yesterday\">$dayyesterday(前日)</A> <A HREF=\"./viewepg.php\">現在</A> 当日(<A HREF=\"./viewepg.php?p=$page&start=$today0400\">4:00</A> <A HREF=\"./viewepg.php?p=$page&start=$today0800\">8:00</A> <A HREF=\"./viewepg.php?p=$page&start=$today1200\">12:00</A> <A HREF=\"./viewepg.php?p=$page&start=$today1600\">16:00</A> <A HREF=\"./viewepg.php?p=$page&start=$today2000\">20:00</A> <A HREF=\"./viewepg.php?p=$page&start=$today2359\">24:00</A>) <A HREF=\"./viewepg.php?p=$page&start=$day1after\">$day1(翌日)</A> <A HREF=\"./viewepg.php?p=$page&start=$day2after\">$day2</A> <A HREF=\"./viewepg.php?p=$page&start=$day3after\">$day3</A> <A HREF=\"./viewepg.php?p=$page&start=$day4after\">$day4</A> <A HREF=\"./viewepg.php?p=$page&start=$day5after\">$day5</A> <A HREF=\"./viewepg.php?p=$page&start=$day6after\">$day6</A> <A HREF=\"./viewepg.php?p=$page&start=$day7after\">$day7</A>→<BR>\n"; 
    122  
     152///////////////////////////////////////////////////////////////// 
     153//表示部分 
     154print " 
     155 
     156[<A HREF=\"./viewepg.php\">現在</A>] |  
     157<A HREF=\"./viewepg.php?p=$page&start=$yesterday\">$dayyesterday [前日]</A> |  
     158当日( 
     159<A HREF=\"./viewepg.php?p=$page&start=$today0400\">4:00</A>  
     160<A HREF=\"./viewepg.php?p=$page&start=$today0800\">8:00</A>  
     161<A HREF=\"./viewepg.php?p=$page&start=$today1200\">12:00</A>  
     162<A HREF=\"./viewepg.php?p=$page&start=$today1600\">16:00</A>  
     163<A HREF=\"./viewepg.php?p=$page&start=$today2000\">20:00</A>  
     164<A HREF=\"./viewepg.php?p=$page&start=$today2359\">24:00</A>) |  
     165<A HREF=\"./viewepg.php?p=$page&start=$tomorrow\">$daytomorrow [翌日]</A> 
     166<br> 
     167 |  
     168<A HREF=\"./viewepg.php?p=$page&start=$day0after\">$day0</A> |  
     169<A HREF=\"./viewepg.php?p=$page&start=$day1after\">$day1</A> |  
     170<A HREF=\"./viewepg.php?p=$page&start=$day2after\">$day2</A> |  
     171<A HREF=\"./viewepg.php?p=$page&start=$day3after\">$day3</A> |  
     172<A HREF=\"./viewepg.php?p=$page&start=$day4after\">$day4</A> |  
     173<A HREF=\"./viewepg.php?p=$page&start=$day5after\">$day5</A> |  
     174<A HREF=\"./viewepg.php?p=$page&start=$day6after\">$day6</A> |  
     175<A HREF=\"./viewepg.php?p=$page&start=$day7after\">$day7</A> | <BR>\n"; 
     176/////////////////////////////////////////////////////////////////// 
    123177 
    124178if ($maxrows > $maxdisplay){ 
     
    305359} 
    306360print "</table>\n"; 
     361 
    307362 ?> 
    308363 
track feed