Leitgedanken/#pma/templates/database/structure/favorite_anchor.phtml
2022-11-21 09:47:28 +01:00

15 lines
673 B
PHTML

<?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>