tbl_properties reorg.

This commit is contained in:
Marc Delisle
2001-06-05 17:05:29 +00:00
parent 28b7dcdf92
commit c16e12e899
22 changed files with 93 additions and 46 deletions

View File

@@ -8,6 +8,7 @@ $Source$
2001-06-05 Marc Delisle <lem9@users.sourceforge.net> 2001-06-05 Marc Delisle <lem9@users.sourceforge.net>
* tbl_properties, tbl_printview: quote Comment field * tbl_properties, tbl_printview: quote Comment field
* bug 430288: bad parsing of from | FROM * bug 430288: bad parsing of from | FROM
* tbl_properties.php3 reorganization
2001-06-04 Marc Delisle <lem9@users.sourceforge.net> 2001-06-04 Marc Delisle <lem9@users.sourceforge.net>
* tbl_change, tbl_replace: SaveAsNewRow * tbl_change, tbl_replace: SaveAsNewRow

View File

@@ -205,4 +205,5 @@ $strColumn = "Column";//to translate
$strAnyColumn = "Any Column";//to translate $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate $strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate $strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
?> ?>

View File

@@ -204,4 +204,5 @@ $strColumn = "Column";//to translate
$strAnyColumn = "Any Column";//to translate $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate $strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate $strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
?> ?>

View File

@@ -184,4 +184,5 @@ $strColumn = "Column";//to translate
$strAnyColumn = "Any Column";//to translate $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate $strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate $strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
?> ?>

View File

@@ -189,4 +189,5 @@ $strColumn = "Column";//to translate
$strAnyColumn = "Any Column";//to translate $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate $strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate $strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
?> ?>

View File

@@ -189,4 +189,5 @@ $strColumn = "Column";//to translate
$strAnyColumn = "Any Column";//to translate $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate $strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate $strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
?> ?>

View File

@@ -202,4 +202,5 @@ $strColumn = "Column";//to translate
$strAnyColumn = "Any Column";//to translate $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate $strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate $strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
?> ?>

View File

@@ -205,4 +205,5 @@ $strColumn = "Column";//to translate
$strAnyColumn = "Any Column";//to translate $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate $strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate $strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
?> ?>

View File

@@ -192,4 +192,5 @@ $strColumn = "Column";//to translate
$strAnyColumn = "Any Column";//to translate $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate $strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate $strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
?> ?>

View File

@@ -217,4 +217,5 @@ $strColumn = "Column";
$strAnyColumn = "Any Column"; $strAnyColumn = "Any Column";
$strColumnEmpty = "The columns names are empty!"; $strColumnEmpty = "The columns names are empty!";
$strInsertAsNewRow="Insert as new row"; $strInsertAsNewRow="Insert as new row";
$strTableMaintenance="Table maintenance";
?> ?>

View File

@@ -151,7 +151,6 @@ $strMySQLShowProcess = "Afficher les processus";
$strLogout = "Quitter"; $strLogout = "Quitter";
$strQBE = "Requ<EFBFBD>te par un exemple"; $strQBE = "Requ<EFBFBD>te par un exemple";
$strBack = "Retour"; //JPD $strBack = "Retour"; //JPD
$strTableComments = "Commentaires Tables"; //JPD
$strOr = "ou"; //JPD $strOr = "ou"; //JPD
$strSelectNumRows = "dans la requ<71>te"; //JPD $strSelectNumRows = "dans la requ<71>te"; //JPD
$strCompleteInserts = "INSERT d<>taill<6C>s"; //JPD $strCompleteInserts = "INSERT d<>taill<6C>s"; //JPD
@@ -235,4 +234,5 @@ $strColumn = "Column";//to translate
$strAnyColumn = "Any Column";//to translate $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate $strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow="Ins<EFBFBD>rer ce nouvel enregistrement"; $strInsertAsNewRow="Ins<EFBFBD>rer ce nouvel enregistrement";
$strTableMaintenance="Maintenance de la table";
?> ?>

View File

@@ -199,4 +199,5 @@ $strColumn = "Column";//to translate
$strAnyColumn = "Any Column";//to translate $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate $strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate $strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
?> ?>

View File

@@ -203,4 +203,5 @@ $strColumn = "Column";//to translate
$strAnyColumn = "Any Column";//to translate $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate $strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate $strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
?> ?>

View File

@@ -184,4 +184,5 @@ $strColumn = "Column";//to translate
$strAnyColumn = "Any Column";//to translate $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate $strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate $strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
?> ?>

View File

@@ -194,4 +194,5 @@ $strColumn = "Column";//to translate
$strAnyColumn = "Any Column";//to translate $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate $strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate $strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
?> ?>

View File

@@ -191,4 +191,5 @@ $strColumn = "Column";//to translate
$strAnyColumn = "Any Column";//to translate $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate $strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate $strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
?> ?>

View File

@@ -201,4 +201,5 @@ $strColumn = "Column";//to translate
$strAnyColumn = "Any Column";//to translate $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate $strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate $strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
?> ?>

View File

@@ -201,4 +201,5 @@ $strColumn = "Column";//to translate
$strAnyColumn = "Any Column";//to translate $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate $strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate $strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
?> ?>

View File

@@ -203,4 +203,5 @@ $strColumn = "Column";//to translate
$strAnyColumn = "Any Column";//to translate $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate $strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate $strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
?> ?>

View File

@@ -215,4 +215,5 @@ $strColumn = "Column";//to translate
$strAnyColumn = "Any Column";//to translate $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate $strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate $strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
?> ?>

View File

@@ -215,4 +215,5 @@ $strColumn = "Column";//to translate
$strAnyColumn = "Any Column";//to translate $strAnyColumn = "Any Column";//to translate
$strColumnEmpty = "The columns names are empty!";//to translate $strColumnEmpty = "The columns names are empty!";//to translate
$strInsertAsNewRow=" Insert as new row "; //to translate $strInsertAsNewRow=" Insert as new row "; //to translate
$strTableMaintenance=" Table maintenance "; //to translate
?> ?>

View File

@@ -23,41 +23,9 @@ if(MYSQL_MAJOR_VERSION == "3.23")
$result = mysql_query("ALTER TABLE $table comment='$comment'") or mysql_die(); $result = mysql_query("ALTER TABLE $table comment='$comment'") or mysql_die();
$result = mysql_query("SHOW TABLE STATUS LIKE '$table'") or mysql_die(); $result = mysql_query("SHOW TABLE STATUS LIKE '$table'") or mysql_die();
$row = mysql_fetch_array($result); $row = mysql_fetch_array($result);
//Fix to Comment editing so that you can add comments - 2 May 2001 - Robbat2 if (!empty($row['Comment']))
?> echo "<i>" . $row['Comment'] . "</i><br><br>\n";
<form method='post' action='tbl_properties.php3'>
<input type="hidden" name="server" value="<?php echo $server;?>">
<input type="hidden" name="lang" value="<?php echo $lang;?>">
<input type="hidden" name="db" value="<?php echo $db;?>">
<input type="hidden" name="table" value="<?php echo $table;?>">
<?php
echo "$strTableComments: <input type='text' name='comment' value='" . $row['Comment'] . "'><input type='submit' name='submitcomment' value='$strGo'></form>";
//BEGIN - Table Type - 2 May 2001 - Robbat2
if(isset($submittype))
$result = mysql_query("ALTER TABLE $table TYPE=$tbl_type") or mysql_die();
$result = mysql_query("SHOW TABLE STATUS LIKE '$table'") or mysql_die();
$row = mysql_fetch_array($result);
$tbl_type=strtoupper($row['Type']);
?>
<form method='post' action='tbl_properties.php3'>
<input type="hidden" name="server" value="<?php echo $server;?>">
<input type="hidden" name="lang" value="<?php echo $lang;?>">
<input type="hidden" name="db" value="<?php echo $db;?>">
<input type="hidden" name="table" value="<?php echo $table;?>">
<?php echo $strTableType.":";?>
<select name='tbl_type'>
<option <?php if($tbl_type == "BDB") echo 'selected';?> value="BDB">BerkeleyDB</option>
<?php //Not in MySQL yet <option <?php if($tbl_type == "GEMINI") echo 'selected';? >value="GEMINI">Gemini</option> ?>
<option <?php if($tbl_type == "HEAP") echo 'selected';?> value="HEAP">Heap</option>
<option <?php if($tbl_type == "ISAM") echo 'selected';?> value="ISAM">ISAM</option>
<?php //Not in MySQL yet <option <?php if($tbl_type == "INNODB") echo 'selected';? > value="InnoDB">InnoDB</option> ?>
<option <?php if($tbl_type == "MRG_MYISAM") echo 'selected';?> value="MERGE">Merge</option>
<option <?php if($tbl_type == "MYISAM") echo 'selected';?> value="MYISAM">MyISAM</option>
</select>
<input type='submit' name='submittype' value='<?php echo $strGo; ?>'></form>
<?php
//END - Table Type - 2 May 2001 - Robbat2
} }
$result = mysql_query("SHOW KEYS FROM $table") or mysql_die(); $result = mysql_query("SHOW KEYS FROM $table") or mysql_die();
@@ -68,7 +36,6 @@ while($row = mysql_fetch_array($result))
$primary .= "$row[Column_name], "; $primary .= "$row[Column_name], ";
$result = mysql_query("SHOW FIELDS FROM $table") or mysql_die(); $result = mysql_query("SHOW FIELDS FROM $table") or mysql_die();
?> ?>
<table border=<?php echo $cfgBorder;?>> <table border=<?php echo $cfgBorder;?>>
<TR> <TR>
@@ -229,13 +196,14 @@ if($cfgBookmark['db'] && $cfgBookmark['table'])
<input type="submit" name="SQL" value="<?php echo $strGo; ?>"> <input type="submit" name="SQL" value="<?php echo $strGo; ?>">
</form> </form>
<li><a href="sql.php3?sql_query=<?php echo urlencode("SELECT * FROM $table");?>&pos=0&<?php echo $query;?>"><?php echo $strBrowse; ?></a></li> <li><table><tr>
<li><a href="sql.php3?sql_query=<?php echo urlencode("CHECK TABLE $table");?>&display=bkmOnly&<?php echo $query;?>"><?php echo $strCheckTable; ?></a>&nbsp;<?php echo show_docu("manual_Reference.html#CHECK_TABLE"); ?></li> <td>
<li><a href="sql.php3?sql_query=<?php echo urlencode("ANALYZE TABLE $table");?>&display=bkmOnly&<?php echo $query;?>"><?php echo $strAnalyzeTable; ?></a>&nbsp;<?php echo show_docu("manual_Reference.html#ANALYZE_TABLE"); ?></li> <a href="sql.php3?sql_query=<?php echo urlencode("SELECT * FROM $table");?>&pos=0&<?php echo $query;?>">
<li><a href="sql.php3?sql_query=<?php echo urlencode("REPAIR TABLE $table");?>&display=bkmOnly&<?php echo $query;?>"><?php echo $strRepairTable; ?></a>&nbsp;<?php echo show_docu("manual_Reference.html#REPAIR_TABLE"); ?></li> <?php echo "<b>" . $strBrowse. "<b>"; ?></a></td>
<li><a href="sql.php3?sql_query=<?php echo urlencode("OPTIMIZE TABLE $table");?>&display=bkmOnly&<?php echo $query;?>"><?php echo $strOptimizeTable; ?></a>&nbsp;<?php echo show_docu("manual_Reference.html#OPTIMIZE_TABLE"); ?></li> <td>
<li><a href="tbl_select.php3?<?php echo $query;?>"><?php echo $strSelect; ?></a></li> <a href="tbl_select.php3?<?php echo $query;?>"><?php echo "<b>" . $strSelect . "</b>"; ?></a></td>
<li><a href="tbl_change.php3?<?php echo $query;?>"><?php echo $strInsert; ?></a></li> <td>
<a href="tbl_change.php3?<?php echo $query;?>"><?php echo "<b>" . $strInsert. "</b>"; ?></a></td></tr></table></li>
<li><form method="post" action="tbl_addfield.php3"> <input type="hidden" name="server" value="<?php echo $server;?>"> <li><form method="post" action="tbl_addfield.php3"> <input type="hidden" name="server" value="<?php echo $server;?>">
<input type="hidden" name="lang" value="<?php echo $lang;?>"> <input type="hidden" name="lang" value="<?php echo $lang;?>">
<input type="hidden" name="db" value="<?php echo $db;?>"> <input type="hidden" name="db" value="<?php echo $db;?>">
@@ -321,9 +289,68 @@ echo " </select>\n";
<input type="submit" value="<?php echo $strGo;?>"> <input type="submit" value="<?php echo $strGo;?>">
</form> </form>
</ul> <li><table><tr><td><?php echo $strTableMaintenance . ":"; ?> </td>
</div> <td><a href="sql.php3?sql_query=<?php echo urlencode("CHECK TABLE $table");?>&display=simple&<?php echo $query;?>">
<?php <?php echo $strCheckTable; ?></a>
&nbsp;<?php echo show_docu("manual_Reference.html#CHECK_TABLE"); ?>
</td>
<td><a href="sql.php3?sql_query=<?php echo urlencode("ANALYZE TABLE $table");?>&display=simple&<?php echo $query;?>">
<?php echo $strAnalyzeTable; ?>
</a>&nbsp;<?php echo show_docu("manual_Reference.html#ANALYZE_TABLE");?>
</td></tr> <tr> <td></td>
<td> <a href="sql.php3?sql_query=<?php echo urlencode("REPAIR TABLE $table");?>&display=simple&<?php echo $query;?>">
<?php echo $strRepairTable; ?>
</a>&nbsp;<?php echo show_docu("manual_Reference.html#REPAIR_TABLE"); ?>
</td>
<td><a href="sql.php3?sql_query=<?php echo urlencode("OPTIMIZE TABLE $table");?>&display=simple&<?php echo $query;?>">
<?php echo $strOptimizeTable; ?>
</a>&nbsp;<?php echo show_docu("manual_Reference.html#OPTIMIZE_TABLE");
?> </td> </tr> </table></li>
<?php
if(MYSQL_MAJOR_VERSION == "3.23")
{
$result = mysql_query("SHOW TABLE STATUS LIKE '$table'") or mysql_die();
$row = mysql_fetch_array($result);
//Fix to Comment editing so that you can add comments - 2 May 2001 - Robbat2
?>
<li> <form method='post' action='tbl_properties.php3'>
<input type="hidden" name="server" value="<?php echo $server;?>">
<input type="hidden" name="lang" value="<?php echo $lang;?>">
<input type="hidden" name="db" value="<?php echo $db;?>">
<input type="hidden" name="table" value="<?php echo $table;?>">
<?php
echo "$strTableComments: <input type='text' name='comment' value='" . $row['Comment'] . "'><input type='submit' name='submitcomment' value='$strGo'></form>"
;
//BEGIN - Table Type - 2 May 2001 - Robbat2
if(isset($submittype))
$result = mysql_query("ALTER TABLE $table TYPE=$tbl_type") or mysql_die(
);
$result = mysql_query("SHOW TABLE STATUS LIKE '$table'") or mysql_die();
$row = mysql_fetch_array($result);
$tbl_type=strtoupper($row['Type']);
?>
<li><form method='post' action='tbl_properties.php3'>
<input type="hidden" name="server" value="<?php echo $server;?>">
<input type="hidden" name="lang" value="<?php echo $lang;?>">
<input type="hidden" name="db" value="<?php echo $db;?>">
<input type="hidden" name="table" value="<?php echo $table;?>">
<?php echo $strTableType.":";?>
<select name='tbl_type'>
<option <?php if($tbl_type == "BDB") echo 'selected';?> value="BDB">Berkeley DB</option>
<?php //Not in MySQL yet <option <?php if($tbl_type == "GEMINI") echo 'selected' ;? >value="GEMINI">Gemini</option> ?>
<option <?php if($tbl_type == "HEAP") echo 'selected';?> value="HEAP">Heap</option>
<option <?php if($tbl_type == "ISAM") echo 'selected';?> value="ISAM">ISAM</option>
<?php //Not in MySQL yet <option <?php if($tbl_type == "INNODB") echo 'selected' ;? > value="InnoDB">InnoDB</option> ?>
<option <?php if($tbl_type == "MRG_MYISAM") echo 'selected';?> value="MERGE">Merge</option>
<option <?php if($tbl_type == "MYISAM") echo 'selected';?> value="MYISAM">MyISAM</option>
</select>
<input type='submit' name='submittype' value='<?php echo $strGo; ?>'></form>
<?php
//END - Table Type - 2 May 2001 - Robbat2
}
echo "</ul>";
echo "</div>";
require("./footer.inc.php3"); require("./footer.inc.php3");
?> ?>