<?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" cellpadding="2" cellspacing="0" width="100%">
<tr>
    <td align="left" class="header"><b><?php echo _("Note Details") ?></b></td>
</tr>
</table>

<table border="0" cellpadding="2" cellspacing="0" width="100%">
<tr>
    <td class="item" nowrap="nowrap" align="right" valign="top"><b><?php echo _("Category") ?></b>&nbsp;</td>
    <td class="item" nowrap="nowrap"><?php echo Mnemo::formatCategory($memo['category'], $memolist_id) ?></td>
    <td class="item" width="100%">&nbsp;</td>
    <?php if(!$print_view) : ?>
    <td class="item" nowrap="nobr" align="right">
        <?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 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; ?>
        <?php echo Horde::link(Horde::applicationUrl('list.php'), _("Back to Notepad"), 'widget') ?><?php echo _("Back to Notepad") ?></a>&nbsp;&nbsp;
    </td>
    <?php endif; ?>
</tr>
</table>
