<form method="post" name="folders" action="<?php echo Horde::applicationUrl('acl.php') ?>">
<input type="hidden" name="actionID" value="" />
<?php Horde::pformInput() ?>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
  <td colspan="2" class="header"><?php echo _("Share mail folders") ?></td>
  <?php PrefsUI::generateNavigationCell('acl') ?>
</tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr>
  <td colspan="2" class="header">

    <table border="0" width="100%" cellpadding="0"  cellspacing="0">
    <tr>
      <td align="left" class="smallheader" nowrap="nowrap"><b><?php echo sprintf(_("Current access to %s"), String::convertCharset($folder, 'UTF7-IMAP')) ?></b></td>
      <td align="right" nowrap="nowrap">
        <?php Horde::plink('', _("Change Folder"), 'menuitem', '', 'ACLFolderChange(true); return false;') ?>
        <?php Horde::pimg('shared.gif', _("Change Folder")) ?></a>
        <select name="folder" onchange="ACLFolderChange()"><?php echo $options ?></select>&nbsp;
      </td>
    </tr>
    </table>

  </td>
</tr>
</form>
<form method="post" name="acl" action="<?php echo Horde::applicationUrl('acl.php') ?>">
<input type="hidden" name="actionID" value="imp_acl_set" />
<input type="hidden" name="folder" value="<?php echo $folder ?>" />
<?php Horde::pformInput() ?>
<?php if (!count($curr_acl)): ?>
<tr>
  <td colspan="2" class="item" align="left"><i><b>&nbsp;<?php echo _("The current list of users with access to this folder could not be retrieved") ?></b></i></td>
</tr>
<?php else: ?>
<?php $i = 1; foreach ($curr_acl as $index => $rule): ?>
<tr>
  <td class="light" align="right"><b><?php echo $i++ ?>&nbsp;</b></td>
  <td class="item" align="left">
    <input class="item" type="radio" name="number" value="<?php echo $i-2 ?>" <?php if (in_array($index, $protected)) echo 'disabled ' ?>onclick="selectRule(<?php echo $i - 2 ?>)" />&nbsp;&nbsp;
    <b><?php echo $index ?></b>&nbsp;&nbsp;
    <?php foreach ($rule as $key => $val): ?><?php echo $key ?>,&nbsp;<?php endforeach; ?>
  </td>
</tr>
<?php endforeach; ?>
<tr>
  <td class="light" align="right"><b><?php echo _("New") ?>&nbsp;</b></td>
  <td class="item" align="left">
    <input class="item" type="radio" checked name="number" value="<?php echo $i - 1 ?>" onclick="selectRule(<?php echo $i - 1 ?>)" />&nbsp;&nbsp;
  </td>
</tr>
<?php endif; ?>
