<?php
    $memourl = Horde::addParameter('memo.php', 'memo=' . $memo_id);
    $memourl = Horde::addParameter($memourl, 'memolist=' . $memolist_id);

    $share = $GLOBALS['mnemo_shares']->getShare($memolist_id);
?>    
<table border="0" align="center" width="100%" cellspacing="0" cellpadding="2">
<tr class="control">
    <td align="left">
        <?php if ($share->hasPermission(Auth::getAuth(), _PERMS_EDIT)): ?>
            <?php echo Horde::link(Horde::applicationUrl(Horde::addParameter($memourl, 'actionID=' . MNEMO_MODIFY_MEMO)), _("Modify Note"), 'widget') ?><?php echo _("Modify Note") ?></a>
            <?php if ($share->hasPermission(Auth::getAuth(), _PERMS_DELETE)): ?>
            | 
            <?php endif; ?>
        <?php endif; ?>
        <?php if ($share->hasPermission(Auth::getAuth(), _PERMS_DELETE)): ?>
            <?php echo Horde::link(Horde::applicationUrl(Horde::addParameter($memourl, 'actionID=' . MNEMO_DELETE_MEMOS)), _("Delete Note"), 'widget') ?><?php echo _("Delete Note") ?></a>
        <?php endif; ?>
    </td>
    <td align="right">
        <?php echo Horde::link(Horde::applicationUrl('list.php'), _("Back to Notepad"), 'widget') ?><?php echo _("Back to Notepad") ?></a>&nbsp;&nbsp;
    </td>
</tr>
</table>
<br />
