{
global $globals;
+ if (!$globals->asso('mail_domain')) {
+ return PL_NOT_FOUND;
+ }
$this->prepare_client($page);
$page->changeTpl('xnetlists/index.tpl');
{
global $globals;
+ if (!$globals->asso('mail_domain')) {
+ return PL_NOT_FOUND;
+ }
$this->prepare_client($page);
$page->changeTpl('xnetlists/create.tpl');
{
global $globals;
+ if (!$globals->asso('mail_domain')) {
+ return PL_NOT_FOUND;
+ }
$this->prepare_client($page);
$page->changeTpl('xnetlists/sync.tpl');
function handler_aadmin(&$page, $lfull = null)
{
- if (is_null($lfull)) {
+ global $globals;
+
+ if (!$globals->asso('mail_domain') || is_null($lfull)) {
return PL_NOT_FOUND;
}
{
global $globals;
+ if (!$globals->asso('mail_domain')) {
+ return PL_NOT_FOUND;
+ }
new_groupadmin_page('xnet/groupe/alias-create.tpl');
if (!Post::has('submit')) {
{foreachelse}
<tr><td colspan='7'>Pas de listes pour ce groupe</td></tr>
{/foreach}
+ {if $may_update}
+ <tr><td colspan="7" class="center">
+ <a href="{$platal->ns}lists/create">
+ {icon name=add title="Créer une liste"} Créer une nouvelle liste
+ </a>
+ </td></tr>
+ {/if}
</table>
<p class="descr">
<h2>Voici les alias existants pour le groupe {$asso.nom} :</h2>
-{if $alias->total()}
<table cellspacing="0" cellpadding="0" class='large'>
<tr>
<th{if $may_update} colspan='3'{/if}>Alias</th>
</tr>
+ {if $alias->total()}
{iterate from=$alias item=a}
<tr>
{if $may_update}
{/if}
</tr>
{/iterate}
+ {else}
+ <tr>
+ <td{if $may_update} colspan='3'{/if}>Aucun alias pour ce groupe</td>
+ </tr>
+ {/if}
+ {if $may_update}
+ <tr><td colspan="3" class="center">
+ <a href="{$platal->ns}alias/create">
+ {icon name=add title="Créer une liste"} Créer un nouvel alias
+ </a>
+ </td></tr>
+ {/if}
</table>
-{else}
-<p>Aucun alias pour ce groupe</p>
-{/if}
{/if}