';
$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 .= '