{* $Id$ *} {assign var=nlId_urlencoded value=$nlId|urlencode} {title url="tiki-admin_newsletter_subscriptions.php?nlId=$nlId_urlencoded"}{tr}Admin newsletter subscriptions{/tr}{/title}
{button href="tiki-newsletters.php" class="btn btn-info" _icon_name="list" _text="{tr}List{/tr}"} {assign var="nlid_encod" value=$nlId|urlencode} {button href="tiki-admin_newsletters.php?nlId=$nlid_encod" class="btn btn-primary" _icon_name="edit" _text="{tr}Edit{/tr}"} {button href="tiki-admin_newsletters.php" class="btn btn-primary" _icon_name="cog" _text="{tr}Admin{/tr}"} {button href="tiki-send_newsletters.php?nlId=$nlid_encod" class="btn btn-primary" _icon_name="envelope" _text="{tr}Send{/tr}"}
{tr}Newsletter{/tr}
{tr}Name:{/tr} {$nl_info.name|escape}
{tr}Description:{/tr} {$nl_info.description|escape|nl2br}
{tabset name='tabs_newsletter_subscriptions'} {tab name="{tr}Subscriptions{/tr}"}

{tr}Subscriptions{/tr}

{* groups------------------------------------ *} {if $nb_groups > 0}
{section name=ix loop=$groups_g} {/section}
{tr}Group{/tr}
{$groups_g[ix].groupName|escape} {if count($groups_g[ix].additional_groups)}
{tr}Groups included through inheritance:{/tr} {foreach from=$groups_g[ix].additional_groups item=groupName} {$groupName|escape} {/foreach}
{/if}
{icon name='remove'}
{/if} {* /groups------------------------------------ *} {* included------------------------------------ *} {if $nb_included > 0}
{foreach key=incId item=incName from=$included_n} {/foreach}
{tr}Newsletter{/tr}
{$incName|escape} {icon name='remove'}
{/if} {* /included------------------------------------ *} {* pages------------------------------------ *} {if $nb_pages > 0}
{section name=ix loop=$pages} {/section}
{tr}Wiki Page Name{/tr} {tr}Validate Addresses{/tr} {tr}Add To List{/tr}
{$pages[ix].wikiPageName|escape} {$pages[ix].validateAddrs|escape} {$pages[ix].addToList|escape} {icon name='remove'}
{/if} {* /pages------------------------------------ *} {include file='find.tpl'}
{ticket}
{section name=user loop=$channels} {sectionelse} {norecords _colspan=5} {/section}
{select_all checkbox_names='checked[]'} {tr}Email{/tr} - {tr}User{/tr} {tr}Valid{/tr} {tr}Subscribed{/tr}
{if $channels[user].isUser == "y"} {$channels[user].email|userlink} {else} {$channels[user].email|escape} {/if} {if $channels[user].valid == "n"} {tr}No{/tr} {elseif $channels[user].valid == "x"} {tr}Unsubscribed{/tr} {else} {tr}Yes{/tr} {/if} {$channels[user].subscribed|tiki_short_datetime} {icon name='remove'}
{if $channels}
{/if}
{pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset}{/pagination_links} {/tab} {tab name="{tr}Add subscribers{/tr}"}

{tr}Add subscribers{/tr}

{ticket}
{tr}You can add several email addresses by separating them with commas.{/tr}
{tr}Group subscription also subscribes included groups{/tr}
{if $nl_info.validateAddr eq "y"}
{tr}The user email will be refreshed at each newsletter sending{/tr}
{/if}
{if $tiki_p_batch_subscribe_email eq "y" && $tiki_p_subscribe_email eq "y"}

{tr}Import emails from file{/tr}

{ticket}
{tr}.txt file, one email per line{/tr}
{if $nl_info.validateAddr eq "y"}
{/if}

{tr}Import emails from wiki page{/tr}

{ticket}
{tr}Wiki page, one email per line{/tr}
{if $nl_info.validateAddr eq "y"}
{/if}

{tr}Import emails from tracker{/tr}

{ticket}
{/if}

{tr}Subscribe group{/tr}

{ticket}
{tr}Including group, group users and emails will be refreshed at each newsletter sending{/tr}

{tr}Use subscribers of another newsletter{/tr}

{ticket}

{tr}Use emails from wiki page{/tr}

{ticket}
{tr}Emails on a wiki page which will be added at each newsletter sending, one email per line{/tr}
{autocomplete element='input[name=wikiPageName]' type='pagename'}
{/tab} {tab name="{tr}Export Subscriber Emails{/tr}"}

{tr}Export Subscriber Emails{/tr}


{/tab} {/tabset}