?
Path : /home/admin/public_html/old/promice/components/com_jsjobs/views/jobposting/tmpl/ |
Current File : /home/admin/public_html/old/promice/components/com_jsjobs/views/jobposting/tmpl/viewjob.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/viewjob.php ^ * Description: template view for a job ^ * History: NONE ^ */ defined('_JEXEC') or die('Restricted access'); global $mainframe; $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')); $heighesteducation = array( '0' => JText::_('JP_JOBEDUCATION_UNIVERSITY'), '1' => JText::_('JP_JOBEDUCATION_COLLEGE'), '2' => JText::_('JP_JOBEDUCATION_HIGH_SCHOOL'), '3' => JText::_('JP_JOBEDUCATION_NO_SCHOOL')); ?> <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['vj'] == '1'){ //my jobs ?> <?php echo JText::_('JP_CUR_LOC'); ?> : <a href="index.php?option=com_jsjobs&c=jsjobs&view=jobposting&layout=myjobs&Itemid=<?php echo $this->Itemid; ?>" class="curloclnk" ><?php echo JText::_('JP_MY_JOBS'); ?></a> > <?php echo JText::_('JP_VIEW_JOB'); ?> <?php }else if ($_GET['vj'] == '2'){ //job cat?> <?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_VIEW_JOB'); ?> <?php }else if ($_GET['vj'] == '3'){ //job search?> <?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_VIEW_JOB'); ?> <?php }else if ($_GET['vj'] == '4'){ //my applied jobs?> <?php echo JText::_('JP_CUR_LOC'); ?> : <a href="index.php?option=com_jsjobs&c=jsjobs&view=resume&layout=myappliedjobs&Itemid=<?php echo $this->Itemid; ?>" class="curloclnk"><?php echo JText::_('JP_MY_APPLIED_JOBS'); ?></a> > <?php echo JText::_('JP_VIEW_JOB'); ?> <?php } ?> </td></tr> <tr><td class="<?php echo $this->theme['heading']; ?>" align="center"> <?php echo JText::_('JP_JOB_INFO'); ?> </td></tr> <tr><td height="3"></td></tr> </table> <table cellpadding="0" cellspacing="0" border="0" width="100%" class="contentpane"> <tr> <td colspan="3" height="5"></td> </tr> <tr class="<?php echo $this->theme['odd']; ?>"><td width="5%"> </td> <td class="maintext" width="30%"><b><?php echo JText::_('JP_TITLE'); ?></b></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> </tr> <tr><td colspan="3" height="1"></td></tr> <tr class="<?php echo $this->theme['even']; ?>"><td></td> <td class="maintext"><b><?php echo JText::_('JP_CATEGORY'); ?></b></td> <td class="maintext"><?php echo $this->application->cat_title; ?></td> </tr> <tr><td colspan="3" height="1"></td></tr> <tr class="<?php echo $this->theme['odd']; ?>"><td></td> <td class="maintext"><b><?php echo JText::_('JP_JOBTYPE'); ?></b></td> <td class="maintext"><?php echo $jobtype[$this->application->jobtype-1]; ?></td> </tr> <tr> <td colspan="3" height="1"></td> </tr> <tr class="<?php echo $this->theme['even']; ?>"><td></td> <td class="maintext"><b><?php echo JText::_('JP_JOBSTATUS'); ?></b></td> <td class="maintext"><?php echo $jobstatus[$this->application->jobstatus-1]; ?></td> </tr> <?php if ( $this->config['jpsalaryrange'] == '1' ) { ?> <tr><td colspan="3" height="1"></td></tr> <tr class="<?php echo $this->theme['odd']; ?>"><td></td> <td class="maintext"><b><?php echo JText::_('JP_SALARYRANGE'); ?></b></td> <td class="maintext"><?php $salaryrange = $this->config['currency'] . $this->application->rangestart . ' - ' . $this->config['currency'] . $this->application->rangeend . JText::_('JP_PERMONTH');; echo $salaryrange; ?></td> </tr> <?php } ?> <tr><td colspan="3" height="1"></td></tr> <tr class="<?php echo $this->theme['even']; ?>"><td></td> <td class="maintext"><b><?php echo JText::_('JP_NOOFJOBS'); ?></b></td> <td class="maintext"><?php echo $this->application->noofjobs; ?></td> </tr> <tr> <td colspan="3" height="1"></td> </tr> <tr class="<?php echo $this->theme['odd']; ?>"><td></td> <td class="maintext"><b><?php echo JText::_('JP_DATEPOSTED'); ?></b></td> <td class="maintext"><?php echo $this->application->created; ?></td> </tr> <tr> <td colspan="3" height="1"></td> </tr> <tr class="<?php echo $this->theme['even']; ?>"><td></td> <td class="maintext" valign="top"><b><?php echo JText::_('JP_DESCRIPTION'); ?></b></td> <td class="maintext"><?php echo $this->application->description; ?></td> </tr> <?php if ( $this->config['jpqualification'] == 1 ) { ?> <tr> <td colspan="3" height="1"></td> </tr> <tr class="<?php echo $this->theme['odd']; ?>"><td></td> <td class="maintext" valign="top"><b><?php echo JText::_('JP_QUALIFICATIONS'); ?></b></td> <td class="maintext"><?php echo $this->application->qualifications; ?></td> </tr> <?php } ?> <tr> <td colspan="3" height="1"></td> </tr> <tr class="<?php echo $this->theme['even']; ?>"><td></td> <td class="maintext"><b><?php echo JText::_('JP_HEIGHTESTFINISHEDEDUCATION'); ?></b></td> <td class="maintext"><?php echo $heighesteducation[$this->application->heighestfinisheducation-1]; ?></td> </tr> <tr> <td colspan="3" height="1"></td> </tr> <tr class="<?php echo $this->theme['odd']; ?>"><td></td> <td class="maintext" valign="top"><b><?php echo JText::_('JP_COMPANYINFO'); ?></b></td> <td class="maintext"> <!-- START AlexeyR variable names --> <?php echo $this->application->company; ?><br> <?php echo JText::_('JP_ADDRESS1').': '.$this->application->address1; ?><br> <?php echo JText::_('JP_ADDRESS2').': '.$this->application->address2; ?><br> <?php echo JText::_('JP_CITY').': '.$this->application->cityname; ?><br> <?php echo JText::_('JP_COUNTY').': '.$this->application->countyname; ?><br> <?php echo JText::_('JP_STATE').': '.$this->application->statename; ?><br> <?php echo JText::_('JP_COUNTRY').': '.$this->application->countryname; ?><br> <?php echo JText::_('JP_ZIPCODE').': '.$this->application->zipcode; ?><br /> <!-- END AlexeyR variable names --> <?php echo JText::_('JP_WEBSITE'); ?>: <a class="jplnks" href='<?php echo $this->application->companyurl; ?>' target='_blank'><?php echo $this->application->companyurl; ?></a><br /> </td> </tr> <tr> <td colspan="3" height="1"></td> </tr> <tr class="<?php echo $this->theme['even']; ?>"><td></td> <td class="maintext"><b><?php echo JText::_('JP_EMAIL'); ?></b></td> <td class="maintext"><a class="jplnks" href="mailto:'<?php echo $this->application->contactemail; ?>'"><?php echo $this->application->contactemail; ?></a></td> </tr> <tr> <td colspan="3" height="1"></td> </tr> <tr class="<?php echo $this->theme['odd']; ?>"><td></td> <td class="maintext"><b><?php echo JText::_('JP_CONTACTINFO'); ?></b></td> <td class="maintext"><?php echo $this->application->contactname; ?><br> <?php echo $this->application->contactphone; ?><br/> <?php echo $this->application->contactemail; ?> </td> </tr> <tr> <td colspan="3" height="5"></td> </tr> <?php if (($_GET['vj'] == '2') || ($_GET['vj'] == '3')){ ?> <tr> <td colspan="3" align="center"><br /> <?php $link = 'index.php?option=com_jsjobs&c=jsjobs&view=resume&layout=jobapply&aj=1&jobcat='.$this->application->jobcategory.'&jobid='.$this->application->id.'&Itemid='.$this->Itemid; ?> <a href="<?php echo $link?>"><strong><?php echo JText::_('JP_APPLYNOW'); ?></strong></a> </td> </tr> <?php } ?> </table>