|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/irtiweb/CATS/modules/joborders/ |
Upload File : |
<?php /* $Id: Show.tpl 3814 2007-12-06 17:54:28Z brian $ */ ?>
<?php if ($this->isPopup): ?>
<?php TemplateUtility::printHeader('Job Order - '.$this->data['title'], array('js/sorttable.js', 'js/match.js', 'js/pipeline.js', 'js/attachment.js')); ?>
<?php else: ?>
<?php TemplateUtility::printHeader('Job Order - '.$this->data['title'], array( 'js/sorttable.js', 'js/match.js', 'js/pipeline.js', 'js/attachment.js')); ?>
<?php TemplateUtility::printHeaderBlock(); ?>
<?php TemplateUtility::printTabs($this->active); ?>
<div id="main">
<?php TemplateUtility::printQuickSearch(); ?>
<?php endif; ?>
<div id="contents">
<table>
<tr>
<td width="3%">
<img src="images/job_orders.gif" width="24" height="24" border="0" alt="Job Orders" style="margin-top: 3px;" />
</td>
<td><h2>Job Orders: Job Order Details</h2></td>
</tr>
</table>
<p class="note">Job Order Details</p>
<?php if ($this->data['isAdminHidden'] == 1): ?>
<p class="warning">This Job Order is hidden. Only CATS Administrators can view it or search for it. To make it visible by the site users, click <a href="<?php echo(CATSUtility::getIndexName()); ?>?m=joborders&a=administrativeHideShow&jobOrderID=<?php echo($this->jobOrderID); ?>&state=0" style="font-weight:bold;">Here.</a></p>
<?php endif; ?>
<?php if (isset($this->frozen)): ?>
<table style="font-weight:bold; border: 1px solid #000; background-color: #ffed1a; padding:5px; margin-bottom:7px;" width="100%" id="candidateAlreadyInSystemTable">
<tr>
<td class="tdVertical">
This Job Order is <?php $this->_($this->data['status']); ?> and can not be modified.
<?php if ($this->accessLevel >= ACCESS_LEVEL_EDIT): ?>
<a id="edit_link" href="<?php echo(CATSUtility::getIndexName()); ?>?m=joborders&a=edit&jobOrderID=<?php echo($this->jobOrderID); ?>">
<img src="images/actions/edit.gif" width="16" height="16" class="absmiddle" alt="edit" border="0" /> Edit
</a>
the Job Order to make it Active.
<?php endif; ?>
</td>
</tr>
</table>
<?php endif; ?>
<table class="detailsOutside" width="100%" height="<?php echo((count($this->extraFieldRS)/2 + 12) * 22); ?>">
<tr style="vertical-align:top;">
<td width="50%" height="100%">
<table class="detailsInside" height="100%">
<tr>
<td class="vertical">Title:</td>
<td class="data" width="300">
<span class="<?php echo($this->data['titleClass']); ?>"><?php $this->_($this->data['title']); ?></span>
<?php echo($this->data['public']) ?>
<?php TemplateUtility::printSingleQuickActionMenu(DATA_ITEM_JOBORDER, $this->data['jobOrderID']); ?>
</td>
</tr>
<tr>
<td class="vertical">Company Name:</td>
<td class="data">
<a href="<?php echo(CATSUtility::getIndexName()); ?>?m=companies&a=show&companyID=<?php echo($this->data['companyID']); ?>">
<?php echo($this->data['companyName']); ?>
</a>
</td>
</tr>
<tr>
<td class="vertical">Department:</td>
<td class="data">
<?php echo($this->data['department']); ?>
</td>
</tr>
<tr>
<td class="vertical">CATS Job ID:</td>
<td class="data" width="300"><?php $this->_($this->data['jobOrderID']); ?></td>
</tr>
<tr>
<td class="vertical">Company Job ID:</td>
<td class="data"><?php echo($this->data['companyJobID']); ?></td>
</tr>
<!-- CONTACT INFO -->
<tr>
<td class="vertical">Contact Name:</td>
<td class="data">
<a href="<?php echo(CATSUtility::getIndexName()); ?>?m=contacts&a=show&contactID=<?php echo($this->data['contactID']); ?>">
<?php echo($this->data['contactFullName']); ?>
</a>
</td>
</tr>
<tr>
<td class="vertical">Contact Phone:</td>
<td class="data"><?php echo($this->data['contactWorkPhone']); ?></td>
</tr>
<tr>
<td class="vertical">Contact Email:</td>
<td class="data">
<a href="mailto:<?php $this->_($this->data['contactEmail']); ?>"><?php $this->_($this->data['contactEmail']); ?></a>
</td>
</tr>
<!-- /CONTACT INFO -->
<tr>
<td class="vertical">Location:</td>
<td class="data"><?php $this->_($this->data['cityAndState']); ?></td>
</tr>
<tr>
<td class="vertical">Max Rate:</td>
<td class="data"><?php $this->_($this->data['maxRate']); ?></td>
</tr>
<tr>
<td class="vertical">Salary:</td>
<td class="data"><?php $this->_($this->data['salary']); ?></td>
</tr>
<tr>
<td class="vertical">Start Date:</td>
<td class="data"><?php $this->_($this->data['startDate']); ?></td>
</tr>
<?php for ($i = 0; $i < intval(count($this->extraFieldRS)/2); $i++): ?>
<tr>
<td class="vertical"><?php $this->_($this->extraFieldRS[$i]['fieldName']); ?>:</td>
<td class="data"><?php echo($this->extraFieldRS[$i]['display']); ?></td>
</tr>
<?php endfor; ?>
<?php eval(Hooks::get('JO_TEMPLATE_SHOW_BOTTOM_OF_LEFT')); ?>
</table>
</td>
<td width="50%" height="100%" style="vertical-align:top;" >
<table class="detailsInside" height="100%">
<tr>
<td class="vertical">Duration:</td>
<td class="data"><?php $this->_($this->data['duration']); ?></td>
</tr>
<tr>
<td class="vertical">Openings:</td>
<td class="data"><?php $this->_($this->data['openings']); if ($this->data['openingsAvailable'] != $this->data['openings']): ?> (<?php $this->_($this->data['openingsAvailable']); ?> Available)<?php endif; ?></td>
</tr>
<tr>
<td class="vertical">Type:</td>
<td class="data"><?php $this->_($this->data['typeDescription']); ?></td>
</tr>
<tr>
<td class="vertical">Status:</td>
<td class="data"><?php $this->_($this->data['status']); ?></td>
</tr>
<tr>
<td class="vertical">Pipeline:</td>
<td class="data"><?php $this->_($this->data['pipeline']) ?></td>
</tr>
<tr>
<td class="vertical">Submitted:</td>
<td class="data"><?php $this->_($this->data['submitted']) ?></td>
</tr>
<tr>
<td class="vertical">Days Old:</td>
<td class="data"><?php $this->_($this->data['daysOld']); ?></td>
</tr>
<tr>
<td class="vertical">Created:</td>
<td class="data"><?php $this->_($this->data['dateCreated']); ?> (<?php $this->_($this->data['enteredByFullName']); ?>)</td>
</tr>
<tr>
<td class="vertical">Recruiter:</td>
<td class="data"><?php $this->_($this->data['recruiterFullName']); ?></td>
</tr>
<tr>
<td class="vertical">Owner:</td>
<td class="data"><?php $this->_($this->data['ownerFullName']); ?></td>
</tr>
<?php for ($i = (intval(count($this->extraFieldRS))/2); $i < (count($this->extraFieldRS)); $i++): ?>
<tr>
<td class="vertical"><?php $this->_($this->extraFieldRS[$i]['fieldName']); ?>:</td>
<td class="data"><?php echo($this->extraFieldRS[$i]['display']); ?></td>
</tr>
<?php endfor; ?>
<?php eval(Hooks::get('JO_TEMPLATE_SHOW_BOTTOM_OF_RIGHT')); ?>
</table>
</td>
</tr>
</table>
<?php if ($this->isPublic): ?>
<div style="background-color: #E6EEFE; padding: 10px; margin: 5px 0 12px 0; border: 1px solid #728CC8;">
<b>This job order is public<?php if ($this->careerPortalURL === false): ?>.</b><?php else: ?>
and will be shown on your
<?php if ($_SESSION['CATS']->getAccessLevel() >= ACCESS_LEVEL_SA): ?>
<a style="font-weight: bold;" href="<?php $this->_($this->careerPortalURL); ?>">Careers Website</a>.
<?php else: ?>
Careers Website.
<?php endif; ?></b>
<?php endif; ?>
<?php if ($this->questionnaireID !== false): ?>
<br />Applicants must complete the "<i><?php echo $this->questionnaireData['title']; ?></i>" (<a href="<?php echo CATSUtility::getIndexName(); ?>?m=settings&a=careerPortalQuestionnaire&questionnaireID=<?php echo $this->questionnaireID; ?>">edit</a>) questionnaire when applying.
<?php else: ?>
<br />You have not attached any
<?php if ($_SESSION['CATS']->getAccessLevel() >= ACCESS_LEVEL_SA): ?>
<a href="<?php echo CATSUtility::getIndexName(); ?>?m=settings&a=careerPortalSettings">Questionnaires</a>.
<?php else: ?>
Questionnaires.
<?php endif; ?>
<?php endif; ?>
</div>
<?php endif; ?>
<table class="detailsOutside">
<tr>
<td>
<table class="detailsInside">
<tr>
<td valign="top" class="vertical">Attachments:</td>
<td valign="top" class="data">
<table class="attachmentsTable">
<?php foreach ($this->attachmentsRS as $rowNumber => $attachmentsData): ?>
<tr>
<td>
<?php echo $attachmentsData['retrievalLink']; ?>
<img src="<?php $this->_($attachmentsData['attachmentIcon']) ?>" alt="" width="16" height="16" border="0" />
<?php $this->_($attachmentsData['originalFilename']) ?>
</a>
</td>
<td><?php $this->_($attachmentsData['dateCreated']) ?></td>
<td>
<?php if (!$this->isPopup): ?>
<?php if ($this->accessLevel >= ACCESS_LEVEL_DELETE): ?>
<a href="<?php echo(CATSUtility::getIndexName()); ?>?m=joborders&a=deleteAttachment&jobOrderID=<?php echo($this->jobOrderID); ?>&attachmentID=<?php $this->_($attachmentsData['attachmentID']) ?>" title="Delete" onclick="javascript:return confirm('Delete this attachment?');">
<img src="images/actions/delete.gif" alt="" width="16" height="16" border="0" />
</a>
<?php endif; ?>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</table>
<?php if (!$this->isPopup): ?>
<?php if ($this->accessLevel >= ACCESS_LEVEL_EDIT): ?>
<?php if (isset($this->attachmentLinkHTML)): ?>
<?php echo($this->attachmentLinkHTML); ?>
<?php else: ?>
<a href="#" onclick="showPopWin('<?php echo(CATSUtility::getIndexName()); ?>?m=joborders&a=createAttachment&jobOrderID=<?php echo($this->jobOrderID); ?>', 400, 125, null); return false;">
<?php endif; ?>
<img src="images/paperclip_add.gif" width="16" height="16" border="0" alt="add attachment" class="absmiddle" /> Add Attachment
</a>
<?php endif; ?>
<?php endif; ?>
</td>
</tr>
<tr>
<td valign="top" class="vertical">Description:</td>
<td class="data" colspan="2">
<?php if($this->data['description'] != ''): ?>
<div id="shortDescription" style="overflow: auto; height:170px; border: #AAA 1px solid; padding:5px;">
<?php echo($this->data['description']); ?>
</div>
<?php endif; ?>
</td>
</tr>
<tr>
<td valign="top" class="vertical">Internal Notes:</td>
<td class="data" style="width:320px;">
<?php if($this->data['notes'] != ''): ?>
<div id="shortDescription" style="overflow: auto; height:240px; border: #AAA 1px solid; padding:5px;">
<?php echo($this->data['notes']); ?>
</div>
<?php endif; ?>
</td>
<td style="vertical-align:top;">
<?php echo($this->pipelineGraph); ?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?php if (!$this->isPopup): ?>
<div id="actionbar">
<span style="float:left;">
<?php if ($this->accessLevel >= ACCESS_LEVEL_EDIT): ?>
<a id="edit_link" href="<?php echo(CATSUtility::getIndexName()); ?>?m=joborders&a=edit&jobOrderID=<?php echo($this->jobOrderID); ?>">
<img src="images/actions/edit.gif" width="16" height="16" class="absmiddle" alt="edit" border="0" /> Edit
</a>
<?php endif; ?>
<?php if ($this->accessLevel >= ACCESS_LEVEL_DELETE): ?>
<a id="delete_link" href="<?php echo(CATSUtility::getIndexName()); ?>?m=joborders&a=delete&jobOrderID=<?php echo($this->jobOrderID); ?>" onclick="javascript:return confirm('Delete this job order?');">
<img src="images/actions/delete.gif" width="16" height="16" class="absmiddle" alt="delete" border="0" /> Delete
</a>
<?php endif; ?>
<?php if ($this->accessLevel >= ACCESS_LEVEL_MULTI_SA): ?>
<?php if ($this->data['isAdminHidden'] == 1): ?>
<a href="<?php echo(CATSUtility::getIndexName()); ?>?m=joborders&a=administrativeHideShow&jobOrderID=<?php echo($this->jobOrderID); ?>&state=0">
<img src="images/resume_preview_inline.gif" width="16" height="16" class="absmiddle" alt="delete" border="0" /> Administrative Show
</a>
<?php else: ?>
<a href="<?php echo(CATSUtility::getIndexName()); ?>?m=joborders&a=administrativeHideShow&jobOrderID=<?php echo($this->jobOrderID); ?>&state=1">
<img src="images/resume_preview_inline.gif" width="16" height="16" class="absmiddle" alt="delete" border="0" /> Administrative Hide
</a>
<?php endif; ?>
<?php endif; ?>
</span>
<span style="float:right;">
<?php if (!empty($this->data['public']) && $this->careerPortalEnabled): ?>
<a id="public_link" href="<?php echo(CATSUtility::getAbsoluteURI()); ?>careers/<?php echo(CATSUtility::getIndexName()); ?>?p=showJob&ID=<?php echo($this->jobOrderID); ?>">
<img src="images/public.gif" width="16" height="16" class="absmiddle" alt="Online Application" border="0" /> Online Application
</a>
<?php endif; ?>
<?php /* TODO: Make report available for every site. */ ?>
<a id="report_link" href="<?php echo(CATSUtility::getIndexName()); ?>?m=reports&a=customizeJobOrderReport&jobOrderID=<?php echo($this->jobOrderID); ?>">
<img src="images/reportsSmall.gif" width="16" height="16" class="absmiddle" alt="report" border="0" /> Generate Report
</a>
<?php if ($this->privledgedUser): ?>
<a id="history_link" href="<?php echo(CATSUtility::getIndexName()); ?>?m=settings&a=viewItemHistory&dataItemType=400&dataItemID=<?php echo($this->jobOrderID); ?>">
<img src="images/icon_clock.gif" width="16" height="16" class="absmiddle" border="0" /> View History
</a>
<?php endif; ?>
</span>
</div>
<?php endif; ?>
<br clear="all" />
<br />
<p class="note">Candidate Pipeline</p>
<p id="ajaxPipelineControl">
Number of visible entries:
<select id="numberOfEntriesSelect" onchange="PipelineJobOrder_changeLimit(<?php $this->_($this->data['jobOrderID']); ?>, this.value, <?php if ($this->isPopup) echo(1); else echo(0); ?>, 'ajaxPipelineTable', '<?php echo($this->sessionCookie); ?>', 'ajaxPipelineTableIndicator', '<?php echo(CATSUtility::getIndexName()); ?>');" class="selectBox">
<option value="15" <?php if ($this->pipelineEntriesPerPage == 15): ?>selected<?php endif; ?>>15 entries</option>
<option value="30" <?php if ($this->pipelineEntriesPerPage == 30): ?>selected<?php endif; ?>>30 entries</option>
<option value="50" <?php if ($this->pipelineEntriesPerPage == 50): ?>selected<?php endif; ?>>50 entries</option>
<option value="99999" <?php if ($this->pipelineEntriesPerPage == 99999): ?>selected<?php endif; ?>>All entries</option>
</select>
<span id="ajaxPipelineNavigation">
</span>
<img src="images/indicator.gif" alt="" id="ajaxPipelineTableIndicator" />
</p>
<div id="ajaxPipelineTable"></div>
<input type="checkbox" name="select_all" onclick="selectAll_candidates(this)" title="Select all candidates" /> <a href="javascript:void(0);" onclick="exportFromPipeline()" title="Export selected candidates">Export</a>
<script type="text/javascript">
function exportFromPipeline(){
<?php
$params = array(
'sortBy' => 'dateModifiedSort',
'sortDirection' => 'DESC',
'filterVisible' => false,
'rangeStart' => 0,
'maxResults' => 100000000,
'exportIDs' => '<dynamic>',
'noSaveParameters' => true);
$instance_name = 'candidates:candidatesListByViewDataGrid';
$instance_md5 = md5($instance_name);
?>
var exportArray<?= $instance_md5 ?> = getSelected_candidates();
if (exportArray<?= $instance_md5 ?>.length>0) {
window.location.href='<?= CATSUtility::getIndexName()?>?m=export&a=exportByDataGrid&i=<?= urlencode($instance_name); ?>&p=<?= urlencode(serialize($params)) ?>&dynamicArgument<?= $instance_md5 ?>=' + urlEncode(serializeArray(exportArray<?= $instance_md5 ?>));
} else {
alert('No data selected');
}
}
</script>
<script type="text/javascript">
PipelineJobOrder_populate(<?php $this->_($this->data['jobOrderID']); ?>, 0, <?php $this->_($this->pipelineEntriesPerPage); ?>, 'dateCreatedInt', 'desc', <?php if ($this->isPopup) echo(1); else echo(0); ?>, 'ajaxPipelineTable', '<?php echo($this->sessionCookie); ?>', 'ajaxPipelineTableIndicator', '<?php echo(CATSUtility::getIndexName()); ?>');
</script>
<?php if (!$this->isPopup): ?>
<?php if ($this->accessLevel >= ACCESS_LEVEL_EDIT && !isset($this->frozen)): ?>
<a href="#" onclick="showPopWin('<?php echo(CATSUtility::getIndexName()); ?>?m=joborders&a=considerCandidateSearch&jobOrderID=<?php echo($this->jobOrderID); ?>', 820, 550, null); return false;">
<img src="images/consider.gif" width="16" height="16" class="absmiddle" alt="add candidate" border="0" /> Add Candidate to This Job Order Pipeline
</a>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<?php TemplateUtility::printFooter(); ?>