{* +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2016 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | | CiviCRM is free software; you can copy, modify, and distribute it | | under the terms of the GNU Affero General Public License | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | | | CiviCRM is distributed in the hope that it will be useful, but | | WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | See the GNU Affero General Public License for more details. | | | | You should have received a copy of the GNU Affero General Public | | License and the CiviCRM Licensing Exception along | | with this program; if not, contact CiviCRM LLC | | at info[AT]civicrm[DOT]org. If you have questions about the | | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {if $sms} {assign var='newMassUrl' value='civicrm/sms/send'} {assign var='qVal' value='&sms=1'} {assign var='linkTitle' value='New SMS'} {assign var='componentName' value='Mass SMS'} {else} {assign var='newMassUrl' value='civicrm/mailing/send'} {assign var='qVal' value=''} {assign var='linkTitle' value='New Mailing'} {assign var='componentName' value='Mailings'} {/if} {if $showLinks} {/if} {include file="CRM/Mailing/Form/Search.tpl"} {if $rows} {include file="CRM/common/pager.tpl" location="top"} {include file="CRM/common/pagerAToZ.tpl"} {strip} {foreach from=$columnHeaders item=header} {/foreach} {counter start=0 skip=1 print=false} {foreach from=$rows item=row} {if $multilingual} {/if} {if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))} {/if} {/foreach}
{if $header.sort} {assign var='key' value=$header.sort} {$sort->_response.$key.link} {else} {$header.name} {/if}
{$row.name}{$row.language}{$row.status} {$row.created_by} {$row.created_date} {$row.scheduled_by} {$row.scheduled} {$row.start} {$row.end}{$row.campaign}{$row.action|replace:'xx':$row.id}
{/strip} {include file="CRM/common/pager.tpl" location="bottom"} {if $showLinks} {/if} {* No mailings to list. Check isSearch flag to see if we're in a search or not. *} {elseif $isSearch eq 1} {if $archived} {capture assign=browseURL}{crmURL p='civicrm/mailing/browse/archived' q="reset=1"}{$qVal}{/capture} {assign var="browseType" value="Archived"} {elseif $unscheduled} {capture assign=browseURL}{crmURL p='civicrm/mailing/browse/unscheduled' q="scheduled=false&reset=1"}{$qVal}{/capture} {assign var="browseType" value="Draft and Unscheduled"} {else} {capture assign=browseURL}{crmURL p='civicrm/mailing/browse/scheduled' q="scheduled=true&reset=1"}{$qVal}{/capture} {assign var="browseType" value="Scheduled and Sent"} {/if}
{ts 1=$componentName}No %1 match your search criteria. Suggestions:{/ts}
{ts 1=$browseURL 2=$browseType 3=$componentName}Or you can browse all %2 %3.{/ts}
{elseif $unscheduled}
  {capture assign=crmURL}{crmURL p=$newMassUrl q='reset=1'}{/capture} {ts 1=$componentName}There are no Unscheduled %1.{/ts} {if $showLinks}{ts 1=$crmURL}You can create and send one.{/ts}{/if}
{elseif $archived}
  {capture assign=crmURL}{crmURL p='civicrm/mailing/browse/scheduled' q='scheduled=true&reset=1'}{$qVal}{/capture} {ts 1=$crmURL 2=$componentName}There are no Archived %2. You can archive %2 from Scheduled or Sent %2.{/ts}
{else}
  {capture assign=crmURL}{crmURL p=$newMassUrl q='reset=1'}{/capture} {capture assign=archiveURL}{crmURL p='civicrm/mailing/browse/archived' q='reset=1'}{$qVal}{/capture} {ts 1=$componentName}There are no Scheduled or Sent %1.{/ts} {if $showLinks}{ts 1=$crmURL}You can create and send one{/ts}{/if}{if $archiveLinks}{ts 1=$archiveURL 2=$componentName} OR you can search the Archived %2{/ts}{/if}.
{/if}