source: bureau/admin/mman_list.php @ 104

Revision 104, 2.9 KB checked in by anarcat, 7 years ago (diff)

[project @ alternc: changeset 2003-06-10 07:20:29 by root]
suite de la mise en conformité xhtml 1.0

Original author: root
Date: 2003-06-10 07:20:31

Line 
1<?php
2/*
3 $Id: mman_list.php,v 1.3 2003/06/10 07:20:29 root Exp $
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: Show the Mailing-Lists owned by the current user
28 ----------------------------------------------------------------------
29*/
30require_once("../class/config.php");
31
32
33include("head.php");
34if(!$r=$mailman->enum_ml()) {
35  $error.=$err->errstr();
36        ?>
37        </head>
38        <body>
39        <h3><?php __("Mailing lists"); ?></h3>
40        <?php echo "<p class=\"error\">$error</p>";?>
41        </body>
42        </html>
43
44        <?php
45}
46else {
47        ?>
48        </head>
49        <body>
50        <h3><?php __("Mailing lists"); ?></h3>
51
52        <?php if ($error) echo "<p class=\"error\">$error</p>"; ?>
53
54        <form method="post" action="mman_del.php">
55        <table cellspacing="0" cellpadding="4">
56        <tr><th><?php __("Delete"); ?></th><th><?php __("List name"); ?></th><th colspan="3">&nbsp;</th></tr>
57        <?php
58        reset($r);
59        $col=1;
60        while (list($key,$val)=each($r)) {
61                $col=3-$col;
62                ?>
63                <tr class="lst<?php echo $col; ?>">
64                        <td align="center"><input type="checkbox" class="inc" name="del_<?php echo $val["id"]; ?>" value="<?php echo $val["id"]; ?>" /></td>
65                        <td><?php echo $val["list"]."@".$val["domain"] ?></td>
66                        <td>&nbsp;<a href="http://".$val["domain"]."/cgi-bin/mailman/listinfo/<?php echo $val["name"] ?>"><?php __("Public page"); ?></a>&nbsp;</td>
67                        <td>&nbsp;<a href="http://".$val["domain"]."/cgi-bin/mailman/admin/<?php echo $val["name"] ?>"><?php __("List admin"); ?></a>&nbsp;</td>
68                        <td>&nbsp;<a href="http://".$val["domain"]."/cgi-bin/mailman/admindb/<?php echo $val["name"] ?>"><?php __("Pending messages"); ?></a>&nbsp;</td>
69                </tr>
70                <?php
71                }
72        ?>
73        <tr><td colspan="5" align="center"><input type="submit" class="inb" name="submit" value="<?php __("Delete the checked lists"); ?>" /></td></tr>
74        </table>
75        </form>
76
77        <?php
78}
79
80if ($quota->cancreate("mailman")) { ?>
81        <p><a href="mman_add.php"><?php __("Create a list"); ?></a></p>
82        <?php
83}
84?>
85<p>
86<?php __("hlp_mailman_list"); ?>
87</p>
88
89</body>
90</html>
Note: See TracBrowser for help on using the repository browser.