bug #1719339 Browse: Full/Partial Texts not working

This commit is contained in:
Sebastian Mendel
2007-05-15 15:01:50 +00:00
parent fa30ac8c33
commit 2c814ac548

View File

@@ -577,17 +577,28 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $
? ' rowspan="3"' ? ' rowspan="3"'
: ''; : '';
} }
$text_url = 'sql.php?' $url_params = array(
. PMA_generate_common_url($db, $table) 'db' => $db,
. '&sql_query=' . urlencode($sql_query) 'table' => $table,
. '&goto=' . $goto; 'sql_query' => $sql_query,
$text_message = '<img class="fulltext" src="' . $GLOBALS['pmaThemeImage'] 'goto' => $goto,
. 's_' );
. ($_SESSION['userconf']['dontlimitchars'] ? 'partialtext' : 'fulltext') $text_message = '<img class="fulltext" width="50" height="20"';
. '.png" width="50" height="20" alt="' if ($_SESSION['userconf']['dontlimitchars']) {
. ($_SESSION['userconf']['dontlimitchars'] ? $GLOBALS['strPartialText'] : $GLOBALS['strFullText']) $url_params['dontlimitchars'] = '0';
. '" title="' $text_message .= ''
. ($_SESSION['userconf']['dontlimitchars'] ? $GLOBALS['strPartialText'] : $GLOBALS['strFullText']) . '" />'; . ' src="' . $GLOBALS['pmaThemeImage'] . 's_partialtext.png"'
. ' alt="' . $GLOBALS['strPartialText'] . '"'
. ' title="' . $GLOBALS['strPartialText'] . '"';
} else {
$url_params['dontlimitchars'] = '1';
$text_message .= ''
. ' src="' . $GLOBALS['pmaThemeImage'] . 's_fulltext.png"'
. ' alt="' . $GLOBALS['strFullText'] . '"'
. ' title="' . $GLOBALS['strFullText'] . '"';
}
$text_message .= ' />';
$text_url = 'sql.php' . PMA_generate_common_url($url_params);
$text_link = PMA_linkOrButton($text_url, $text_message, array(), false); $text_link = PMA_linkOrButton($text_url, $text_message, array(), false);
// ... before the result table // ... before the result table
@@ -1708,7 +1719,7 @@ function PMA_displayTable_checkConfigParams()
// do not exceed a maximum number of queries to remember // do not exceed a maximum number of queries to remember
if (count($_SESSION['userconf']['query']) > 10) { if (count($_SESSION['userconf']['query']) > 10) {
array_shift($_SESSION['userconf']['query']); array_shift($_SESSION['userconf']['query']);
echo 'deleting one element ...'; //echo 'deleting one element ...';
} }
// populate query configuration // populate query configuration