'; $hidden .= ''; $hidden .= ''; $hidden .= ''; $hidden .= ''; $hidden .= ''; $hidden .= ''; $hidden .= ''; $hidden .= ''; return $hidden; } function renderRelatedContacts($query,$id) { global $vtlog; global $mod_strings; global $app_strings; $hidden = getHiddenValues($id); $hidden .= ''; echo $hidden; $focus = new Contact(); $button .= ' '; if(isPermitted("Contacts",3,"") == 'yes') { $button .= ' '; } $returnset = '&return_module=Emails&return_action=DetailView&return_id='.$id; $list = GetRelatedList('Emails','Contacts',$focus,$query,$button,$returnset); $vtlog->logthis("Contact Related List for Email is Displayed",'info'); echo ''; } function renderRelatedAttachments($query,$id) { global $vtlog; $hidden = getHiddenValues($id); echo $hidden; getAttachmentsAndNotes('Emails',$query,$id); $vtlog->logthis("Notes&Attachments Related List for Email is Displayed",'info'); echo ''; } function renderRelatedUsers($query) { global $theme; $theme_path="themes/".$theme."/"; $image_path=$theme_path."images/"; require_once ($theme_path."layout_utils.php"); global $adb; global $mod_strings; global $app_strings; // echo 'hi tasks '.$query; //echo "
"; global $adb; $id = $_REQUEST['record']; $result=$adb->query($query); $list .= '

'; $list .= ''; $list .= ''; $list .= ''; $list .= ''; $list .= ''; $list .= ''; $list .= ''; $list .= ''; $list .= ''; $list .= ''; $list .= '
'; $list .= ' '; $list .= ''; // $list .= ''; // $list .= ''; $list .= ''; $list .= '
'.$mod_strings['LBL_USER_TITLE'].'    '; $list .= ' 
'; $list .= ''; $list .= '
'; $list .= ''; $list .= ''; $list .= ''; $list .= ''; $list .= ''; $list .= ''; $list .= ''; $list .= ''; $list .= ''; $list .= ''; $i=1; while($row = $adb->fetch_array($result)) { global $current_user; if ($i%2==0) $trowclass = 'evenListRow'; else $trowclass = 'oddListRow'; $list .= ''; $list .= ''; } else { $list .= ''; } $list .= ''; $list .= ''; $i++; } $list .= ''; $list .= '
'; $list .= ''; $list .= $app_strings['LBL_LIST_NAME'].''; $list .= ''; $list .= $app_strings['LBL_LIST_USER_NAME'].''; $list .= ''; $list .= $app_strings['LBL_EMAIL'].''; $list .= ''; $list .= $app_strings['LBL_PHONE'].''; $list .= ''; $list .= $app_strings['LBL_ACTION'].''; $list .= ''; $list .= '
'; if(is_admin($current_user)) { $list .= ''.$row['last_name'].' '.$row['first_name'].''.$row['last_name'].' '.$row['first_name'].''; $list .= ''; $list .= $row['user_name']; $email = $row['email1']; if($email == '') $email = $row['email2']; if($email == '') $email = $row['yahoo_id']; $list .= ''; $list .= ''; $list .= ''.$email.''; $phone = $row['phone_home']; if($phone == '') $phone = $row['phone_work']; if($phone == '') $phone = $row['phone_mobile']; if($phone == '') $phone = $row['phone_other']; if($phone == '') $phone = $row['phone_fax']; $list .= ''; $list .= ''; $list .= $phone; $list .= ''; $list .= ''; //Adding Security Check for User if(is_admin($current_user)) { $list .= ''.$app_strings['LNK_EDIT'].' |'; } $list .= ''.$app_strings['LNK_DELETE'].''; $list .= '
'; echo $list; echo "
\n"; } echo get_form_footer(); ?>