playlist
上传用户:kjfoods
上传日期:2020-07-06
资源大小:29949k
文件大小:7k
源码类别:

midi

开发平台:

Unix_Linux

  1. <?vlc --[[
  2. vim:syntax=html
  3. <!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
  4. <  playlist: VLC media player web interface - playlist dialog
  5. < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
  6. <  Copyright (C) 2005-2006 the VideoLAN team
  7. <  $Id$
  8. <  Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
  9. <  This program is free software; you can redistribute it and/or modify
  10. <  it under the terms of the GNU General Public License as published by
  11. <  the Free Software Foundation; either version 2 of the License, or
  12. <  (at your option) any later version.
  13. <  This program is distributed in the hope that it will be useful,
  14. <  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. <  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. <  GNU General Public License for more details.
  17. <  You should have received a copy of the GNU General Public License
  18. <  along with this program; if not, write to the Free Software
  19. <  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
  20. < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  21. This dialog needs the following dialogs to be fully functional: <none>
  22. ]]?>
  23. <div id="playlist" class="dialog" >
  24.   <div class="title">
  25.     Playlist
  26.     <img class="close" src="images/white_cross_small.png" alt="Close" onclick="hide('playlist');"/>
  27.   </div>
  28.   <div class="controls">
  29.     <table>
  30.       <tr>
  31.         <td>
  32.           <!--<button id="btn_delete" onmouseover="button_over(this);" onmouseout="button_out(this);">
  33.             <img src="images/delete.png" alt="Delete" />
  34.             <span class="btn_text">Delete</span>
  35.           </button>-->
  36.           <button id="btn_empty" onclick="pl_empty();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Empty" >
  37.             <img src="images/empty.png" alt="Empty" />
  38.             <span class="btn_text">Empty</span>
  39.           </button>
  40.           <button id="btn_shuffle" onclick="pl_shuffle();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Shuffle" >
  41.             <img src="images/shuffle.png" alt="Shuffle" />
  42.             <span class="btn_text">Shuffle</span>
  43.           </button>
  44.           <button id="btn_loop" onclick="pl_loop();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Loop" >
  45.             <img src="images/loop.png" alt="Loop" />
  46.             <span class="btn_text">Loop</span>
  47.           </button>
  48.           <button id="btn_repeat" onclick="pl_repeat();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Repeat" >
  49.             <img src="images/repeat.png" alt="Repeat" />
  50.             <span class="btn_text">Repeat</span>
  51.           </button>
  52.         </td>
  53.         <td onmouseout="hide_menu('menu_sort');" onmouseover="show_menu('menu_sort');" >
  54.           <button id="btn_sort" title="Sort" >
  55.             <img src="images/sort.png" alt="Sort" />
  56.             <span class="btn_text">Sort</span>
  57.           </button>
  58.           <div id="menu_sort" class="menu" >
  59.             <button class="menuout" onclick="pl_sort('title',0);hide_menu('menu_sort');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Sort by Title ascending" >Title</button><br/>
  60.             <button class="menuout" onclick="pl_sort('title',1);hide_menu('menu_sort');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Sort by Title descending" >Title reverse</button><br/>
  61.             <button class="menuout" onclick="pl_sort('artist',0);hide_menu('menu_sort');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Sort by Artist ascending" >Artist</button><br/>
  62.             <button class="menuout" onclick="pl_sort('artist',1);hide_menu('menu_sort');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Sort by Artist ascending" >Artist reverse</button><br/>
  63.             <button class="menuout" onclick="pl_sort('album',0);hide_menu('menu_sort');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Sort by Album ascending" >Album</button><br/>
  64.             <button class="menuout" onclick="pl_sort('album',1);hide_menu('menu_sort');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Sort by Album ascending" >Album reverse</button><br/>
  65.             <button class="menuout" onclick="pl_sort('genre',0);hide_menu('menu_sort');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Sort by Genre ascending" >Genre</button><br/>
  66.             <button class="menuout" onclick="pl_sort('genre',1);hide_menu('menu_sort');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Sort by Genre ascending" >Genre reverse</button><br/>
  67.             <button class="menuout" onclick="pl_sort('random',0);hide_menu('menu_sort');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Randomize" >Random</button><br/>
  68.             <button class="menuout" onclick="pl_sort('id',0);hide_menu('menu_sort');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Sort by Id ascending" >Id</button><br/>
  69.             <button class="menuout" onclick="pl_sort('id',1);hide_menu('menu_sort');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Sort by Id descending" >Id reverse</button><br/>
  70.           </div>
  71.         </td>
  72.         <td onmouseover="show_menu('menu_sd');" onmouseout="hide_menu('menu_sd');">
  73.           <button id="btn_sd" title="Services Discovery" >
  74.             <img src="images/sd.png" alt="Services Discovery" />
  75.             <span class="btn_text">Services Discovery</span>
  76.           </button>
  77.           <div id="menu_sd" class="menu" >
  78.           <?vlc
  79.             local sd = vlc.sd.get_services_names()
  80.             for n,ln in pairs(sd) do
  81.               print([[<button onclick="pl_sd(']]..n..[[');hide_menu('menu_sd');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" class="menuout" title="Toggle ]]..ln..[[" >]]..ln..[[</button><br/>]])
  82.             end
  83.           ?>
  84.           </div>
  85.         </td>
  86. <td style='width: 30px'></td>
  87.         <td>
  88.           <span class="btn_text">Live search:</span>
  89.           <input title="Live search" type="text" value="<?vlc if _G.search_key then print(search_key) else print('<search>') end ?>" id="search" onfocus="if( this.value == '<search>' ) this.value = ''" onblur="if( this.value == '' ) reset_search()" onchange="update_playlist_search(this.value)" onkeyup="update_playlist_search(this.value)" />
  90.           <button id="btn_search_reset" onclick="reset_search()" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Reset search">
  91.             <img src="images/reset.png" alt="Reset" />
  92.             <span class="btn_text">Reset</span>
  93.           </button>
  94.         </td>
  95.       </tr>
  96.     </table>
  97.   </div>
  98.   <div id="playtree">
  99.     (?)
  100.   </div>
  101. </div>