From 017d8dbf8f22778d01825ca78059ed0321b4e1e2 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 30 Jan 2002 01:48:22 +0000 Subject: [PATCH] mark row --- config.inc.php3 | 2 ++ libraries/display_tbl.lib.php3 | 5 ++++- libraries/functions.js | 11 +++++++---- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/config.inc.php3 b/config.inc.php3 index 5b51b0c88..ede0a1afa 100755 --- a/config.inc.php3 +++ b/config.inc.php3 @@ -177,6 +177,8 @@ $cfgBgcolorOne = '#CCCCCC'; // table data row colour $cfgBgcolorTwo = '#DDDDDD'; // table data row colour, alternate $cfgBrowsePointerColor = '#CCFFCC'; // color of the pointer in browse mode // (blank for no pointer) +$cfgBrowseMarkRow = 0; // if 1, you can click on rows to + // visually mark them $cfgTextareaCols = 40; // textarea size (columns) in edit mode $cfgTextareaRows = 7; // textarea size (rows) in edit mode $cfgLimitChars = 50; // max field data length in browse mode diff --git a/libraries/display_tbl.lib.php3 b/libraries/display_tbl.lib.php3 index d21da4e81..e13788e3e 100644 --- a/libraries/display_tbl.lib.php3 +++ b/libraries/display_tbl.lib.php3 @@ -723,8 +723,11 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){ // loic1: pointer code part $on_mouse = ($GLOBALS['cfgBrowsePointerColor'] == '') ? '' - : ' onmouseover="setPointer(this, \'' . $GLOBALS['cfgBrowsePointerColor'] . '\')" onmouseout="setPointer(this, \'' . $bgcolor . '\')"'; + : ' onmouseover="setPointer(this, \'' . $GLOBALS['cfgBrowsePointerColor'] . '\', \''.$bgcolor.'\')" onmouseout="setPointer(this, \'' . $bgcolor . '\', \''.$bgcolor.'\')"'; + if ($GLOBALS['cfgBrowseMarkRow'] == '1') { + $on_mouse = ' onmousedown="setPointer(this, \'' . $GLOBALS['cfgBrowsePointerColor'] . '\', \''.$bgcolor.'\')"'; + } ?> >