Index: trunk/install/php/viewepg.php
===================================================================
--- trunk/install/php/viewepg.php (リビジョン 39)
+++ trunk/install/php/viewepg.php (リビジョン 42)
@@ -155,4 +155,7 @@
$rs = m_query($con, $query, "DBクエリに失敗しました");
+
+//print "$query
\n";
+
$colmnums = pg_num_rows($rs);
if ($colmnums == 0){
@@ -162,7 +165,10 @@
for ($i=0 ; $i < $colmnums ; $i++){
$rowdata = pg_fetch_row($rs, $i);
- $timetablehash["$rowdata[0]"] = $i;
+ $timetablehash["$rowdata[0]"] = ($i + 1);
+// print "$rowdata[0]:$i+1
\n";
}
}
+//print "colmnums $colmnums
\n";
+
//・局ごとに縦に配列入れていく
for ($j=0 ; $j < $stations ; $j++){
@@ -182,4 +188,7 @@
$statiodh = m_query($con, $query, "DBクエリに失敗しました");
$maxrowsstation = pg_num_rows($statiodh);
+
+//print "maxrowsstation $maxrowsstation stationname $stationname
\n";
+
if ($maxrowsstation == 0) {
//print("番組データがありません
");
@@ -203,6 +212,8 @@
if (isset($timetablehash["$stationrowdata[0]"])){
$number = $timetablehash["$stationrowdata[0]"];
+//print "$stationname $stationrowdata[0] [$number] $printstarttime $title $desc
\n";
}else{
$number = 0;
+//print "$stationname $stationrowdata[0] 現在番組 $printstarttime $title $desc
\n";
}
if ($epgcategory == ""){
@@ -221,6 +232,6 @@
for ($i=1; $i <= $colmnums ; $i++){
- if ($i === ($colmnums - 1)){//最終行
- $rowspan = $i - $dataplace + 1;
+ if ($i === ($colmnums )){//最終行
+ $rowspan = $i - $dataplace ;
//そして自分自身にタグを
if ($item[$i][$stationname] == ""){
@@ -235,4 +246,5 @@
}else{
$item[$dataplace][$stationname] = "