home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 April / PCWorld_2008-04_cd.bin / multimedia / mediacoder / MediaCoder-0.6.0.3905.exe / extensions / dvp.7z / extension.xsl < prev    next >
Extensible Markup Language  |  2007-09-17  |  6KB  |  116 lines

  1. <?xml version="1.0" encoding="utf-8"?><!DOCTYPE xsl:stylesheet  [
  2.     <!ENTITY nbsp   " ">
  3.     <!ENTITY copy   "©">
  4.     <!ENTITY reg    "®">
  5.     <!ENTITY trade  "™">
  6.     <!ENTITY mdash  "—">
  7.     <!ENTITY ldquo  "“">
  8.     <!ENTITY rdquo  "”"> 
  9.     <!ENTITY pound  "£">
  10.     <!ENTITY yen    "¥">
  11.     <!ENTITY euro   "€">
  12. ]>
  13. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  14.   <xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
  15.   <xsl:include href="../_include/extbase.xsl"/>
  16.   <xsl:template match="/extension">
  17.     <html xmlns="http://www.w3.org/1999/xhtml">
  18.     <head>
  19.     <title><xsl:value-of select="name"/></title>
  20.     <link rel="stylesheet" href="../_css/style.css"/>
  21.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  22.     <xsl:call-template name="InitExtension"/>
  23.     <script language="javascript">
  24.     var aspect = 0;
  25.     function onElementChange(id,value)
  26.     {
  27.         if (id == "aspect") {
  28.             if (value == "4:3") {
  29.                 document.getElementById("wide").style.display="none";
  30.                 document.getElementById("square").style.display="block";
  31.                 aspect = 1;
  32.             } else {
  33.                 document.getElementById("wide").style.display="block";
  34.                 document.getElementById("square").style.display="none";
  35.                 aspect = 0;
  36.             }
  37.         }
  38.     }
  39.     </script>
  40.     </head>
  41.     <body class="extension" onunload="StopPlay()" background="/img/back.png">
  42.     <table width="214" border="0">
  43.       <tr>
  44.         <td><div align="center">
  45.             <div>
  46.               <h2>PVR/DVP Transcoder</h2>
  47.               <img src="pvr.png" width="159" height="57" />
  48.             </div>
  49.             </div>
  50.           <table width="100%" border="0">
  51.             <tr>
  52.               <td height="30"><p>Screen Aspect :</p></td>
  53.               <td><xsl:call-template name="AddElement">
  54.                 <xsl:with-param name="element" select="elements/element[@id='aspect']"/>
  55.                 <xsl:with-param name="option" select="elements/element[@id='aspect']/option[1]"/>
  56.                 </xsl:call-template>
  57.                 <xsl:call-template name="AddElement">
  58.                 <xsl:with-param name="element" select="elements/element[@id='aspect']"/>
  59.                 <xsl:with-param name="option" select="elements/element[@id='aspect']/option[2]"/>
  60.                 </xsl:call-template>              </td>
  61.             </tr>
  62.             <tr>
  63.               <td height="30"><p>Crop Method:</p></td><td>
  64.                   <xsl:call-template name="AddElement">
  65.                     <xsl:with-param name="element" select="elements/element[@id='crop']"/>
  66.                 </xsl:call-template>
  67.               </td>
  68.             </tr>
  69.             <tr>
  70.               <td width="80" height="30"><p>Video:</p></td>
  71.               <td width="109"><xsl:call-template name="AddElement"><xsl:with-param name="element" select="elements/element[@id='video']"/></xsl:call-template></td>
  72.             </tr>
  73.             <tr>
  74.               <td height="30">Resolution:</td>
  75.               <td><xsl:call-template name="AddElement"><xsl:with-param name="element" select="elements/element[@id='res']"/></xsl:call-template></td>
  76.             </tr>
  77.             <tr>
  78.               <td height="30">Frame rate:</td>
  79.               <td><xsl:call-template name="AddElement"><xsl:with-param name="element" select="elements/element[@id='fps']"/></xsl:call-template> FPS </td>
  80.             </tr>
  81.             <tr>
  82.               <td height="30"> Video Bitrate:</td>
  83.               <td><xsl:call-template name="AddElement"><xsl:with-param name="element" select="elements/element[@id='bitrate']"/></xsl:call-template> KBps </td>
  84.             </tr>
  85.             <tr>
  86.               <td height="30">Audio Quality :</td>
  87.               <td><xsl:call-template name="AddElement"><xsl:with-param name="element" select="elements/element[@id='aq']"/></xsl:call-template></td>
  88.             </tr>
  89.           </table>
  90.         </td>
  91.       </tr>
  92.     </table>
  93.     <p align="center">
  94.       <label>
  95.       <input id="file" type="file" name="file" size="24"/>
  96.       <input name="button3" type="button" style="width: 64px" onclick="AddFile(document.getElementById('file').value)" value="Add File" />
  97.       </label>
  98.       <input name="button" type="button" style="width: 64px" onclick="PlayVideo(aspect ? sqrlcd() : widelcd())" value="Play" />
  99.       <input name="button2" type="button" style="width: 64px" onclick="PlayConvertedVideo(aspect ? sqrlcd() : widelcd())" value="Preview" />
  100.       <input name="button2" type="button" style="width: 64px" onclick="SendCommand('seek +10')" value="Skip 10s" />
  101.       <input name="button2" type="button" style="width: 64px" onclick="SendCommand('set_time')" value="SetTime" />
  102.       <input name="button2" type="button" style="width: 64px" onclick="SendCommand('transcode')" value="Start" />
  103.     </p>
  104.     <div id="wide">
  105.     <div style="position:absolute; left: 235px; top: 5px"> <img src="tvwide.png" /> </div>
  106.     <embed id="widelcd" type="application/x-xulplayer-scriptable-plugin" style="position:absolute; left: 263px; top: 28px; width: 385px; height: 216px;"></embed>
  107.     </div>
  108.     <div id="square" style="display:none">
  109.     <div style="position:absolute; left: 230px; top: 15px"> <img src="tvsquare.png" /> </div>
  110.     <embed id="sqrlcd" type="application/x-mediacoder-scriptable-plugin" style="position:absolute; left: 300px; top: 38px; width: 320px; height: 240px;"></embed>
  111.     </div>
  112.     </body>
  113.     </html>
  114.   </xsl:template>
  115. </xsl:stylesheet>
  116.