* splitted the function "display_table" in 3 little functions with specific targets (top of the page/headers of the table/body of the table);

* added the function "set_display_mode" that defines which elements should be displayed while browsing a table (it fixes the bugs #458462 -Full texts botton disapear- and #444767 -Other cases for display=simple-).
   Marc Delisle drawed the buttons used to expand/collapase text/blob fields;
* fixed the empty page bug with php 3.0.9 thanks to the help of Graziano "Radio head" <dreamservice at libero.it>;
* fixed a bug in the csv export function.
This commit is contained in:
Loïc Chapeaux
2001-09-05 19:25:10 +00:00
parent 4d9173dafc
commit a2ed9915f8
4 changed files with 591 additions and 278 deletions

BIN
images/fulltext.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 B

BIN
images/partialtext.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

File diff suppressed because it is too large Load Diff

View File

@@ -5,7 +5,10 @@
/** /**
* Gets some core libraries and displays a top message if required * Gets some core libraries and displays a top message if required
*/ */
// Gets the language to use and put it in a cookie that will expire in 30
// days
require('./grab_globals.inc.php3'); require('./grab_globals.inc.php3');
setcookie('lang', $lang, time() + 60*60*24*30);
// Handles some variables that may have been sent by the calling script // Handles some variables that may have been sent by the calling script
if (isset($db)) { if (isset($db)) {
unset($db); unset($db);
@@ -231,7 +234,7 @@ if ($server > 0
<tr> <tr>
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td> <td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
<td> <td>
<a href="sql.php3?<?php echo $common_url_query; ?>&db=mysql&sql_query=<?php echo urlencode('SHOW STATUS'); ?>&display=simple"> <a href="sql.php3?<?php echo $common_url_query; ?>&db=mysql&sql_query=<?php echo urlencode('SHOW STATUS'); ?>">
<?php echo $strMySQLShowStatus; ?></a>&nbsp; <?php echo $strMySQLShowStatus; ?></a>&nbsp;
<?php echo show_docu('manual_Reference.html#SHOW') . "\n"; ?> <?php echo show_docu('manual_Reference.html#SHOW') . "\n"; ?>
</td> </td>
@@ -239,7 +242,7 @@ if ($server > 0
<tr> <tr>
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td> <td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
<td> <td>
<a href="sql.php3?<?php $common_url_query; ?>&db=mysql&sql_query=<?php echo urlencode('SHOW VARIABLES'); ?>&display=simple"> <a href="sql.php3?<?php $common_url_query; ?>&db=mysql&sql_query=<?php echo urlencode('SHOW VARIABLES'); ?>">
<?php echo $strMySQLShowVars;?></a>&nbsp; <?php echo $strMySQLShowVars;?></a>&nbsp;
<?php echo show_docu('manual_Performance.html#Performance') . "\n"; ?> <?php echo show_docu('manual_Performance.html#Performance') . "\n"; ?>
</td> </td>
@@ -252,7 +255,7 @@ if ($server > 0
<tr> <tr>
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td> <td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
<td> <td>
<a href="sql.php3?<?php echo $common_url_query; ?>&db=mysql&sql_query=<?php echo urlencode('SHOW PROCESSLIST'); ?>&display=simple"> <a href="sql.php3?<?php echo $common_url_query; ?>&db=mysql&sql_query=<?php echo urlencode('SHOW PROCESSLIST'); ?>">
<?php echo $strMySQLShowProcess; ?></a>&nbsp; <?php echo $strMySQLShowProcess; ?></a>&nbsp;
<?php echo show_docu('manual_Reference.html#SHOW') . "\n"; ?> <?php echo show_docu('manual_Reference.html#SHOW') . "\n"; ?>
</td> </td>
@@ -456,7 +459,7 @@ if (empty($cfgLang)) {
} }
?> ?>
</select> </select>
<input type="submit" value="Go"> <input type="submit" value="Go" />
</form> </form>
</td> </td>
</tr> </tr>