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

Revision 1432, 3.1 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, Louis Sylvain
27  Purpose of file: Add or delete owners and moderators in the list
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
40 <div align="center"><h3><?php printf(_("Mailing list %s"),$r["list"]); ?></h3></div>
41 <?php echo "<br><font color=red>$error</font><br>";?>
42
43 <hr>
44
45 <!-- Modification des propriétaires de la liste -->
46 <form method="post" action="lst_addown.php?id=<?php echo $id ?>">
47 <P><b><?php __("Add an owner to the list"); ?></b></P>
48 <br>
49 <table cellspacing="0" cellpadding="4">
50 <tr>
51     <th><?php __("Enter the new owner's email"); ?> : </th>
52     <td><input type="text" class="int" name="owner" value="" size="20"></td>
53 </tr><tr>
54     <td colspan="2" align="center"><input type="submit" class="inb" name="submit" value="<?php __("Add this owner to the list"); ?>"></td>
55 </tr><tr>
56     <td colspan="2"><font color="#007799"><?php __("Note: an owner is also a moderator"); ?></font></td>
57 </tr>
58 </table>
59 <br><br>
60 </form>
61
62 <hr>
63
64 <!-- Suppression d'un ou plusieurs propriétaires de la liste -->
65 <form method="post" action="lst_delown.php?id=<?php echo $id ?>">
66 <P><b><?php __("Delete one or more owners from the list"); ?></b></P>
67 <br>
68 <table cellspacing="0" cellpadding="4">
69 <tr><th><?php __("Delete"); ?></th><th><?php __("Email address"); ?></th></tr>
70 <?php
71
72 $col=1;
73 for($i=0;$i<$r["owner"]["count"];$i++) {
74     $c=$r["owner"][$i];
75     $col=3-$col;
76     echo "<tr class=\"lst$col\"><td align=\"center\"><input type=\"checkbox\" class=\"inc\" name=\"del[".$i."]\" value=\"".$c."\"></td>";
77     echo "<td>".$c."</td></tr>";
78 }
79 echo "<tr><td colspan=\"2\"><input type=\"hidden\" name=\"count\" value=\"".$r["owner"]["count"]."\"></td></tr>";
80 ?>
81 <tr><td align="center" colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Delete the checked owners"); ?>"></td></tr>
82 <tr><td colspan="2"><font color="#007799"><?php __("Note: a list must have at least one owner"); ?></font></td></tr>
83 </table>
84 </form>
85
86 <hr>
87 </body>
88 </html>
Note: See TracBrowser for help on using the browser.