Merge branch 'master' of git://phpmyadmin.git.sourceforge.net/gitroot/phpmyadmin/phpmyadmin
This commit is contained in:
commit
3499d8f79b
@ -1271,11 +1271,11 @@ function PMA_DBI_get_procedures_or_functions($db, $which, $link = null)
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the definition of a specific PROCEDURE, FUNCTION or EVENT
|
||||
* returns the definition of a specific PROCEDURE, FUNCTION, EVENT or VIEW
|
||||
*
|
||||
* @param string $db db name
|
||||
* @param string $which PROCEDURE | FUNCTION | EVENT
|
||||
* @param string $name the procedure|function|event name
|
||||
* @param string $which PROCEDURE | FUNCTION | EVENT | VIEW
|
||||
* @param string $name the procedure|function|event|view name
|
||||
* @param resource $link mysql link
|
||||
*
|
||||
* @return string the definition
|
||||
@ -1285,7 +1285,8 @@ function PMA_DBI_get_definition($db, $which, $name, $link = null)
|
||||
$returned_field = array(
|
||||
'PROCEDURE' => 'Create Procedure',
|
||||
'FUNCTION' => 'Create Function',
|
||||
'EVENT' => 'Create Event'
|
||||
'EVENT' => 'Create Event',
|
||||
'VIEW' => 'Create View'
|
||||
);
|
||||
$query = 'SHOW CREATE ' . $which . ' ' . PMA_backquote($db) . '.' . PMA_backquote($name);
|
||||
return(PMA_DBI_fetch_value($query, 0, $returned_field[$which]));
|
||||
|
||||
3
sql.php
3
sql.php
@ -1013,8 +1013,7 @@ $(document).ready(makeProfilingChart);
|
||||
<input type="hidden" name="fields[query]" value="<?php echo urlencode(isset($complete_query) ? $complete_query : $sql_query); ?>" />
|
||||
<fieldset>
|
||||
<legend><?php
|
||||
echo ($cfg['PropertiesIconic'] ? '<img class="icon ic_b_bookmark" src="themes/dot.gif" alt="' . __('Bookmark this SQL query') . '" />' : '')
|
||||
. __('Bookmark this SQL query');
|
||||
echo PMA_getIcon('b_bookmark.png', __('Bookmark this SQL query'));
|
||||
?>
|
||||
</legend>
|
||||
|
||||
|
||||
@ -589,12 +589,24 @@ if (! $tbl_is_view && ! $db_is_information_schema) {
|
||||
/**
|
||||
* Work on the table
|
||||
*/
|
||||
?>
|
||||
<a href="tbl_printview.php?<?php echo $url_query; ?>"><?php
|
||||
if ($cfg['PropertiesIconic']) {
|
||||
echo '<img class="icon ic_b_print" src="themes/dot.gif" alt="' . __('Print view') . '"/>';
|
||||
|
||||
if ($tbl_is_view) {
|
||||
$create_view = PMA_DBI_get_definition($db, 'VIEW', $table);
|
||||
echo PMA_linkOrButton(
|
||||
'tbl_sql.php' . PMA_generate_common_url(
|
||||
$url_params +
|
||||
array(
|
||||
'sql_query' => $create_view,
|
||||
'show_query' => '1',
|
||||
)
|
||||
),
|
||||
PMA_getIcon('b_edit.png', __('Edit view'))
|
||||
);
|
||||
}
|
||||
echo __('Print view');
|
||||
?>
|
||||
|
||||
<a href="tbl_printview.php?<?php echo $url_query; ?>"><?php
|
||||
echo PMA_getIcon('b_print.png', __('Print view'));
|
||||
?></a>
|
||||
|
||||
<?php
|
||||
@ -605,19 +617,13 @@ if (! $tbl_is_view && ! $db_is_information_schema) {
|
||||
if ($cfgRelation['relwork'] || PMA_foreignkey_supported($tbl_type)) {
|
||||
?>
|
||||
<a href="tbl_relation.php?<?php echo $url_query; ?>"><?php
|
||||
if ($cfg['PropertiesIconic']) {
|
||||
echo '<img class="icon ic_b_relations" src="themes/dot.gif" alt="' . __('Relation view') . '"/>';
|
||||
}
|
||||
echo __('Relation view');
|
||||
echo PMA_getIcon('b_relations.png', __('Relation view'));
|
||||
?></a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<a href="sql.php?<?php echo $url_query; ?>&session_max_rows=all&sql_query=<?php echo urlencode('SELECT * FROM ' . PMA_backquote($table) . ' PROCEDURE ANALYSE()'); ?>"><?php
|
||||
if ($cfg['PropertiesIconic']) {
|
||||
echo '<img class="icon ic_b_tblanalyse" src="themes/dot.gif" alt="' . __('Propose table structure') . '" />';
|
||||
}
|
||||
echo __('Propose table structure');
|
||||
echo PMA_getIcon('b_tblanalyse.png', __('Propose table structure'));
|
||||
?></a><?php
|
||||
echo PMA_showMySQLDocu('Extending_MySQL', 'procedure_analyse') . "\n";
|
||||
|
||||
@ -625,12 +631,8 @@ if (! $tbl_is_view && ! $db_is_information_schema) {
|
||||
if (PMA_Tracker::isActive())
|
||||
{
|
||||
echo '<a href="tbl_tracking.php?' . $url_query . '">';
|
||||
|
||||
if ($cfg['PropertiesIconic'])
|
||||
{
|
||||
echo '<img class="icon ic_eye" src="themes/dot.gif" alt="' . __('Track table') . '" /> ';
|
||||
}
|
||||
echo __('Track table') . '</a>';
|
||||
echo PMA_getIcon('eye.png', __('Track table'));
|
||||
echo '</a>';
|
||||
}
|
||||
?>
|
||||
|
||||
@ -805,10 +807,7 @@ if ($cfg['ShowStats']) {
|
||||
<tr class="tblFooters">
|
||||
<td colspan="3" align="center">
|
||||
<a href="sql.php?<?php echo $url_query; ?>&pos=0&sql_query=<?php echo urlencode('OPTIMIZE TABLE ' . PMA_backquote($table)); ?>"><?php
|
||||
if ($cfg['PropertiesIconic']) {
|
||||
echo '<img class="icon ic_b_tbloptimize" src="themes/dot.gif" alt="' . __('Optimize table'). '" />';
|
||||
}
|
||||
echo __('Optimize table');
|
||||
echo PMA_getIcon('b_tbloptimize.png', __('Optimize table'));
|
||||
?></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user