Only display Creation/Update timestamps when comments are wanted

This commit is contained in:
Garvin Hicking
2003-07-23 14:36:54 +00:00
parent 80cd46bcd4
commit 9e9af4df1a
3 changed files with 10 additions and 6 deletions

View File

@@ -8,6 +8,12 @@ $Source$
2003-07-23 Garvin Hicking <me@supergarv.de>
* css/phpmyadmin.css.php3: Removed 'lowercase' transform
(Bug #769827)
* libraries/display_export.lib.php3, libraries/export/sql.php3
Only print Update/Creation/Check time when the checkbox 'Include
Comments' is chosen. So it is now also possible to check that
box even though the relational features could be deactivated.
But all checks to relational comments will only use those if
the relation features work.
2003-07-22 Marc Delisle <lem9@users.sourceforge.net>
* lang/estonian update, thanks to finsoft@sourceforge.net.

View File

@@ -149,12 +149,10 @@ if (!empty($cfgRelation['relation'])) {
<?php
} // end relation
if ($cfgRelation['commwork']) {
?>
?>
<input type="checkbox" name="sql_comments" value="yes" id="checkbox_sql_use_comments" <?php PMA_exportCheckboxCheck('sql_comments'); ?> />
<label for="checkbox_sql_use_comments"><?php echo $strComments; ?></label><br />
<?php
} // end comments
if ($cfgRelation['mimework']) {
?>

View File

@@ -151,17 +151,17 @@ function PMA_getTableDef($db, $table, $crlf, $error_url, $do_relation = false, $
$auto_increment .= ' AUTO_INCREMENT=' . $tmpres['Auto_increment'] . ' ';
}
if (isset($tmpres['Create_time']) && !empty($tmpres['Create_time'])) {
if ($do_comments && isset($tmpres['Create_time']) && !empty($tmpres['Create_time'])) {
$schema_create .= '# ' . $GLOBALS['strStatCreateTime'] . ': ' . PMA_localisedDate(strtotime($tmpres['Create_time'])) . $crlf;
$new_crlf = '#' . $crlf . $crlf;
}
if (isset($tmpres['Update_time']) && !empty($tmpres['Update_time'])) {
if ($do_comments && isset($tmpres['Update_time']) && !empty($tmpres['Update_time'])) {
$schema_create .= '# ' . $GLOBALS['strStatUpdateTime'] . ': ' . PMA_localisedDate(strtotime($tmpres['Update_time'])) . $crlf;
$new_crlf = '#' . $crlf . $crlf;
}
if (isset($tmpres['Check_time']) && !empty($tmpres['Check_time'])) {
if ($do_comments && isset($tmpres['Check_time']) && !empty($tmpres['Check_time'])) {
$schema_create .= '# ' . $GLOBALS['strStatCheckTime'] . ': ' . PMA_localisedDate(strtotime($tmpres['Check_time'])) . $crlf;
$new_crlf = '#' . $crlf . $crlf;
}