Documentation TYPO3 par Ameos

phpmyadmin.css.php

00001 <?php
00002 /* $Id: phpmyadmin.css.php,v 2.35 2005/08/16 17:49:57 lem9 Exp $ */
00003 // vim: expandtab sw=4 ts=4 sts=4:
00004 
00005 chdir('..');
00006 $is_minimum_common = TRUE;
00007 require_once('./libraries/grab_globals.lib.php');
00008 require_once('./libraries/common.lib.php');
00009 require_once('./libraries/sqlparser.lib.php');
00010 
00011 // Gets the default font sizes
00012 // garvin: TODO: Should be optimized to not include the whole common.lib.php bunch
00013 // but only functions used to determine browser heritage.
00014 PMA_setFontSizes();
00015 
00016 $ctype = 'css';
00017 require_once('./libraries/header_http.inc.php');
00018 unset( $ctype );
00019 ?>
00020 
00021 /* Calendar */
00022 table.calendar      { width: 100%; }
00023 table.calendar td   { text-align: center; }
00024 table.calendar td a { display: block; }
00025 
00026 table.calendar td a:hover {
00027     background-color: <?php echo $GLOBALS['cfg']['BrowsePointerColor']; ?>;
00028 }
00029 
00030 table.calendar th {
00031     background-color: <?php echo $GLOBALS['cfg']['ThBgcolor']; ?>;
00032 }
00033 
00034 table.calendar td.selected {
00035     background-color: <?php echo $GLOBALS['cfg']['BrowseMarkerColor']; ?>;
00036 }
00037 
00038 img.calendar { border: none; }
00039 form.clock   { text-align: center; }
00040 /* end Calendar */
00041 
00042 .nowrap    { white-space: nowrap; }
00043 div.nowrap { margin: 0; padding: 0; }
00044 
00045 li      { padding-bottom: 1em; }
00046 li form { display: inline; }
00047 
00048 /* buttons in some browsers (eg. Konqueror) are block elements, this breaks design */
00049 button { display: inline; }
00050 
00051 /* Textarea */
00052 textarea { overflow: auto; }
00053 
00054 .nospace { margin: 0; padding: 0; }
00055 
00056 /* topmenu */
00057 #topmenu {
00058     font-weight: bold;
00059 }
00060 
00061 /* default tab styles */
00062 .tab, .tabcaution, .tabactive {
00063     margin-right: 0.1em;
00064     margin-left: 0.1em;
00065 }
00066 
00067 /* disbaled tabs */
00068 span.tab {
00069     color: #666666;
00070 }
00071 
00072 /* disabled drop/empty tabs */
00073 span.tabcaution {
00074     color: #ff6666;
00075 }
00076 
00077 /* enabled drop/empty tabs */
00078 a.tabcaution {
00079     color: #FF0000;
00080 }
00081 a.tabcaution:hover {
00082     color: #FFFFFF;
00083     background-color: #FF0000;
00084 }
00085 
00086 <?php if ( $GLOBALS['cfg']['LightTabs'] ) { ?>
00087 /* active tab */
00088 a.tabactive {
00089     border-bottom: 0.1em solid black;
00090     color: black;
00091 }
00092 <?php } else { ?>
00093 #topmenu {
00094     margin-top: 0.5em;
00095     border-bottom: 0.1em solid black;
00096     padding: 0.1em 0.3em 0.1em 0.3em;
00097 }
00098 
00099 /* default tab styles */
00100 .tab, .tabcaution, .tabactive {
00101     background-color: #E5E5E5;
00102     border: 0.1em solid silver;
00103     border-bottom: 0.1em solid black;
00104     border-radius-topleft: 0.5em;
00105     border-radius-topright: 0.5em;
00106     -moz-border-radius-topleft: 0.5em;
00107     -moz-border-radius-topright: 0.5em;
00108     padding: 0.1em 0.2em 0.1em 0.2em;
00109 }
00110 
00111 /* enabled hover/active tabs */
00112 a.tab:hover, a.tabcaution:hover, .tabactive {
00113     margin-right: 0;
00114     margin-left: 0;
00115     padding: 0.3em 0.3em 0.1em 0.3em;
00116 }
00117 a.tab:hover, .tabactive {
00118     background-color: #CCCCCC;
00119 }
00120 
00121 /* disabled drop/empty tabs */
00122 span.tab, span.tabcaution {
00123     cursor: url(themes/original/img/error.ico), default;
00124 }
00125 <?php } ?>
00126 /* end topmenu */
00127 <?php
00128 
00129 $_valid_css = array( 'left', 'right', 'print' );
00130 if ( empty( $_REQUEST['js_frame'] ) || ! in_array( $_REQUEST['js_frame'], $_valid_css ) ) {
00131     $js_frame = 'left';
00132 } else {
00133     $js_frame = $_REQUEST['js_frame'];
00134 }
00135 unset( $_valid_css );
00136 
00137 if ( $js_frame == 'right' ) {
00138     echo PMA_SQP_buildCssData();
00139 }
00140 
00141 $_css_file = $GLOBALS['cfg']['ThemePath']
00142            . '/' . $GLOBALS['theme']
00143            . '/css/theme_' . $js_frame . '.css.php';
00144 
00145 if ( file_exists( $_css_file ) ) {
00146     include( $_css_file );
00147 }
00148 unset( $_css_file );
00149 ?>


Généré par Le spécialiste TYPO3 avec  doxygen 1.4.6