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

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

add the managment of style !

File size: 3.5 KB
RevLine 
[3507]1{html_head}<link rel="stylesheet" type="text/css" href="{$STYLE_FILE}">{/html_head}
[3329]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
[3507]37<div id="content" class="content">
[3329]38<div id="autre_content">
[3507]39  <table id="table_content" border="0" cellspacing="0" cellpadding="0">
40    <tr>
41      <td id="section_up_left">&nbsp;</td>
42      <td id="section_up"><a href="#" id="close_button" onclick="window.close();" title="{'Close this window'|@translate}"><img src="template/icon/exit.png" class="button" alt="close"></a></li></ul></td>
43      <td id="section_up_right">&nbsp;</td>
44    </tr>
45    <tr>
46      <td id="section_left">&nbsp;</td>
47      <td id="section_in">
48        <div class="titrePage">
49        <div id="montre" style="display:block" align="center">
50          <a href="javascript:void(0)" onclick="document.getElementById('montre').style.display ='none';document.getElementById('cache').style.display ='block'">{'mp_montre'|@translate}</a>
51        </div>
52        <div id="cache" style="display:none" align="center">
53          <a href="javascript:void(0)" onclick="document.getElementById('montre').style.display ='block';document.getElementById('cache').style.display ='none'">{'mp_cache'|@translate}</a><br />
54          <ul>
55          {foreach from=$playlist item=playlist}<!-- BEGIN playlist -->
56            <li><a href="javascript:void(0)" onclick="javascript:loadFile({literal}{{/literal}file:'{$playlist.URL}'{literal}}{/literal})" >{$playlist.TEXTE}</a></li>
57          {/foreach}<!-- END playlist -->
58          </ul>
59        </div>
60  </div>
[3329]61<p align="center" id="player">
62<script type="text/javascript">
63        var so = new SWFObject("player/mp3player.swf", "playlist", "{$L_TT}", "{$H_TT}", "7");
64        so.addVariable("file","{$URL}");
65        so.addVariable("autostart","{$AUTOSTART}");
66
67        so.addVariable("enablejs","true");
68        so.addVariable("javascriptid","playlist");
[3507]69        so.addVariable('backcolor','{$BACK_COLOR}');
70        so.addVariable('frontcolor','{$FRONT_COLOR}');
71        so.addVariable('lightcolor','{$LIGHT_COLOR}');
[3329]72        so.addVariable('linktarget','_blank');
73    so.addParam("allowfullscreen","true");
74        so.addParam("allowscriptaccess","always");
75
76        so.addVariable("repeat","{$REPEAT}");
77        so.addVariable("shuffle","{$SHUFFLE}");
78        so.addVariable("autoscroll","{$AUTOSCROLL}");
79 
80        so.addVariable('displayheight','{$H}'); <!--Attention hauteur de la playlist !  -->
81        so.addVariable('displaywidth','{$L}');<!--Attention largeur de la miniature !  -->
82
83               
84
85        so.write("player");
86</script></p>
[3507]87</td>
88          <td id="section_right">&nbsp;</td>
89    </tr>
90    <tr>
91      <td id="section_bottom_left">&nbsp;</td>
92      <td id="section_bottom" >&nbsp;</td>
93      <td id="section_bottom_right" >&nbsp;</td>
94    </tr>
95  </table>
[3329]96</div>
97</div> <!-- the_page -->
98
99</body>
100</html>
Note: See TracBrowser for help on using the repository browser.