| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -177,22 +177,25 @@ foreach ($userList as $userInfo) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    $htmlText .= '</tr>'; | 
					 | 
					 | 
					 | 
					    $htmlText .= '</tr>'; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    $htmlText .= '</table>'; | 
					 | 
					 | 
					 | 
					    $htmlText .= '</table>'; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    $allUserInfo = DocumentManager::get_all_info_to_certificate( | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        $studentId, | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        $courseCode, | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        $sessionId, | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        false | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    ); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    $myContentHtml = $infoCertificate['content_course']; | 
					 | 
					 | 
					 | 
					    $myContentHtml = $infoCertificate['content_course']; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    $myContentHtml = str_replace(chr(13).chr(10).chr(13).chr(10), chr(13).chr(10), $myContentHtml); | 
					 | 
					 | 
					 | 
					    $myContentHtml = str_replace(chr(13).chr(10).chr(13).chr(10), chr(13).chr(10), $myContentHtml); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    $infoToBeReplacedInContentHtml = $allUserInfo[0]; | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    $infoToReplaceInContentHtml = $allUserInfo[1]; | 
					 | 
					 | 
					 | 
					    if (!empty($courseCode)) { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    $myContentHtml = str_replace( | 
					 | 
					 | 
					 | 
					        $allUserInfo = DocumentManager::get_all_info_to_certificate( | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        $infoToBeReplacedInContentHtml, | 
					 | 
					 | 
					 | 
					            $studentId, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        $infoToReplaceInContentHtml, | 
					 | 
					 | 
					 | 
					            $courseCode, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        $myContentHtml | 
					 | 
					 | 
					 | 
					            $sessionId, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    ); | 
					 | 
					 | 
					 | 
					            false | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        ); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        $infoToBeReplacedInContentHtml = $allUserInfo[0]; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        $infoToReplaceInContentHtml = $allUserInfo[1]; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        $myContentHtml = str_replace( | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            $infoToBeReplacedInContentHtml, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            $infoToReplaceInContentHtml, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            $myContentHtml | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        ); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    $startDate = ''; | 
					 | 
					 | 
					 | 
					    $startDate = ''; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    $endDate = ''; | 
					 | 
					 | 
					 | 
					    $endDate = ''; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |