coding standards
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
// count amount of navigation tabs
|
||||
|
||||
/**
|
||||
* Count amount of navigation tabs
|
||||
*/
|
||||
$db_details_links_count_tabs = 0;
|
||||
|
||||
|
||||
/**
|
||||
* Prepares links
|
||||
*/
|
||||
@@ -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) . '&back=tbl_properties' . $sub_part . '.php3&reload=1&sql_query= ' . urlencode('DROP TABLE ' . PMA_backquote($table) ) . '&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"> </td>
|
||||
<tr>
|
||||
<td width="8"> </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,8 +9,11 @@ require('./tbl_properties_common.php3');
|
||||
$err_url = 'tbl_properties_operations.php3' . $err_url;
|
||||
$url_query .= '&back=tbl_properties_operations.php3';
|
||||
|
||||
require('./libraries/relation.lib.php3');
|
||||
|
||||
/**
|
||||
* Gets relation settings
|
||||
*/
|
||||
require('./libraries/relation.lib.php3');
|
||||
$cfgRelation = PMA_getRelationsParam();
|
||||
|
||||
|
||||
@@ -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) {
|
||||
?>
|
||||
@@ -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
|
||||
. '&sql_query='
|
||||
|
Reference in New Issue
Block a user