root/trunk/install/php/selectcaptureimage.php

リビジョン 25, 3.7 kB (コミッタ: sorshi, コミット時期: 18 年 前)

サブタイトルのしょぼいカレンダーへのリンク追加。

Line 
1 <?php
2 /*
3  Anime recording system foltia
4  http://www.dcc-jpl.com/soft/foltia/
5
6
7 目的
8 blogツール、スターライトブレイカー用キャプ選択画面サンプル
9
10 引数
11 pid:PID
12
13 mplayer -ss 00:00:10 -vo jpeg:outdir=/home/foltia/php/tv/691.localized/img/6/ -vf crop=702:468:6:6,scale=160:120,pp=lb  -ao null -sstep 14  -v 3 /home/foltia/php/tv/691-6-20060216-0130.m2p
14
15  DCC-JPL Japan/foltia project
16
17 */
18
19 include("./foltialib.php");
20
21 //$tid = getgetnumform(tid);
22 //$path = getgetform(d);
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 //if ($countno == "x"){
99 //}else{
100 //    $countno = ereg_replace("[^0-9]", "", $countno);
101 //}
102 //    $date = ereg_replace("[^0-9]", "", $date);
103 //    $time = ereg_replace("[^0-9]", "", $time);
104 //$path = $tid."-".$countno."-".$date."-".$time ;
105 $path = ereg_replace("\.m2p$", "", $m2pfilename);
106 $serveruri = getserverfqdn ();
107
108 exec ("ls   $recfolderpath/$tid.localized/img/$path/", $tids);
109 //$timecount = 1;
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 $i++ ;
114 if ($i > 3){
115  print "<br>\n";
116 $i = 0;
117 //$timecount++ ;
118 }
119 */
120 }//foreach
121 // タイトル一覧 ここまで
122
123 // ファイル一覧 ここから
124 ?>
125
126
127
128
129 </body>
130 </html>
131
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。
track feed