<?php 
/********************************************************************************* 
 *  This file is part of Sentrifugo.
 *  Copyright (C) 2014 Sapplica
 *   
 *  Sentrifugo is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Sentrifugo is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Sentrifugo.  If not, see <http://www.gnu.org/licenses/>.
 *
 *  Sentrifugo Support <support@sentrifugo.com>
 ********************************************************************************/
?>

<?php if(sizeof($this->appData)>0){?>
<div class="cofig_title" style="margin-left: 0px; padding-top: 0px;">Appraisal Details</div>
	<table width="100%" cellspacing="0" cellpadding="0" border="0" class="requisition-table view-table-data" style="margin-bottom: 25px;">
		<tbody>
			
			<tr class="req-bg-form">
                <td width="20%"><span class="head_txt">Business Unit</span>   </td>
                <td width="30%"><?php echo $this->appData['unitname'];?></td>
                <td width="20%"><span class="head_txt">Department</span>  </td>
                <td width="30%"><?php echo isset($this->appData['deptname'])?$this->appData['deptname']:'--';?></td>
            </tr>
            <tr  class="req-no-form">
					<td><span class="head_txt">Appraisal Mode </span></td>
					<td><?php echo $this->appData['appraisal_mode'];?></td>
					<td><span class="head_txt">From Year </span></td>
					<td><?php echo $this->appData['from_year'];?></td>
			</tr> 
			<tr class="req-bg-form">
					<td><span class="head_txt">To Year </span></td>
					<td><?php echo $this->appData['to_year'];?></td>
					<td><span class="head_txt">Period </span></td>
					<td><?php 
					if($this->appData['appraisal_mode'] == 'Quarterly')
						echo "Q".$this->appData['appraisal_period'];
					else if($this->appData['appraisal_mode'] == 'Half-yearly')
						echo "H".$this->appData['appraisal_period'];
					else echo "Yearly";
					?></td>
			</tr>     
        </tbody>
	</table>
<?php }?> 
 