source: extensions/music_player/template/lecteur.tpl @ 3329

Last change on this file since 3329 was 3329, checked in by flop25, 15 years ago

first commit

File size: 2.8 KB
Line 
1{html_head}<link rel="stylesheet" type="text/css" href="./template/lecteur.css">{/html_head}
2{html_head}<script type="text/javascript" src="./player/swfobject.js"></script>{/html_head}
3{html_head}<script type="text/javascript">
4{literal}
5
6        function loadFile(obj) { thisMovie("playlist").loadFile(obj); };
7        // This is a javascript handler for the player and is always needed.
8        function thisMovie(movieName) {
9            if(navigator.appName.indexOf("Microsoft") != -1) {
10                        return window[movieName];
11                } else {
12                        return document[movieName];
13                }
14        };
15{/literal}
16
17</script>{/html_head}
18
19{if $conf_plugin_1!='true' }
20{html_head}<style type="text/css">{literal}
21#theHeader
22{
23display:none;
24}
25{/literal}</style>{/html_head}
26{/if}
27{if $conf_plugin_2!='true' }
28{html_head}<style type="text/css">{literal}
29
30#copyright
31{
32display:none;
33}       
34          </style>{/literal}{/html_head}
35{/if}
36
37<div id="content">
38<div id="autre_content">
39<div id="montre" style="display:block" align="center">
40  <a href="javascript:void(0)" onclick="document.getElementById('montre').style.display ='none';document.getElementById('cache').style.display ='block'">{'mp_montre'|@translate}</a>
41</div>
42<div id="cache" style="display:none" align="center">
43  <a href="javascript:void(0)" onclick="document.getElementById('montre').style.display ='block';document.getElementById('cache').style.display ='none'">{'mp_cache'|@translate}</a><br />
44  <ul>
45  {foreach from=$playlist item=playlist}<!-- BEGIN playlist -->
46    <li><a href="javascript:void(0)" onclick="javascript:loadFile({literal}{{/literal}file:'{$playlist.URL}'{literal}}{/literal})" >{$playlist.TEXTE}</a></li>
47  {/foreach}<!-- END playlist -->
48  </ul>
49</div>
50<p align="center" id="player">
51<script type="text/javascript">
52        var so = new SWFObject("player/mp3player.swf", "playlist", "{$L_TT}", "{$H_TT}", "7");
53        so.addVariable("file","{$URL}");
54        so.addVariable("autostart","{$AUTOSTART}");
55
56        so.addVariable("enablejs","true");
57        so.addVariable("javascriptid","playlist");
58        so.addVariable('backcolor','0x000000');
59        so.addVariable('frontcolor','0xffffff');
60        so.addVariable('lightcolor','0x0099CC');
61        so.addVariable('linktarget','_blank');
62    so.addParam("allowfullscreen","true");
63        so.addParam("allowscriptaccess","always");
64
65        so.addVariable("repeat","{$REPEAT}");
66        so.addVariable("shuffle","{$SHUFFLE}");
67        so.addVariable("autoscroll","{$AUTOSCROLL}");
68 
69        so.addVariable('displayheight','{$H}'); <!--Attention hauteur de la playlist !  -->
70        so.addVariable('displaywidth','{$L}');<!--Attention largeur de la miniature !  -->
71
72               
73
74        so.write("player");
75</script></p>
76<p id="pageBottomActions"><a href="#" onclick="window.close();" title="{'Close this window'|@translate}"><img src="template/icon/exit.png" class="button" alt="close"></a></p>
77</div>
78</div> <!-- the_page -->
79
80</body>
81</html>
Note: See TracBrowser for help on using the repository browser.