2 /* vim: set expandtab sw=4 ts=4 sts=4: */
11 // sometimes, we lose $_REQUEST['js_frame']
12 define('PMA_FRAME',empty($_REQUEST['js_frame']) ?
'right' : $_REQUEST['js_frame']);
14 define('PMA_MINIMUM_COMMON', true);
15 require_once './libraries/common.inc.php';
16 require_once './libraries/sqlparser.lib.php';
18 // MSIE 6 (at least some unpatched versions) has problems loading CSS
19 // when zlib_compression is on
20 if (PMA_USR_BROWSER_AGENT
== 'IE' && PMA_USR_BROWSER_VER
== '6'
21 && (ini_get('zlib.output_compression'))) {
22 @ini_set
('zlib.output_compression', 'Off');
25 if ($GLOBALS['text_dir'] === 'ltr') {
34 header('Content-Type: text/css; charset=ISO-8859-1');
36 // Cache output in client - the nocache query parameter makes sure that this
37 // file is reloaded when config changes
38 header('Expires: ' . gmdate('D, d M Y H:i:s', time() +
3600) . ' GMT');
42 font
-size
: <?php
echo (null !== $_SESSION['PMA_Config']->get('fontsize') ?
$_SESSION['PMA_Config']->get('fontsize') : $_COOKIE['pma_fontsize']); ?
>;
45 input
, select
, textarea
{
63 if ($_SESSION['PMA_Theme']->checkVersion('2.7.0')) {
77 /* server privileges */
79 #tablespecificuserrights td,
81 vertical
-align
: middle
;
83 /* END server privileges */
86 /* leave some space between icons and text */
88 vertical
-align
: middle
;
92 /* no extra space in table cells */
98 margin
-<?php
echo $right; ?
>: 0.3em
;
99 margin
-<?php
echo $left; ?
>: 0.6em
;
102 div
#tablestatistics {
103 border
-bottom
: 0.1em solid
#669999;
104 margin
-bottom
: 0.5em
;
105 padding
-bottom
: 0.5em
;
108 div
#tablestatistics table {
109 float: <?php
echo $left; ?
>;
110 margin
-bottom
: 0.5em
;
114 div
#tablestatistics table caption {
119 /* left frame content */
120 body
#body_leftFrame {
121 background
-color
: <?php
echo $GLOBALS['cfg']['LeftBgColor']; ?
>;
128 border
-bottom
: 0.1em solid
#669999;
129 margin
-bottom
: 0.5em
;
130 padding
-bottom
: 0.5em
;
133 div
#leftframelinks .icon {
134 vertical
-align
: middle
;
139 div
#leftframelinks a:hover {
140 background
-color
: #669999;
143 /* leftdatabaselist */
144 div
#left_tableList ul {
145 list-style
-type
: none
;
146 list-style
-position
: outside
;
149 background
-color
: <?php
echo $GLOBALS['cfg']['LeftBgColor']; ?
>;
152 div
#left_tableList li {
158 <?php
if ($GLOBALS['cfg']['LeftPointerEnable']) { ?
>
159 div
#left_tableList li:hover {
160 background
-color
: <?php
echo $GLOBALS['cfg']['LeftPointerColor']; ?
>;
164 div
#left_tableList img {
166 vertical
-align
: middle
;
169 div
#left_tableList ul ul {
172 border
-left
: 0.1em solid
#669999;
173 padding
-bottom
: 0.1em
;
174 border
-bottom
: 0.1em solid
#669999;
176 /* END left frame content */
180 body
#bodyquerywindow {
185 div
#querywindowcontainer {
191 div
#querywindowcontainer fieldset {
194 /* END querywindow */
200 div
[class=formelementrow
],
201 div
[id
=queryfieldscontainer
] {
202 border
: 1px solid transparent
;
205 div
#sqlquerycontainer {
211 div
#tablefieldscontainer {
217 div
#tablefieldscontainer select {
227 div
#queryboxcontainer div#bookmarkoptions {
233 fieldset
.formelement
{
240 /* revert for Gecko */
241 fieldset div
[class=formelement
] {
246 fieldset
.formelement input
,
247 fieldset
.formelement select
{
249 margin
-bottom
: 0.5em
;
251 /* revert for Gecko */
252 fieldset div
[class=formelement
] input
,
253 fieldset div
[class=formelement
] select
{
260 table
.calendar
{ width
: 100%
; }
261 table
.calendar td
{ text
-align
: center
; }
262 table
.calendar td a
{ display
: block
; }
264 table
.calendar td a
:hover
{
265 background
-color
: <?php
echo $GLOBALS['cfg']['BrowsePointerColor']; ?
>;
269 background
-color
: <?php
echo $GLOBALS['cfg']['ThBgcolor']; ?
>;
272 table
.calendar td
.selected
{
273 background
-color
: <?php
echo $GLOBALS['cfg']['BrowseMarkerColor']; ?
>;
276 img
.calendar
{ border
: none
; }
277 form
.clock
{ text
-align
: center
; }
281 /* Options, eg. on import page */
283 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorOne']; ?
>;
286 background
-color
: transparent
;
289 /* buttons in some browsers (eg. Konqueror) are block elements, this breaks design */
290 button
{ display
: inline
; }
293 textarea
{ overflow
: auto
; }
298 /* Gecko 1.7 bug (FF 1.0) */
300 border
: 1px solid
<?php
echo $GLOBALS['cfg']['RightBgColor']; ?
>;
305 list-style
-type
: none
;
314 vertical
-align
: middle
;
318 vertical
-align
: middle
;
322 /* default tab styles */
323 .tab
, .tabcaution
, .tabactive
{
325 margin
: 0.2em
0.2em
0 0.2em
;
326 padding
: 0.2em
0.2em
0 0.2em
;
335 /* disabled drop/empty tabs */
340 /* enabled drop/empty tabs */
346 background
-color
: #FF0000;
349 <?php
if ($GLOBALS['cfg']['LightTabs']) { ?
>
357 padding
: 0.1em
0.3em
0.1em
0.3em
;
361 border
-bottom
: 1pt solid black
;
364 /* default tab styles */
365 .tab
, .tabcaution
, .tabactive
{
366 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorOne']; ?
>;
367 border
: 1pt solid
<?php
echo $GLOBALS['cfg']['BgcolorTwo']; ?
>;
369 border
-top
-left
-radius
: 0.4em
;
370 border
-top
-right
-radius
: 0.4em
;
373 /* enabled hover/active tabs */
374 a
.tab
:hover
, a
.tabcaution
:hover
, .tabactive
, .tabactive
:hover
{
376 padding
: 0.2em
0.4em
0.2em
0.4em
;
377 text
-decoration
: none
;
380 a
.tab
:hover
, .tabactive
{
381 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorTwo']; ?
>;
384 /* disabled drop/empty tabs */
385 span
.tab
, span
.tabcaution
{
386 cursor
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/error
.ico
), default;
397 padding
: 0.1em
0.5em
0.1em
0.5em
;
403 /* odd table rows 1,3,5,7,... */
406 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorOne']; ?
>;
409 /* even table rows 2,4,6,8,... */
412 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorTwo']; ?
>;
415 /* marked table rows */
418 background
-color
: <?php
echo $GLOBALS['cfg']['BrowseMarkerColor']; ?
>;
421 /* hovered table rows */
424 table tr
.odd
:hover th
,
425 table tr
.even
:hover th
,
428 background
-color
: <?php
echo $GLOBALS['cfg']['BrowsePointerColor']; ?
>;
435 /* IE doesnt handles 'pre' right */
436 table
[class=value
] {
441 font
-family
: "Courier New", Courier
, monospace
;
453 div
#serverstatus table caption a.top {
457 div
#serverstatus div#serverstatusqueriesdetails table,
458 div
#serverstatus table#serverstatustraffic,
459 div
#serverstatus table#serverstatusconnections {
463 #serverstatussection,
467 div
#serverstatussection table {
471 div
#serverstatussection table .name {
474 div
#serverstatussection table .value {
478 div
#serverstatus table tbody td.descr a,
479 div
#serverstatus table .tblFooters a {
482 div
#serverstatus div#statuslinks a:before,
483 div
#serverstatus div#sectionlinks a:before,
484 div
#serverstatus table tbody td.descr a:before,
485 div
#serverstatus table .tblFooters a:before {
488 div
#serverstatus div#statuslinks a:after,
489 div
#serverstatus div#sectionlinks a:after,
490 div
#serverstatus table tbody td.descr a:after,
491 div
#serverstatus table .tblFooters a:after {
494 /* end serverstatus */
501 } // end styles 2.7.0
503 if ($_SESSION['PMA_Theme']->checkVersion('2.7.1')) {
506 /********************/
507 /* NEW in PMA 2.7.1 */
508 /********************/
511 body
.loginform a
.logo
{
525 background
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/logo_right
.png
);
526 background
-position
: <?php
echo $right; ?
> bottom
;
527 background
-repeat
: no
-repeat
;
528 border
-bottom
: 1px solid silver
;
531 #mysqlmaininformation,
532 #pmamaininformation {
533 float: <?php
echo $left; ?
>;
538 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/item_
<?php
echo $GLOBALS['text_dir']; ?
>.png
);
539 vertical
-align
: middle
;
543 margin
-bottom
: 0.3em
;
548 <?php
if ($GLOBALS['cfg']['MainPageIconic']) { ?
>
549 /* iconic view for ul items */
550 li
#li_create_database {
551 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_newdb
.png
);
555 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_lang
.png
);
558 li
#li_select_mysql_collation,
559 li
#li_select_mysql_charset {
560 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_asci
.png
);
564 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_theme
.png
);
568 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_host
.png
);
572 /* list-style-image: url(<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_rights.png); */
576 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_status
.png
);
579 li
#li_mysql_variables{
580 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_vars
.png
);
583 li
#li_mysql_processes{
584 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_process
.png
);
587 li
#li_mysql_collations{
588 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_asci
.png
);
592 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_engine
.png
);
595 li
#li_mysql_binlogs {
596 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_tbl
.png
);
599 li
#li_mysql_databases {
600 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_db
.png
);
604 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_export
.png
);
608 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_import
.png
);
611 li
#li_change_password {
612 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_passwd
.png
);
616 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_loggoff
.png
);
620 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_docs
.png
);
624 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/php_sym
.png
);
628 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_home
.png
);
631 li
#li_mysql_privilegs{
632 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_rights
.png
);
635 li
#li_switch_dbstats {
636 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_dbstatistics
.png
);
639 li
#li_flush_privileges {
640 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_reload
.png
);
642 /* END iconic view for ul items */
643 <?php
} /* end if $GLOBALS['cfg']['MainPageIconic'] */ ?
>
646 #body_browse_foreigners {
647 background
-color
: <?php
echo $cfg['LeftBgColor']; ?
>;
648 margin
: 5px
5px
0 5px
;
652 background
-color
: <?php
echo $cfg['LeftBgColor']; ?
>;
662 border
: 0.1em solid black
;
665 #bodythemes a:hover img {
666 border
: 0.1em solid red
;
669 #fieldset_select_fields {
679 border
-top
: 0.1em solid silver
;
680 text
-align
: <?php
echo $right; ?
>;
683 #table_innodb_bufferpool_usage,
684 #table_innodb_bufferpool_activity {
685 float: <?php
echo $left; ?
>;
688 #div_mysql_charset_collations table {
689 float: <?php
echo $left; ?
>;
694 float: <?php
echo $left; ?
>;
699 float: <?php
echo $left; ?
>;
704 float: <?php
echo $left; ?
>;
710 float: <?php
echo $left; ?
>;
713 #qbe_div_table_list {
714 float: <?php
echo $left; ?
>;
718 float: <?php
echo $left; ?
>;
721 $GLOBALS['cfg']['BgOne'] = $GLOBALS['cfg']['BgcolorOne'];
722 $GLOBALS['cfg']['BgTwo'] = $GLOBALS['cfg']['BgcolorTwo'];
723 } // end styles 2.7.1
725 if ($_SESSION['PMA_Theme']->checkVersion('2.9')) {
728 /********************/
730 /********************/
732 <?php
if ($GLOBALS['cfg']['BrowseMarkerColor']) { ?
>
736 background
: <?php
echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?
>;
737 color
: <?php
echo $GLOBALS['cfg']['BrowseMarkerColor']; ?
>;
741 /* odd items 1,3,5,7,... */
743 background
: <?php
echo $GLOBALS['cfg']['BgOne']; ?
>;
746 /* even items 2,4,6,8,... */
748 background
: <?php
echo $GLOBALS['cfg']['BgTwo']; ?
>;
755 background
: <?php
echo $GLOBALS['cfg']['BrowsePointerBackground']; ?
>;
756 color
: <?php
echo $GLOBALS['cfg']['BrowsePointerColor']; ?
>;
760 * marks table rows/cells if the db field is in a where condition
766 border
: 1px solid
<?php
echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?
>;
771 float: <?php
echo $left; ?
>;
778 body
.loginform div
.container
{
779 text
-align
: <?php
echo $left; ?
>;
784 #body_leftFrame #list_server {
785 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_host
.png
);
786 list-style
-position
: inside
;
787 list-style
-type
: none
;
792 #body_leftFrame #list_server li {
800 $_SESSION['PMA_Theme_Manager']->printCss(PMA_FRAME
);