| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 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 |
|
|---|
| 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 } |
|---|
| 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> |
|---|