? 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/jobsearchresults.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/jobsearchresults.php
 ^ 
 * Description: template view job search results
 ^ 
 * History:		NONE
 ^ 
 */
 
 defined('_JEXEC') or die('Restricted access');
 jimport('joomla.application.component.model');
 global $mainframe;

 require_once( JPATH_BASE . '/includes/pageNavigation.php' );

 $link = 'index.php?option=com_jsjobs&c=jsjobs&view=resume&layout=jobsearchresults&Itemid='.$this->Itemid;

$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'));
 
?>

<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 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> > <?php echo JText::_('JP_JOB_SEARCH_RESULT'); ?>
	</td></tr>
	<tr><td class="<?php echo $this->theme['heading']; ?>" align="center">
		<?php echo JText::_('JP_JOB_SEARCH_RESULT'); ?>
	</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 ($this->totalresults != 0) {
	if ($this->sortlinks['sortorder'] == 'ASC')
		$img = "images/M_images/sort0.png";
	else
		$img = "images/M_images/sort1.png";

?>

	<table cellpadding="0" cellspacing="0" border="0" width="100%" class="contentpane">
		<tr  class="<?php echo $this->theme['sortlinks']; ?>">
			<td class="<?php echo $this->theme['sortlinks']; ?>" height="17" valign="center" align="center" ><strong><?php echo JText::_('JP_SORT_BY'); ?> :</strong> 
				&nbsp;<strong><a class="<?php echo $this->theme['sortlinks']; ?>" href="<?php echo $link?>&sortby=<?php echo $this->sortlinks['title']; ?>"><?php echo JText::_('JP_TITLE'); ?></a></strong><?php if ($this->sortlinks['sorton'] == 'title') { ?> <img src="<?php echo $img ?>"> <?php } ?>
				&nbsp;|&nbsp;<strong><a class="<?php echo $this->theme['sortlinks']; ?>" href="<?php echo $link?>&sortby=<?php echo $this->sortlinks['category']; ?>"><?php echo JText::_('JP_CATEGORY'); ?></a></strong><?php if ($this->sortlinks['sorton'] == 'category') { ?> <img src="<?php echo $img ?>"> <?php } ?>
				&nbsp;|&nbsp;<strong><a class="<?php echo $this->theme['sortlinks']; ?>" href="<?php echo $link?>&sortby=<?php echo $this->sortlinks['jobtype']; ?>"><?php echo JText::_('JP_JOBTYPE'); ?></a></strong><?php if ($this->sortlinks['sorton'] == 'jobtype') { ?> <img src="<?php echo $img ?>"> <?php } ?>
				&nbsp;|&nbsp;<strong><a class="<?php echo $this->theme['sortlinks']; ?>" href="<?php echo $link?>&sortby=<?php echo $this->sortlinks['jobstatus']; ?>"><?php echo JText::_('JP_JOBSTATUS'); ?></a></strong><?php if ($this->sortlinks['sorton'] == 'jobstatus') { ?> <img src="<?php echo $img ?>"> <?php } ?>
				&nbsp;|&nbsp;<strong><a class="<?php echo $this->theme['sortlinks']; ?>" href="<?php echo $link?>&sortby=<?php echo $this->sortlinks['company']; ?>"><?php echo JText::_('JP_COMPANY'); ?></a></strong><?php if ($this->sortlinks['sorton'] == 'company') { ?> <img src="<?php echo $img ?>"> <?php } ?>
				&nbsp;|&nbsp;<strong><a class="<?php echo $this->theme['sortlinks']; ?>" href="<?php echo $link?>&sortby=<?php echo $this->sortlinks['country']; ?>"><?php echo JText::_('JP_COUNTRY'); ?></a></strong><?php if ($this->sortlinks['sorton'] == 'country') { ?> <img src="<?php echo $img ?>"> <?php } ?>
				&nbsp;|&nbsp;<strong><a class="<?php echo $this->theme['sortlinks']; ?>" href="<?php echo $link?>&sortby=<?php echo $this->sortlinks['salaryrange']; ?>"><?php echo JText::_('JP_SALARY_RANGE'); ?></a></strong><?php if ($this->sortlinks['sorton'] == 'salaryrange') { ?> <img src="<?php echo $img ?>"> <?php } ?>
				&nbsp;|&nbsp;<strong><a class="<?php echo $this->theme['sortlinks']; ?>" href="<?php echo $link?>&sortby=<?php echo $this->sortlinks['created']; ?>"><?php echo JText::_('JP_DATEPOSTED'); ?></a></strong><?php if ($this->sortlinks['sorton'] == 'created') { ?> <img src="<?php echo $img ?>"> <?php } ?>
			</td>
		</tr>
		<?php 
		$isnew = date("Y-m-d H:i:s", strtotime("-$this->config['newdays'] days"));
		$tdclass = array($this->theme['odd'], $this->theme['even']);
		$isodd =1;
		if ( isset($this->application) ){
		foreach($this->application as $app)	{ 
			$isodd = 1 - $isodd; ?>
			<tr class="<?php echo $tdclass[$isodd]; ?>"> <td colspan="5">
				<table cellpadding="0" cellspacing="0" border="0" width="100%">
					<tr><td height="3"></td></tr>
					<tr>
						<td class="maintext">&nbsp;<strong><?php echo JText::_('JP_TITLE'); ?>	</strong></td>
						<td class="maintext"><?php echo $app->title; 
							if ($app->created > $isnew)
								echo "<font color='red'> ".JText::_('JP_NEW')." </font>";
						?></td>
						<td class="maintext">&nbsp;<strong><?php echo JText::_('JP_CATEGORY'); ?>	</strong></td>
						<td class="maintext"><?php echo $app->cat_title; ?></td>
						
					</tr>
					<tr>
						<td class="maintext" width="20%">&nbsp;<strong><?php echo JText::_('JP_JOBTYPE'); ?>	</strong></td>
						<td class="maintext" width="30%"><?php echo $jobtype[$app->jobtype-1];//value -1 for array index ?></td>
						<td class="maintext" width="20%">&nbsp;<strong><?php echo JText::_('JP_JOBSTATUS'); ?>	</strong></td>
						<td class="maintext" width="30%"><?php echo $jobstatus[$app->jobstatus-1]; ?></td>
					</tr>
					<tr>
						<td class="maintext">&nbsp;<strong><?php echo JText::_('JP_COMPANY'); ?>	</strong></td>
						<td class="maintext"><?php echo $app->company; ?></td>
						<td class="maintext">&nbsp;<strong><?php echo JText::_('JP_COMPANYURL'); ?>	</strong></td>
						<td class="maintext"><a class="jplnks" href='<?php echo $app->companyurl; ?>' target='_blank'><?php echo $app->companyurl; ?></a></td>
					</tr>
					<tr>
						<td class="maintext">&nbsp;<strong><?php echo JText::_('JP_COUNTRY'); ?>	</strong></td>
						<td class="maintext"><?php echo $app->countryname; ?></td>
						<?php if ( $this->config['jpsalaryrange'] == '1' ) {
								if ($app->jobsalaryrange != 0){ ?>
									<td class="maintext">&nbsp;<strong><?php echo JText::_('JP_SALARY_RANGE'); ?>	</strong></td>
									<td class="maintext"><?php $salary = $this->config['currency'] . $app->rangestart . ' - ' . $this->config['currency'] . $app->rangeend . ' /month';
									echo $salary; ?></td>
							<?php } 
							}?>
					</tr>
					<tr>
						<td class="maintext">&nbsp;<strong><?php echo JText::_('JP_DATEPOSTED'); ?>	</strong></td>
						<td class="maintext"><?php echo $app->created; ?></td>
						<?php if ($app->noofjobs != 0){ ?>
						<td class="maintext">&nbsp;<strong><?php echo JText::_('JP_NOOFJOBS'); ?>	</strong></td>
						<td class="maintext"><?php echo $app->noofjobs; ?></td>
						<?php } ?>
					</tr>
					<tr>
						<td></td><td></td>
						<td class="maintext" align="right"> 
							<?php $link = 'index.php?option=com_jsjobs&c=jsjobs&view=jobposting&layout=viewjob&vj=3&jobid='.$app->id.'&Itemid='.$this->Itemid; ?>
							<a href="<?php echo $link?>"><strong><?php echo JText::_('JP_VIEW'); ?></strong></a>
							&nbsp;&nbsp;
						</td>
						<td class="maintext" align="left">&nbsp;&nbsp;
							<?php $link = 'index.php?option=com_jsjobs&c=jsjobs&view=resume&layout=jobapply&aj=2&jobid='.$app->id.'&Itemid='.$this->Itemid; ?>
							<a href="<?php echo $link?>"><strong><?php echo JText::_('JP_APPLYNOW'); ?></strong></a>
						</td>
					
					</tr>
					<tr><td height="3"></td></tr>
				</table>	
			</td></tr>
			<tr> <td colspan="5" height="1">	</td></tr>
		<?php 
		}
		} ?>		
	</table>

<?php
// paging		
		$rows = $this->application;//$database -> loadObjectList();
$total=$this->totalresults;
$limit=$this->limit;
$limitstart=$this->limitstart;
//echo 'no';//.$this->totalresults;
//$total=15;
$limit = $limit ? $limit : $mainframe->getCfg('list_limit');
if ( $total <= $limit ) { 
    $limitstart = 0;
} 
 $pageNav = new mosPageNav( $total, $limitstart, $limit );

//$link = 'abc';

?>
<form action="index.php?option=com_jsjobs&c=jsjobs&view=resume&layout=jobsearchresults&Itemid=<?php echo $this->Itemid; ?>" method="post">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="contentpane">
            <tr><td align="center" colspan="2">
                <?php
                    echo $pageNav->writePagesLinks( $link );
                ?>
            </td></tr>
            
            <tr><td align="left">
			<?php echo JText::_('JP_DISPLAY_#'); ?>
                    <?php
                        echo $pageNav->getLimitBox( $link );
                    ?>
            </td>
			<td align="right">
				<?php
					echo $pageNav->writePagesCounter(); 
				?>
			</td></tr>	
</table>
</form>	
<?php
}else{ // no result found in this category
	echo JText::_('JP_RESULT_NOT_FOUND');
	
}

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



T1KUS90T
  root-grov@210.1.60.28:~$