Skip to content

Commit

Permalink
Do not highlight rows of these tables
Browse files Browse the repository at this point in the history
  • Loading branch information
madhuracj committed Mar 15, 2011
1 parent fd7fb48 commit 326f138
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion db_search.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ function PMA_getSearchSqls($table, $field, $search_str, $search_option)

$sql_query .= $newsearchsqls['select_count'];

echo '<tr class="' . ($odd_row ? 'odd' : 'even') . '">'
echo '<tr class="noclick ' . ($odd_row ? 'odd' : 'even') . '">'
.'<td>' . sprintf(_ngettext('%s match inside table <i>%s</i>', '%s matches inside table <i>%s</i>', $res_cnt), $res_cnt,
htmlspecialchars($each_table)) . "</td>\n";

Expand Down
4 changes: 2 additions & 2 deletions db_tracking.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
$tmp_link = 'tbl_tracking.php?' . $url_query . '&amp;table=' . htmlspecialchars($version_data['table_name']);
$delete_link = 'db_tracking.php?' . $url_query . '&amp;table=' . htmlspecialchars($version_data['table_name']) . '&amp;delete_tracking=true&amp';
?>
<tr class="<?php echo $style;?>">
<tr class="noclick <?php echo $style;?>">
<td><?php echo htmlspecialchars($version_data['db_name']);?></td>
<td><?php echo htmlspecialchars($version_data['table_name']);?></td>
<td><?php echo $version_data['version'];?></td>
Expand Down Expand Up @@ -202,7 +202,7 @@
}
$my_link .= __('Track table') . '</a>';
?>
<tr class="<?php echo $style;?>">
<tr class="noclick <?php echo $style;?>">
<td><?php echo htmlspecialchars($tablename);?></td>
<td><?php echo $my_link;?></td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion libraries/tbl_triggers.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
foreach ($triggers as $trigger) {
$drop_and_create = $trigger['drop'] . $delimiter . "\n" . $trigger['create'] . "\n";

echo sprintf('<tr class="%s">
echo sprintf('<tr class="noclick %s">
<td><strong>%s</strong></td>
<td>%s</td>
<td>%s</td>
Expand Down
2 changes: 1 addition & 1 deletion server_binlog.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
$value['Info'] = PMA_substr($value['Info'], 0, $GLOBALS['cfg']['LimitChars']) . '...';
}
?>
<tr class="<?php echo $odd_row ? 'odd' : 'even'; ?>">
<tr class="noclick <?php echo $odd_row ? 'odd' : 'even'; ?>">
<td>&nbsp;<?php echo $value['Log_name']; ?>&nbsp;</td>
<td align="right">&nbsp;<?php echo $value['Pos']; ?>&nbsp;</td>
<td>&nbsp;<?php echo $value['Event_type']; ?>&nbsp;</td>
Expand Down
6 changes: 3 additions & 3 deletions server_engines.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
*/
$odd_row = true;
foreach (PMA_StorageEngine::getStorageEngines() as $engine => $details) {
echo '<tr class="'
echo '<tr class="noclick '
. ($odd_row ? 'odd' : 'even')
. ($details['Support'] == 'NO' || $details['Support'] == 'DISABLED'
? ' disabled'
Expand All @@ -83,15 +83,15 @@
$PMA_Config = $GLOBALS['PMA_Config'];
if ($PMA_Config->get('BLOBSTREAMING_PLUGINS_EXIST')) {
// Special case for PBMS daemon which is not listed as an engine
echo '<tr class="'
echo '<tr class="noclick '
. ($odd_row ? 'odd' : 'even')
. '">' . "\n"
. ' <td><a href="./server_engines.php'
. PMA_generate_common_url(array('engine' => "PBMS")) . '">' . "\n"
. ' ' . "PBMS\n"
. ' </a></td>' . "\n"
. ' <td>' . htmlspecialchars("PrimeBase MediaStream (PBMS) daemon") . '</td>' . "\n"
. '</tr>' . "\n";
. '</tr>' . "\n";
}

unset($odd_row, $engine, $details);
Expand Down
2 changes: 1 addition & 1 deletion server_processlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
$url_params['kill'] = $process['Id'];
$kill_process = 'server_processlist.php' . PMA_generate_common_url($url_params);
?>
<tr class="<?php echo $odd_row ? 'odd' : 'even'; ?>">
<tr class="noclick <?php echo $odd_row ? 'odd' : 'even'; ?>">
<td><a href="<?php echo $kill_process ; ?>"><?php echo __('Kill'); ?></a></td>
<td class="value"><?php echo $process['Id']; ?></td>
<td><?php echo $process['User']; ?></td>
Expand Down
20 changes: 10 additions & 10 deletions server_status.php
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@
</tr>
</thead>
<tbody>
<tr class="odd">
<tr class="noclick odd">
<th class="name"><?php echo __('Received'); ?></th>
<td class="value"><?php echo
implode(' ',
Expand All @@ -526,7 +526,7 @@
PMA_formatByteDown(
$server_status['Bytes_received'] * $hour_factor, 2, 1)); ?></td>
</tr>
<tr class="even">
<tr class="noclick even">
<th class="name"><?php echo __('Sent'); ?></th>
<td class="value"><?php echo
implode(' ',
Expand All @@ -536,7 +536,7 @@
PMA_formatByteDown(
$server_status['Bytes_sent'] * $hour_factor, 2, 1)); ?></td>
</tr>
<tr class="odd">
<tr class="noclick odd">
<th class="name"><?php echo __('Total'); ?></th>
<td class="value"><?php echo
implode(' ',
Expand All @@ -562,14 +562,14 @@
</tr>
</thead>
<tbody>
<tr class="odd">
<tr class="noclick odd">
<th class="name"><?php echo __('max. concurrent connections'); ?></th>
<td class="value"><?php echo
PMA_formatNumber($server_status['Max_used_connections'], 0); ?> </td>
<td class="value">--- </td>
<td class="value">--- </td>
</tr>
<tr class="even">
<tr class="noclick even">
<th class="name"><?php echo __('Failed attempts'); ?></th>
<td class="value"><?php echo
PMA_formatNumber($server_status['Aborted_connects'], 4, 0); ?></td>
Expand All @@ -583,7 +583,7 @@
0, 2) . '%'
: '--- '; ?></td>
</tr>
<tr class="odd">
<tr class="noclick odd">
<th class="name"><?php echo __('Aborted'); ?></th>
<td class="value"><?php echo
PMA_formatNumber($server_status['Aborted_clients'], 4, 0); ?></td>
Expand All @@ -597,7 +597,7 @@
0, 2) . '%'
: '--- '; ?></td>
</tr>
<tr class="even">
<tr class="noclick even">
<th class="name"><?php echo __('Total'); ?></th>
<td class="value"><?php echo
PMA_formatNumber($server_status['Connections'], 4, 0); ?></td>
Expand Down Expand Up @@ -628,7 +628,7 @@
</tr>
</thead>
<tbody>
<tr class="odd">
<tr class="noclick odd">
<td class="value"><?php echo
PMA_formatNumber($server_status['Questions'], 4, 0); ?></td>
<td class="value"><?php echo
Expand Down Expand Up @@ -697,7 +697,7 @@
$name = str_replace('Com_', '', $name);
$name = str_replace('_', ' ', $name);
?>
<tr class="<?php echo $odd_row ? 'odd' : 'even'; ?>">
<tr class="noclick <?php echo $odd_row ? 'odd' : 'even'; ?>">
<th class="name"><?php echo htmlspecialchars($name); ?></th>
<td class="value"><?php echo PMA_formatNumber($value, 4, 0); ?></td>
<td class="value"><?php echo
Expand Down Expand Up @@ -799,7 +799,7 @@
foreach ($section['vars'] as $name => $value) {
$odd_row = !$odd_row;
?>
<tr class="<?php echo $odd_row ? 'odd' : 'even'; ?>">
<tr class="noclick <?php echo $odd_row ? 'odd' : 'even'; ?>">
<th class="name"><?php echo htmlspecialchars($name) . PMA_showMySQLDocu('server-status-variables', 'server-status-variables', false, 'statvar_' . $name); ?>
</th>
<td class="value"><?php
Expand Down
2 changes: 1 addition & 1 deletion server_variables.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
$odd_row = true;
foreach ($serverVars as $name => $value) {
?>
<tr class="<?php
<tr class="noclick <?php
echo $odd_row ? 'odd' : 'even';
if ($serverVarsGlobal[$name] !== $value) {
echo ' marked';
Expand Down
2 changes: 1 addition & 1 deletion tbl_change.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@
$vrow[$field['Field']] = date('Y-m-d H:i:s', time());
}
?>
<tr class="<?php echo $odd_row ? 'odd' : 'even'; ?>">
<tr class="noclick <?php echo $odd_row ? 'odd' : 'even'; ?>">
<td <?php echo ($cfg['LongtextDoubleTextarea'] && strstr($field['True_Type'], 'longtext') ? 'rowspan="2"' : ''); ?> align="center">
<?php echo $field['Field_title']; ?>
<input type="hidden" name="fields_name<?php echo $field_name_appendix; ?>" value="<?php echo $field['Field_html']; ?>"/>
Expand Down
2 changes: 1 addition & 1 deletion tbl_select.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@

for ($i = 0; $i < $fields_cnt; $i++) {
?>
<tr class="<?php echo $odd_row ? 'odd' : 'even'; $odd_row = ! $odd_row; ?>">
<tr class="noclick <?php echo $odd_row ? 'odd' : 'even'; $odd_row = ! $odd_row; ?>">
<th><?php echo htmlspecialchars($fields_list[$i]); ?></th>
<td><?php echo $fields_type[$i]; ?></td>
<td><?php echo $fields_collation[$i]; ?></td>
Expand Down
10 changes: 5 additions & 5 deletions tbl_tracking.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ function PMA_filter_tracking($data, $filter_ts_from, $filter_ts_to, $filter_user
$style = 'odd';
foreach($columns as $field_index => $field) {
?>
<tr class="<?php echo $style; ?>">
<tr class="noclick <?php echo $style; ?>">
<?php
if ($field['Key'] == 'PRI') {
echo '<td><b><u>' . $field['Field'] . '</u></b></td>' . "\n";
Expand Down Expand Up @@ -336,7 +336,7 @@ function PMA_filter_tracking($data, $filter_ts_from, $filter_ts_to, $filter_user
$str_packed = __('No');
}
?>
<tr class="<?php echo $style; ?>">
<tr class="noclick <?php echo $style; ?>">
<td><b><?php echo $index['Key_name'];?></b></td>
<td><?php echo $index['Index_type'];?></td>
<td><?php echo $str_unique;?></td>
Expand Down Expand Up @@ -420,7 +420,7 @@ function PMA_filter_tracking($data, $filter_ts_from, $filter_ts_to, $filter_user
if ($timestamp >= $filter_ts_from && $timestamp <= $filter_ts_to &&
( in_array('*', $filter_users) || in_array($entry['username'], $filter_users) ) ) {
?>
<tr class="<?php echo $style; ?>">
<tr class="noclick <?php echo $style; ?>">
<td><small><?php echo $i;?></small></td>
<td><small><?php echo $entry['date'];?></small></td>
<td><small><?php echo $entry['username']; ?></small></td>
Expand Down Expand Up @@ -471,7 +471,7 @@ function PMA_filter_tracking($data, $filter_ts_from, $filter_ts_to, $filter_user
if ($timestamp >= $filter_ts_from && $timestamp <= $filter_ts_to &&
( in_array('*', $filter_users) || in_array($entry['username'], $filter_users) ) ) {
?>
<tr class="<?php echo $style; ?>">
<tr class="noclick <?php echo $style; ?>">
<td><small><?php echo $i; ?></small></td>
<td><small><?php echo $entry['date']; ?></small></td>
<td><small><?php echo $entry['username']; ?></small></td>
Expand Down Expand Up @@ -608,7 +608,7 @@ function PMA_filter_tracking($data, $filter_ts_from, $filter_ts_to, $filter_user
$tracking_active = true;
}
?>
<tr class="<?php echo $style;?>">
<tr class="noclick <?php echo $style;?>">
<td><?php echo htmlspecialchars($version['db_name']);?></td>
<td><?php echo htmlspecialchars($version['table_name']);?></td>
<td><?php echo $version['version'];?></td>
Expand Down

0 comments on commit 326f138

Please sign in to comment.