root/alternc-sympa/trunk/bureau/admin/lst_edit.php

Revision 1432, 3.7 kB (checked in by benjamin, 6 years ago)

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 <?php
2 /*
3  $Id$
4  ----------------------------------------------------------------------
5  AlternC - Web Hosting System
6  Copyright (C) 2002 by the AlternC Development Team.
7  http://alternc.org/
8  ----------------------------------------------------------------------
9  Based on:
10  Valentin Lacambre's web hosting softwares: http://altern.org/
11  ----------------------------------------------------------------------
12  LICENSE
13
14  This program is free software; you can redistribute it and/or
15  modify it under the terms of the GNU General Public License (GPL)
16  as published by the Free Software Foundation; either version 2
17  of the License, or (at your option) any later version.
18
19  This program is distributed in the hope that it will be useful,
20  but WITHOUT ANY WARRANTY; without even the implied warranty of
21  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22  GNU General Public License for more details.
23
24  To read the license please visit http://www.gnu.org/copyleft/gpl.html
25  ----------------------------------------------------------------------
26  Original Author of file: Benjamin Sonntag, Franck Missoum
27  Purpose of file: Edit the mailing-list parameters.
28  ----------------------------------------------------------------------
29 */
30 require_once("../class/config.php");
31
32 include("head.php");
33 if(!$r=$sympa->get_ml($id)) {
34   $error=$err->errstr();
35 }
36 ?>
37 </head>
38 <body>
39 <div align="center"><h3><?php printf(_("Mailing list %s"),$r["list"]); ?></h3></div>
40 <?php echo "<br><font color=red>$error</font><br>";?>
41
42 <hr>
43 <!-- Paramètres généraux de la liste -->
44 <form method="post" action="lst_doedit.php">
45 <input type="hidden" name="id" value="<?php echo $id; ?>">
46 <p><b><?php __("General list parameters:"); ?></b></p>
47 <table cellpadding="4" cellspacing="0" border="1">
48 <tr>
49     <th><?php __("Subscription mode"); ?></th>
50     <td><select class="inl" name="subscribe_mode"><?php $sympa->select_subscribe_mode($r["subscribe"]) ?></select></td>
51 </tr>
52 <tr>
53     <th><?php __("Unsubscription mode"); ?></th>
54     <td><select class="inl" name="unsubscribe_mode"><?php $sympa->select_unsubscribe_mode($r["unsubscribe"]) ?></select></td>
55 </tr>
56 <tr>
57     <th><?php __("Posting mode"); ?></th>
58     <td><select class="inl" name="send_mode"><?php $sympa->select_send_mode($r["send"]) ?></select></td>
59 </tr>
60 <tr>
61     <th><?php __("Who get the replies"); ?></th>
62     <td><select class="inl" name="reply_to"><?php $sympa->select_reply_to($r["reply_to"]) ?></select>
63     <?php __("email (if needed):"); ?><input type="text" class="int" name="reply_to_email" size="20" value="<?php echo $r["other_email"]; ?>">
64     </td>
65 </tr>
66 <tr>
67     <th><?php __("Text to append in front of mail subject"); ?></th>
68     <td><input class="int" type="text" name="addsubject" size="20" value="<?php echo $r["addsubject"]; ?>">
69     </td>
70 </tr>
71 <tr>
72         <th><?php __("Who can ask for the subscribed users list ?"); ?></th>
73         <td><select class="inl" name="review_mode"><?php $sympa->select_review_mode($r["review"]) ?></select></td>
74         </td>
75 </tr>
76 <tr>
77     <th><?php __("Maximum allowed size of mail messages"); ?></th>
78     <td><select name="max_size"><?php
79         $sympa->size_list($r["max_size"]);
80     ?></select>
81     </td>
82 </tr>
83 <tr>
84     <td colspan="2" align="center"><input type="submit" class="inb" name="submit" value="<?php __("Edit the list's parameters"); ?>"></td>
85 <tr>
86 </tr>
87 </table>
88 </form>
89 <p>&nbsp;</p>
90
91 <hr>
92 <!-- Modification des mails templates -->
93 <P><b><?php __("Edition of automatic mail contents:"); ?></b></P>
94 <table cellspacing="0" cellpadding="4">
95 <?php
96
97 $col=1;
98 reset($sympa->textfiles);
99 while (list($key,$val)=each($sympa->textfiles)) {
100     $col=3-$col;
101     echo "<tr class=\"lst$col\"><td><a href=\"lst_edittxt.php?txt=".urlencode($key)."&id=$id\">Edition</a></td>";
102     echo "<td>"._($val)."</td></tr>";
103 }
104
105 ?>
106 </table>
107
108 <hr>
109
110 </body>
111 </html>
112
113
Note: See TracBrowser for help on using the browser.