? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/public_html/old/promice/components/com_jsjobs/views/resume/tmpl/
File Upload :
Current File : /home/admin/public_html/old/promice/components/com_jsjobs/views/resume/tmpl/jobapply.php

<?php
/**
 + Created by:	Ahmad Bilal
 * Company:		Al-Barr Technologies
 + Contact:		www.al-barr.com , info@al-barr.com
 * Created on:	Jan 11, 2009
 ^
 + Project: 		Job Posting and Employment Application
 * File Name:	views/application/tmpl/jobapply.php
 ^ 
 * Description: template view to apply for a job
 ^ 
 * History:		NONE
 ^ 
 */
 
 defined('_JEXEC') or die('Restricted access');
 global $mainframe;
 $user	=& JFactory::getUser();

  $jobtype = array(
		'0' => JText::_('JP_JOBTYPE_FULLTIME'),
		'1' => JText::_('JP_JOBTYPE_PARTTIME'),
		'2' => JText::_('JP_JOBTYPE_INTERNSHIP'));
$jobstatus = array(
		'0' => JText::_('JP_JOBSTATUS_SOURCING'),
		'1' => JText::_('JP_JOBSTATUS_INTERVIEWING'),
		'2' => JText::_('JP_JOBSTATUS_CLOSED'),
		'3' => JText::_('JP_JOBSTATUS_FINALISTS'),
		'4' => JText::_('JP_JOBSTATUS_PENDING'),
		'5' => JText::_('JP_JOBSTATUS_HOLD'));

$isShowButton = 1;
?>

<link rel="stylesheet" type="text/css" media="all" href="<?php echo $mainframe->getBasePath(); ?>components/com_jsjobs/css/<?php echo $this->config['theme']; ?>" />
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="contentpane">
	<tr><td valign="top" class="<?php echo $this->theme['title']; ?>" >	
		<?php echo $this->config['title']; ?>
	</td>
	</tr>
	<tr><td height="23"></td></tr>
	<tr><td>
		<?php 
			if (sizeof($this->joblinks) != 0){	
				foreach($this->joblinks as $lnk)	{ ?>
				<?php echo $lnk; ?>
			<?php }
			} ?>
	</td></tr>
	<tr><td height="1"></td></tr>
	<tr><td>
		<?php 
			if (sizeof($this->emplinks) != 0){	
				foreach($this->emplinks as $lnk)	{ ?>
				<?php echo $lnk; ?>
			<?php } 
		}?>
	</td></tr>
	<tr><td height="13"></td></tr>
	<tr><td class="curloc">
		<?php if ($_GET['aj'] == '1'){ ?>
			<?php echo JText::_('JP_CUR_LOC'); ?> : <a href="index.php?option=com_jsjobs&c=jsjobs&view=resume&layout=jobcat&Itemid=<?php echo $this->Itemid; ?>" class="curloclnk" ><?php echo JText::_('JP_JOB_CATEGORIES'); ?></a> > <a href="index.php?option=com_jsjobs&c=jsjobs&view=resume&layout=listjobs&jobcat=<?php echo $_GET['jobcat']; ?>&Itemid=<?php echo $this->Itemid; ?>" class="curloclnk" ><?php echo JText::_('JP_JOBS_LIST_BY_CATEGORY'); ?></a> ><?php echo JText::_('JP_APPLYNOW'); ?>
		<?php }else if ($_GET['aj'] == '2'){ ?>
			<?php echo JText::_('JP_CUR_LOC'); ?> : <a href="index.php?option=com_jsjobs&c=jsjobs&view=resume&layout=jobsearch&Itemid=<?php echo $this->Itemid; ?>" class="curloclnk"><?php echo JText::_('JP_SEARCH_JOB'); ?></a> > <a href="index.php?option=com_jsjobs&c=jsjobs&view=resume&layout=jobsearchresults&Itemid=<?php echo $this->Itemid; ?>" class="curloclnk" ><?php echo JText::_('JP_JOB_SEARCH_RESULT'); ?></a> > <?php echo JText::_('JP_APPLYNOW'); ?>
		<?php } ?>
	</td></tr>
	<tr><td class="<?php echo $this->theme['heading']; ?>" align="center">
		<?php echo JText::_('JP_APPLYNOW'); ?>
	</td></tr>
	<tr><td height="3"></td></tr>
</table>
<?php
$cur_user_allow 	= $_SESSION['cur_user_allow'];
if ($cur_user_allow[1] == 1) { // Allow Emp App

if ((isset($this->myapplication))&&($this->myapplication->id)){ // Employment Application not empty

?>

	<table cellpadding="0" cellspacing="0" border="0" width="100%" class="contentpane">
		<tr><td colspan="4" height="15"></td></tr>
		<tr>
			<td align="center" class="<?php echo $this->theme['sectionheading']; ?>" colspan="4"><?php echo JText::_('JP_EMP_APP_INFO'); ?></td>
		</tr>
		<tr class="<?php echo $this->theme['odd']; ?>">
			<td></td>
			<td class="maintext" width="25%"><strong><?php echo JText::_('JP_APPLICATION_TITLE'); ?>	</strong></td>
			<td class="maintext"><?php echo $this->myapplication->application_title; ?></td>
			<td></td>
		</tr>
		<tr class="<?php echo $this->theme['even']; ?>">
			<td></td>
			<td class="maintext"><strong><?php echo JText::_('JP_CREATE_DATE'); ?>	</strong></td>
			<td class="maintext"><?php echo $this->myapplication->create_date; ?></td>
			<td></td>
		</tr>
		<tr class="<?php echo $this->theme['odd']; ?>">
			<td></td>
			<td class="maintext" colspan="2" align="center"><font color="red"><strong>
			<?php if ($this->myapplication->status == 0) { //waitng for approval
						echo JText::_('JP_EMP_APP_WAIT_APPROVAL'); 
						$isShowButton = 3;
				}else if ($this->myapplication->status == -1) {//reject
						echo JText::_('JP_EMP_APP_REJECT'); 
						$isShowButton = 4;
				}
			?>	
			</strong></font></td>
			<td></td>
		</tr>
		<tr><td colspan="4" height="15"></td></tr>
		<tr>
			<td align="center" class="<?php echo $this->theme['sectionheading']; ?>" colspan="4"><?php echo JText::_('JP_JOB_INFO'); ?></td>
		</tr>
		<tr class="<?php echo $this->theme['odd']; ?>">
			<td></td>
			<td class="maintext"><strong><?php echo JText::_('JP_TITLE'); ?>	</strong></td>
			<td class="maintext"><?php echo $this->application->title; 
			$isnew = date("Y-m-d H:i:s", strtotime("-$this->config['newdays'] days"));
			if ($this->application->created > $isnew)
				echo "<font color='red'> ".JText::_('JP_NEW')." </font>";
			?></td>
			<td></td>
		</tr>
		<tr class="<?php echo $this->theme['even']; ?>">
			<td></td>
			<td class="maintext"><strong><?php echo JText::_('JP_CATEGORY'); ?>	</strong></td>
			<td class="maintext"><?php echo $this->application->cat_title; ?></td>
			<td></td>
		</tr>
		<tr class="<?php echo $this->theme['odd']; ?>">
			<td></td>
			<td class="maintext"><strong><?php echo JText::_('JP_JOBTYPE'); ?>	</strong></td>
			<td class="maintext"><?php echo $jobtype[$this->application->jobtype-1]; ?></td>
			<td></td>
		</tr>
		<tr class="<?php echo $this->theme['even']; ?>">
			<td></td>
			<td class="maintext"><strong><?php echo JText::_('JP_JOBSTATUS'); ?>	</strong></td>
			<td class="maintext"><?php
				if (($this->application->jobstatus == 1) || ($this->application->jobstatus == 2))
					echo $jobstatus[$this->application->jobstatus-1]; 
				else{
					echo "<font color='red'><strong>" .$jobstatus[$this->application->jobstatus-1] . "</strong></font>"; 
					$isShowButton = 2;
				}
			?></td>
			<td></td>
		</tr>
		<tr class="<?php echo $this->theme['odd']; ?>">
			<td></td>
			<td class="maintext"><strong><?php echo JText::_('JP_COMPANY'); ?>	</strong></td>
			<td class="maintext"><?php echo $this->application->company; ?></td>
			<td></td>
		</tr>
		<tr class="<?php echo $this->theme['even']; ?>">
			<td></td>
			<td class="maintext"><strong><?php echo JText::_('JP_COMPANYURL'); ?>	</strong></td>
			<td class="maintext"><?php echo $this->application->companyurl; ?></td>
			<td></td>
		</tr>
		<tr class="<?php echo $this->theme['odd']; ?>">
			<td></td>
			<td class="maintext"><strong><?php echo JText::_('JP_LOCATION'); ?>	</strong></td>
			<td class="maintext"><?php echo $this->application->cityname; ?>
				<?php if ($this->application->countyname != '') echo ',  '.$this->application->countyname; ?>
				<?php if ($this->application->statename != '') echo ',  '.$this->application->statename; ?>
				<?php if ($this->application->countryname != '') echo ',  '.$this->application->countryname; ?>
			</td>
			<td></td>
		</tr>
		<?php $trclass=$this->theme['odd'];
		if ( $this->config['jpsalaryrange'] == '1' ) {
			if($this->application->jobsalaryrange != 0){ 
			$trclass=$this->theme['even'];
			?>
			<tr class="<?php echo $this->theme['even']; ?>">
				<td></td>
				<td class="maintext"><strong><?php echo JText::_('JP_SALARY_RANGE'); ?>	</strong></td>
				<td class="maintext"><?php $salaryrange = $this->config['currency'] . $this->application->rangestart . ' - ' . $this->config['currency'] . $this->application->rangeend . ' /month';
					echo $salaryrange ?></td>
				<td></td>
			</tr>
		<?php }
		}?>
		<?php if($this->application->noofjobs != 0){ 
			if ($trclass == $this->theme['even']) $trclass = $this->theme['odd']; else $trclass = $this->theme['even'];
			?>
			<tr class="<?php echo $trclass ?>">
				<td></td>
				<td class="maintext"><strong><?php echo JText::_('JP_NOOFJOBS'); ?>	</strong></td>
				<td class="maintext"><?php echo $this->application->noofjobs ?></td>
				<td></td>
			</tr>
		<?php } 
		if ($trclass == $this->theme['even']) $trclass = $this->theme['odd']; else $trclass = $this->theme['even'];
		?>
		<tr class="<?php echo $trclass ?>">
			<td></td>
			<td class="maintext"><strong><?php echo JText::_('JP_DATEPOSTED'); ?>	</strong></td>
			<td class="maintext"><?php echo $this->application->created ?></td>
			<td></td>
		</tr>
		<tr><td colspan="4" height="25"></td></tr>
<form action="index.php" method="post" name="adminForm" id="adminForm">
		<tr>
			<td colspan="3" align="center">
			<?php if ($isShowButton == 1) { ?>
				<input type="submit" class="button" name="submit_app" onclick="document.adminForm.submit();"  value="<?php echo JText::_('JP_APPLYNOW'); ?>" /></td>
			<?php 
				}else if ($isShowButton == 2) { 
					echo "<font color='red'><strong>" . JText::_('JP_JOBSTATUS') . " : " . $jobstatus[$this->application->jobstatus-1] . "</strong></font>"; 
				}else if ($isShowButton == 3) { 
					echo "<font color='red'><strong>" . JText::_('JP_EMP_APP_WAIT_APPROVAL')  . "</strong></font>"; 
				}else if ($isShowButton == 4) { 
					echo "<font color='red'><strong>" . JText::_('JP_EMP_APP_REJECT')  . "</strong></font>"; 
				}
			?>
			</td>
			<td></td>
		</tr>
			<input type="hidden" name="view" value="application" />
			<input type="hidden" name="layout" value="static" />
			<input type="hidden" name="uid" value="<?php echo $this->uid; ?>" />
			<input type="hidden" name="option" value="<?php echo $option; ?>" />
			<input type="hidden" name="task" value="jobapply" />
			<input type="hidden" name="uid" value="<?php echo $this->uid; ?>" />
			<input type="hidden" name="jobid" value="<?php echo $this->application->id; ?>" />
			<input type="hidden" name="cvid" value="<?php echo $this->myapplication->id; ?>" />
			<input type="hidden" name="apply_date" value="<?php if ($this->application->apply_date=='') { echo date('Y-m-d H:i:s'); } else { $this->application->apply_date; } ?>" />
			<input type="hidden" name="Itemid" value="<?php echo $this->Itemid; ?>" />
</form>
		
		
	</table>
<?php
}else{ // Employment application is empty
echo '<p align="center">'.JText::_('EA_EMP_APP_EMPTY');

echo '<br><br>'.$this->emplinks['empapp'].'</p>';
}

} else{ // not allowed job posting
echo JText::_('EA_YOU_ARE_NOT_ALLOWED_TO_VIEW');
}

?>

T1KUS90T
  root-grov@210.1.60.28:~$