|
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: ConsiderSearchModal.tpl 3093 2007-09-24 21:09:45Z brian $ */ ?>
<?php TemplateUtility::printModalHeader('Job Orders', 'js/sorttable.js', 'Add Candidate to This Job Order Pipeline'); ?>
<?php if (!$this->isFinishedMode): ?>
<p>Search for a candidate below, and then click on the candidate's
first or last name to add the selected candidate to the job order
pipeline.</p>
<table class="searchTable">
<form id="searchByFullNameForm" name="searchByFullNameForm" action="<?php echo(CATSUtility::getIndexName()); ?>?m=joborders&a=considerCandidateSearch" method="post">
<input type="hidden" name="postback" id="postback" value="postback" />
<input type="hidden" id="mode_fullname" name="mode" value="searchByFullName" />
<input type="hidden" id="jobOrderID_fullName" name="jobOrderID" value="<?php echo($this->jobOrderID); ?>" />
<tr>
<td>Search by Full Name: </td>
<td><input type="text" class="inputbox" id="wildCardString_fullname" name="wildCardString" /> *</td>
</tr>
<tr>
<td><input type="submit" class="button" id="searchByFullName" name="searchByFullName" value="Search by Full Name" /></td>
</tr>
<tr>
<td> </td>
</tr>
</form>
</table>
<br />
<a href="<?php echo(CATSUtility::getIndexName()); ?>?m=joborders&a=addCandidateModal&jobOrderID=<?php echo($this->jobOrderID); ?>">
<img src="images/candidate_inline.gif" width="16" height="16" class="absmiddle" alt="add" border="0" /> Add Candidate
</a>
<br />
<?php if (empty($_POST['mode']) || $_POST['mode'] == 'searchByFullName'): ?>
<script type="text/javascript">
document.searchByFullNameForm.wildCardString.focus();
</script>
<?php else: ?>
<script type="text/javascript">
document.searchByKeySkillsForm.wildCardString.focus();
</script>
<?php endif; ?>
<?php if ($this->isResultsMode): ?>
<br />
<p class="noteUnsized">Search Results</p>
<?php if (!empty($this->rs)): ?>
<table class="sortable" width="100%">
<tr>
<th align="left" nowrap="nowrap">First Name</th>
<th align="left" nowrap="nowrap">Last Name</th>
<th align="left" nowrap="nowrap">Key Skills</th>
<th align="left">Created</th>
<th align="left">Owner</th>
<th align="center">Action</th>
</tr>
<?php foreach ($this->rs as $rowNumber => $data): ?>
<tr class="<?php TemplateUtility::printAlternatingRowClass($rowNumber); ?>">
<?php if (!$data['inPipeline']): ?>
<td valign="top" align="left">
<a href="<?php echo(CATSUtility::getIndexName()); ?>?m=joborders&a=addToPipeline&getback=getback&jobOrderID=<?php echo($this->jobOrderID); ?>&candidateID=<?php $this->_($data['candidateID']); ?>">
<?php $this->_($data['firstName']); ?>
</a>
</td>
<td valign="top" align="left">
<a href="<?php echo(CATSUtility::getIndexName()); ?>?m=joborders&a=addToPipeline&getback=getback&jobOrderID=<?php echo($this->jobOrderID); ?>&candidateID=<?php $this->_($data['candidateID']); ?>">
<?php $this->_($data['lastName']); ?>
</a>
</td>
<?php else: ?>
<td valign="top" align="left"><?php $this->_($data['firstName']); ?> </td>
<td valign="top" align="left"><?php $this->_($data['lastName']); ?> </td>
<?php endif; ?>
<td valign="top" align="left"><?php $this->_($data['keySkills']); ?> </td>
<td valign="top" align="left" nowrap="nowrap"><?php $this->_($data['dateCreated']); ?> </td>
<td valign="top" align="left" nowrap="nowrap"><?php $this->_($data['ownerAbbrName']); ?> </td>
<td align="center" nowrap="nowrap">
<a href="#" title="Show Candidate" onclick="javascript:openCenteredPopup('<?php echo(CATSUtility::getIndexName()); ?>?m=candidates&a=show&display=popup&candidateID=<?php $this->_($data['candidateID']); ?>', 'viewCandidateDetails', 1000, 675, true); return false;">
<img src="images/new_browser_inline.gif" alt="consider" width="16" height="16" border="0" class="absmiddle" />
</a>
</td>
</tr>
<?php endforeach; ?>
</table>
<?php else: ?>
<p>No matching entries found.</p>
<?php endif; ?>
<?php endif; ?>
<?php else: ?>
<p>The selected candidate has been successfully added to the pipeline for this job order.</p>
<form method="get" action="<?php echo(CATSUtility::getIndexName()); ?>">
<input type="button" name="close" value="Close" onclick="parentGoToURL('<?php echo(CATSUtility::getIndexName()); ?>?m=joborders&a=show&jobOrderID=<?php echo($this->jobOrderID); ?>');" />
</form>
<?php endif; ?>
</body>
</html>