very little optimizations
This commit is contained in:
@@ -779,8 +779,8 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
|
|||||||
?>
|
?>
|
||||||
<tr<?php echo $on_mouse; ?>>
|
<tr<?php echo $on_mouse; ?>>
|
||||||
<?php
|
<?php
|
||||||
|
echo "\n";
|
||||||
}
|
}
|
||||||
echo (($disp_direction == 'horizontal') ? "\n" : '');
|
|
||||||
|
|
||||||
// 1. Prepares the row (gets primary keys to use)
|
// 1. Prepares the row (gets primary keys to use)
|
||||||
if ($is_display['edit_lnk'] != 'nn' || $is_display['del_lnk'] != 'nn') {
|
if ($is_display['edit_lnk'] != 'nn' || $is_display['del_lnk'] != 'nn') {
|
||||||
@@ -788,7 +788,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
|
|||||||
$unique_key = '';
|
$unique_key = '';
|
||||||
$uva_nonprimary_condition = '';
|
$uva_nonprimary_condition = '';
|
||||||
|
|
||||||
// 1.1 Results from a "SELECT" statement -> builds
|
// 1.1 Results from a "SELECT" statement -> builds the
|
||||||
// the "primary" key to use in links
|
// the "primary" key to use in links
|
||||||
if ($is_display['edit_lnk'] == 'ur' /* || $is_display['edit_lnk'] == 'dr' */) {
|
if ($is_display['edit_lnk'] == 'ur' /* || $is_display['edit_lnk'] == 'dr' */) {
|
||||||
for ($i = 0; $i < $fields_cnt; ++$i) {
|
for ($i = 0; $i < $fields_cnt; ++$i) {
|
||||||
@@ -915,6 +915,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
|
|||||||
// depend on whether the "is_null" php4 function is
|
// depend on whether the "is_null" php4 function is
|
||||||
// available or not
|
// available or not
|
||||||
$pointer = (function_exists('is_null') ? $i : $meta->name);
|
$pointer = (function_exists('is_null') ? $i : $meta->name);
|
||||||
|
|
||||||
if ($meta->numeric == 1) {
|
if ($meta->numeric == 1) {
|
||||||
if (!isset($row[$meta->name])
|
if (!isset($row[$meta->name])
|
||||||
|| (function_exists('is_null') && is_null($row[$pointer]))) {
|
|| (function_exists('is_null') && is_null($row[$pointer]))) {
|
||||||
@@ -994,14 +995,12 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
|
|||||||
. 'lang=' . $lang . '&server=' . $server
|
. 'lang=' . $lang . '&server=' . $server
|
||||||
. '&db=' . urlencode($db) . '&table=' . urlencode($map[$meta->name][0])
|
. '&db=' . urlencode($db) . '&table=' . urlencode($map[$meta->name][0])
|
||||||
. '&pos=0&session_max_rows=' . $session_max_rows . '&dontlimitchars=' . $dontlimitchars
|
. '&pos=0&session_max_rows=' . $session_max_rows . '&dontlimitchars=' . $dontlimitchars
|
||||||
. '&sql_query=' . urlencode('SELECT * FROM ' . PMA_backquote($map[$meta->name][0]) . ' WHERE ' . $map[$meta->name][1] . " = '" . $row[$pointer] . "'") . '">'
|
. '&sql_query=' . urlencode('SELECT * FROM ' . PMA_backquote($map[$meta->name][0]) . ' WHERE ' . $map[$meta->name][1] . ' = \'' . $row[$pointer] . '\'') . '">'
|
||||||
. $row[$pointer] . '</a>';
|
. $row[$pointer] . '</a>';
|
||||||
} else {
|
} else {
|
||||||
$vertical_display['data'][$foo][$i] .= $row[$pointer];
|
$vertical_display['data'][$foo][$i] .= $row[$pointer];
|
||||||
}
|
}
|
||||||
|
|
||||||
$vertical_display['data'][$foo][$i] .= ' </td>' . "\n";
|
$vertical_display['data'][$foo][$i] .= ' </td>' . "\n";
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$vertical_display['data'][$foo][$i] = ' <td valign="top" bgcolor="' . $bgcolor . '"> </td>' . "\n";
|
$vertical_display['data'][$foo][$i] = ' <td valign="top" bgcolor="' . $bgcolor . '"> </td>' . "\n";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user