Ignore:
Timestamp:
Jul 3, 2009, 5:42:14 PM (15 years ago)
Author:
flop25
Message:

add the managment of style !

Location:
extensions/music_player/template
Files:
10 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/music_player/template/admin.tpl

    r3500 r3507  
    8080      px <br />
    8181      {'mp_admin_3_opt2_2'|@translate}</li>
     82        <li>
     83       {'mp_admin_3_opt9'|@translate}<br />
     84       <select name="style">
     85        {foreach from=$list_style item=ls}
     86        <option value="{$ls.FILE}">{$ls.TEXTE}</option>
     87        {/foreach}
     88      </select>
     89      <br />
     90      <input type="checkbox" name="various_style" value="true" {$MP_VARIOUS_STYLE} />
     91      {'mp_admin_3_opt10'|@translate}<br />
     92    </li>
    8293    <li>
    8394      <input type="checkbox" name="mp_miniature" value="true" {$MP_MINIATURE_ACTIVATED} />
  • extensions/music_player/template/lecteur.tpl

    r3329 r3507  
    1 {html_head}<link rel="stylesheet" type="text/css" href="./template/lecteur.css">{/html_head}
     1{html_head}<link rel="stylesheet" type="text/css" href="{$STYLE_FILE}">{/html_head}
    22{html_head}<script type="text/javascript" src="./player/swfobject.js"></script>{/html_head}
    33{html_head}<script type="text/javascript">
     
    3535{/if}
    3636
    37 <div id="content">
     37<div id="content" class="content">
    3838<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>
     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>
    5061<p align="center" id="player">
    5162<script type="text/javascript">
     
    5667        so.addVariable("enablejs","true");
    5768        so.addVariable("javascriptid","playlist");
    58         so.addVariable('backcolor','0x000000');
    59         so.addVariable('frontcolor','0xffffff');
    60         so.addVariable('lightcolor','0x0099CC');
     69        so.addVariable('backcolor','{$BACK_COLOR}');
     70        so.addVariable('frontcolor','{$FRONT_COLOR}');
     71        so.addVariable('lightcolor','{$LIGHT_COLOR}');
    6172        so.addVariable('linktarget','_blank');
    6273    so.addParam("allowfullscreen","true");
     
    7485        so.write("player");
    7586</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>
     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>
    7796</div>
    7897</div> <!-- the_page -->
Note: See TracChangeset for help on using the changeset viewer.