|
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/candidates/ |
Upload File : |
<?php /* $Id: CreateImageAttachmentModal.tpl 2026 2007-02-27 22:34:05Z brian $ */ ?>
<?php TemplateUtility::printModalHeader('Candidates', array('modules/candidates/validator.js')); ?>
<p class="noteUnsized">Edit Profile Image</p>
<?php if (!$this->isFinishedMode): ?>
<form name="createAttachmentForm" id="createAttachmentForm" action="<?php echo(CATSUtility::getIndexName()); ?>?m=candidates&a=addEditImage" enctype="multipart/form-data" method="post" onsubmit="">
<input type="hidden" name="postback" id="postback" value="postback" />
<input type="hidden" id="candidateID" name="candidateID" value="<?php echo($this->candidateID); ?>" />
<?php foreach ($this->attachmentsRS as $rowNumber => $attachmentsData): ?>
<?php if ($attachmentsData['isProfileImage'] == '1'): ?>
<div style="text-align:center;">
<a href="attachments/<?php $this->_($attachmentsData['attachmentID']) ?>/<?php $this->_($attachmentsData['storedFilename']) ?>">
<img src="attachments/<?php $this->_($attachmentsData['attachmentID']) ?>/<?php $this->_($attachmentsData['storedFilename']) ?>" border="0" width="165">
</a>
</div>
<?php endif; ?>
<?php endforeach; ?>
<table class="editTable">
<tr>
<td class="tdVertical">New Profile Picture:</td>
<td class="tdData"><input type="file" id="file" name="file" /></td>
</tr>
</table>
<input type="submit" class="button" name="submit" id="submit" value="Set Image" />
<input type="button" class="button" name="close" value="Close" onclick="parentHidePopWin();" />
</form>
<?php else: ?>
<p>The picture has been saved..</p>
<input type="button" name="close" value="Close" onclick="parentHidePopWin();" />
<script type="text/javascript">
parentHidePopWin();
</script>
<?php endif; ?>
</body>
</html>