if (@file_exists($tmp_file)) { include $tmp_file; } // end of include theme_print.css.php } else { /************************************************************************************ * RIGHT FRAME ************************************************************************************/ // 2004-05-30: Michael Keck (mail@michaelkeck.de) // Check, if theme_right.css.php exists and include $tmp_file = $GLOBALS['cfg']['ThemePath'] . '/' . $theme . '/css/theme_right.css.php'; if (@file_exists($tmp_file)) { include $tmp_file; } // end of include theme_right.css.php echo PMA_SQP_buildCssData(); } ?> /* Calendar */ table.calendar { width: 100%; } table.calendar td { text-align: center; } table.calendar td a { display: block; }
/** * load css (send to stdout, normaly the browser) * * @uses $this->getPath() * @uses $this->types * @uses PMA_SQP_buildCssData() * @uses file_exists() * @uses in_array() * @param string $type left, right or print */ function loadCss(&$type) { if (empty($type) || !in_array($type, $this->types)) { $type = 'left'; } if ($type == 'right') { echo PMA_SQP_buildCssData(); } $_css_file = $this->getPath() . '/css/theme_' . $type . '.css.php'; if (!file_exists($_css_file)) { return false; } if ($GLOBALS['text_dir'] === 'ltr') { $right = 'right'; $left = 'left'; } else { $right = 'left'; $left = 'right'; } include $_css_file; return true; }
/** * load css (send to stdout, normally the browser) * * @access public * @param string $type left, right or print * * @return bool */ function loadCss(&$type) { if (empty($type) || !in_array($type, $this->types)) { $type = 'left'; } if ($type == 'right') { echo PMA_SQP_buildCssData(); } $_css_file = $this->getPath() . '/css/theme_' . $type . '.css.php'; if (!file_exists($_css_file)) { return false; } if ($GLOBALS['text_dir'] === 'ltr') { $right = 'right'; $left = 'left'; } else { $right = 'left'; $left = 'right'; } include $_css_file; if ($type != 'print') { $_sprites_data_file = $this->getPath() . '/sprites.lib.php'; $_sprites_css_file = './themes/sprites.css.php'; if (file_exists($_sprites_data_file) && is_readable($_sprites_data_file) && (file_exists($_sprites_css_file) && is_readable($_sprites_css_file))) { include $_sprites_data_file; include $_sprites_css_file; } } return true; }