Ejemplo n.º 1
0
	function getActivityDetailHTML($id){
		global $loggedin_user;
		
		$ta = new SI_TaskActivity();
		if($ta->get($id) === false){
			return "Error getting detail for $id: ".$this->getLastError();
		}
		$html = '';
		//$html .= print_r($ta, true);
		$html .= '<div class="ad_div">';
		$html .= '<span class="ad_label">Company:</span>&nbsp;'.$ta->company_name.'<br/>';
		$html .= '<span class="ad_label">User:</span>&nbsp;'.$ta->getUserName().'<br/>';
		if($loggedin_user->hasRight('accounting')){
			$html .= '<span class="ad_label">Hourly Cost:</span>&nbsp;'.$ta->hourly_cost.'<br/>';
			$html .= '<span class="ad_label">Hourly Rate:</span>&nbsp;'.$ta->hourly_rate.'<br/>';
		}
		$html .= '<span class="ad_label">Note:</span><br/>'.nl2br($ta->text).'<br/>';
		$html .= '</div>';
		return $html;
	}