Skip to content

Commit

Permalink
coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Chapeaux committed Jul 5, 2002
1 parent ebb7915 commit c5d319a
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 27 deletions.
2 changes: 1 addition & 1 deletion tbl_properties_export.php3
Expand Up @@ -17,7 +17,7 @@ require('./tbl_properties_table_info.php3');
<form method="post" action="tbl_dump.php3" name="tbl_dump">
<input type="hidden" name="server" value="<?php echo $server; ?>" />
<input type="hidden" name="lang" value="<?php echo $lang; ?>" />
<input type="hidden" name="convcharset" value="<?php echo $convcharset; ?>" />
<input type="hidden" name="convcharset" value="<?php echo $convcharset; ?>" />
<input type="hidden" name="db" value="<?php echo $db; ?>" />
<input type="hidden" name="table" value="<?php echo $table; ?>" />
<table cellpadding="5" border="2" align="center">
Expand Down
50 changes: 27 additions & 23 deletions tbl_properties_links.php3
@@ -1,9 +1,13 @@
<?php
/* $Id$ */

// count amount of navigation tabs

/**
* Count amount of navigation tabs
*/
$db_details_links_count_tabs = 0;


/**
* Prepares links
*/
Expand All @@ -24,40 +28,40 @@ if ($table_info_num_rows > 0) {
. urlencode(sprintf($strTableHasBeenEmptied, htmlspecialchars($table)));
$att6 = 'class="drop" onclick="return confirmLink(this, \'' . $ln6_stt . PMA_jsFormat($table) . '\')"';
} else {
$lnk2 = '';
$arg2 = '';
$lnk4 = '';
$arg4 = '';
$lnk6 = '';
$arg6 = '';
$att6 = '';
$lnk2 = '';
$arg2 = '';
$lnk4 = '';
$arg4 = '';
$lnk6 = '';
$arg6 = '';
$att6 = '';
}

$lnk7 = "sql.php3";
$arg7 = ereg_replace('tbl_properties.php3$', 'db_details.php3', $url_query) . '&amp;back=tbl_properties' . $sub_part . '.php3&amp;reload=1&amp;sql_query= ' . urlencode('DROP TABLE ' . PMA_backquote($table) ) . '&amp;zero_rows=' . urlencode(sprintf($strTableHasBeenDropped, htmlspecialchars($table)));
$att7 = 'class="drop" onclick="return confirmLink(this, \'DROP TABLE ' . PMA_jsFormat($table) . '\')"';


/**
* Displays links
*/
?>
<table border="0" cellspacing="0" cellpadding="0" width="100%" class="tabs">
<tr>
<td width="8">&nbsp;</td>
<tr>
<td width="8">&nbsp;</td>
<?php
echo printTab($strStructure,"tbl_properties_structure.php3",$url_query);
echo printTab($strBrowse,$lnk2,$arg2);
echo printTab($strSQL,"tbl_properties.php3",$url_query);
echo printTab($strSelect,$lnk4,$arg4);
echo printTab($strInsert,"tbl_change.php3",$url_query);
echo printTab($strExport,"tbl_properties_export.php3",$url_query);
echo printTab($strOperations,"tbl_properties_operations.php3",$url_query);
echo printTab($strOptions,"tbl_properties_options.php3",$url_query);
echo printTab($strEmpty,$lnk6,$arg6,$att6);
echo printTab($strDrop,"sql.php3",$arg7,$att7);

echo printTab($strStructure, 'tbl_properties_structure.php3', $url_query);
echo printTab($strBrowse, $lnk2, $arg2);
echo printTab($strSQL, 'tbl_properties.php3', $url_query);
echo printTab($strSelect, $lnk4, $arg4);
echo printTab($strInsert, 'tbl_change.php3', $url_query);
echo printTab($strExport, 'tbl_properties_export.php3', $url_query);
echo printTab($strOperations, 'tbl_properties_operations.php3', $url_query);
echo printTab($strOptions, 'tbl_properties_options.php3', $url_query);
echo printTab($strEmpty, $lnk6, $arg6, $att6);
echo printTab($strDrop, 'sql.php3', $arg7, $att7);
?>

</tr>
</tr>
</table>
<br />

9 changes: 6 additions & 3 deletions tbl_properties_operations.php3
Expand Up @@ -9,8 +9,11 @@ require('./tbl_properties_common.php3');
$err_url = 'tbl_properties_operations.php3' . $err_url;
$url_query .= '&amp;back=tbl_properties_operations.php3';

require('./libraries/relation.lib.php3');

/**
* Gets relation settings
*/
require('./libraries/relation.lib.php3');
$cfgRelation = PMA_getRelationsParam();


Expand Down Expand Up @@ -293,7 +296,7 @@ if ($cfgRelation['relwork']) {
// and $db is not the last of the list, because PMA_availableDatabases()
// has made a PMA_mysql_select_db() on the last one
PMA_mysql_select_db($db);
$foreign = getForeigners($db,$table);
$foreign = getForeigners($db, $table);

if ($foreign) {
?>
Expand All @@ -303,7 +306,7 @@ if ($cfgRelation['relwork']) {
<?php echo $strReferentialIntegrity; ?><br />
<?php
echo "\n";
while (list($master,$arr) = each($foreign)){
while (list($master, $arr) = each($foreign)){
echo ' '
. '<a href="sql.php3?' . $url_query
. '&amp;sql_query='
Expand Down

0 comments on commit c5d319a

Please sign in to comment.