sorry, wrong version checked in
[phpmyadmin/arisferyanto.git] / libraries / header_meta_style.inc.php
blob0728def1267564ae4119a3543f5a3444dbda15f7
1 <?php
2 /* $Id$ */
3 // vim: expandtab sw=4 ts=4 sts=4:
5 /**
6 * Sends the beginning of the html page then returns to the calling script
7 */
8 // Gets the font sizes to use
9 PMA_setFontSizes();
10 // Defines the cell alignment values depending on text direction
11 if ($GLOBALS['text_dir'] == 'ltr') {
12 $GLOBALS['cell_align_left'] = 'left';
13 $GLOBALS['cell_align_right'] = 'right';
14 } else {
15 $GLOBALS['cell_align_left'] = 'right';
16 $GLOBALS['cell_align_right'] = 'left';
18 // removes the bug with the horizontal scrollbar in IE (it's allways shown, if need it or not)
19 echo "<?xml version=\"1.0\" encoding=\"" . $GLOBALS['charset'] . "\"?".">";
22 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
23 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
24 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][2]; ?>" lang="<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][2]; ?>" dir="<?php echo $GLOBALS['text_dir']; ?>">
25 <head>
26 <link rel="icon" href="./favicon.ico" type="image/x-icon" />
27 <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
28 <title><?php
29 if(!empty($page_title))
30 echo htmlspecialchars($page_title);
31 else
32 echo 'phpMyAdmin';
33 ?></title>
34 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $GLOBALS['charset']; ?>" />
35 <?php
36 if (!empty($GLOBALS['cfg']['PmaAbsoluteUri'])) {
37 echo '<base href="' . $GLOBALS['cfg']['PmaAbsoluteUri'] . '" />' . "\n";
40 <link rel="stylesheet" type="text/css" href="<?php echo defined('PMA_PATH_TO_BASEDIR') ? PMA_PATH_TO_BASEDIR : './'; ?>css/phpmyadmin.css.php?<?php echo PMA_generate_common_url(); ?>&amp;js_frame=<?php echo isset($print_view) ? 'print' : 'right'; ?>" />
41 <link rel="stylesheet" type="text/css" href="<?php echo defined('PMA_PATH_TO_BASEDIR') ? PMA_PATH_TO_BASEDIR : './'; ?>css/print.css?<?php echo PMA_generate_common_url(); ?>" media="print" />