I have this snippet of code... basically it display a tick box that if you check it, changes the content shown in the page
i dont want the viewer to have to check it - i want it checked by default as "only my candidates" and by extension have the relevant data shown....
any suggestions
i dont want the viewer to have to check it - i want it checked by default as "only my candidates" and by extension have the relevant data shown....
any suggestions
PHP:
<form name="candidatesViewSelectorForm" id="candidatesViewSelectorForm" action="<?php echo(CATSUtility::getIndexName()); ?>" method="get">
<input type="hidden" name="m" value="candidates" />
<input type="hidden" name="a" value="listByView" />
<table class="viewSelector">
<tr>
<td valign="top" align="right" nowrap="nowrap">
<?php $this->dataGrid->printNavigation(false); ?>
</td>
<td valign="top" align="right" nowrap="nowrap">
<input type="checkbox" name="onlyMyCandidates" id="onlyMyCandidates" <?php if ($this->dataGrid->getFilterValue('OwnerID') == $this->userID): ?>checked<?php endif; ?> onclick="<?php echo $this->dataGrid->getJSAddRemoveFilterFromCheckbox('OwnerID', '==', $this->userID); ?>" />
Only My Candidates
</td>
<td valign="top" align="right" nowrap="nowrap">
<!-- <input type="checkbox" name="onlyHotCandidates" id="onlyHotCandidates" <?php if ($this->dataGrid->getFilterValue('IsHot') == '1'): ?>checked<?php endif; ?> onclick="<?php echo $this->dataGrid->getJSAddRemoveFilterFromCheckbox('IsHot', '==', '\'1\''); ?>" />
<label for="onlyHotCandidates">Only Hot Candidates</label> -->
</td>
</tr>
</table>
</form>