1 |
<?php |
---|
2 |
|
---|
3 |
|
---|
4 |
|
---|
5 |
|
---|
6 |
|
---|
7 |
|
---|
8 |
|
---|
9 |
|
---|
10 |
|
---|
11 |
|
---|
12 |
|
---|
13 |
|
---|
14 |
|
---|
15 |
|
---|
16 |
|
---|
17 |
|
---|
18 |
|
---|
19 |
include("./foltialib.php"); |
---|
20 |
|
---|
21 |
|
---|
22 |
|
---|
23 |
$pid = getgetform(pid); |
---|
24 |
|
---|
25 |
if ($pid == "") { |
---|
26 |
header("Status: 404 Not Found",TRUE,404); |
---|
27 |
} |
---|
28 |
?> |
---|
29 |
|
---|
30 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
---|
31 |
<html lang="ja"> |
---|
32 |
<head> |
---|
33 |
<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP"> |
---|
34 |
<meta http-equiv="Content-Style-Type" content="text/css"> |
---|
35 |
<link rel="stylesheet" type="text/css" href="graytable.css"> |
---|
36 |
<title>Starlight Breaker -キャプチャ画像選択</title> |
---|
37 |
<script src="http://images.apple.com/main/js/ac_quicktime.js" language="JavaScript" type="text/javascript"></script> |
---|
38 |
</head> |
---|
39 |
<body BGCOLOR="#ffffff" TEXT="#494949" LINK="#0047ff" VLINK="#000000" ALINK="#c6edff" > |
---|
40 |
<div align="center"> |
---|
41 |
|
---|
42 |
<?php |
---|
43 |
printhtmlpageheader(); |
---|
44 |
|
---|
45 |
if ($pid == "") { |
---|
46 |
print "画像がありません。<br></body></html>"; |
---|
47 |
exit; |
---|
48 |
} |
---|
49 |
|
---|
50 |
|
---|
51 |
$con = m_connect(); |
---|
52 |
$query = " |
---|
53 |
SELECT |
---|
54 |
foltia_program.tid, |
---|
55 |
stationname, |
---|
56 |
foltia_program.title, |
---|
57 |
foltia_subtitle.countno, |
---|
58 |
foltia_subtitle.subtitle, |
---|
59 |
foltia_subtitle.startdatetime , |
---|
60 |
foltia_subtitle.lengthmin , |
---|
61 |
foltia_subtitle.pid , |
---|
62 |
foltia_subtitle.m2pfilename , |
---|
63 |
foltia_subtitle.pspfilename |
---|
64 |
FROM foltia_subtitle , foltia_program ,foltia_station |
---|
65 |
WHERE foltia_program.tid = foltia_subtitle.tid AND foltia_station.stationid = foltia_subtitle.stationid |
---|
66 |
AND foltia_subtitle.pid = '$pid' |
---|
67 |
|
---|
68 |
"; |
---|
69 |
$rs = m_query($con, $query, "DBクエリに失敗しました"); |
---|
70 |
$rowdata = pg_fetch_row($rs, 0); |
---|
71 |
|
---|
72 |
print " <p align=\"left\"><font color=\"#494949\" size=\"6\">キャプチャ画像</font></p> |
---|
73 |
<hr size=\"4\"> |
---|
74 |
<p align=\"left\">"; |
---|
75 |
print "<a href = \"http://cal.syoboi.jp/tid/$rowdata[0]/time#$pid\" target=\"_blank\">"; |
---|
76 |
print htmlspecialchars($rowdata[2]) . "</a> " ; |
---|
77 |
print htmlspecialchars($rowdata[3]) . " "; |
---|
78 |
$tid = $rowdata[0]; |
---|
79 |
if ($tid > 0){ |
---|
80 |
print "<a href = \"http://cal.syoboi.jp/tid/$tid/time#$pid\" target=\"_blank\">"; |
---|
81 |
print htmlspecialchars($rowdata[4]) . "</a> "; |
---|
82 |
}else{ |
---|
83 |
print htmlspecialchars($rowdata[4]) . " "; |
---|
84 |
} |
---|
85 |
print htmlspecialchars($rowdata[1]) . " "; |
---|
86 |
print htmlspecialchars($rowdata[6]) . "分 "; |
---|
87 |
print htmlspecialchars(foldate2print($rowdata[5])); |
---|
88 |
|
---|
89 |
$mp4filename = $rowdata[9]; |
---|
90 |
$serverfqdn = getserverfqdn(); |
---|
91 |
|
---|
92 |
print " 再生:<A HREF=\"$httpmediamappath/$tid.localized/mp4/$mp4filename\" target=\"_blank\">$mp4filename</A> / <script language=\"JavaScript\" type=\"text/javascript\">QT_WriteOBJECT_XHTML('http://g.hatena.ne.jp/images/podcasting.gif','16','16','','controller','FALSE','href','http://$serverfqdn/$httpmediamappath/$tid.localized/mp4/$mp4filename','target','QuickTimePlayer','type','video/mp4');</script><br>"; |
---|
93 |
|
---|
94 |
$m2pfilename = $rowdata[8]; |
---|
95 |
|
---|
96 |
list($tid,$countno,$date,$time)= split ("-", $m2pfilename ); |
---|
97 |
$tid = ereg_replace("[^0-9]", "", $tid); |
---|
98 |
|
---|
99 |
|
---|
100 |
|
---|
101 |
|
---|
102 |
|
---|
103 |
|
---|
104 |
|
---|
105 |
$path = ereg_replace("\.m2p$", "", $m2pfilename); |
---|
106 |
$serveruri = getserverfqdn (); |
---|
107 |
|
---|
108 |
exec ("ls $recfolderpath/$tid.localized/img/$path/", $tids); |
---|
109 |
|
---|
110 |
foreach($tids as $filetid) { |
---|
111 |
print "<IMG SRC='http://$serveruri$httpmediamappath/$tid.localized/img/$path/$filetid' WIDTH='160' HEIGHT='120' ALT='$tid:$countno:$filetid'>\n"; |
---|
112 |
|
---|
113 |
|
---|
114 |
|
---|
115 |
|
---|
116 |
|
---|
117 |
|
---|
118 |
|
---|
119 |
|
---|
120 |
} |
---|
121 |
// タイトル一覧 ここまで |
---|
122 |
|
---|
123 |
// ファイル一覧 ここから |
---|
124 |
?> |
---|
125 |
|
---|
126 |
|
---|
127 |
|
---|
128 |
|
---|
129 |
</body> |
---|
130 |
</html> |
---|
131 |
|
---|