KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/irtiweb/CATS/modules/candidates/AssignCandidateTagModal.tpl
<?php /* $Id: CreateAttachmentModal.tpl 3093 2007-09-24 21:09:45Z brian $ */ ?>
<?php TemplateUtility::printModalHeader('Candidates', array(''), 'Assign candidate tag'); ?>

    <?php if (!$this->isFinishedMode): ?>
		<form class="changeCandidateTags" id="changeCandidateTags" method="post" action="<?php echo(CATSUtility::getIndexName()); ?>?m=candidates&amp;a=addCandidateTags">
			<input type="hidden" name="postback" id="postback" value="postback" />
			<input type="hidden" id="candidateID" name="candidateID" value="<?php echo($this->candidateID); ?>" />
            <ul>	                                        
			<?php $i=1;
			
			function drw($data, $id, $assignedTags){
				//global $i;
				foreach($data as $k => $v){
					if ($v['tag_parent_id'] == $id){
						?><li><input type="checkbox" name="candidate_tags[]" id="checkbox<?= $i ?>" value="<?= $v['tag_id'] ?>" <?= in_array($v['tag_id'], $assignedTags)?'checked="checked"':''; ?>><label for="checkbox<?= $i++ ?>"><?= $v['tag_title'] ?></label></li><?php 
						echo "\n<ul>" ;
						drw($data, $v['tag_id'],$assignedTags);
						echo "\n</ul>";
					}
				}
			}
			drw($this->tagsRS, '', $this->assignedTags);
			?></ul>

            <input type="submit" class="button" name="submit" id="submit" value="Save" />&nbsp;
            <input type="button" class="button" name="cancel" value="Cancel" onclick="parentHidePopWin();" />
		</form>
    <?php else: ?>
    	<p>All data has been saved</p>
        <form>
            <input type="button" name="close" value="Close" onclick="parentHidePopWinRefresh();" />
        </form>
    <?php endif; ?>
    </body>
</html>

Anon7 - 2021