irm-1.6-b3/include/tracking.class.php
/* Generate an e-mail body suitable for transmission.
	 */
Generate an e-mail body suitable for transmission.
Generate an e - mail body suitable for transmission .
function mailBody()
	{
		$priorityname = namepriority($this->Priority, false);
 		$body .= _("Tracking ID:")." $this->ID for $this->ComputerName: Status $this->Status, Assigned to $this->Assign, $priorityname priority \n";
 		$body .= _("  Work Request:")." $this->WorkRequest\n\n";
		$numFollowups = sizeof($this->Followups);
		if($numFollowups == 0)
		{
			$body .= _("No Followups have been added.")."\n";
		}
		else
		{
			$body .= _("Followups:")."\n";
			foreach ($this->Followups as $fup)
			{
				$body .= $fup->mailBody();
			}
		}
		$body .= "================================================================\n";
		$body .= _("Modify this tracking item:")."\n";
		$body .= "  http://"
				.$_SERVER['SERVER_NAME']
				.Config::AbsLoc("users/tracking-index.php?action=detail&amp;ID=$this->ID")
				."\n";
		$body .= "================================================================\n\n";
		return $body;
	}
function mailBody ( ) { $ priorityname = namepriority ( $ this -> Priority , false ) ; $ body .= _ ( " Tracking ID: " ) . " $ this -> ID  for  $ this -> ComputerName : Status  $ this -> Status , Assigned to  $ this -> Assign ,  $ priorityname  priority  \n " ; $ body .= _ ( "   Work Request: " ) . " $ this -> WorkRequest \n \n " ; $ numFollowups = sizeof ( $ this -> Followups ) ; if ( $ numFollowups == 0 ) { $ body .= _ ( " No Followups have been added. " ) . " \n " ; } else { $ body .= _ ( " Followups: " ) . " \n " ; foreach ( $ this -> Followups as $ fup ) { $ body .= $ fup -> mailBody ( ) ; } } $ body .= " ================================================================ \n " ; $ body .= _ ( " Modify this tracking item: " ) . " \n " ; $ body .= "   http:// " . $ _SERVER [ 'SERVER_NAME' ] . Config :: AbsLoc ( " users/tracking-index.php?action=detail&amp;ID= $ this -> ID " ) . " \n " ; $ body .= " ================================================================ \n \n " ; return $ body ; }
Generate an e-mail body suitable for transmission.
Generate an e - mail body suitable for transmission .