{* +--------------------------------------------------------------------+ | CiviCRM version 4.4 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2013 | +--------------------------------------------------------------------+ | 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 !$hasCampaigns}
  {ts}No campaigns found.{/ts}
{elseif $buildSelector} {* load campaign selector *} {include file="CRM/common/enableDisableApi.tpl"} {include file="CRM/common/crmeditable.tpl"} {literal} {/literal}
{ts}Campaign ID{/ts} {ts}Campaign Name{/ts} {ts}Title{/ts} {ts}Description{/ts} {ts}Start Date{/ts} {ts}End Date{/ts} {ts}Type ID{/ts} {ts}Type{/ts} {ts}Status ID{/ts} {ts}Status{/ts} {ts}Is Active?{/ts} {ts}Active?{/ts}
{else} {* build search form here *} {* Search form and results for campaigns *}
{assign var='searchForm' value="search_form_$searchFor"}
{ts}Search Campaigns{/ts}
{strip}
{$form.campaign_title.label}
{$form.campaign_title.html}  
{$form.description.label}
{$form.description.html|crmAddClass:huge}
{$form.start_date.label}
{include file="CRM/common/jcalendar.tpl" elementName=start_date}
{$form.end_date.label}
{include file="CRM/common/jcalendar.tpl" elementName=end_date}
{$form.campaign_type_id.label}
{$form.campaign_type_id.html}
{$form.status_id.label}
{$form.status_id.html}
{if $context eq 'search'} {$form.buttons.html} {else} {ts}Search{/ts} {/if}
{/strip}
{* search form ends here *}
{/if} {* end of search form build *} {literal} {/literal}