home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 February (DVD) / PCWorld_2008-02_DVD.iso / v cisle / PHP / PHP.exe / xampp-win32-1.6.5-installer.exe / phpMyAdmin / libraries / header_printview.inc.php < prev    next >
Encoding:
PHP Script  |  2007-12-20  |  2.6 KB  |  72 lines

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