| 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 |
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> |
|---|