| '.$button.' | 
| '; $button .= ''; $button .= ' '; if(isPermitted("Notes",1,"") == 'yes') { $button .= ' '; } $button .= ' | 
 ';
	$list .= ' | '; $list .= $app_strings['LBL_TITLE_OR_DESCRIPTION'].' | '; $list .= ' ';
	$list .= ' | '; $list .= $app_strings['LBL_ENTITY_TYPE'].' | '; $list .= ' ';
	$list .= ' | '; $list .= $app_strings['LBL_FILENAME'].' | '; $list .= ' ';
	$list .= ' | '; $list .= $app_strings['LBL_TYPE'].' | '; $list .= ' ';
	$list .= ' | '; $list .= $app_strings['LBL_LAST_MODIFIED'].' | '; $list .= ' ';
	$list .= ' | '; $list .= $app_strings['LBL_ACTION'].' | '; $list .= ' ';
	$list .= ' | '; $list .= ' | '; $list .= '
![]()  | |||||||||||||
 ';
		if($module == 'Notes')
			$list .= ' | '.$row[0].' | '; elseif($module == 'uploads') $list .= ''.$row[0].' | '; $list .= ' ';
		$list .= ' | '; $list .= $row[1]; $list .= ' | '; $list .= ' ';
		$list .= ' | '; $list .= ''.$row[2].''; $list .= ' | '; $list .= ' ';
		$list .= ' | '; $list .= $row[3]; $list .= ' | '; $list .= ' ';
		$list .= ' | '; if($row[4] != '0000-00-00 00:00:00') $list .= $row[4]; else $list .= ''; $list .= ' |  ';
		$list .= ' | '; if($row[1] == 'Notes') $list .= ''.$app_strings['LNK_EDIT'].' | '; // $list .= ''.$app_strings['LNK_DELETE'].''; $del_param = 'index.php?module='.$module.'&action='.$deleteaction.'&return_module='.$parentmodule.'&return_action='.$return_action.'&record='.$row["crmid"].'&filename='.$row[2].'&return_id='.$_REQUEST["record"]; $list .= ''.$app_strings['LNK_DELETE'].''; $list .= ' | '; $list .= '|
![]()  | |||||||||||||
| '; $button .= ' | 
 ';
		$list .= ' | '; // $list .= $app_strings['LBL_ICON'].'Icon'; $list .= ' |  ';
		$list .= ' | '; $list .= $app_strings['LBL_SUBJECT'].' | '; $list .= ' ';
		$list .= ' | '; $list .= $app_strings['LBL_STATUS'].' | '; $list .= ' ';
		$list .= ' | '; $list .= $app_strings['LBL_LIST_CONTACT_NAME'].' | '; $list .= ' ';
		$list .= ' | '; $list .= $app_strings['LBL_RELATED_TO'].' | '; $list .= ' ';
		$list .= ' | '; $list .= $app_strings['LBL_LAST_MODIFIED'].' | '; $list .= ' ';
		$list .= ' | '; $list .= $app_strings['LBL_ACTION'].' | '; $list .= ' ';
		$list .= ' | '; $list .= ' | '; $list .= '
![]()  | |||||||||||||||
 ';
			$list .= ' |  ';
			$list .= ' | '; $list .= ''.$row['subject'].' | '; $list .= ''; $list .= ' ';
			$list .= ' | '; $list .= $status.''; $list .= ' | '; if($row['firstname'] != 'NULL') $contactname = $row['firstname'].' '; if($ros['lastname'] != 'NULL') $contactname .= $row['lastname']; $list .= ' ';
			$list .= ' | '; $list .= ''.$contactname; $list .= ' | '; $parentname = getRelatedTo('Activities',$result,$i-1); $list .= ' ';
			$list .= ' | '; $list .= $parentname; $list .= ' | '; $list .= ' ';
			$list .= ' | '; $modifiedtime = getDisplayDate($row['modifiedtime']); $list .= $modifiedtime; $list .= ' |  ';
			$list .= ' | '; if(isPermitted("Activities",1,$row["activityid"]) == 'yes') { $list .= ''.$app_strings['LNK_EDIT'].' | '; } if(isPermitted("Activities",2,$row["activityid"]) == 'yes') { $list .= ''.$app_strings['LNK_DELETE'].''; } $list .= ' | '; $list .= '|||











