home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / xampp-win32-1.6.7-installer.exe / phpMyAdmin / libraries / header_printview.inc.php < prev    next >
Encoding:
PHP Script  |  2008-06-23  |  2.6 KB  |  75 lines

  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4.  *
  5.  * @version $Id: header_printview.inc.php 11326 2008-06-17 21:32:48Z lem9 $
  6.  */
  7. if (! defined('PHPMYADMIN')) {
  8.     exit;
  9. }
  10.  
  11. /**
  12.  * Gets a core script and starts output buffering work
  13.  */
  14. require_once './libraries/common.inc.php';
  15. require_once './libraries/ob.lib.php';
  16. PMA_outBufferPre();
  17.  
  18. // Check parameters
  19.  
  20. PMA_checkParameters(array('db', 'full_sql_query'));
  21.  
  22.  
  23. // garvin: For re-usability, moved http-headers
  24. // to a seperate file. It can now be included by libraries/header.inc.php,
  25. // querywindow.php.
  26.  
  27. require_once './libraries/header_http.inc.php';
  28.  
  29. /**
  30.  * Sends the beginning of the html page then returns to the calling script
  31.  */
  32. // Defines the cell alignment values depending on text direction
  33. if ($text_dir == 'ltr') {
  34.     $cell_align_left  = 'left';
  35.     $cell_align_right = 'right';
  36. } else {
  37.     $cell_align_left  = 'right';
  38.     $cell_align_right = 'left';
  39. }
  40. ?>
  41. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  42.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  43. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $available_languages[$lang][2]; ?>" lang="<?php echo $available_languages[$lang][2]; ?>" dir="<?php echo $text_dir; ?>">
  44.  
  45. <head>
  46. <link rel="icon" href="./favicon.ico" type="image/x-icon" />
  47. <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
  48. <title><?php echo $strSQLResult; ?> - phpMyAdmin <?php echo PMA_VERSION ?></title>
  49. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
  50. <link rel="stylesheet" type="text/css" href="phpmyadmin.css.php?<?php echo PMA_generate_common_url('', ''); ?>&js_frame=print&nocache=<?php echo $_SESSION['PMA_Config']->getThemeUniqueValue(); ?>" />
  51. </style>
  52. </head>
  53.  
  54. <body bgcolor="#ffffff">
  55. <h1><?php echo $strSQLResult; ?></h1>
  56. <p>
  57.     <b><?php echo $strHost; ?>:</b> <?php echo $cfg['Server']['verbose'] ? $cfg['Server']['verbose'] : $cfg['Server']['host'] . ((!empty($cfg['Server']['port'])) ? ':' . $cfg['Server']['port'] : ''); ?><br />
  58.     <b><?php echo $strDatabase; ?>:</b> <?php echo htmlspecialchars($db); ?><br />
  59.     <b><?php echo $strGenTime; ?>:</b> <?php echo PMA_localisedDate(); ?><br />
  60.     <b><?php echo $strGenBy; ?>:</b> phpMyAdmin <?php echo PMA_VERSION; ?> / MySQL <?php echo PMA_MYSQL_STR_VERSION; ?><br />
  61.     <b><?php echo $strSQLQuery; ?>:</b> <?php echo htmlspecialchars($full_sql_query); ?>;
  62.     <?php if (isset($num_rows)) { ?><br />
  63.     <b><?php echo $strRows; ?>:</b> <?php echo $num_rows; ?>
  64.     <?php } ?>
  65. </p>
  66.  
  67.  
  68. <?php
  69.  
  70. /**
  71.  * Sets a variable to remember headers have been sent
  72.  */
  73. $is_header_sent = TRUE;
  74. ?>
  75.