coding standards

This commit is contained in:
Loïc Chapeaux
2002-07-05 12:20:31 +00:00
parent ebb7915de3
commit c5d319a0da
3 changed files with 34 additions and 27 deletions

View File

@@ -1,9 +1,13 @@
<?php <?php
/* $Id$ */ /* $Id$ */
// count amount of navigation tabs
/**
* Count amount of navigation tabs
*/
$db_details_links_count_tabs = 0; $db_details_links_count_tabs = 0;
/** /**
* Prepares links * Prepares links
*/ */
@@ -37,6 +41,7 @@ $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))); $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) . '\')"'; $att7 = 'class="drop" onclick="return confirmLink(this, \'DROP TABLE ' . PMA_jsFormat($table) . '\')"';
/** /**
* Displays links * Displays links
*/ */
@@ -45,19 +50,18 @@ $att7 = 'class="drop" onclick="return confirmLink(this, \'DROP TABLE ' . PMA_jsF
<tr> <tr>
<td width="8">&nbsp;</td> <td width="8">&nbsp;</td>
<?php <?php
echo printTab($strStructure,"tbl_properties_structure.php3",$url_query); echo printTab($strStructure, 'tbl_properties_structure.php3', $url_query);
echo printTab($strBrowse, $lnk2, $arg2); echo printTab($strBrowse, $lnk2, $arg2);
echo printTab($strSQL,"tbl_properties.php3",$url_query); echo printTab($strSQL, 'tbl_properties.php3', $url_query);
echo printTab($strSelect, $lnk4, $arg4); echo printTab($strSelect, $lnk4, $arg4);
echo printTab($strInsert,"tbl_change.php3",$url_query); echo printTab($strInsert, 'tbl_change.php3', $url_query);
echo printTab($strExport,"tbl_properties_export.php3",$url_query); echo printTab($strExport, 'tbl_properties_export.php3', $url_query);
echo printTab($strOperations,"tbl_properties_operations.php3",$url_query); echo printTab($strOperations, 'tbl_properties_operations.php3', $url_query);
echo printTab($strOptions,"tbl_properties_options.php3",$url_query); echo printTab($strOptions, 'tbl_properties_options.php3', $url_query);
echo printTab($strEmpty, $lnk6, $arg6, $att6); echo printTab($strEmpty, $lnk6, $arg6, $att6);
echo printTab($strDrop,"sql.php3",$arg7,$att7); echo printTab($strDrop, 'sql.php3', $arg7, $att7);
?> ?>
</tr> </tr>
</table> </table>
<br /> <br />

View File

@@ -9,8 +9,11 @@ require('./tbl_properties_common.php3');
$err_url = 'tbl_properties_operations.php3' . $err_url; $err_url = 'tbl_properties_operations.php3' . $err_url;
$url_query .= '&amp;back=tbl_properties_operations.php3'; $url_query .= '&amp;back=tbl_properties_operations.php3';
require('./libraries/relation.lib.php3');
/**
* Gets relation settings
*/
require('./libraries/relation.lib.php3');
$cfgRelation = PMA_getRelationsParam(); $cfgRelation = PMA_getRelationsParam();