home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / xampp-win32-1.6.7-installer.exe / phpMyAdmin / themes.php < prev    next >
PHP Script  |  2008-06-23  |  1KB  |  46 lines

  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4.  *
  5.  * @version $Id: themes.php 10239 2007-04-01 09:51:41Z cybot_tm $
  6.  */
  7.  
  8. /**
  9.  * get some globals
  10.  */
  11. require_once './libraries/common.inc.php';
  12.  
  13. /* Theme Select */
  14. $path_to_themes = $cfg['ThemePath'] . '/';
  15.  
  16. /* set language and charset */
  17. require_once './libraries/header_http.inc.php';
  18.  
  19. /* HTML header */
  20. $page_title = 'phpMyAdmin - ' . $strTheme;
  21. require './libraries/header_meta_style.inc.php';
  22. ?>
  23. <script type="text/javascript" language="javascript">
  24. // <![CDATA[
  25. function takeThis(what){
  26.     if (window.opener && window.opener.document.forms['setTheme'].elements['set_theme']) {
  27.         window.opener.document.forms['setTheme'].elements['set_theme'].value = what;
  28.         window.opener.document.forms['setTheme'].submit();
  29.         self.close();
  30.     } else {
  31.         alert('<?php echo sprintf($strNoThemeSupport, $cfg['ThemePath']); ?>');
  32.         self.close();
  33.     }
  34. }
  35. // ]]>
  36. </script>
  37. </head>
  38.  
  39. <body id="bodythemes">
  40. <h1>phpMyAdmin - <?php echo $strTheme; ?></h1>
  41. <?php
  42. $_SESSION['PMA_Theme_Manager']->printPreviews();
  43. ?>
  44. </body>
  45. </html>
  46.