<tr><td>&nbsp;</td></tr>
<tr>
  <td colspan="2" class="header"><b class="smallheader"><?php echo _("Grant access") ?></b></td>
</tr>

<?php if ($canEdit): ?>
<tr>
  <td class="light" align="right"><b><?php echo _("User") ?>&nbsp;</b></td>
  <td class="item" align="left">
    &nbsp;<input class="fixed" type="text" name="share_user" />
  </td>
</tr>
<?php foreach ($rights as $right => $desc): ?>
<tr>
  <td class="light" align="right"><b><?php echo $right ?>&nbsp;:&nbsp;</b></td>
  <td class="item" align="left">
    <input type="checkbox" name="acl[<?php echo $right ?>]" />
    &nbsp;<?php echo $desc ?>
  </td>
</tr>
<?php endforeach; ?>
<tr>
  <td>&nbsp;</td>
  <td class="header" valign="middle">
    <input type="button" class="button" name="fbutton" onclick="disableButtons(); document.acl.share_user.disabled = false; document.acl.submit();" value="<?php echo _("Create") ?>" />
    <input type="button" class="button" name="resetbut" onclick="resetForm()" value="<?php echo _("Reset") ?>" />
    <input type="button" class="button" name="back" onclick="disableButtons(); document.location.href='<?php echo Horde::applicationUrl('prefs.php', true) ?>'" value="<?php echo _("Return to Options") ?>" />
  </td>
</tr>

<?php else: ?>
<tr>
  <td colspan="2" class="item" align="left"><i><b>&nbsp;<?php echo _("You do not have permission to change access to this folder") ?></b></i></td>
</tr>
<tr>
  <td colspan="2" class="header" valign="middle">
    <input type="button" class="button" name="back" onclick="disableButtons(); document.location.href='<?php echo Horde::applicationUrl('prefs.php', true) ?>'" value="<?php echo _("Return to Options") ?>" />
  </td>
</tr>
<?php endif; ?>
</table>
</form>

