Added feature to hyperlink master event titles to a search screen containing all of their sub-events.

This commit is contained in:
Roy Johnson 2006-04-19 22:45:59 +00:00
parent 6fdf48b8ba
commit f01e5b3074
3 changed files with 5 additions and 3 deletions

View file

@ -16,7 +16,7 @@
<li><a href='<tmpl_var managePurchases.url>'><tmpl_var managePurchases.label></a></li>
<li><a href="<tmpl_var checkout.url>"><tmpl_var checkout.label></a></li>
</ul>
<tmpl_unless noSearchDialog>
<script type="text/javascript" src="<tmpl_var ems.wobject.dir>/script/dynamicForms.js"></script>
<script type="text/javascript">
<tmpl_var search.filters.options>
@ -110,7 +110,7 @@
</script>
</div>
</tmpl_unless>
<br /><br />
<table width="100%" border="0" cellpadding="8" cellspacing="0" style="border-top:solid gray 2px;border-bottom:solid gray 2px;">

View file

@ -4,7 +4,7 @@
#url:default-ems-template-event
#namespace:EventManagementSystem_product
#create
<h2 class="productTitle"><tmpl_var title></h2>
<h2 class="productTitle"><a href='<tmpl_var title.url>'><tmpl_var title></a></h2>
<table class="productDetails" cellpadding="3" cellspacing="0">
<tr>

View file

@ -2615,6 +2615,7 @@ sub www_search {
$var{'manageEvents.label'} = $i18n->get('manage events');
$var{'managePurchases.url'} = $self->getUrl('func=managePurchases');
$var{'managePurchases.label'} = $i18n->get('manage purchases');
$var{'noSearchDialog'} = ($self->session->form->get('hide') eq "1") ? 1 : 0;
if ($self->session->user->isInGroup($self->get("groupToManageEvents"))) {
@ -2662,6 +2663,7 @@ sub view {
my %eventFields;
$eventFields{'title'} = $event->{'title'};
$eventFields{'title.url'} = $self->getUrl('func=search;cfilter_s1=requirement;cfilter_c1=eq;advSearch=1;hide=1;cfilter_t1='.$event->{'productId'});
$eventFields{'description'} = $event->{'description'};
$eventFields{'price'} = $event->{'price'};
my ($numberRegistered) = $self->session->db->quickArray("select count(*) from EventManagementSystem_registrations as r, EventManagementSystem_purchases as p