Patch #2974341 In db Structure, clicking on table name should Browse if possible

This commit is contained in:
bhdouglass
2010-03-22 17:40:04 -04:00
committed by Marc Delisle
parent 975d4650de
commit 16886bc3fb
2 changed files with 5 additions and 2 deletions

View File

@@ -51,6 +51,8 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
+ [lang] Uzbek update, thanks to Orzu Samarqandiy + [lang] Uzbek update, thanks to Orzu Samarqandiy
+ rfe #2958013 [import] After import, also list uploaded filename, thanks + rfe #2958013 [import] After import, also list uploaded filename, thanks
to Pavel Konnikov and Herman van Rink to Pavel Konnikov and Herman van Rink
+ patch #2974341 [structure] Clicking on table name in db Structure should
Browse the table if possible, thanks to bhdouglass - dougboybhd
3.3.2.0 (not yet released) 3.3.2.0 (not yet released)
- patch #2969449 [core] Name for MERGE engine varies depending on the - patch #2969449 [core] Name for MERGE engine varies depending on the

View File

@@ -300,9 +300,11 @@ foreach ($tables as $keyname => $each_table) {
if ($each_table['TABLE_ROWS'] > 0) { if ($each_table['TABLE_ROWS'] > 0) {
$browse_table = '<a href="sql.php?' . $tbl_url_query . '&amp;pos=0">' . $titles['Browse'] . '</a>'; $browse_table = '<a href="sql.php?' . $tbl_url_query . '&amp;pos=0">' . $titles['Browse'] . '</a>';
$search_table = '<a href="tbl_select.php?' . $tbl_url_query . '">' . $titles['Search'] . '</a>'; $search_table = '<a href="tbl_select.php?' . $tbl_url_query . '">' . $titles['Search'] . '</a>';
$browse_table_label = '<a href="sql.php?' . $tbl_url_query . '&amp;pos=0">' . $truename . '</a>';
} else { } else {
$browse_table = $titles['NoBrowse']; $browse_table = $titles['NoBrowse'];
$search_table = $titles['NoSearch']; $search_table = $titles['NoSearch'];
$browse_table_label = '<a href="tbl_structure.php?' . $tbl_url_query . '">' . $truename . '</a>';
} }
if (! $db_is_information_schema) { if (! $db_is_information_schema) {
@@ -382,8 +384,7 @@ foreach ($tables as $keyname => $each_table) {
<input type="checkbox" name="selected_tbl[]" <input type="checkbox" name="selected_tbl[]"
value="<?php echo htmlspecialchars($each_table['TABLE_NAME']); ?>" value="<?php echo htmlspecialchars($each_table['TABLE_NAME']); ?>"
id="checkbox_tbl_<?php echo $i; ?>"<?php echo $checked; ?> /></td> id="checkbox_tbl_<?php echo $i; ?>"<?php echo $checked; ?> /></td>
<th><label for="checkbox_tbl_<?php echo $i; ?>" <th><?php echo $browse_table_label; ?>
title="<?php echo $alias; ?>" style="<?php echo $ignored ? ' ignored' : ''; ?>"><?php echo $truename; ?></label>
<?php echo (! empty($tracking_icon) ? $tracking_icon : ''); ?> <?php echo (! empty($tracking_icon) ? $tracking_icon : ''); ?>
</th> </th>
<?php if ($server_slave_status) { ?><td align="center"><?php echo $ignored ? ' <img class="icon" src="' . $pmaThemeImage . 's_cancel.png" width="16" height="16" alt="NOT REPLICATED" />' : ''. $do ? ' <img class="icon" src="' . $pmaThemeImage . 's_success.png" width="16" height="16" alt="REPLICATED" />' : ''; ?></td><?php } ?> <?php if ($server_slave_status) { ?><td align="center"><?php echo $ignored ? ' <img class="icon" src="' . $pmaThemeImage . 's_cancel.png" width="16" height="16" alt="NOT REPLICATED" />' : ''. $do ? ' <img class="icon" src="' . $pmaThemeImage . 's_success.png" width="16" height="16" alt="REPLICATED" />' : ''; ?></td><?php } ?>