if ($permission == '3') { $result = mysqli_query($dbc, "update Judge_Paper set Judge_3 = {$i} where P_Id='{$id}' "); } } } header("Location: judge_page.php"); } if (isset($_POST['judged'])) { //echo "one"; $k = $_POST['judged']; $i = intval($_POST['marks']); judge_Paper($k, $i); } //if(chk_date()==1) //{ if (get_paper() != -1) { echo "All Paper Judged"; } //} //else // echo "Competition still going on."; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Member Area </title> <style type="text/css"> .success {
<?php session_start(); if (!empty($_SESSION["id"])) { require_once '../database.php'; $papers = get_paper($_SESSION["id"]); } ?> <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="../default.css"> <script> var pdfFrame; function viewPaper(event) { pdfFrame = pdfFrame ? pdfFrame : document.getElementById("pdfviewer"); var pdfWindow = pdfFrame.contentWindow; pdfFrame.style.border = 0; var element = event.target; var elements = document.getElementsByName("papertitle"); for(var i=0; i< elements.length; i++) elements[i].classList.remove("paperactive"); element.classList.add("paperactive"); pdfWindow.location.href = "../uploads/"+element.previousElementSibling.textContent; } </script> </head> <body> <div id="container"> <?php