MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/rms.cafsjobs.com/application/views/candidate_tracker/candidate_print.php
<?php
	$candidate_name         = ucwords(strtolower($candidate_info->candidate_name));
	$post_applied_for       = ucwords(strtolower($candidate_info->post_applied_for));
	$mobile_number          = $candidate_info->mobile_number;
	$age                    = $candidate_info->age;
	$email                  = strtolower($candidate_info->email_id);
	$marital_status         = ucwords(strtolower($candidate_info->marital_status));
	$current_salary         = $candidate_info->current_salary;
	$expected_salary        = $candidate_info->expected_salary;
	$father_name            = ucwords(strtolower($candidate_info->father_or_husband_name));
	$occupation             = ucwords(strtolower($candidate_info->occupation));
	$income                 = $candidate_info->income;
	$no_of_siblings         = $candidate_info->no_of_siblings;
	$salary_commited        = $candidate_info->salary_commited;
	$permanent_location     = ucwords(strtolower($candidate_info->permanent_location));
	$current_location       = ucwords(strtolower($candidate_info->current_location));
	$consultancy            = ucwords(strtolower($candidate_info->consultancy));
	$candidate_status       = ucwords(strtolower($candidate_info->candidate_status));
	$employee_type          = ucwords(strtolower($candidate_info->employee_type));
	$date_of_joining        = date('d-m-Y',strtotime($candidate_info->date_of_joining));
	$date_of_available      = date('d-m-Y',strtotime($candidate_info->date_of_available));
	$interview_time         = $candidate_info->interview_time;
	$interview_date         = $date_of_available." & ".$interview_time;
	if($date_of_joining === "01-01-1970"){
		$date_of_joining = "";
	}
	$cls ="";
	if($candidate_status === "Pending"){
		$cls = "style='color:blue'";
	}else
	if($candidate_status === "Selected"){
		$cls = "style='color:green'";
	}else
	if($candidate_status === "Rejected"){
		$cls = "style='color:red'";
	}else
	if($candidate_status === "Hold"){
		$cls = "style='color:#aeae19'";
	}else
	if($candidate_status === "Selected For Next Round"){
		$cls = "style='color:orange'";
	}
?>
<style>
	.track>tbody>tr>td {
		border: 1px solid black !important;
		border-collapse: collapse !important; 
		empty-cells: show !important;
		max-width: 100% !important;
		font-size: 13px !important;
		padding: 5px !important;
	}
	table{
		width: 100% !important;
		margin-left: calc(0%) !important;
		margin-right: calc(0%) !important;
	}
</style>
<div style="height: 500px;overflow-y: scroll;">	
	<div style='width: 750px; margin-left: auto; margin-right: auto; padding: 5px; background-color: #fff; border-radius: 3px;'>
		<div id="print_div_body">
		<div id="print_div">
		<div id="candidate_info">
		<div style="float:left;">
		<img data-fr-image-pasted="true" src="http://localhost/cafsrms/upload_image/CAFSlogo.png" class="fr-fic fr-dii fr-fil" style="width: 173px;"> 
		</div>
		<!-- <div style="float:right;">
			<img src="http://localhost/cafsrms/upload_image/4f875e7fff83baf85991a9ec604dd13465fd3832.jpg" class="fr-fic fr-dib fr-fir" style="width: 70px;">
		</div> -->
		<p style="text-align: center;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p>
		<p style="text-align: center;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p>
		<p style="text-align: center;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p>
		<p style="text-align: center;"><strong><u>CANDIDATE&rsquo;S INFORMATION FORM</u></strong></p>
		<table style="width: 100%;line-height: 2em;margin-bottom: 10px;" class="track">
		<tbody>
			<tr>
				<td style="width: 17.0000%;">&nbsp; Candidate Status</td>
				<td style="width: 17.0000%;"><span <?php echo $cls; ?>>&nbsp; <?php echo $candidate_status; ?></span></td>
				<td style="width: 17.09%;">&nbsp; Date of Joining</td>
				<td style="width: 17.8155%;">&nbsp; <?php echo $date_of_joining; ?></td>
				<td style="width: 17.09%;">&nbsp; Salary</td>
				<td style="width: 12.8155%;">&nbsp; <?php echo $salary_commited;  ?></td>
			</tr>
		</tbody>
	</table>
		<table style="width: 100%;line-height: 2em;" class="track">
		<tbody>			
			<tr>
				<td style="width: 25.0000%;">&nbsp; Candidate&rsquo;s &nbsp;Name</td>
				<td style="width: 25.0000%;">&nbsp; <?php echo $candidate_name; ?></td>
				<td style="width: 27.09%;">&nbsp; Reference / Consultancy Name</td>
				<td style="width: 22.8155%;">&nbsp; <?php echo $consultancy; ?></td>
			</tr>
			<tr>
				<td style="width: 25.0000%;">&nbsp; Post Applied For</td>
				<td style="width: 25.0000%;">&nbsp; <?php echo $post_applied_for; ?></td>
				<td style="width: 27.09%;">&nbsp; Marital Status</td>
				<td style="width: 22.8155%;">&nbsp; <?php echo $marital_status; ?></td>
			</tr>
			<tr>
				<td style="width: 25.0000%;">&nbsp; Mobile No</td>
				<td style="width: 25.0000%;">&nbsp; <?php echo $mobile_number; ?></td>
				<td style="width: 27.09%;">&nbsp; Father / Husband Name</td>
				<td style="width: 22.8155%;">&nbsp; <?php echo $father_name; ?></td>
			</tr>
			<tr>
				<td style="width: 25.0000%;">&nbsp; E-Mail ID</td>
				<td style="width: 25.0000%;">&nbsp; <?php echo $email; ?></td>
				<td style="width: 27.09%;">&nbsp; Occupation and Income</td>
				<td style="width: 22.8155%;">&nbsp; <?php echo $occupation; ?> and <?php echo $income; ?></td>
			</tr>
			<tr>
				<td style="width: 25.0000%;">&nbsp; Age</td>
				<td style="width: 25.0000%;">&nbsp; <?php echo $age; ?></td>
				<td style="width: 27.09%;">&nbsp; No of Siblings</td>
				<td style="width: 22.8155%;">&nbsp; <?php echo $no_of_siblings; ?></td>
			</tr>
			<tr>
				<td style="width: 25.0000%;">&nbsp; Current Salary</td>
				<td style="width: 25.0000%;">&nbsp; <?php echo $current_salary; ?></td>
				<td style="width: 27.09%;">&nbsp; Permanent &nbsp;Location</td>
				<td style="width: 22.8155%;">&nbsp; <?php echo $permanent_location; ?></td>
			</tr>
			<tr>
				<td style="width: 25.0000%;">&nbsp; Expected Salary</td>
				<td style="width: 25.0000%;">&nbsp; <?php echo $expected_salary; ?></td>
				<td style="width: 27.09%;">&nbsp; Current Location (Area)</td>
				<td style="width: 22.8155%;">&nbsp; <?php echo $current_location; ?></td>
			</tr>
			<tr>
				<td style="width: 25.0000%;">&nbsp; Interview Date & Time</td>
				<td style="width: 25.0000%;">&nbsp; <?php echo $interview_date; ?></td>
				<td style="width: 27.09%;">&nbsp; Employee Type</td>
				<td style="width: 22.8155%;">&nbsp; <?php echo $employee_type; ?></td>
			</tr>
		</tbody>
		</table>
		<p>&nbsp;</p>
		<p style="text-align: center;"><strong><u>EDUCATIONAL QUALIFICATION</u></strong></p>
		<table style="width: 100%;line-height: 2em;" class="track">
		<tbody>
			<tr>
				<td style="width: 16.6667%;">
					<div style="text-align: center;"><strong>Standard</strong></div>
				</td>
				<td style="width: 16.6667%;">
					<div style="text-align: center;"><strong>Board/University</strong></div>
				</td>
				<!--<td style="width: 16.6667%;">
					<div style="text-align: center;"><strong>Medium</strong></div>
				</td>-->
				<td style="width: 16.6667%;">
					<div style="text-align: center;"><strong>Degree</strong></div>
				</td>
				<td style="width: 16.6667%;">
					<div style="text-align: center;"><strong>Year of Passing</strong></div>
				</td>
				<td style="width: 16.6667%;">
					<div style="text-align: center;"><strong>Percentage</strong></div>
				</td>
			</tr>
			<?php
					$edu_tr_line  ="";
					foreach($education_info as $educ_val){
						$standard    = ucwords(strtolower($educ_val->standard));
						$university  = ucwords(strtolower($educ_val->board_university));
						$degree      = ucwords(strtolower($educ_val->degree));
						$pass_year   = $educ_val->year_of_passing;
						$percentage  = $educ_val->percentage;
						$edu_tr_line .= "<tr><td>$standard </td><td>$university</td><td>$degree</td><td>$pass_year</td><td>$percentage</td></tr>";
					}
					echo $edu_tr_line;
			?>
		</tbody>
		</table>
		<p>&nbsp;</p>
		<p style="text-align: center;"><strong><u>WORKING EXPERIENCE (Till Now)</u></strong></p>
		<table style="width: 100%;line-height: 2em;" class="track">
		<tbody>
			<tr>
				<td style="width: 15.0000%;" rowspan="2">
					<div style="text-align: center;"><strong>Organization Name</strong></div>
				</td>
				<td style="width: 15.0000%;" rowspan="2">
					<div style="text-align: center;"><strong>Designation</strong></div>
				</td>
				<td style="width: 15.0000%;" rowspan="2">
					<div style="text-align: center;"><strong>Work Location</strong></div>
				</td>
				<td colspan="2" style="width: 20.0000%;">
					<div style="text-align: center;"><strong>Work Duration</strong></div>
				</td>
				<td colspan="2" style="width: 15.0000%;">
					<div style="text-align: center;"><strong>Salary Per Month</strong></div>
				</td>
				<td style="width: 20.0000%;" rowspan="2">
					<div style="text-align: center;"><strong>Reason for Relieving</strong></div>
				</td>
			</tr>
			<tr>
				<td style="width: 10.0000%;">
					<div style="text-align: center;"><strong>Joined Year</strong></div>
				</td>
				<td style="width: 10.0000%;">
					<div style="text-align: center;"><strong>Relived Year</strong></div>
				</td>
				<td style="width: 7.5000%;">
					<div style="text-align: center;"><strong>Start</strong></div>
				</td>
				<td style="width: 7.5000%;">
					<div style="text-align: center;"><strong>Left</strong></div>
				</td>
			</tr>
				<?php
					$work_tr_line="";
					foreach($work_info as $work_val){
						$organization_name    = ucwords(strtolower($work_val->organization_name));
						$work_location        = ucwords(strtolower($work_val->work_location));
						$cur_designation      = ucwords(strtolower($work_val->current_designation));
						$joined_date          = $work_val->joined_date;
						$relived_date         = $work_val->relived_date;
						$salary_start         = $work_val->salary_start;
						$salary_left          = $work_val->salary_left;
						$reason               = $work_val->reasone_for_relieving;
						if($relived_date === "01-01-1970"){
							$relived_date = "";
						}
						$work_tr_line .= "<tr><td>$organization_name </td><td>$cur_designation</td><td>$work_location</td><td style='white-space: nowrap;'>$joined_date</td><td style='white-space: nowrap;'>$relived_date</td><td>$salary_start</td><td>$salary_left</td><td>$reason</td></tr>";
					}
					echo $work_tr_line;
				?>
		</tbody>
		</table>
		<p>&nbsp;</p>
		<p style="text-align: center;"><strong><u>INTERVIEW STATUS</u></strong></p>
		<table style="width: 100%;line-height: 2em;" class="track">
		<tbody>
			<tr>
				<td style="width: 10.0000%;">
					<div style="text-align: center;"><strong>Si.No</strong></div>
				</td>
				<td style="width: 15.0000%;">
					<div style="text-align: center;"><strong>Interviewer Name</strong></div>
				</td>
				<td style="width: 15.0000%;">
					<div style="text-align: center;"><strong>Interview Status</strong></div>
				</td>
				<td style="width: 10.0000%;">
					<div style="text-align: center;"><strong>Avg. Rating</strong></div>
				</td>
				<td style="width: 50.0000%;">
					<div style="text-align: center;"><strong>Remarks</strong></div>
				</td>
			</tr>
			<?php
					$interview_tr_line="";
					$i = 1;
					foreach($interview_status as $interview_val){
						$interviewer      = ucwords(strtolower($interview_val->emp_name));
						$interview_status = ucwords(strtolower($interview_val->candidate_status));
						$overall_rating   = $interview_val->overall_rating;
						$remarks          = $interview_val->remarks;
						$remarks = str_replace("xdbquot",'"',$remarks);
						$remarks = str_replace("xquot","'",$remarks);
						$remarks = str_replace("xxamp","&",$remarks);
						$remarks = ucwords(strtolower($remarks));
						$interview_tr_line .= "<tr><td>$i.</td><td>$interviewer</td><td>$interview_status</td><td>$overall_rating</td><td>$remarks</td></tr>";
						$i++;
					}
					echo $interview_tr_line;
				?>
		</tbody>
		</table>
		<p>&nbsp;</p>
		<p style="text-align: center;"><strong><u>QUESTIONS RATINGS</u></strong></p>
		<?php	
				
				$qustion_list = array();
				foreach($question_status as $question_val){
					$question         = $question_val->question;
					$emp_name         = $question_val->emp_name;
					$rating           = $question_val->rating;
					$remarks          = $question_val->remarks;
					$remarks          = str_replace("xdbquot",'"',$remarks);
					$remarks          = str_replace("xquot","'",$remarks);
					$remarks          = str_replace("xxamp","&",$remarks);
					$qustion_list[$emp_name][] = array("question"=>$question,"rating"=>$rating,"remarks"=>$remarks);
				
				}
				$i = 1;
				$para_head ="";
				foreach($qustion_list as $qust_key=>$quest_val){
					$qust_key  = ucwords(strtolower($qust_key));
					$para_head = "<p>$i. $qust_key</p>";
					$j = 1;
					$tb_line = "";
					foreach($quest_val as $quest){
						$question         = $quest['question'];
						$rating           = $quest['rating'];
						$remarks          = $quest['remarks'];
						$tb_line .= "<tr><td>$j.</td><td>$question</td><td>$rating</td><td>$remarks</td></tr>";
						$j++;
					}
					$i++;
					$tble_head  ="$para_head
							<table style='width: 100%;line-height: 2em;' class='track'>
							<tbody>
							<tr>
								<td style='width: 10.0000%;'>
									<div style='text-align: center;'><strong>Si.No</strong></div>
								</td>
								<td style='width: 40.0000%;'>
									<div style='text-align: center;'><strong>Questions</strong></div>
								</td>
								<td style='width: 10.0000%;'>
									<div style='text-align: center;'><strong>Ratings</strong></div>
								</td>
								<td style='width: 40.0000%;'>
									<div style='text-align: center;'><strong>Remarks</strong></div>
								</td>
							</tr>
							$tb_line
							</tbody></table><br/>";
						echo $tble_head;
				}
		?>
		</div>
 
</div>
</div>
</div>
</div>