coding standards
This commit is contained in:
@@ -1,12 +1,14 @@
|
|||||||
<?php
|
<?php
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the variables sent or posted to this script and displays the header
|
* Get the variables sent or posted to this script and displays the header
|
||||||
*/
|
*/
|
||||||
require('./libraries/grab_globals.lib.php3');
|
require('./libraries/grab_globals.lib.php3');
|
||||||
$js_to_run = 'tbl_change.js';
|
$js_to_run = 'tbl_change.js';
|
||||||
include('./header.inc.php3');
|
include('./header.inc.php3');
|
||||||
|
|
||||||
// Displays the query submitted and its result
|
// Displays the query submitted and its result
|
||||||
if (!empty($message)) {
|
if (!empty($message)) {
|
||||||
if (isset($goto)) {
|
if (isset($goto)) {
|
||||||
@@ -66,10 +68,15 @@ if ($goto != 'db_details.php3' && $goto != 'tbl_properties.php3') {
|
|||||||
. (($goto == 'tbl_properties.php3') ? '&table=' . urlencode($table) : '');
|
. (($goto == 'tbl_properties.php3') ? '&table=' . urlencode($table) : '');
|
||||||
}
|
}
|
||||||
|
|
||||||
require('./libraries/db_table_exists.lib.php3');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set parameters for links
|
* Ensures db and table are valid, else moves to the "parent" script
|
||||||
|
*/
|
||||||
|
require('./libraries/db_table_exists.lib.php3');
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets parameters for links and displays top menu
|
||||||
*/
|
*/
|
||||||
$url_query = 'lang=' . $lang
|
$url_query = 'lang=' . $lang
|
||||||
. '&convcharset=' . $convcharset
|
. '&convcharset=' . $convcharset
|
||||||
@@ -81,6 +88,7 @@ $url_query = 'lang=' . $lang
|
|||||||
require('./tbl_properties_table_info.php3');
|
require('./tbl_properties_table_info.php3');
|
||||||
echo '<br />';
|
echo '<br />';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the list of the fields of the current table
|
* Get the list of the fields of the current table
|
||||||
*/
|
*/
|
||||||
@@ -180,22 +188,20 @@ $timestamp_seen = 0;
|
|||||||
$fields_cnt = mysql_num_rows($table_def);
|
$fields_cnt = mysql_num_rows($table_def);
|
||||||
|
|
||||||
for ($i = 0; $i < $fields_cnt; $i++) {
|
for ($i = 0; $i < $fields_cnt; $i++) {
|
||||||
|
// Display the submit button after every 15 lines --swix
|
||||||
|
// (wanted to use an <a href="#bottom"> and <a name> instead,
|
||||||
// display the submit button after every 15 lines --swix
|
// but it didn't worked because of the <base href>)
|
||||||
// (wanted to use an <a href="#bottom"> and <a name> instead,
|
|
||||||
// but it didn't worked because of the <base href>)
|
|
||||||
|
|
||||||
if ((($i % 15) == 0) && ($i != 0)) {
|
if ((($i % 15) == 0) && ($i != 0)) {
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="5" align="right">
|
<th colspan="5" align="right">
|
||||||
<input type="submit" value="<?php echo $strGo; ?>" tabindex="<?php echo $fields_cnt+6; ?>" />
|
<input type="submit" value="<?php echo $strGo; ?>" tabindex="<?php echo $fields_cnt+6; ?>" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
} // end if
|
||||||
|
echo "\n";
|
||||||
|
|
||||||
$row_table_def = PMA_mysql_fetch_array($table_def);
|
$row_table_def = PMA_mysql_fetch_array($table_def);
|
||||||
$field = $row_table_def['Field'];
|
$field = $row_table_def['Field'];
|
||||||
|
Reference in New Issue
Block a user