coding standard: no spaces inside braces
This commit is contained in:
@@ -56,7 +56,7 @@ $showall = '';
|
||||
|
||||
if (isset($disp_row) && is_array($disp_row)) {
|
||||
|
||||
if ( $cfg['ShowAll'] && ($the_total > $per_page) ) {
|
||||
if ($cfg['ShowAll'] && ($the_total > $per_page)) {
|
||||
$showall = '<input type="submit" name="foreign_navig" value="' . $strShowAll . '" />';
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ if (isset($disp_row) && is_array($disp_row)) {
|
||||
$pageNow = @floor($pos / $session_max_rows) + 1;
|
||||
$nbTotalPage = @ceil($the_total / $session_max_rows);
|
||||
|
||||
if ( $the_total > $per_page ) {
|
||||
if ($the_total > $per_page) {
|
||||
$gotopage = PMA_pageselector(
|
||||
'browse_foreigners.php?field=' . urlencode($field) .
|
||||
'&' . PMA_generate_common_url($db, $table)
|
||||
@@ -90,22 +90,22 @@ if (isset($disp_row) && is_array($disp_row)) {
|
||||
<title>phpMyAdmin</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
|
||||
<link rel="stylesheet" type="text/css"
|
||||
href="phpmyadmin.css.php?<?php echo PMA_generate_common_url( '', '' ); ?>&js_frame=right&nocache=<?php echo $_SESSION['PMA_Config']->getMtime(); ?>" />
|
||||
href="phpmyadmin.css.php?<?php echo PMA_generate_common_url('', ''); ?>&js_frame=right&nocache=<?php echo $_SESSION['PMA_Config']->getMtime(); ?>" />
|
||||
<script src="./js/functions.js" type="text/javascript" language="javascript"></script>
|
||||
<script type="text/javascript" language="javascript">
|
||||
//<![CDATA[
|
||||
self.focus();
|
||||
function formupdate( field, key ) {
|
||||
function formupdate(field, key) {
|
||||
if (opener && opener.document && opener.document.insertForm) {
|
||||
var field = 'field_' + field;
|
||||
|
||||
<?php if ( isset( $pk ) ) { ?>
|
||||
var element_name = field + '[multi_edit][<?php echo urlencode( $pk ); ?>][]';
|
||||
<?php if (isset($pk)) { ?>
|
||||
var element_name = field + '[multi_edit][<?php echo urlencode($pk); ?>][]';
|
||||
<?php } else { ?>
|
||||
var element_name = field + '[]';
|
||||
<?php } ?>
|
||||
|
||||
<?php if ( isset( $fieldkey ) ) { ?>
|
||||
<?php if (isset($fieldkey)) { ?>
|
||||
var element_name_alt = field + '[<?php echo $fieldkey; ?>]';
|
||||
<?php } else { ?>
|
||||
var element_name_alt = field + '[0]';
|
||||
@@ -134,11 +134,11 @@ if (isset($disp_row) && is_array($disp_row)) {
|
||||
|
||||
<form action="browse_foreigners.php" method="post">
|
||||
<fieldset>
|
||||
<?php echo PMA_generate_common_hidden_inputs( $db, $table ); ?>
|
||||
<?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
|
||||
<input type="hidden" name="field" value="<?php echo urlencode($field); ?>" />
|
||||
<input type="hidden" name="fieldkey"
|
||||
value="<?php echo isset($fieldkey) ? $fieldkey : ''; ?>" />
|
||||
<?php if ( isset( $pk ) ) { ?>
|
||||
<?php if (isset($pk)) { ?>
|
||||
<input type="hidden" name="pk" value="<?php echo urlencode($pk); ?>" />
|
||||
<?php } ?>
|
||||
<span class="formelement">
|
||||
@@ -173,7 +173,7 @@ if (isset($disp_row) && is_array($disp_row)) {
|
||||
|
||||
$values = array();
|
||||
$keys = array();
|
||||
foreach ( $disp_row as $relrow ) {
|
||||
foreach ($disp_row as $relrow) {
|
||||
if ($foreign_display != FALSE) {
|
||||
$values[] = $relrow[$foreign_display];
|
||||
} else {
|
||||
@@ -183,15 +183,15 @@ if (isset($disp_row) && is_array($disp_row)) {
|
||||
$keys[] = $relrow[$foreign_field];
|
||||
}
|
||||
|
||||
asort( $keys );
|
||||
asort($keys);
|
||||
|
||||
$hcount = 0;
|
||||
$odd_row = true;
|
||||
$val_ordered_current_row = 0;
|
||||
$val_ordered_current_equals_data = false;
|
||||
$key_ordered_current_equals_data = false;
|
||||
foreach ( $keys as $key_ordered_current_row => $value ) {
|
||||
//for ( $i = 0; $i < $count; $i++ ) {
|
||||
foreach ($keys as $key_ordered_current_row => $value) {
|
||||
//for ($i = 0; $i < $count; $i++) {
|
||||
$hcount++;
|
||||
|
||||
if ($cfg['RepeatCells'] > 0 && $hcount > $cfg['RepeatCells']) {
|
||||
@@ -208,28 +208,28 @@ if (isset($disp_row) && is_array($disp_row)) {
|
||||
|
||||
$val_ordered_current_row++;
|
||||
|
||||
if (PMA_strlen( $val_ordered_current_val ) <= $cfg['LimitChars']) {
|
||||
if (PMA_strlen($val_ordered_current_val) <= $cfg['LimitChars']) {
|
||||
$val_ordered_current_val = htmlspecialchars($val_ordered_current_val);
|
||||
$val_ordered_current_val_title = '';
|
||||
} else {
|
||||
$val_ordered_current_val_title =
|
||||
htmlspecialchars( $val_ordered_current_val );
|
||||
htmlspecialchars($val_ordered_current_val);
|
||||
$val_ordered_current_val =
|
||||
htmlspecialchars( PMA_substr( $val_ordered_current_val, 0,
|
||||
$cfg['LimitChars'] ) . '...' );
|
||||
htmlspecialchars(PMA_substr($val_ordered_current_val, 0,
|
||||
$cfg['LimitChars']) . '...');
|
||||
}
|
||||
if (PMA_strlen( $key_ordered_current_val ) <= $cfg['LimitChars']) {
|
||||
if (PMA_strlen($key_ordered_current_val) <= $cfg['LimitChars']) {
|
||||
$key_ordered_current_val = htmlspecialchars($key_ordered_current_val);
|
||||
$key_ordered_current_val_title = '';
|
||||
} else {
|
||||
$key_ordered_current_val_title =
|
||||
htmlspecialchars( $key_ordered_current_val );
|
||||
htmlspecialchars($key_ordered_current_val);
|
||||
$key_ordered_current_val =
|
||||
htmlspecialchars( PMA_substr( $key_ordered_current_val, 0,
|
||||
$cfg['LimitChars'] ) . '...' );
|
||||
htmlspecialchars(PMA_substr($key_ordered_current_val, 0,
|
||||
$cfg['LimitChars']) . '...');
|
||||
}
|
||||
|
||||
if ( ! empty( $data ) ) {
|
||||
if (! empty($data)) {
|
||||
$val_ordered_current_equals_data = $val_ordered_current_key == $data;
|
||||
$key_ordered_current_equals_data = $key_ordered_current_key == $data;
|
||||
}
|
||||
|
Reference in New Issue
Block a user