home *** CD-ROM | disk | FTP | other *** search
/ Freelog 70 / Freelog070.iso / Internet / EasyPHP / easyphp1-8_setup.exe / {app} / phpmyadmin / css / phpmyadmin.css.php
Encoding:
PHP Script  |  2004-12-28  |  3.6 KB  |  163 lines

  1. <?php
  2. /* $Id: phpmyadmin.css.php,v 2.33 2004/12/28 14:21:48 nijel Exp $ */
  3. // vim: expandtab sw=4 ts=4 sts=4:
  4.  
  5. chdir('..');
  6. $is_minimum_common = TRUE;
  7. require_once('./libraries/grab_globals.lib.php');
  8. require_once('./libraries/common.lib.php');
  9. require_once('./libraries/sqlparser.lib.php');
  10.  
  11. // Gets the default font sizes
  12. // garvin: TODO: Should be optimized to not include the whole common.lib.php bunch
  13. // but only functions used to determine browser heritage.
  14. PMA_setFontSizes();
  15.  
  16. $ctype = 'css';
  17. require_once('./libraries/header_http.inc.php');
  18.  
  19. if (!isset($js_frame)) {
  20.     $js_frame = 'left';
  21. }
  22.  
  23. if ($js_frame == 'left') {
  24. /************************************************************************************
  25.  * LEFT FRAME
  26.  ************************************************************************************/
  27.     // 2004-05-30: Michael Keck (mail@michaelkeck.de)
  28.     //             Check, if theme_left.css.php exists and include
  29.     $tmp_file = $GLOBALS['cfg']['ThemePath'] . '/' . $theme . '/css/theme_left.css.php';
  30.     if (@file_exists($tmp_file)) {
  31.         include($tmp_file);
  32.     } // end of include theme_left.css.php
  33. } elseif ($js_frame == 'print') {
  34. /************************************************************************************
  35.  * PRINT VIEW
  36.  ************************************************************************************/
  37.     // 2004-05-30: Michael Keck (mail@michaelkeck.de)
  38.     //             Check, if theme_print.css.php exists and include
  39.     $tmp_file = $GLOBALS['cfg']['ThemePath'] . '/' . $theme . '/css/theme_print.css.php';
  40.     if (@file_exists($tmp_file)) {
  41.         include($tmp_file);
  42.     } // end of include theme_print.css.php
  43. } else {
  44. /************************************************************************************
  45.  * RIGHT FRAME
  46.  ************************************************************************************/
  47.     // 2004-05-30: Michael Keck (mail@michaelkeck.de)
  48.     //             Check, if theme_right.css.php exists and include
  49.     $tmp_file = $GLOBALS['cfg']['ThemePath'] . '/' . $theme . '/css/theme_right.css.php';
  50.     if (@file_exists($tmp_file)) {
  51.         include($tmp_file);
  52.     } // end of include theme_right.css.php
  53.     echo PMA_SQP_buildCssData();
  54. }
  55.  
  56. ?>
  57.  
  58. /* Calendar */
  59. table.calendar {
  60.     width: 100%;
  61. }
  62.  
  63. table.calendar td {
  64.     text-align: center;
  65. }
  66.  
  67. table.calendar td a {
  68.     display: block;
  69. }
  70.  
  71. table.calendar td a:hover {
  72.     background-color: <?php echo $GLOBALS['cfg']['BrowsePointerColor']; ?>;
  73. }
  74.  
  75. table.calendar th {
  76.     background-color: <?php echo $GLOBALS['cfg']['ThBgcolor']; ?>;
  77. }
  78.  
  79. table.calendar td.selected {
  80.     background-color: <?php echo $GLOBALS['cfg']['BrowseMarkerColor']; ?>;
  81. }
  82.  
  83. img.calendar {
  84.     border: none;
  85. }
  86.  
  87. form.clock {
  88.     text-align: center;
  89. }
  90.  
  91. .nowrap {
  92.     white-space: nowrap;
  93. }
  94.  
  95. div.nowrap {
  96.     margin: 0px;
  97.     padding: 0px;
  98. }
  99.  
  100. li {
  101.     padding-bottom: 1em;
  102. }
  103.  
  104. li form {
  105.     display: inline;
  106. }
  107.  
  108. ul.main {
  109.     margin: 0px;
  110.     padding-left:2em;
  111.     padding-right:2em;
  112. }
  113.  
  114. /* no longer needed
  115. ul.main li {
  116.     list-style-image: url(../images/dot_violet.png);
  117.     padding-bottom: 0.1em;
  118. }
  119. */
  120.  
  121. button {
  122.     /* buttons in some browsers (eg. Konqueror) are block elements, this breaks design */
  123.     display: inline;
  124. }
  125.  
  126. /* Tabs */
  127.  
  128. /* For both light and non light */
  129. .tab {
  130.     white-space: nowrap;
  131.     font-weight: bolder;
  132. }
  133.  
  134. /* For non light */
  135. td.tab {
  136.     width: 64px;
  137.     text-align: center;
  138.     background-color: #dfdfdf;
  139. }
  140.  
  141. td.tab a {
  142.     display: block;
  143. }
  144.  
  145. /* For light */
  146. div.tab { }
  147.  
  148. /* Highlight active tab */
  149. td.activetab {
  150.     background-color: silver;
  151. }
  152.  
  153. /* Textarea */
  154.  
  155. textarea {
  156.     overflow: auto;
  157. }
  158.  
  159. .nospace {
  160.     margin: 0px;
  161.     padding: 0px;
  162. }
  163.