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