home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 November / PCWorld_2007-11_cd.bin / multimedia / mediacoder / MediaCoder-0.6.0.3830.exe / extensions / NewmanN66.7z / extension.xsl < prev    next >
Extensible Markup Language  |  2007-03-11  |  4KB  |  80 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.     function onElementChange(id, value)
  25.     {
  26.         if (id == "format") {
  27.             var audioOnly = (value == "MP3");
  28.             document.getElementById("res").disabled = audioOnly;
  29.             document.getElementById("bitrate").disabled = audioOnly;
  30.         }
  31.     }
  32.     function onLoad()
  33.     {
  34.         var lcd = document.getElementById("lcd");
  35.         lcd.bgColor=0x101010;
  36.     }
  37.     </script>
  38.     </head>
  39.     <body class="extension" onload="onLoad()" onunload="StopPlay()" background="/img/back.png">
  40.     <div style="margin-left:5px; margin-top:5px">
  41.     <table width="214" border="0">
  42.       <tr>
  43.         <td><table width="100%" border="0">
  44.             <tr>
  45.               <td width="80" height="30"><p>Format:</p></td>
  46.               <td width="109"><xsl:call-template name="AddElement"><xsl:with-param name="element" select="elements/element[@id='format']"/></xsl:call-template></td>
  47.             </tr>
  48.             <tr>
  49.               <td height="30">Video Bitrate:</td>
  50.               <td><xsl:call-template name="AddElement"><xsl:with-param name="element" select="elements/element[@id='bitrate']"/></xsl:call-template> KBps </td>
  51.             </tr>
  52.             <tr>
  53.               <td height="30">Resolution:</td>
  54.               <td><xsl:call-template name="AddElement">
  55.                 <xsl:with-param name="element" select="elements/element[@id='res']"/>
  56.                 </xsl:call-template></td>
  57.             </tr>
  58.             <tr>
  59.               <td height="30">Audio Quality :</td>
  60.               <td><xsl:call-template name="AddElement"><xsl:with-param name="element" select="elements/element[@id='aq']"/></xsl:call-template></td>
  61.             </tr>
  62.           </table>
  63.           <p align="center">
  64.             <input type="button" value="Play" style="width: 64px" onclick="PlayVideo(lcd())" />
  65.             <input type="button" value="Preview" style="width: 64px" onclick="PlayConvertedVideo(lcd())" />
  66.             <input type="button" value="Skip 10s" style="width: 64px" onclick="SendCommand('seek +10')" />
  67.             <input type="button" value="Crop" style="width: 64px" onclick="SendCommand('show_cropper')" />
  68.             <input type="button" value="SetTime" style="width: 64px" onclick="SendCommand('set_time')" />
  69.             <input type="button" value="Start" style="width: 64px" onclick="SendCommand('transcode')" />
  70.           </p></td>
  71.       </tr>
  72.     </table>
  73.     </div>
  74.     <div style="position:absolute; left: 229px; top: 15px"> <img src="N66.png" /> </div>
  75.     <embed width="114" height="84" style="position:absolute; left: 248px; top: 40px; width: 155px; height: 127px;" id="lcd" type="application/x-mediacoder-scriptable-plugin"> </embed>
  76.     </body>
  77.     </html>
  78.   </xsl:template>
  79. </xsl:stylesheet>
  80.