{{value.title}} | +{{value.value}} | +
diff --git a/CRM/Campaign/KPI.php b/CRM/Campaign/KPI.php index 2a82198..48dde5c 100644 --- a/CRM/Campaign/KPI.php +++ b/CRM/Campaign/KPI.php @@ -14,6 +14,8 @@ | written permission from the original author(s). | +--------------------------------------------------------*/ +require_once('CRM/CampaignTree/Tree.php'); + class CRM_Campaign_KPI { /** diff --git a/CRM/CampaignTree/BAO/Campaign.php b/CRM/CampaignTree/BAO/Campaign.php new file mode 100644 index 0000000..8d7196d --- /dev/null +++ b/CRM/CampaignTree/BAO/Campaign.php @@ -0,0 +1,555 @@ + $value) { + $campaignList[$id]['id'] = $value['id']; + $campaignList[$id]['name'] = $value['title']; + + // append parent names if in search mode + /*if (empty($params['parent_id']) && !empty($value['parents'])) { + $campaignIds = explode(',', $value['parents']); + $title = array(); + foreach ($campaignIds as $cId) { + $title[] = self::getCampaign($cId)['title']; + } + $campaignList[$id]['name'] .= '
{{value.title}} | +{{value.value}} | +
+ {$form.title.label} + {$form.title.html} + + {ts}Complete OR partial campaign name.{/ts} + + |
+
+ {$form.description.label} + {$form.description.html} + + {ts}Complete OR partial description.{/ts} + + |
+ |
+ {$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.show.label} + {$form.show.html} + |
+
+ {$form.active.label} + {$form.active.html} + |
+ |
+ {$form.type_id.label} + {$form.type_id.html} + + {ts}Filter search by campaign type.{/ts} + + |
+
+ {$form.status_id.label} + {$form.status_id.html} + + {ts}Filter search by campaign status.{/ts} + + |
+ |
+ {$form.created_by.label} + {$form.created_by.html} + + {ts}Complete OR partial creator name.{/ts} + + |
+
+ {$form.external_id.label} + {$form.external_id.html} + + + |
+ |
{$form.buttons.html} | + |
{ts}Name{/ts} | +{ts}Description{/ts} | +{ts}Start Date{/ts} | +{ts}End Date{/ts} | +{ts}Type{/ts} | +{ts}Status{/ts} | +{ts}Created By{/ts} | +{ts}External ID{/ts} | ++ | + |
---|