<html>
<head>
<style>
.span_sec{
	   display:inline-block !important;
	   
	   width:47% !important;
	
	}
	
.div-section{
	  display:inline-block !important;
	  width:100% !important;
	  padding: 10px !important;
	
	}
	
.main-div{
	   width: 95% !important;
	   padding: 15px !important;
	
	}		
</style>
<script src="{$ROOT}js/jquery90f9.js"></script>

{literal}
<script language="javascript">
function proceed(pid,url)
{
jQuery.post("{/literal}{$ROOT}{literal}newajax.php",{type:"startexam",pid:pid},function(data){
		   if(data==1)
		   {
			 window.location=url+"startexam.php?id="+pid;	
		   }
		   else{
			 alert(data);
		   }

});
	
}
</script>
{/literal}
</head>


<body>
	
			<div class="main-div">	

                                                    
                    <div class="div-section" >
                    	
                        <center><h1>Exam Details </h1></center>	
						
                       <div class="" style="padding:5px;border-top: dashed 1px #ccc;">
                                                    
                          
                          <div class="" style="" >
                          
                          	<span class="span_sec">Paper Name : {$paper_detail.name} </span> 	  
                          	<span class="span_sec"> Total Questions:{$paper_detail.totalqus} </span>
                          
                          </div>
		 
                          <div class="" style="" >
                          
                          	<span class="span_sec">Time:{$paper_detail.ttime} </span> 	  
                          	<span class="span_sec"> Marks:{$paper_detail.marks} </span>
                          </div>
		 
						
                        
                          <div class="" style="" >
                          
                          	<span class="span_sec">Class :{$paper_detail.class} </span> 	  
                          	<span class="span_sec">  Subject:</span>
                          </div>
		 
					  </div>
                      
					</div>
                    
                    
                    <div class="div-section" >
                    	
                        <center><h1>Rules </h1></center>	
						
                       <div class="" style="padding: 19px;border: solid 1px #ccc;background-color: #eee;height: 250px;overflow: auto;">
                                                    
                        {$exam_instructions} 
		 
					   </div>
                      
					</div>
                    
                    
                    <div class="div-section" >
                    	
                       <button name="proceed" type="submit" onClick="proceed('{$paper_detail.id}','{$ROOT}')" style="float:right;" >PROCEED</button>

<!--                       <button name="proceed" type="submit" onClick="window.location='startexam.php?id={$ppid}'" style="float:right;" >PROCEED</button>
-->                      
					</div>
							
								

			</div>
		
     
    
   
</body>
</html>	