Merge remote-tracking branch 'origin/master' into drizzle
[phpmyadmin.git] / themes.php
blob732f1e3082e6d327ce3e1f08b3632eb9abd1ef1d
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @package phpMyAdmin
6 */
8 /**
9 * get some globals
11 require './libraries/common.inc.php';
13 /* Theme Select */
14 $path_to_themes = $cfg['ThemePath'] . '/';
16 /* set language and charset */
17 require './libraries/header_http.inc.php';
19 /* HTML header */
20 $page_title = 'phpMyAdmin - ' . __('Theme');
21 require './libraries/header_meta_style.inc.php';
23 <script type="text/javascript" language="javascript">
24 // <![CDATA[
25 function takeThis(what)
27 if (window.opener && window.opener.document.forms['setTheme'].elements['set_theme']) {
28 window.opener.document.forms['setTheme'].elements['set_theme'].value = what;
29 window.opener.document.forms['setTheme'].submit();
30 self.close();
31 } else {
32 alert('<?php echo sprintf(__('No themes support; please check your configuration and/or your themes in directory %s.'), $cfg['ThemePath']); ?>');
33 self.close();
36 // ]]>
37 </script>
38 </head>
40 <body id="bodythemes">
41 <h1>phpMyAdmin - <?php echo __('Theme'); ?></h1>
42 <p><a href="<?php echo PMA_linkURL('http://www.phpmyadmin.net/home_page/themes.php'); ?>#pma_<?php echo preg_replace('/([0-9]*)\.([0-9]*)\..*/', '\1_\2', PMA_VERSION); ?>"><?php echo __('Get more themes!'); ?></a></p>
43 <?php
44 $_SESSION['PMA_Theme_Manager']->printPreviews();
46 </body>
47 </html>