Initial commit
This commit is contained in:
15
#pma/templates/database/structure/favorite_anchor.phtml
Normal file
15
#pma/templates/database/structure/favorite_anchor.phtml
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
// Check if current table is already in favorite list.
|
||||
$fav_params = array('db' => $db,
|
||||
'ajax_request' => true,
|
||||
'favorite_table' => $current_table['TABLE_NAME'],
|
||||
(($already_favorite ? 'remove' : 'add') . '_favorite') => true
|
||||
);
|
||||
?>
|
||||
<a id="<?= md5($current_table['TABLE_NAME']); ?>_favorite_anchor"
|
||||
class="ajax favorite_table_anchor"
|
||||
href="<?= 'db_structure.php' , PMA_URL_getCommon($fav_params); ?>"
|
||||
title="<?= $already_favorite ? __("Remove from Favorites") : __("Add to Favorites"); ?>"
|
||||
data-favtargets="<?= md5($db . "." . $current_table['TABLE_NAME']); ?>" >
|
||||
<?= !$already_favorite ? $titles['NoFavorite'] : $titles['Favorite']; ?>
|
||||
</a>
|
Reference in New Issue
Block a user