BrowseMarkerEnable
This commit is contained in:
@@ -14,7 +14,10 @@ $Source$
|
||||
libraries/config_import.lib.php + common.lib.php + display_tbl.lib.php,
|
||||
all colors.inc.php:
|
||||
$cfg['BrowsePointerEnable']
|
||||
(I am still working for BrowseMarkerEnable)
|
||||
* db_details_structure.php, tbl_properties_structure.php, config.inc.php,
|
||||
Documentation.html, all colors.inc.php,
|
||||
libraries/config_import.lib.php + common.lib.php + display_tbl.lib.php:
|
||||
$cfg['BrowseMarkerEnable']
|
||||
|
||||
2004-06-24 Alexander M. Turek <me@derrabus.de>
|
||||
* libraries/dbi/mysqli.dbi.php: Undefined variable if PMA_DBI_getError() is
|
||||
|
@@ -1585,6 +1585,12 @@ Defaults to FALSE (drop-down). <br />
|
||||
<br /><br />
|
||||
</dd>
|
||||
|
||||
<dt><b>$cfg['BrowseMarkerEnable'] </b>boolean</dt>
|
||||
<dd>
|
||||
Whether to activate the browse marker or not.
|
||||
<br /><br />
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
<b>$cfg['TextareaCols'] </b>integer<br />
|
||||
<b>$cfg['TextareaRows'] </b>integer<br />
|
||||
|
@@ -468,6 +468,10 @@ $cfg['BrowsePointerEnable'] = FALSE; // enable the browse pointer
|
||||
// see also BrowsePointerColor
|
||||
// in colors.inc.php
|
||||
|
||||
$cfg['BrowseMarkerEnable'] = FALSE; // enable the browse marker
|
||||
// see also BrowseMarkerColor
|
||||
// in colors.inc.php
|
||||
|
||||
$cfg['TextareaCols'] = 40; // textarea size (columns) in edit mode
|
||||
// (this value will be emphasized (*2) for sql
|
||||
// query textareas and (*1.25) for query window)
|
||||
|
@@ -295,7 +295,7 @@ else {
|
||||
} else {
|
||||
$on_mouse = '';
|
||||
}
|
||||
if ($GLOBALS['cfg']['BrowseMarkerColor'] != '') {
|
||||
if ($GLOBALS['cfg']['BrowseMarkerEnable'] == TRUE) {
|
||||
$on_mouse .= ' onmousedown="setPointer(this, ' . $i . ', \'click\', \'' . $bgcolor . '\', \'' . $GLOBALS['cfg']['BrowsePointerColor'] . '\', \'' . $GLOBALS['cfg']['BrowseMarkerColor'] . '\');"';
|
||||
}
|
||||
|
||||
|
@@ -136,7 +136,7 @@ if (isset($cfg['FileRevision'])) {
|
||||
} else {
|
||||
$cfg['FileRevision'] = array(1, 1);
|
||||
}
|
||||
if ($cfg['FileRevision'][0] < 2 || ($cfg['FileRevision'][0] == 2 && $cfg['FileRevision'][1] < 33)) {
|
||||
if ($cfg['FileRevision'][0] < 2 || ($cfg['FileRevision'][0] == 2 && $cfg['FileRevision'][1] < 34)) {
|
||||
require_once('./libraries/config_import.lib.php');
|
||||
}
|
||||
|
||||
|
@@ -668,6 +668,10 @@ if (!isset($cfg['BrowsePointerColor'])) {
|
||||
$cfg['BrowsePointerColor'] = '#CCFFCC';
|
||||
}
|
||||
|
||||
if (!isset($cfg['BrowseMarkerEnable'])) {
|
||||
$cfg['BrowseMarkerEnable'] = TRUE;
|
||||
}
|
||||
|
||||
if (!isset($cfg['BrowseMarkerColor'])) {
|
||||
if (isset($cfgBrowseMarkerColor)) {
|
||||
$cfg['BrowseMarkerColor'] = $cfgBrowseMarkerColor;
|
||||
@@ -685,6 +689,9 @@ if (!isset($cfg['BrowseMarkerColor'])) {
|
||||
} else {
|
||||
$cfg['BrowseMarkerColor'] = '#FFCC99';
|
||||
}
|
||||
// no longer accept an empty value to mean "disable the marker"
|
||||
} elseif ($cfg['BrowseMarkerColor'] == '') {
|
||||
$cfg['BrowseMarkerColor'] = '#FFCC99';
|
||||
}
|
||||
|
||||
if (!isset($cfg['TextareaCols'])) {
|
||||
|
@@ -1066,7 +1066,7 @@ function PMA_displayTableBody(&$dt_result, &$is_display, $map, $analyzed_sql)
|
||||
} else {
|
||||
$on_mouse = '';
|
||||
}
|
||||
if ($GLOBALS['cfg']['BrowseMarkerColor'] != '') {
|
||||
if ($GLOBALS['cfg']['BrowseMarkerEnable'] == TRUE) {
|
||||
$on_mouse .= ' onmousedown="setPointer(this, ' . $row_no . ', \'click\', \'' . $bgcolor . '\', \'' . $GLOBALS['cfg']['BrowsePointerColor'] . '\', \'' . $GLOBALS['cfg']['BrowseMarkerColor'] . '\');"';
|
||||
}
|
||||
} // end if
|
||||
@@ -1222,7 +1222,7 @@ function PMA_displayTableBody(&$dt_result, &$is_display, $map, $analyzed_sql)
|
||||
$column_style .= ' onmouseover="setVerticalPointer(this, ' . $row_no . ', \'over\', \'' . $GLOBALS['cfg']['BgcolorOne'] . '\', \'' . $GLOBALS['cfg']['BgcolorTwo'] . '\', \'' . $GLOBALS['cfg']['BrowsePointerColor'] . '\', \'' . $GLOBALS['cfg']['BrowseMarkerColor'] . '\');"'
|
||||
. ' onmouseout="setVerticalPointer(this, ' . $row_no . ', \'out\', \'' . $GLOBALS['cfg']['BgcolorOne'] . '\', \'' . $GLOBALS['cfg']['BgcolorTwo'] . '\', \'' . $GLOBALS['cfg']['BrowsePointerColor'] . '\', \'' . $GLOBALS['cfg']['BrowseMarkerColor'] . '\');"';
|
||||
}
|
||||
if ($GLOBALS['cfg']['BrowseMarkerColor'] != '') {
|
||||
if ($GLOBALS['cfg']['BrowseMarkerEnable'] == TRUE) {
|
||||
$column_style .= ' onmousedown="setVerticalPointer(this, ' . $row_no . ', \'click\', \'' . $GLOBALS['cfg']['BgcolorOne'] . '\', \'' . $GLOBALS['cfg']['BgcolorTwo'] . '\', \'' . $GLOBALS['cfg']['BrowsePointerColor'] . '\', \'' . $GLOBALS['cfg']['BrowseMarkerColor'] . '\'); setCheckboxColumn(\'id_rows_to_delete' . $row_no . '\');"';
|
||||
} else {
|
||||
$column_style .= ' onmousedown="setCheckboxColumn(\'id_rows_to_delete' . $row_no . '\');" ';
|
||||
@@ -1496,7 +1496,7 @@ function PMA_displayTableBody(&$dt_result, &$is_display, $map, $analyzed_sql)
|
||||
. ' onmouseout="setVerticalPointer(this, ' . $row_no . ', \'out\', \'' . $GLOBALS['cfg']['BgcolorOne'] . '\', \'' . $GLOBALS['cfg']['BgcolorTwo'] . '\', \'' . $GLOBALS['cfg']['BrowsePointerColor'] . '\', \'' . $GLOBALS['cfg']['BrowseMarkerColor'] . '\');"';
|
||||
}
|
||||
$column_marker_vertical = '';
|
||||
if ($GLOBALS['cfg']['BrowseMarkerColor'] != '') {
|
||||
if ($GLOBALS['cfg']['BrowseMarkerEnable'] == TRUE) {
|
||||
$column_marker_vertical .= 'setVerticalPointer(this, ' . $row_no . ', \'click\', \'' . $GLOBALS['cfg']['BgcolorOne'] . '\', \'' . $GLOBALS['cfg']['BgcolorTwo'] . '\', \'' . $GLOBALS['cfg']['BrowsePointerColor'] . '\', \'' . $GLOBALS['cfg']['BrowseMarkerColor'] . '\');';
|
||||
}
|
||||
|
||||
|
@@ -125,7 +125,7 @@ while ($row = PMA_DBI_fetch_assoc($fields_rs)) {
|
||||
} else {
|
||||
$on_mouse = '';
|
||||
}
|
||||
if ($GLOBALS['cfg']['BrowseMarkerColor'] != '') {
|
||||
if ($GLOBALS['cfg']['BrowseMarkerEnable'] == TRUE) {
|
||||
$on_mouse .= ' onmousedown="setPointer(this, ' . $i . ', \'click\', \'' . $bgcolor . '\', \'' . $GLOBALS['cfg']['BrowsePointerColor'] . '\', \'' . $GLOBALS['cfg']['BrowseMarkerColor'] . '\');"';
|
||||
}
|
||||
|
||||
|
@@ -14,7 +14,6 @@ $cfg['BgcolorTwo'] = '#E5E5E5'; // table data row colour, alternate
|
||||
$cfg['BrowsePointerColor'] = '#CCCCFF'; // color of the pointer in browse mode
|
||||
$cfg['BrowseMarkerColor'] = '#FFCC99'; // color of the marker (visually marks row
|
||||
// by clicking on it) in browse mode
|
||||
// (blank for no marker)
|
||||
/**
|
||||
* SQL Parser Settings
|
||||
*/
|
||||
|
@@ -14,7 +14,6 @@ $cfg['BgcolorTwo'] = '#D5D5D5'; // table data row colour, alternate
|
||||
$cfg['BrowsePointerColor'] = '#CCFFCC'; // color of the pointer in browse mode
|
||||
$cfg['BrowseMarkerColor'] = '#FFCC99'; // color of the marker (visually marks row
|
||||
// by clicking on it) in browse mode
|
||||
// (blank for no marker)
|
||||
/**
|
||||
* SQL Parser Settings
|
||||
*/
|
||||
|
Reference in New Issue
Block a user