non_rfc_lists.tpl 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * non_rfc_lists.tpl
  4. *
  5. * Template for listcommands non-RFC-compliant list subscriptions
  6. * management screen
  7. *
  8. * The following variables are available in this template:
  9. * + $lists - The lists that the user currently has
  10. * configured (an array of list addresses,
  11. * keyed by an ID number)
  12. *
  13. * @copyright 1999-2025 The SquirrelMail Project Team
  14. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  15. * @version $Id$
  16. * @package plugins
  17. * @subpackage listcommands
  18. */
  19. // retrieve the template vars
  20. //
  21. extract($t);
  22. ?><form method="post" action="">
  23. <div id="optionGroups">
  24. <table cellspacing="0">
  25. <tr>
  26. <td class="header1" colspan="2">
  27. <?php echo _("Options") . " - " . _("Mailing Lists"); ?>
  28. </td>
  29. </tr>
  30. <tr>
  31. <td colspan="2"><?php echo _("Manage the (non-RFC-compliant) mailing lists that you are subscribed to for the purpose of providing one-click list replies when responding to list messages. You only need to enter any lists you are subscribed to that do not already comply with RFC 2369.") . '<br /><br />' . _("When entering a new list, input the full email address for the address from which list postings are delivered."); ?><br /><br /></td>
  32. </tr>
  33. <tr>
  34. <td align="right">
  35. <?php echo _("Enter new mailing list"); ?>:
  36. </td>
  37. <td align="left">
  38. <input type="text" name="newlist" size="30" />
  39. <input type="submit" name="addlist" value="<?php echo _("Add"); ?>" size="30" />
  40. </td>
  41. </tr>
  42. <tr>
  43. <td colspan="2">&nbsp;</td>
  44. </tr>
  45. <tr>
  46. <td align="right" valign="top"><?php echo _("Existing mailing lists"); ?>:</td>
  47. <td align="center">
  48. <table border="0" cellpadding="0" cellspacing="0">
  49. <?php
  50. foreach($lists as $index => $list) {
  51. echo '<tr><td>' . $list . '</td><td><input type="submit" name="deletelist[' . $index . ']" value="' . _("Delete") . '" /></td></tr>';
  52. }
  53. ?>
  54. </table>
  55. </td>
  56. </tr>
  57. </table>
  58. </div>
  59. </form>