チェンジセット 83: trunk/install/php/showlib.php

差分発生行の前後
無視リスト:
コミット日時:
2008/12/30 22:12:46 (15 年前)
コミッタ:
sorshi
ログメッセージ:

foltiaHD最初のリリース。
デジタル録画はFriio/Friio BS/CSのみに対応。
ivtvは1.0系使用になりました。

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • trunk/install/php/showlib.php

    r70 r83  
    3636<head> 
    3737<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 <link rel="alternate" type="application/rss+xml" title="RSS" href="./folcast.php" /> 
     38<?php 
     39if (file_exists  ( "./iui/iui.css"  )){ 
     40        $useragent = $_SERVER['HTTP_USER_AGENT']; 
     41
     42if(ereg("iPhone",$useragent)){ 
     43print "<meta name=\"viewport\" content=\"width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;\"/> 
     44<link rel=\"apple-touch-icon\" type=\"image/png\" href=\"./img/icon.png\" /> 
     45 
     46<style type=\"text/css\" media=\"screen\">@import \"./iui/iui.css\";</style> 
     47<script type=\"application/x-javascript\" src=\"./iui/iui.js\"></script>"; 
     48}else{ 
     49print "<meta http-equiv=\"Content-Style-Type\" content=\"text/css\"> 
     50<link rel=\"stylesheet\" type=\"text/css\" href=\"graytable.css\">  
     51<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"./folcast.php\" />"; 
     52
     53?> 
    4154<title>foltia:MP4 Lib</title> 
    4255</head> 
    4356 
    4457<?php 
    45 $now = date("YmdHi");    
     58$now = date("YmdHi");   
     59if(ereg("iPhone",$useragent)){ 
     60        print "<body onclick=\"console.log('Hello', event.target);\"> 
     61    <div class=\"toolbar\"> 
     62        <h1 id=\"pageTitle\"></h1> 
     63        <a id=\"backButton\" class=\"button\" href=\"#\"></a> 
     64    </div> 
     65"; 
     66}else{ 
     67        print "<body BGCOLOR=\"#ffffff\" TEXT=\"#494949\" LINK=\"#0047ff\" VLINK=\"#000000\" ALINK=\"#c6edff\" > 
     68<div align=\"center\"> 
     69"; 
     70        printhtmlpageheader(); 
     71print "  <p align=\"left\"><font color=\"#494949\" size=\"6\">録画ライブラリ表示</font></p> 
     72  <hr size=\"4\"> 
     73<p align=\"left\">再生可能ライブラリを表示します。<br> 
     74"; 
     75}  
    4676 
    47 ?> 
    48 <body BGCOLOR="#ffffff" TEXT="#494949" LINK="#0047ff" VLINK="#000000" ALINK="#c6edff" > 
    49 <div align="center"> 
    50 <?php  
    51         printhtmlpageheader(); 
    52 ?> 
    53   <p align="left"><font color="#494949" size="6">録画ライブラリ表示</font></p> 
    54   <hr size="4"> 
    55 <p align="left">再生可能ライブラリを表示します。<br> 
    56  
    57 <? 
    5877//新仕様 /* 2006/10/26 */ 
    5978$query = " 
     
    7089 
    7190if ($maxrows > 0 ){ 
     91if(ereg("iPhone",$useragent)){ 
     92        print "<ul id=\"home\" title=\"録画ライブラリ表示\" selected=\"true\">"; 
     93}else{ 
    7294print " 
    7395  <table BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"2\" WIDTH=\"100%\"> 
     
    82104        <tbody> 
    83105"; 
     106} 
    84107for ($row = 0; $row < $maxrows; $row++) { 
    85108        $rowdata = pg_fetch_row($rs, $row); 
     
    90113$counts = htmlspecialchars($counts); 
    91114 
     115if(ereg("iPhone",$useragent)){ 
     116print "<li><a href=\"showlibc.php?tid=$tid\" target=\"_self\">$title</a></li>\n"; 
     117}else{ 
    92118print " 
    93119<tr> 
     
    98124</tr>\n 
    99125"; 
     126} 
    100127}//for 
     128 
     129if(ereg("iPhone",$useragent)){ 
     130        print "</ul>\n</body>\n</html>\n"; 
     131}else{ 
    101132print " 
    102133        </tbody> 
     
    105136</html> 
    106137"; 
     138} 
     139 
    107140}else{ 
    108141print "録画ファイルが存在しません。</body></html>"; 
track feed