チェンジセット 38: trunk/install/php
- コミット日時:
- 2007/01/14 00:54:46 (18 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
trunk/install/php/graytable.css
r36 r38 1 2 1 body * {margin:0px;padding:0px;border:0px;} 3 2 … … 25 24 background-color: #CCC; 26 25 } 27 th + th, td + td { border- left: 1px solid #AAA; }28 td { border-top: 1px solid #AAA;vertical-align: top; }29 th, td { padding: 3px;}26 th + th, td + td { border-right: 1px solid #AAA; } 27 td { vertical-align: top; } 28 th, td { border-right: 1px solid #AAA;border-bottom: 1px solid #AAA; padding: 3px;} 30 29 tr.reserved{background-color: #FFDDDD;} 31 30 tr.reservedtitle{background-color: #DDDDFF;} … … 57 56 ul {list-style-type:none;} 58 57 li {width:90px;background:#ffa;padding:2px;border:1px solid white;line-height:1.1em;} 58 59 td#anime {background:#FFC0CB;} /* アニメ・特撮 */ 60 td#kids {background:#FFFFDC;} /* キッズ */ 61 td#sports {background:#D7D7FF;} /* スポーツ */ 62 td#etc {background:#F3F3F3;} /* その他 */ 63 td#news {background:#E3C0FF;} /* ニュース・報道 */ 64 td#cinema {background:#FAA5FF;} /* 映画 */ 65 td#education{background-color:#C9C9C9;} /* 教育 */ 66 td#documentary{background-color:#E8FFE8;} /* ドキュメンタリー・教養 */ 67 td#music{background-color: #A4FFF5;} /* 音楽 */ 68 td#variety{background-color: #E0F0CA;} /* バラエティ */ 69 td#hobby{background-color: #FDF7BB;} /* 趣味・実用 */ 70 td#information {background:#B6FFFA;} /* 情報 */ 71 td#stage{background-color: #FFC0E3;} /* 演劇 */ 72 td#drama {background:#FFD0FF;} /* ドラマ */ 73 74 #information:hover, #hobby:hover, #education:hover, #music:hover, #stage:hover, #cinema:hover, #variety:hover, #news:hover, #drama:hover, #documentary:hover, #sports:hover, #kids:hover, #anime:hover, #etc:hover 75 { 76 background-color: #FFFA4D; 77 padding-right: 1px; padding-bottom:1px; 78 border-right: 3px solid #aaa; border-bottom: 3px solid #666; } 79 80 81 trunk/install/php/reserveepg.php
r1 r38 81 81 $progdesc = htmlspecialchars($rowdata[6]); 82 82 $progdesc = z2h($progdesc); 83 $progcat = htmlspecialchars($rowdata[7]); 84 $progcat = z2h($progcat); 83 $progcat = htmlspecialchars(z2h($rowdata[7])); 84 85 if ($progcat == "information"){ 86 $progcat = '情報'; 87 }elseif ($progcat == "anime"){ 88 $progcat = 'アニメ・特撮'; 89 }elseif ($progcat == "news"){ 90 $progcat = 'ニュース・報道'; 91 }elseif ($progcat == "drama"){ 92 $progcat = 'ドラマ'; 93 }elseif ($progcat == "variety"){ 94 $progcat = 'バラエティ'; 95 }elseif ($progcat == "documentary"){ 96 $progcat = 'ドキュメンタリー・教養'; 97 }elseif ($progcat == "education"){ 98 $progcat = '教育'; 99 }elseif ($progcat == "music"){ 100 $progcat = '音楽'; 101 }elseif ($progcat == "cinema"){ 102 $progcat = '映画'; 103 }elseif ($progcat == "hobby"){ 104 $progcat = '趣味・実用'; 105 }elseif ($progcat == "kids"){ 106 $progcat = 'キッズ'; 107 }elseif ($progcat == "sports"){ 108 $progcat = 'スポーツ'; 109 }elseif ($progcat == "etc"){ 110 $progcat = 'その他'; 111 }elseif ($progcat == "stage"){ 112 $progcat = '演劇'; 113 } 114 85 115 $epgid = $epgid ; 86 116 $stationid = htmlspecialchars($rowdata[10]); trunk/install/php/viewepg.php
r36 r38 173 173 $epgend = calcendtime($start , (8*60)); 174 174 $query = " 175 SELECT startdatetime , enddatetime , lengthmin , epgtitle , epgdesc , epgcategory ,ontvchannel ,epgid 175 SELECT startdatetime , enddatetime , lengthmin , epgtitle , epgdesc , epgcategory ,ontvchannel ,epgid , epgcategory 176 176 FROM foltia_epg 177 177 WHERE foltia_epg.ontvchannel = '$stationname' AND … … 184 184 if ($maxrowsstation == 0) { 185 185 //print("番組データがありません<BR>"); 186 $item[0]["$stationname"] = " 番組データがありません";186 $item[0]["$stationname"] = ">番組データがありません"; 187 187 }else{ 188 188 … … 199 199 $height = htmlspecialchars($stationrowdata[2]) * 3; 200 200 $epgid = htmlspecialchars($stationrowdata[7]); 201 $epgcategory = htmlspecialchars($stationrowdata[8]); 201 202 202 203 if (isset($timetablehash["$stationrowdata[0]"])){ … … 205 206 $number = 0; 206 207 } 207 $item["$number"]["$stationname"] = "$printstarttime <A HREF=\"./reserveepg.php?epgid=$epgid\">$title</A> $desc"; 208 if ($epgcategory == ""){ 209 $item["$number"]["$stationname"] = "><span id=\"epgstarttime\">$printstarttime</span> <A HREF=\"./reserveepg.php?epgid=$epgid\"><span id=\"epgtitle\">$title</span></A> <span id=\"epgdesc\">$desc</span>"; 210 }else{ 211 $item["$number"]["$stationname"] = " id=\"$epgcategory\"><span id=\"epgstarttime\">$printstarttime</span> <A HREF=\"./reserveepg.php?epgid=$epgid\"><span id=\"epgtitle\">$title</span></A> <span id=\"epgdesc\">$desc</span></span>"; 212 }//if 213 208 214 }//for 209 215 }//if … … 221 227 $item[$i][$stationname] = ""; 222 228 }else{ 223 $item[$i][$stationname] = "<td >". $item[$i][$stationname] . "</td>";229 $item[$i][$stationname] = "<td ". $item[$i][$stationname] . "</td>"; 224 230 $rowspan--; 225 231 } 226 232 //ROWSPAN 227 233 if ($rowspan === 1 ){ 228 $item[$dataplace][$stationname] = "<td >". $item[$dataplace][$stationname] . "</td>";234 $item[$dataplace][$stationname] = "<td ". $item[$dataplace][$stationname] . "</td>"; 229 235 }else{ 230 $item[$dataplace][$stationname] = "<td rowspan = $rowspan >". $item[$dataplace][$stationname] . "</td>";236 $item[$dataplace][$stationname] = "<td rowspan = $rowspan ". $item[$dataplace][$stationname] . "</td>"; 231 237 } 232 238 … … 238 244 $rowspan = $i - $dataplace; 239 245 if ($rowspan === 1 ){ 240 $item[$dataplace][$stationname] = "<td >". $item[$dataplace][$stationname] . "</td>";246 $item[$dataplace][$stationname] = "<td ". $item[$dataplace][$stationname] . "</td>"; 241 247 }else{ 242 $item[$dataplace][$stationname] = "<td rowspan = $rowspan >". $item[$dataplace][$stationname] . "</td>";248 $item[$dataplace][$stationname] = "<td rowspan = $rowspan ". $item[$dataplace][$stationname] . "</td>"; 243 249 } 244 250 $dataplace = $i; … … 268 274 ?> 269 275 276 <hr> 277 凡例 278 <table> 279 <tr> 280 <td id="information">情報</td> 281 <td id="anime">アニメ・特撮</td> 282 <td id="news">ニュース・報道</td> 283 <td id="drama">ドラマ</td> 284 <td id="variety">バラエティ</td> 285 <td id="documentary">ドキュメンタリー・教養</td> 286 <td id="education">教育</td> 287 <td id="music">音楽</td> 288 <td id="cinema">映画</td> 289 <td id="hobby">趣味・実用</td> 290 <td id="kids">キッズ</td> 291 <td id="sports">スポーツ</td> 292 <td id="etc">その他</td> 293 <td id="stage">演劇</td> 294 295 </tr> 296 </table> 270 297 </body> 271 298 </html>