チェンジセット 111: trunk/install/php/viewepg.php
- コミット日時:
- 2010/08/17 01:12:56 (14 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
trunk/install/php/viewepg.php
r94 r111 67 67 68 68 $yesterday = date ("YmdHi",mktime($starthour , 0 , 0, $startmonth , $startday -1 , $startyear)); 69 $dayyesterday = date ("m/d(D)",mktime($starthour , 0 , 0, $startmonth , $startday -1 , $startyear)); 69 70 $today0400 = date ("YmdHi",mktime(4 , 0 , 0, $startmonth , $startday , $startyear)); 71 $today0800 = date ("YmdHi",mktime(8 , 0 , 0, $startmonth , $startday , $startyear)); 70 72 $today1200 = date ("YmdHi",mktime(12 , 0 , 0, $startmonth , $startday , $startyear)); 73 $today1600 = date ("YmdHi",mktime(16 , 0 , 0, $startmonth , $startday , $startyear)); 71 74 $today2000 = date ("YmdHi",mktime(20 , 0 , 0, $startmonth , $startday , $startyear)); 75 $today2359 = date ("YmdHi",mktime(23 , 59 , 0, $startmonth , $startday , $startyear)); 72 76 $day1after = date ("YmdHi",mktime($starthour , 0 , 0, $startmonth , $startday +1 , $startyear)); 73 $day1 = date ("m/d ",mktime($starthour , 0 , 0, $startmonth , $startday +1 , $startyear));77 $day1 = date ("m/d(D)",mktime($starthour , 0 , 0, $startmonth , $startday +1 , $startyear)); 74 78 $day2after = date ("YmdHi",mktime($starthour , 0 , 0, $startmonth , $startday +2 , $startyear)); 75 $day2 = date ("m/d ",mktime($starthour , 0 , 0, $startmonth , $startday +2 , $startyear));79 $day2 = date ("m/d(D)",mktime($starthour , 0 , 0, $startmonth , $startday +2 , $startyear)); 76 80 $day3after = date ("YmdHi",mktime($starthour , 0 , 0, $startmonth , $startday +3 , $startyear)); 77 $day3 = date ("m/d ",mktime($starthour , 0 , 0, $startmonth , $startday +3 , $startyear));81 $day3 = date ("m/d(D)",mktime($starthour , 0 , 0, $startmonth , $startday +3 , $startyear)); 78 82 $day4after = date ("YmdHi",mktime($starthour , 0 , 0, $startmonth , $startday +4 , $startyear)); 79 $day4 = date ("m/d ",mktime($starthour , 0 , 0, $startmonth , $startday +4 , $startyear));83 $day4 = date ("m/d(D)",mktime($starthour , 0 , 0, $startmonth , $startday +4 , $startyear)); 80 84 $day5after = date ("YmdHi",mktime($starthour , 0 , 0, $startmonth , $startday +5 , $startyear)); 81 $day5 = date ("m/d ",mktime($starthour , 0 , 0, $startmonth , $startday +5 , $startyear));85 $day5 = date ("m/d(D)",mktime($starthour , 0 , 0, $startmonth , $startday +5 , $startyear)); 82 86 $day6after = date ("YmdHi",mktime($starthour , 0 , 0, $startmonth , $startday +6 , $startyear)); 83 $day6 = date ("m/d ",mktime($starthour , 0 , 0, $startmonth , $startday +6 , $startyear));87 $day6 = date ("m/d(D)",mktime($starthour , 0 , 0, $startmonth , $startday +6 , $startyear)); 84 88 $day7after = date ("YmdHi",mktime($starthour , 0 , 0, $startmonth , $startday +7 , $startyear)); 85 $day7 = date ("m/d ",mktime($starthour , 0 , 0, $startmonth , $startday +7 , $startyear));89 $day7 = date ("m/d(D)",mktime($starthour , 0 , 0, $startmonth , $startday +7 , $startyear)); 86 90 87 91 … … 115 119 116 120 117 print "←<A HREF=\"./viewepg.php?p=$page&start=$yesterday\"> 前の日</A> <A HREF=\"./viewepg.php\">現在</A> 当日(<A HREF=\"./viewepg.php?p=$page&start=$today0400\">4:00</A> <A HREF=\"./viewepg.php?p=$page&start=$today1200\">12:00</A> <A HREF=\"./viewepg.php?p=$page&start=$today2000\">20:00</A>) <A HREF=\"./viewepg.php?p=$page&start=$day1after\">次の日</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";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"; 118 122 119 123 … … 127 131 128 132 print " $page / $pages (放送局) "; 133 for ($i=1;$i<=$pages;$i++){ 134 print "<a href = \"./viewepg.php?p=$i&start=$start\">$i</a>・"; 135 } 136 129 137 130 138 if ($page < $pages){ 131 139 $nextpage = $page + 1; 132 print "<a href = \"./viewepg.php?p=$nextpage&start=$start\">→</ A>";140 print "<a href = \"./viewepg.php?p=$nextpage&start=$start\">→</a>"; 133 141 } 134 142 } … … 158 166 SELECT ontvcode 159 167 FROM foltia_station 160 WHERE \"ontvcode\" LIKE '%ontvjapan%' 168 WHERE \"ontvcode\" LIKE '%ontvjapan%' 161 169 ORDER BY stationid ASC , stationrecch 162 170 LIMIT ? OFFSET ?