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

Revision 1432, 3.2 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: Louis Sylvain
27  Purpose of file: Add or delete subscribers in the mailing-list
28  ----------------------------------------------------------------------
29 */
30 require_once("../class/config.php");
31
32 include("head.php");
33 $r=$sympa->get_ml($id);
34
35 $total=$sympa->get_ml_users($id,0);
36 ?>
37     </head>
38     <body>
39
40     <div align="center"><h3><?php printf(_("Mailing list %s"),$r["list"]); ?></h3></div>
41     <?php
42
43     // Affichage des liens pour vpir ou récupérer la liste des inscrits si il y en a
44     if ($total==0) {
45         $error=$err->errstr();
46         echo "<font color=\"#FF0000\">".$error."</font>";
47     } else {
48     ?>
49
50     <p><?php printf(_("There is %s subscriber(s) in your list"),$total["count"]); ?></p>
51     <p><a href="lst_affsub.php?id=<?php echo $id ?>&offset=0"><?php __("View, edit and delete subscribers"); ?></a></p>
52     <p><a href="lst_downsub.php?id=<?php echo $id ?>"><?php __("Download the subscribers list"); ?></a></p>
53     <?php } // fin if
54     ?>
55     <hr>
56
57     <!-- champ de saisie permettant de saisir un email -->
58     <form method="post" action="lst_addsub.php?id=<?php echo $id ?>">
59     <P><b><?php __("Add a subscriber to the list"); ?></b></P>
60     <br>
61     <table cellspacing="0" cellpadding="4">
62     <tr>
63         <th align="left"><?php __("Email address"); ?></th>
64         <td><input type="text" class="int" name="user" value="" size="20"></td>
65     </tr>
66     <tr>
67         <th align="left"><?php __("User's name"); ?></th>
68         <td><input type="text" class="int" name="nom_user" value="" size="20"></td>
69     </tr>
70     <tr>
71         <td colspan="2" align="center"><input type="submit" class="inb" name="submit" value="<?php __("Subscribe this email to the list"); ?>"></td>
72     </tr>
73     </table>
74     </form>
75
76     <hr>
77
78     <!-- Textearea permettant de saisir directement plusieurs emails -->
79     <form method="post" action="lst_addsub1.php?id=<?php echo $id ?>">
80     <P><b><?php __("Subscribe many users to the list:"); ?></b></P>
81     <table cellspacing="0" cellpadding="4">
82     <tr>
83         <th valign="top"><?php __("Enter the user email list, one per line"); ?></th>
84     </tr>
85     <tr>
86         <td align="center"><textarea cols="30" rows="15" class="int" name="inscrire"></textarea></td>
87     </tr>
88     <tr>
89         <td align="center"><input type="submit" class="inb" name="submit" value="<?php __("Subscribe those users to the list"); ?>"></td>
90     </tr>
91     </table>
92     </form>
93     <hr>
94 </body>
95 </html>
Note: See TracBrowser for help on using the browser.