coding standards, comments...
This commit is contained in:
@@ -24,7 +24,8 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
|
|||||||
* no delete link...);
|
* no delete link...);
|
||||||
* - the next characters are boolean values (1/0) and respectively stand
|
* - the next characters are boolean values (1/0) and respectively stand
|
||||||
* for sorting links, navigation bar, "insert a new row" link, the
|
* for sorting links, navigation bar, "insert a new row" link, the
|
||||||
* bookmark feature and the expand/collapse text/blob fields button.
|
* bookmark feature, the expand/collapse text/blob fields button and
|
||||||
|
* the "display printable view" option.
|
||||||
* Of course '0'/'1' means the feature won't/will be enabled.
|
* Of course '0'/'1' means the feature won't/will be enabled.
|
||||||
*
|
*
|
||||||
* @param string the synthetic value for display_mode (see <20>1 a few
|
* @param string the synthetic value for display_mode (see <20>1 a few
|
||||||
@@ -798,7 +799,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
|
|||||||
if ($GLOBALS['cfg']['BrowseMarkerColor'] != '') {
|
if ($GLOBALS['cfg']['BrowseMarkerColor'] != '') {
|
||||||
$on_mouse .= ' onmousedown="setPointer(this, ' . $row_no . ', \'click\', \'' . $bgcolor . '\', \'' . $GLOBALS['cfg']['BrowsePointerColor'] . '\', \'' . $GLOBALS['cfg']['BrowseMarkerColor'] . '\')"';
|
$on_mouse .= ' onmousedown="setPointer(this, ' . $row_no . ', \'click\', \'' . $bgcolor . '\', \'' . $GLOBALS['cfg']['BrowsePointerColor'] . '\', \'' . $GLOBALS['cfg']['BrowseMarkerColor'] . '\')"';
|
||||||
}
|
}
|
||||||
}
|
} // end if
|
||||||
?>
|
?>
|
||||||
<tr<?php echo $on_mouse; ?>>
|
<tr<?php echo $on_mouse; ?>>
|
||||||
<?php
|
<?php
|
||||||
@@ -1344,7 +1345,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
|
|||||||
// 2. ----- Displays the top of the page -----
|
// 2. ----- Displays the top of the page -----
|
||||||
|
|
||||||
// 2.1 Displays a messages with position informations
|
// 2.1 Displays a messages with position informations
|
||||||
if ($is_display['nav_bar'] == '1' && isset($pos_next) && (!isset($GLOBALS['printview']) || $GLOBALS['printview'] != '1')) {
|
if ($is_display['nav_bar'] == '1' && isset($pos_next)) {
|
||||||
if (isset($unlim_num_rows) && $unlim_num_rows != $total) {
|
if (isset($unlim_num_rows) && $unlim_num_rows != $total) {
|
||||||
$selectstring = ', ' . $unlim_num_rows . ' ' . $GLOBALS['strSelectNumRows'];
|
$selectstring = ', ' . $unlim_num_rows . ' ' . $GLOBALS['strSelectNumRows'];
|
||||||
} else {
|
} else {
|
||||||
|
9
sql.php3
9
sql.php3
@@ -412,7 +412,8 @@ else {
|
|||||||
PMA_displayTable($result, $disp_mode);
|
PMA_displayTable($result, $disp_mode);
|
||||||
mysql_free_result($result);
|
mysql_free_result($result);
|
||||||
|
|
||||||
if ($disp_mode[6] == '1' || $disp_mode[9] =='1') {
|
if ($disp_mode[6] == '1' || $disp_mode[9] == '1') {
|
||||||
|
echo "\n";
|
||||||
echo '<p>' . "\n";
|
echo '<p>' . "\n";
|
||||||
|
|
||||||
// Displays "Insert a new row" link if required
|
// Displays "Insert a new row" link if required
|
||||||
@@ -446,7 +447,7 @@ else {
|
|||||||
echo "\n";
|
echo "\n";
|
||||||
} // end insert new row
|
} // end insert new row
|
||||||
|
|
||||||
// Displays "print view" link if required
|
// Displays "printable view" link if required
|
||||||
if ($disp_mode[9] == '1') {
|
if ($disp_mode[9] == '1') {
|
||||||
$url_query = '?lang=' . $lang
|
$url_query = '?lang=' . $lang
|
||||||
. '&server=' . $server
|
. '&server=' . $server
|
||||||
@@ -460,8 +461,8 @@ else {
|
|||||||
. (($dontlimitchars == '1') ? '&dontlimitchars=1' : '')
|
. (($dontlimitchars == '1') ? '&dontlimitchars=1' : '')
|
||||||
. '&sql_query=' . urlencode($sql_query);
|
. '&sql_query=' . urlencode($sql_query);
|
||||||
echo ' <!-- Print view -->' . "\n"
|
echo ' <!-- Print view -->' . "\n"
|
||||||
. ' <a href="sql.php3' . $url_query . '" target="_blank">' . $strPrintView . '</a>' . "\n";
|
. ' <a href="sql.php3' . $url_query . '" target="print_view">' . $strPrintView . '</a>' . "\n";
|
||||||
}
|
} // end displays "printable view"
|
||||||
|
|
||||||
echo '</p>' . "\n";
|
echo '</p>' . "\n";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user