File "footer.php"
Full path: /home/andyrdhboardrevi/public_html/DHAMockboardMini2/includes/footer.php
File size: 4.4 KiB (4502 bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Edit Back
<?php
if(!defined('ANTI_HACK_PREVENT'))
die("Come On ! You are preparing for exam or hacking !!!!");
?>
<tr>
<td>
<script type="text/javascript">
/***********************************************
* Disable Text Selection script- � Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
function disableSelection(target){
if (typeof target.onselectstart!="undefined") //For IE
target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //For Firefox
target.style.MozUserSelect="none"
else //All other route (For Opera)
target.onmousedown=function(){return false}
target.style.cursor = "default"
}
disableSelection(document.body);
</script>
<p> </p>
<?php if($footerLinks == 1) {?>
<div style="width:95%;" align="left"><form action="" method="post"><input type="submit" class="btnNext" value="Previous" name="previous" <?php if($_SESSION['questionMini2']['previous'] == 0) {echo 'disabled="disabled"';}?> /> <input type="submit" class="btnNext" value="Next" name="next" /> <input type="hidden" name="answerValue" id="answerValue" value="<?php echo $optValue;?>" /> <input type="hidden" name="review" id="review" value="<?php echo $revValue;?>" /> <input type="hidden" name="timerStatus" id="timerStatus" value="<?php echo $_SESSION['timerShow'];?>" /> <span style="float:right"> <input type="button" class="btnNext" value="Review and Grade Test" name="gotoreview" onclick="window.location.href='testReview.php'" /></span> </form></div> <?php }elseif($footerLinks == 2) {?> <div style="width:95%;" align="left"><form action="" method="post"> <input type="submit" class="btnNext" value="Review Starred" name="reviewStar" /> <input type="submit" class="btnNext" value="Review Incomplete" name="reviewIncomplete" /> <input type="submit" class="btnNext" value="Review All" name="reviewAll" /> <input type="hidden" name="action" id="action" value="" /> <input type="hidden" name="timerStatus" id="timerStatus" value="<?php echo $_SESSION['timerShow'];?>" /> <input type="button" class="btnNext" value="End Review" name="endreview" style="float:right;" onclick="confirmation()" /></form></div><?php } else { ?>
<div style="width:95%;" align="left"><form action="" method="post"> <input type="button" class="btnNext" value="Print Page" name="printPage" onclick="window.print();" /> <input type="button" class="btnNext" value="Go to Main Page" name="mainpage" style="float:right;" onclick="window.location.href='index.php';" /></form></div>
<?php } ?>
</td>
</tr>
</table>
</div>
<div class="iframe_helper" style="height: 120px; width: 100px;"></div>
</div>
<script type="text/javascript" src="../../../js/iframeResizer.contentWindow.min.js" charset="utf-8"></script>
<script type="text/javascript">
var hour = '<?php echo $hours;?>';
var mins = '<?php echo $minutes;?>';
var secs = '<?php echo $seconds;?>';
function startTimer()
{
if(secs == 0)
{
if(mins == 0)
{
hour = parseInt(hour) - 1;
mins = 59;
}
else {mins = parseInt(mins) - 1;}
secs = 59;
}
else{secs = secs - 1;}
if(hour == 0 && mins == 0 && secs == 0)
{
alert("Time Up !!. Proceeding to Test Results .....");
window.location.href = 'testResults.php';
}
$('#hours').text(hour);
$('#minutes').text(mins);
$('#seconds').text(secs);
}
setInterval ( "startTimer()", 1000 );
function showHideTimer()
{
$('#timer').slideToggle('slow',function(){
if($('#timer').is(':visible'))
{
$('#timerText').text('Time Remaining');
$('#timerStatus').attr('value', '0');
}
else
{
$('#timerText').text('Show Timer');
$('#timerStatus').attr('value', '1');
}
});
}
function markReview()
{
if($('#review').val() == 0)
{
$('#review').val(1)
$('#mark').html('<img src="images/reviewFlag.png" border="0">');
}
else
{
$('#review').val(0)
$('#mark').text('');
}
}
</script>
<script type="text/javascript">
<!--
function confirmation() {
var answer = confirm("Are you sure you want to End this Review. Changes cannot be made once Submitted")
if (answer){
window.location.href = 'testResults.php';
}
}
//-->
$(function() {
$(this).bind("contextmenu", function(e) {
e.preventDefault();
});
});
</script>
</body>
</html>