non_rfc_lists.tpl 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 &copy; 1999-2006 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. ?><html><body><form method="post" action="">
  23. <table width="95%" align="center" border="0" cellpadding="2" cellspacing="0">
  24. <tr>
  25. <td colspan="3" align="center" bgcolor="<?php echo $color[0] ?>">
  26. <b><?php echo _("Options") . " - " . _("Mailing Lists"); ?></b>
  27. </td>
  28. </tr>
  29. <tr>
  30. <td colspan="3">&nbsp;</td>
  31. </tr>
  32. <tr>
  33. <td colspan="3">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 main list.</td>
  34. </tr>
  35. <tr>
  36. <td colspan="3">&nbsp;</td>
  37. </tr>
  38. </table>
  39. <table width="80%" align="center" border="0" cellpadding="2" cellspacing="0">
  40. <tr>
  41. <td>
  42. <?php echo _("Enter new mailing list"); ?>:
  43. </td>
  44. <td align="right">
  45. <input type="text" name="newlist" size="30" />
  46. </td>
  47. <td>
  48. <input type="submit" name="addlist" value="<? echo _("Add"); ?>" size="30" />
  49. </td>
  50. </tr>
  51. <tr>
  52. <td colspan="3">&nbsp;</td>
  53. </tr>
  54. <tr>
  55. <td valign="top"><? echo _("Existing mailing lists"); ?>:</td>
  56. <td align="center" colspan="2">
  57. <table cellpadding="2">
  58. <?php
  59. foreach($lists as $index => $list) {
  60. echo '<tr><td>' . $list . '</td><td><input type="submit" name="deletelist[' . $index . ']" value="' . _("Delete") . '" /></td></tr>';
  61. }
  62. ?>
  63. </table>
  64. </td>
  65. </tr>
  66. </table>
  67. </form>
  68. </body>
  69. </html>