diff --git a/browse_foreigners.php b/browse_foreigners.php index b6f2d8b4c9..376a3ca025 100644 --- a/browse_foreigners.php +++ b/browse_foreigners.php @@ -150,37 +150,32 @@ EOC; $header->getScripts()->addCode($code); -?> -
+// HTML output +$output = ''; + +$output .= '| ' . __('Keyname') . ' | @@ -190,9 +185,9 @@ if (is_array($foreignData['disp_row'])) {' . __('Keyname') . ' | '; - echo '' . $header . '' . "\n" - .'' . $header . '' . "\n" - .'' . "\n"; + $output .= '' . $header . '' . "\n" + . '' . $header . '' . "\n" + . '' . "\n"; $values = array(); $keys = array(); @@ -217,7 +212,7 @@ if (is_array($foreignData['disp_row'])) { $hcount++; if ($cfg['RepeatCells'] > 0 && $hcount > $cfg['RepeatCells']) { - echo $header; + $output .= $header; $hcount = 0; $odd_row = true; } @@ -265,21 +260,23 @@ if (is_array($foreignData['disp_row'])) { $key_ordered_current_equals_data = $key_ordered_current_key == $data; } - ?> -||||||
|---|---|---|---|---|---|---|---|
| - ' : '') + $output .= ' | |||||||
| ' + . ($key_ordered_current_equals_data ? '' : '') . '' . htmlspecialchars($key_ordered_current_key) - . '' . ($key_ordered_current_equals_data ? '' : ''); - ?> | -- ' : '') + . '' . ($key_ordered_current_equals_data ? '' : '') + . ' | '; + + $output .= '' + . ($key_ordered_current_equals_data ? '' : '') . '' . $key_ordered_current_val . '' - . ($key_ordered_current_equals_data ? '' : ''); - ?> | -
- |
+ . ($key_ordered_current_equals_data ? '' : '')
+ . '';
- - ' : '') + $output .= ' | '
+ . ' | ';
+
+ $output .= '' + . ($val_ordered_current_equals_data ? '' : '') . '' . $val_ordered_current_val . '' - . ($val_ordered_current_equals_data ? '' : ''); - ?> | -- ' : '') . '' - . htmlspecialchars($val_ordered_current_key) - . '' . ($val_ordered_current_equals_data ? '' : ''); - ?> | -' + . ($val_ordered_current_equals_data ? '' : '') + . '' + . htmlspecialchars($val_ordered_current_key) + . '' . ($val_ordered_current_equals_data ? '' : '') + . ' | '; + $output .= ''; } // end while } + +$output .= '' + . '
| - | - - | -- |
|---|
| ' . __('Variable') . ' | ' + . '' + . __('Session value') . ' / ' . __('Global value') + . ' | ' + . '' . __('Documentation') . ' | ' + . '|||
|---|---|---|---|---|---|
| - | - | ' + . ' | ' . htmlspecialchars(str_replace('_', ' ', $name)) + . ' | ' + . '' . formatVariable($name, $value) . ' | ' + . ''; + // To display variable documentation link if (isset($VARIABLE_DOC_LINKS[$name])) { - echo $common_functions->showMySQLDocu($VARIABLE_DOC_LINKS[$name][1], $VARIABLE_DOC_LINKS[$name][1], false, $VARIABLE_DOC_LINKS[$name][2] . '_' . $VARIABLE_DOC_LINKS[$name][0]); + $output .= $common_functions->showMySQLDocu( + $VARIABLE_DOC_LINKS[$name][1], + $VARIABLE_DOC_LINKS[$name][1], + false, + $VARIABLE_DOC_LINKS[$name][2] . '_' . $VARIABLE_DOC_LINKS[$name][0] + ); } - ?> | - '; + if ($has_session_value) { - ?> -
| () | -- | - - | |||
| (' . __('Session value') . ') | ' + . '' . formatVariable($name, $serverVarsSession[$name]) + . ' | ' + . ''; + } + + $output .= ' |