XHTML fixes
[phpmyadmin/crack.git] / themes.php
blobd12c9fe85a8e1c23879dd1407d5cef5c2fb7db95
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @version $Id$
6 */
8 /**
9 * get some globals
11 require_once './libraries/common.inc.php';
13 /* Theme Select */
14 $path_to_themes = $cfg['ThemePath'] . '/';
16 /* set language and charset */
17 require_once './libraries/header_http.inc.php';
19 /* HTML header */
20 $page_title = 'phpMyAdmin - ' . $strTheme;
21 require './libraries/header_meta_style.inc.php';
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();
35 // ]]>
36 </script>
37 </head>
39 <body id="bodythemes">
40 <h1>phpMyAdmin - <?php echo $strTheme; ?></h1>
41 <?php
42 $_SESSION['PMA_Theme_Manager']->printPreviews();
44 </body>
45 </html>