'; $list .= ''; $list .= ''; $list .= ''; $list .= ''; $list .= ''; $list .= ''; $list .= ''; return $list; } function renderRelatedTasks($query, $id) { global $mod_strings; global $app_strings; require_once('include/RelatedListView.php'); $hidden = getHiddenValues($id); $hidden .= ''; echo $hidden; $focus = new Activity(); $button = ''; if(isPermitted("Activities",1,"") == 'yes') { $button .= ' '; $button .= ' '; } $returnset = '&return_module=Leads&return_action=DetailView&return_id='.$id; $list = GetRelatedList('Leads','Activities',$focus,$query,$button,$returnset); echo ''; } function renderRelatedEmails($query,$id) { global $mod_strings; global $app_strings; require_once('include/RelatedListView.php'); $hidden = getHiddenValues($id); $hidden .= ''; $hidden .=""; $hidden .=""; echo $hidden; $focus = new Email(); $button = ''; if(isPermitted("Emails",1,"") == 'yes') { $button .= ' '; } $returnset = '&return_module=Leads&return_action=DetailView&return_id='.$id; $list = GetRelatedList('Leads','Emails',$focus,$query,$button,$returnset); echo ''; } function renderRelatedProducts($query,$id) { require_once('modules/Products/Product.php'); global $mod_strings; global $app_strings; $hidden = getHiddenValues($id); echo $hidden; $focus = new Product(); $button = ''; if(isPermitted("Products",1,"") == 'yes') { $button .= ' '; } $returnset = '&return_module=Leads&return_action=DetailView&return_id='.$id; $list = GetRelatedList('Leads','Products',$focus,$query,$button,$returnset); echo ''; } function renderRelatedHistory($query,$id) { getHistory('Leads',$query,$id); } function renderRelatedAttachments($query,$id) { $hidden = getHiddenValues($id); echo $hidden; getAttachmentsAndNotes('Leads',$query,$id); echo ''; } echo get_form_footer(); ?>