| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
?> |
|---|
| 19 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
|---|
| 20 |
<html lang="ja"> |
|---|
| 21 |
<head> |
|---|
| 22 |
<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP"> |
|---|
| 23 |
<meta http-equiv="Content-Style-Type" content="text/css"> |
|---|
| 24 |
<link rel="stylesheet" type="text/css" href="graytable.css"> |
|---|
| 25 |
<title>foltia</title> |
|---|
| 26 |
</head> |
|---|
| 27 |
|
|---|
| 28 |
<?php |
|---|
| 29 |
|
|---|
| 30 |
include("./foltialib.php"); |
|---|
| 31 |
|
|---|
| 32 |
$con = m_connect(); |
|---|
| 33 |
|
|---|
| 34 |
$now = date("YmdHi"); |
|---|
| 35 |
|
|---|
| 36 |
$query = " |
|---|
| 37 |
SELECT |
|---|
| 38 |
foltia_program.tid, |
|---|
| 39 |
foltia_program .title |
|---|
| 40 |
FROM foltia_program |
|---|
| 41 |
ORDER BY foltia_program.tid DESC |
|---|
| 42 |
"; |
|---|
| 43 |
$rs = m_query($con, $query, "DBクエリに失敗しました"); |
|---|
| 44 |
$maxrows = pg_num_rows($rs); |
|---|
| 45 |
|
|---|
| 46 |
if ($maxrows == 0) { |
|---|
| 47 |
die_exit("番組データがありません<BR>"); |
|---|
| 48 |
|
|---|
| 49 |
} |
|---|
| 50 |
|
|---|
| 51 |
?> |
|---|
| 52 |
|
|---|
| 53 |
<body BGCOLOR="#ffffff" TEXT="#494949" LINK="#0047ff" VLINK="#000000" ALINK="#c6edff" > |
|---|
| 54 |
<div align="center"> |
|---|
| 55 |
<?php |
|---|
| 56 |
printhtmlpageheader(); |
|---|
| 57 |
?> |
|---|
| 58 |
<p align="left"><font color="#494949" size="6">番組一覧</font></p> |
|---|
| 59 |
<hr size="4"> |
|---|
| 60 |
<p align="left">全番組リストを表示します。</p> |
|---|
| 61 |
|
|---|
| 62 |
<? |
|---|
| 63 |
|
|---|
| 64 |
$maxcols = pg_num_fields($rs); |
|---|
| 65 |
?> |
|---|
| 66 |
<table BORDER="0" CELLPADDING="0" CELLSPACING="2" WIDTH="100%"> |
|---|
| 67 |
<thead> |
|---|
| 68 |
<tr> |
|---|
| 69 |
<th align="left">TID</th> |
|---|
| 70 |
<th align="left">タイトル</th> |
|---|
| 71 |
<th align="left">MPEG4リンク</th> |
|---|
| 72 |
</tr> |
|---|
| 73 |
</thead> |
|---|
| 74 |
|
|---|
| 75 |
<tbody> |
|---|
| 76 |
<?php |
|---|
| 77 |
|
|---|
| 78 |
for ($row = 0; $row < $maxrows; $row++) { |
|---|
| 79 |
echo("<tr>\n"); |
|---|
| 80 |
|
|---|
| 81 |
$rowdata = pg_fetch_row($rs, $row); |
|---|
| 82 |
|
|---|
| 83 |
echo("<td><a href=\"reserveprogram.php?tid=" . |
|---|
| 84 |
htmlspecialchars($rowdata[0]) . "\">" . |
|---|
| 85 |
htmlspecialchars($rowdata[0]) . "</a></td>\n"); |
|---|
| 86 |
|
|---|
| 87 |
echo("<td><a href=\"http://cal.syoboi.jp/progedit.php?TID=" . |
|---|
| 88 |
htmlspecialchars($rowdata[0]) . "\" target=\"_blank\">" . |
|---|
| 89 |
htmlspecialchars($rowdata[1]) . "</a></td>\n"); |
|---|
| 90 |
print "<td><A HREF = \"showlibc.php?tid=".htmlspecialchars($rowdata[0])."\">mp4</A></td>\n"; |
|---|
| 91 |
echo("</tr>\n"); |
|---|
| 92 |
} |
|---|
| 93 |
?> |
|---|
| 94 |
</tbody> |
|---|
| 95 |
</table> |
|---|
| 96 |
|
|---|
| 97 |
|
|---|
| 98 |
</body> |
|---|
| 99 |
</html> |
|---|
| 100 |
|
|---|