        <!-- page content -->
      <style>
    /*            .acc{*/
    /*    display: none;*/
    /*}*/
    .hed{
        background-color:#028482 !important;
    }
    .list-group-item{
        max-height: 30px;
        /*background-color: #028482;*!*/

        /*color: #E7E7E7;*/
        /*font-weight: 500 !important;*/

    }

    #datt{
        vertical-align: middle;
        width: 16px !important;
        height: 16px !important;
        margin-left: 250px !important;
        margin-top: -100px;
        cursor: pointer;
    }
    .tabs-left>li> a:hover {
        background-color:  rgba(38,185,154,0.88) !important;
    }
    .tabs-left>li.active>a, .tabs-left>li.active>a:hover, .tabs-left>li.active>a:focus {
        background-color:  rgba(38,185,154,0.88) !important;
    }
    .al{
        height: 5px;
        width:250px;
    }

</style>

        <link href="<?php echo base_url(); ?>assets/vendors/select2/dist/css/select2.min.css" rel="stylesheet">

        <div class="right_col" role="main">
          <div class="">
           
            

            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                 
                  <div class="x_content">
    
        <div class="row">
             
           
                   <div class="col-md-12 col-sm-12 col-xs-12">
                            <div class="x_title">
                                <h2>Examinations Reports</h2>
                                <ul class="nav navbar-right panel_toolbox">
                                </ul>
                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                                <div class="col-md-3">

                                    <ul class="nav nav-tabs tabs-left" >
                                        <li class="active"><a href="#assessre" data-toggle="tab" style="color:#028482 !important;font-weight:bold;font-size=13px">Assessment Report</a>
                                        </li>
                                       <li><a href="#expass" data-toggle="tab" style="color:#028482 !important;font-weight:bold;font-size=13px">Exam Pass Report</a>
                                        </li>
                                        <!--<li class="navi"><a href="#rc" data-toggle="tab">Report Card</a>-->
                                        <!--</li>-->
                                        <!--<li class="navi"><a href="#fta" data-toggle="tab">Final Term Assessment</a>-->
                                        <!--</li>-->
                                        
                                        <li><a href="#ph" data-toggle="tab" style="color:#028482 !important;font-weight:bold;font-size=13px">Position Holder Report</a>
                                        </li>
                                        <li><a href="#snt" data-toggle="tab" style="color:#028482 !important;font-weight:bold;font-size=13px">Seat No. Tag Report</a>
                                        </li>
                                        
                                        <!-- <li><a href="#ats" data-toggle="tab">Attendance Sheet</a>-->
                                        <!--</li>-->
                                        <li class="navi"><a href="#exn1" id="exn1" data-toggle="tab" style="color:#028482 !important;font-weight:bold;font-size=13px">Exam Notes Report</a>
                                        </li>
                                        <li class="navi"><a href="#swr" data-toggle="tab" style="color:#028482 !important;font-weight:bold;font-size=13px">Section Wise Results</a>
                                        </li>
                                        
                                         <li class="navi"><a href="#mxr" data-toggle="tab" style="color:#028482 !important;font-weight:bold;font-size=13px">Multi Exams Results</a>
                                        </li>
                                        
                                        <li class="navi">
                                            <a href="#seating_plan_list" data-toggle="tab" style="color:#028482 !important;font-weight:bold;font-size=13px">Seating Plan List</a>
                                        </li>
                                        
                                        <li class="navi">
                                            <a href="#award_sheet" data-toggle="tab" style="color:#028482 !important;font-weight:bold;font-size=13px">Award Sheet Report</a>
                                        </li>
                                        
                                       
                                        
                                    </ul>
                                </div>
                                <div class="col-md-2"></div>
                                <div class="col-md-6">

                                    <div class="tab-content">



                                        <div class="tab-pane active" id="assessre">
                                
                
             <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/AssesmentReportList" method="post" id="assessre1">

                      

                 <div class="col-md-12">
                 <div class="col-md-2"></div>
                  <div class="col-md-6" style="display:inline-block;margin-left: 70px">
                                                        <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><b>Assesment Report
                                                                </b></center></div>
                                                    </div>
                 
                 
                 <div class="col-md-1"></div>
                 </div>

                         <?php if($this->user_model->is_super()){ ?>
                 <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Branch:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2" id="branchsre"  name="branch" required style="width:240px !important;">
                                     <option value=''>Select Branch</option>
                     <?php
                            foreach ($branch as $value) {
                      ?>
                            <option value="<?php echo $value['id']; ?>"><?php echo $value['name']?></option>

                      <?php } ?>

                                </select>

                           </div>
                       </div>


                         <?php }else{$branch=$this->user_model->getbranch();?>

                             
                     <!--<label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Branch:<span class="required">*</span></label>-->
                    
                           <input id="branchsre" name="branch" type="hidden" value="<?= $branch ?>">
                                    <!--<input class="form-control" id="branch" name="branch" type="input" readonly value="<?= $this->report_model->getBranch()[0]['name']; ?>">-->
                    
                
  <?php  } ?>


                         <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Class:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 classsre" id="classsre"  name="class" style="width:240px !important;">
                                  <option value="">Select a Class</option>
                                   <?php foreach($classes as $key => $value){ ?>
                            <option value="<?php echo $value['class_id'];?>"><?php echo $value['class_name'];?></option>
                            <?php } ?>
                                  
                                </select>
                           </div>
                       </div>
                       
                       
                         <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Section:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 sectionsre" id="sectionsre"  name="section" style="width:240px !important;">
                                 <option value=''>Select Section</option>
                                </select>
                           </div>
                       </div>
                       
                       <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Session:<span class="required">*</span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 sessionsre" id="sessionsre"  required name="session" style="width:240px !important;">
                                
                                   <option value=''>Select Session</option>
                            <?php foreach($session as $k=>$v){ ?>
                            <option value='<?php echo $v['id']; ?>'><?php echo $v['name']; ?></option>
                            <?php } ?>
                                  
                                </select>
                           </div>
                       </div>
                       

                     <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Exam:<span class="required">*</span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 examsre" id="examsre" required name="exam" style="width:240px !important;">
                                  <option value="">Select a Exam</option>
                                  <?php
                                   foreach ($result as $key => $v) {
                                   ?>
                  <option value='<?php echo $v['id']; ?>'><?php echo $v['name']; ?></option>
            <?php
                                       
                                   }
                                  ?>
            
                                </select>
                           </div>
                       </div>



                     <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Sub type:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 subexamssre" id="subexamssre" name="subexams[]" multiple="multiple" style="width:240px !important;">
                                 
                                </select>
                           </div>
                       </div>

               

                      <!-- end-row -->
                       <div class="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                    </form>
            
                                           
                                        </div>

                                        <div class="tab-pane" id="expass">
                                
                
             <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/exampass_slip" method="post" id="expass1">

                      

                 <div class="col-md-12">
                 <div class="col-md-2"></div>
                  <div class="col-md-6" style="display:inline-block;margin-left: 70px">
                                                        <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><b>Exam Pass

                                                                </b></center></div>
                                                    </div>
                 
                 
                 <div class="col-md-1"></div>
                 </div>

                         <?php if($this->user_model->is_super()){ ?>
                 <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Branch:<span class="required">*</span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2" id="branchexp"  name="branch" required style="width:240px !important;">
                                     <option value=''>Select Branch</option>
                     <?php
                            foreach ($branch as $value) {
                      ?>
                            <option value="<?php echo $value['id']; ?>"><?php echo $value['name']?></option>

                      <?php } ?>

                                </select>

                           </div>
                       </div>


                         <?php }else{$branch=$this->user_model->getbranch();?>

                            
                     <!--<label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Branch:<span class="required">*</span></label>-->
                    
                           <input id="branchexp" name="branch" type="hidden" value="<?= $branch ?>">
                                    <!--<input class="form-control" id="branch" name="branch" type="input" readonly value="<?= $this->report_model->getBranch()[0]['name']; ?>">-->
                    
                 
  <?php  } ?>


                         <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Class:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2" id="classexp"  name="class" style="width:240px !important;">
                                  <option value="">Select a Class</option>
                                </select>
                                <span id="class_loader"></span> 
                           </div>
                       </div>
                       
                       
                       <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Section:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2" id="sectionexp"  name="section" style="width:240px !important;">
                                  <option value="">Select a Section</option>
                                 
                           
                                  
                                </select>
                                <span id="section_loader"></span> 
                           </div>
                       </div>


                         

                     <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Exam Type :<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 exam" id="examexp"  name="exam" style="width:240px !important;">
                                  <option value="">Select Exam Type</option>
                                  
            
                                </select>
                           </div>
                       </div>

                      <!-- end-row -->
                       <div class="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                    </form>
            
                                           
                                        </div>

             <!--                           <div class="tab-pane" id="rc">-->
                                
                
             <!--<form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/get_report_card" method="post" id="rc1">-->

                      

             <!--    <div class="col-md-12">-->
             <!--    <div class="col-md-2"></div>-->
             <!--     <div class="col-md-6" style="display:inline-block;margin-left: 70px">-->
             <!--                                           <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><b>Report Card-->

             <!--                                                   </b></center></div>-->
             <!--                                       </div>-->
                 
                 
             <!--    <div class="col-md-1"></div>-->
             <!--    </div>-->

                       

             <!--            <div class="item form-group">-->
             <!--           <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Class:<span class="required">*</span>-->
             <!--           </label>-->
             <!--           <div class="col-md-8">-->
             <!--                   <select class="form-control select2 classrc" id="classrc" required name="class" style="width:240px !important;">-->
             <!--                     <option value="">Select a Class</option>-->
             <!--                     <?php foreach($classes as $key => $value){ ?>-->
             <!--               <option value="<?php echo $value['class_id'];?>"><?php echo $value['class_name'];?></option>-->
             <!--               <?php } ?>-->
             <!--                   </select>-->
                               
             <!--              </div>-->
             <!--          </div>-->
                       
                       
             <!--          <div class="item form-group">-->
             <!--           <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Section:<span class="required">*</span>-->
             <!--           </label>-->
             <!--           <div class="col-md-8">-->
             <!--                   <select class="form-control select2 sectionrc" id="sectionrc" required name="section" style="width:240px !important;">-->
             <!--                     <option value="">Select a Section</option>-->
                                 
                           
                                  
             <!--                   </select>-->
                               
             <!--              </div>-->
             <!--          </div>-->
                       
                       
             <!--          <div class="item form-group">-->
             <!--           <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Student:<span class="required">*</span>-->
             <!--           </label>-->
             <!--           <div class="col-md-8">-->
             <!--                   <select class="form-control select2 student" id="student" required name="student" style="width:240px !important;">-->
             <!--                     <option value="">Select a Section</option>-->
                                 
                           
                                  
             <!--                   </select>-->
             <!--                   <span id="section_loader"></span> -->
             <!--              </div>-->
             <!--          </div>-->


                         

             <!--        <div class="item form-group">-->
             <!--           <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Exam:<span class="required">*</span>-->
             <!--           </label>-->
             <!--           <div class="col-md-8">-->
             <!--                   <select class="form-control select2 examrc" id="examrc" required name="exam" style="width:240px !important;">-->
             <!--                     <option value="">Select Exam Type</option>-->
                                  
            
             <!--                   </select>-->
             <!--              </div>-->
             <!--          </div>-->
                       
             <!--          <div class="item form-group">-->
             <!--           <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Additional Exam:<span class="required"></span>-->
             <!--           </label>-->
             <!--           <div class="col-md-8">-->
             <!--                   <select class="form-control select2 add_exam" id="add_exam"  name="add_exam" style="width:240px !important;">-->
             <!--                     <option value="">Select Exam</option>-->
                                  
            
             <!--                   </select>-->
             <!--              </div>-->
             <!--          </div>-->
                       
             <!--          <div class="item form-group">-->
             <!--           <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Session:<span class="required">*</span>-->
             <!--           </label>-->
             <!--           <div class="col-md-8">-->
             <!--                   <select class="form-control select2 sessionrc" id="sessionrc" required name="session" style="width:240px !important;">-->
             <!--                     <option value="">Select a Session</option>-->
             <!--                    <?php foreach($session as $k=>$v){ ?>-->
             <!--               <option value='<?php echo $v['id']; ?>'><?php echo $v['name']; ?></option>-->
             <!--               <?php } ?>-->
                           
                                  
             <!--                   </select>-->
                               
             <!--              </div>-->
             <!--          </div>-->

                      <!-- end-row -->
             <!--          <div class="form-group">-->
             <!--                                       <div class="col-md-6" style="display:inline-block;margin-left: 180px">-->
             <!--                                           <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>-->
             <!--                                       </div>-->
             <!--                                   </div>-->
             <!--       </form>-->
            
                                           
             <!--                           </div>-->
                                        
                                          <div class="tab-pane" id="ph">
                                
                
             <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/PositionWiseResultReport" method="post" id="ph1">

                      

                 <div class="col-md-12">
                 <div class="col-md-2"></div>
                  <div class="col-md-6" style="display:inline-block;margin-left: 70px">
                                                        <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><b>Position Holder's Report

                                                                </b></center></div>
                                                    </div>
                 
                 
                 <div class="col-md-1"></div>
                 </div>

                       
 <?php if($this->user_model->is_super()){ ?>
                 <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Branch:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2" id="branchph"  name="branch" required style="width:240px !important;">
                                     <option value=''>Select Branch</option>
                     <?php
                            foreach ($branch as $value) {
                      ?>
                            <option value="<?php echo $value['id']; ?>"><?php echo $value['name']?></option>

                      <?php } ?>

                                </select>

                           </div>
                       </div>


                         <?php }else{$branch=$this->user_model->getbranch();?>

                             
                     <!--<label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Branch:<span class="required">*</span></label>-->
                    
                           <input id="branchph" name="branch" type="hidden" value="<?= $branch ?>">
                                    <!--<input class="form-control" id="branch" name="branch" type="input" readonly value="<?= $this->report_model->getBranch()[0]['name']; ?>">-->
                    
                
  <?php  } ?>
                         <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Class:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 classph" id="classph" required name="class" style="width:240px !important;">
                                  <option value="">Select a Class</option>
                                 
                                </select>
                               
                           </div>
                       </div>
                       
                       
                       <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Section:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 sectionph" id="sectionph" required  name="section" style="width:240px !important;">
                                  <option value="">Select a Section</option>
                                 
                           
                                  
                                </select>
                               
                           </div>
                       </div>
                       
                       
                       <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Session:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 sessionph" id="sessionph" required name="session" style="width:240px !important;">
                                  <option value="">Select a Session</option>
                                 <?php foreach($session as $k=>$v){ ?>
                            <option value='<?php echo $v['id']; ?>'><?php echo $v['name']; ?></option>
                            <?php } ?>
                           
                                  
                                </select>
                               
                           </div>
                       </div>
                     

                         

                     <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Exam:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 examph" id="examph" required name="exam" style="width:240px !important;">
                                  <option value="">Select Exam</option>
                                  
            
                                </select>
                           </div>
                       </div>
                       
                     

                      <!-- end-row -->
                       <div class="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                    </form>
            
                                           
                                        </div>
                                        <div class="tab-pane" id="snt">
             <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/rollnoslip" method="post" id="snt1">
                 <div class="col-md-12">
                 <div class="col-md-2"></div>
                  <div class="col-md-6" style="display:inline-block;margin-left: 70px">
                                                        <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><b>Select Student for Seat No Tag

                                                                </b></center></div>
                                                    </div>
                 
                 
                 <div class="col-md-1"></div>
                 </div>

                       
 <?php if($this->user_model->is_super()){ ?>
                 <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Branch:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 branchsnt" id="branchsnt"  name="branch" required style="width:240px !important;">
                                     <option value=''>Select Branch</option>
                     <?php
                            foreach ($branch as $value) {
                      ?>
                            <option value="<?php echo $value['id']; ?>"><?php echo $value['name']?></option>

                      <?php } ?>

                                </select>

                           </div>
                       </div>


                         <?php }else{$branch=$this->user_model->getbranch();?>

                             
                     <!--<label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Branch:<span class="required">*</span></label>-->
                    
                           <input id="branchsnt" name="branch" type="hidden" value="<?= $branch ?>">
                                    <!--<input class="form-control" id="branch" name="branch" type="input" readonly value="<?= $this->report_model->getBranch()[0]['name']; ?>">-->
                    
                
  <?php  } ?>
                         <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Class:<span class="required">*</span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 classsnt" id="classsnt" required name="class" style="width:240px !important;">
                                  <option value="">Select a Class</option>
                                 
                                </select>
                               
                           </div>
                       </div>
                       
                       
                       <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Section:<span class="required">*</span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 sectionsnt" id="sectionsnt" required name="section" style="width:240px !important;">
                                  <option value="">Select a Section</option>
                                 
                           
                                  
                                </select>
                               
                           </div>
                       </div>
                     
                     <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Exam type:<span class="required">*</span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 examsnt" id="examsnt" required name="exam" style="width:240px !important;">
                                  <option value="">Select Exam Type</option>
                                  
            
                                </select>
                           </div>
                       </div>
                       
                     

                      <!-- end-row -->
                       <div class="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                    </form>
            
                                           
                                        </div>
                                        
                                        
                                        <div class="tab-pane" id="swr">
             <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/SectionWiseResultReport" method="post" id="swr1">
                 <div class="col-md-12">
                 <div class="col-md-2"></div>
                  <div class="col-md-6" style="display:inline-block;margin-left: 70px">
                                                        <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><b>Section Wise Result Report

                                                                </b></center></div>
                                                    </div>
                 
                 
                 <div class="col-md-1"></div>
                 </div>

                       
 <?php if($this->user_model->is_super()){ ?>
                 <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Branch:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 branchswr" id="branchswr"  name="branch" required style="width:240px !important;">
                                     <option value=''>Select Branch</option>
                     <?php
                            foreach ($branch as $value) {
                      ?>
                            <option value="<?php echo $value['id']; ?>"><?php echo $value['name']?></option>

                      <?php } ?>

                                </select>

                           </div>
                       </div>


                         <?php }else{$branch=$this->user_model->getbranch();?>

                             
                     <!--<label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Branch:<span class="required">*</span></label>-->
                    
                           <input id="branchswr" name="branch" type="hidden" value="<?= $branch ?>">
                                    <!--<input class="form-control" id="branch" name="branch" type="input" readonly value="<?= $this->report_model->getBranch()[0]['name']; ?>">-->
                    
                
  <?php  } ?>
                         <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Class:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 classswr" id="classswr"  name="class" style="width:240px !important;">
                                  <option value="">Select a Class</option>
                                 
                                </select>
                               
                           </div>
                       </div>
                       
                       
                       <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Section:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 sectionswr" id="sectionswr"  name="section" style="width:240px !important;">
                                  <option value="">Select a Section</option>
                                 
                           
                                  
                                </select>
                               
                           </div>
                       </div>
                       
                       <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Session:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 sessionswr" id="sessionswr"  name="session" style="width:240px !important;">
                                  <option value="">Select a Session</option>
                                 <?php foreach($session as $k=>$v){ ?>
                            <option value='<?php echo $v['id']; ?>'><?php echo $v['name']; ?></option>
                            <?php } ?>
                           
                                  
                                </select>
                               
                           </div>
                       </div>

                     
                     <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Exam :<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 examswr" id="examswr"  name="exam" style="width:240px !important;">
                                  <option value="">Select Exam </option>
                                </select>
                           </div>
                       </div>
                       
                     

                      <!-- end-row -->
                       <div class="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                    </form>
            
                                           
                                        </div>
                                        
                                        <div class="tab-pane" id="mxr">
             <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/MultiExamReportList" method="post" id="mxr1">
                 <div class="col-md-12">
                 <div class="col-md-2"></div>
                  <div class="col-md-6" style="display:inline-block;margin-left: 70px">
                                                        <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><b>Multi Exam Report

                                                                </b></center></div>
                                                    </div>
                 
                 
                 <div class="col-md-1"></div>
                 </div>

                       
 <?php if($this->user_model->is_super()){ ?>
                 <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Branch:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 branchmxr" id="branchmxr"  name="branch" required style="width:240px !important;">
                                     <option value=''>Select Branch</option>
                     <?php
                            foreach ($branch as $value) {
                      ?>
                            <option value="<?php echo $value['id']; ?>"><?php echo $value['name']?></option>

                      <?php } ?>

                                </select>

                           </div>
                       </div>


                         <?php }else{$branch=$this->user_model->getbranch();?>

                             
                     <!--<label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Branch:<span class="required">*</span></label>-->
                    
                           <input id="branchmxr" name="branch" type="hidden" value="<?= $branch ?>">
                                    <!--<input class="form-control" id="branch" name="branch" type="input" readonly value="<?= $this->report_model->getBranch()[0]['name']; ?>">-->
                    
                
  <?php  } ?>
                         <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Class:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 classmxr" id="classmxr" required name="class" style="width:240px !important;">
                                  <option value="">Select a Class</option>
                                  <?php foreach($classes as $key => $value){ ?>
                            <option value="<?php echo $value['class_id'];?>"><?php echo $value['class_name'];?></option>
                            <?php } ?>
                                </select>
                               
                           </div>
                       </div>
                       
                       
                       <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Section:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 sectionmxr" required id="sectionmxr" name="section" style="width:240px !important;">
                                  <option value="">Select a Section</option>
                                 
                           
                                  
                                </select>
                               
                           </div>
                       </div>
                       
                       <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Session:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 sessionmxr" id="sessionmxr" required  name="session" style="width:240px !important;">
                                  <option value="">Select a Session</option>
                                 <?php foreach($session as $k=>$v){ ?>
                            <option value='<?php echo $v['id']; ?>'><?php echo $v['name']; ?></option>
                            <?php } ?>
                           
                                  
                                </select>
                               
                           </div>
                       </div>

                     
                     <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Exam :<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                   
                                    <select id="exammxr" class="form-control select2 exammxr" name="exams[]" required multiple="multiple"  style="width:240px !important;">
                                 <?php
                                   foreach ($result as $key => $v) {
                                   ?>
                  <option value='<?php echo $v['id']; ?>'><?php echo $v['name']; ?></option>
            <?php
                                       
                                   }
                                  ?>
                                </select>
                           </div>
                       </div>
                       
                     

                      <!-- end-row -->
                       <div class="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                    </form>
            
                                           
                                        </div>
                                        
                                         <!--Award Sheet--->
                                        
                                        <div class="tab-pane" id="award_sheet">
             <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/view_result_sheet" method="post" id="award_sheet1">
                 <div class="col-md-12">
                 <div class="col-md-2"></div>
                  <div class="col-md-6" style="display:inline-block;margin-left: 70px">
                     <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><b>Award Sheet

                                                                </b></center></div>
                                                    </div>
                 
                 
                 <div class="col-md-1"></div>
                 </div>

                         <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Class:<span class="required">*</span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 classaward" id="classaward" required name="class" style="width:240px !important;">
                                  <option value="">Select a Class</option>
                                  <?php foreach($classes as $key => $value){ ?>
                            <option value="<?php echo $value['class_id'];?>"><?php echo $value['class_name'];?></option>
                            <?php } ?>
                                </select>
                               
                           </div>
                       </div>
                       
                       
                       <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Section:<span class="required">*</span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 sectionaward" id="sectionaward" required name="section" style="width:240px !important;">
                                  <option value="">Select a Section</option>
                                 
                           
                                  
                                </select>
                               
                           </div>
                       </div>
                       
                       

                     
                     <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Exam :<span class="required">*</span>
                        </label>
                        <div class="col-md-8">
                                   
                                    <select id="examaward" class="form-control select2 examaward" required name="exam"  style="width:240px !important;">
                                
                                </select>
                           </div>
                       </div>
                       
                     

                      <!-- end-row -->
                       <div class="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                    </form>
            
                                           
                                        </div>
                  <!--Seating Plan List-->
                                        
          <div class="tab-pane" id="seating_plan_list">
             <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/sitting_plan_view_block_wise" method="post" id="seating_plan_list1">
                 <div class="col-md-12">
                 <div class="col-md-2"></div>
                  <div class="col-md-6" style="display:inline-block;margin-left: 70px">
                     <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><b>Seating Plan List

                                                                </b></center></div>
                                                    </div>
                 
                 
                 <div class="col-md-1"></div>
                 </div>

                 
                  <div class="item form-group exm">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12" for="class">Exam*
                        </label>
                        <div class="col-md-8">
                          <select id="examblock" class="form-control col-md-7 col-xs-12" name="examblock" style="width:240px !important;" required>
                            <option value="">Select Exam</option>
                            <?php
							   
                                foreach ($examlist as $key => $value) {
                                    echo '<option value="'.$value['exam'].'">'.$value['e_name'].'</option>';
                                }

                            ?>
                          </select>
                        </div>
                </div> 
                      
                    
                    <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12" for="block">Block
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                        <select class="form-control" id="block" name="block" style="width:240px !important;">
							
						</select>
                        </div>
                      </div>
                      
                <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Class:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2 classblock" id="classblock"  name="classblock" style="width:240px !important;">
                                  <option value="">Select a Class</option>
                                  <?php foreach($classes as $key => $value){ ?>
                            <option value="<?php echo $value['class_id'];?>"><?php echo $value['class_name'];?></option>
                            <?php } ?>
                                </select>
                               
                           </div>
                </div>
                       
                       
                    
                       
                       <!-- end-row -->
                       <div class="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                    </form>
                  </div>

                                    </div>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                        </div>



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



  
       
       
        <!-- /page content -->
       <!-- jQuery -->
    
      <!-- jQuery -->
    <script src="<?php echo base_url(); ?>assets/vendors/jquery/dist/jquery.min.js"></script>
    <script src="<?php echo base_url()?>assets/select/js/select2.min.js"></script>
    <!-- Custom JS -->
    <script src="<?php echo base_url(); ?>assets/js/main.js"></script>
    <!-- Bootstrap -->
    <script src="<?php echo base_url(); ?>assets/vendors/bootstrap/dist/js/bootstrap.min.js"></script>
    <!-- FastClick -->
    <script src="<?php echo base_url(); ?>assets/vendors/fastclick/lib/fastclick.js"></script>
    <!-- NProgress -->
    <script src="<?php echo base_url(); ?>assets/vendors/nprogress/nprogress.js"></script>
    <!-- Chart.js -->
    <script src="<?php echo base_url(); ?>assets/vendors/Chart.js/dist/Chart.min.js"></script>
    <!-- gauge.js -->
    <script src="<?php echo base_url(); ?>assets/vendors/gauge.js/dist/gauge.min.js"></script>
    <!-- bootstrap-progressbar -->
    <script src="<?php echo base_url(); ?>assets/vendors/bootstrap-progressbar/bootstrap-progressbar.min.js"></script>
    <!-- iCheck -->
    <script src="<?php echo base_url(); ?>assets/vendors/iCheck/icheck.min.js"></script>
    <!-- Skycons -->
    <script src="<?php echo base_url(); ?>assets/vendors/skycons/skycons.js"></script>
    <!-- Flot -->
    <script src="<?php echo base_url(); ?>assets/vendors/Flot/jquery.flot.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/Flot/jquery.flot.pie.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/Flot/jquery.flot.time.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/Flot/jquery.flot.stack.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/Flot/jquery.flot.resize.js"></script>
    <!-- Flot plugins -->
    <script src="<?php echo base_url(); ?>assets/js/flot/jquery.flot.orderBars.js"></script>
    <!--<script src="<?php echo base_url(); ?>assets/js/flot/date.js"></script>-->
    <script src="<?php echo base_url(); ?>assets/js/flot/jquery.flot.spline.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/flot/curvedLines.js"></script>
    <!-- jVectorMap -->
    <script src="<?php echo base_url(); ?>assets/js/maps/jquery-jvectormap-2.0.3.min.js"></script>
    <!-- bootstrap-daterangepicker -->
    <script src="<?php echo base_url(); ?>assets/js/moment/moment.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/bootstrap-datepicker.js"></script>
     <!-- bootstrap-daterangepicker -->
    <script src="<?php echo base_url(); ?>assets/js/moment/moment.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/datepicker/daterangepicker.js"></script>
    <!-- Jquery UI-daterangepicker -->
    <script src="<?php echo base_url(); ?>assets/vendors/datepicker/jquery-ui.min.js"></script>
     

     <!-- Assessment Report -->
   
      <script>
            $(document).ready(function() {
                $('#assessre1').submit(function() {
                    window.open('<?php echo base_url()?>Report/AssesmentReportList', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
                $('#exn1').click(function() {
                    window.open('<?php echo base_url()?>Report/Exam_notes', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
                 $('#expass1').submit(function() {
                    window.open('<?php echo base_url()?>Report/exampass_slip', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
                
                //  $('#rc1').submit(function() {
                //     window.open('<?php echo base_url()?>Report/get_report_card', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                //     this.target = 'formpopup';
                // });
                
                 $('#ph1').submit(function() {
                    window.open('<?php echo base_url()?>Report/PositionWiseResultReport', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
                
                 $('#snt1').submit(function() {
                    window.open('<?php echo base_url()?>Report/rollnoslip', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
                
                 $('#swr1').submit(function() {
                    window.open('<?php echo base_url()?>Report/SectionWiseResultReport', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
                 $('#mxr1').submit(function() {
                    window.open('<?php echo base_url()?>Report/MultiExamReportList', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
                 $('#award_sheet1').submit(function() {
                    window.open('<?php echo base_url()?>Report/view_result_sheet', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
                $('#seating_plan_list1').submit(function() {
                    window.open('<?php echo base_url()?>Report/sitting_plan_view_block_wise', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
        
            });


        </script>
      

    
   
    <script>
 
    <?php if($this->user_model->is_super()){ ?>
    $('#branchsre').select2({
    allowClear:true
    });
    
    $('#branchmxr').select2({
    allowClear:true
    });
    
     $('#branchexp').select2({
    allowClear:true
    });
    
     $('#branchswr').select2({
    allowClear:true
    });
    
    $('#branchsnt').select2({
    allowClear:true
    });
    <?php } ?>
      $('#classsre').select2({
    allowClear:true
    });
    
     $('#sectionsre').select2({
    allowClear:true
    });
    
     $('#examsre').select2({
    allowClear:true
    });
      $('#sessionsre').select2({
    allowClear:true
    });
      $('#subexamssre').select2({
    allowClear:true
    });
    
    $('#classexp').select2({
    allowClear:true
    });
    
     $('#sectionexp').select2({
    allowClear:true
    });
    $('#examexp').select2({
    allowClear:true
    });
    
 $('#examrc').select2({
    allowClear:true
    });
      $('#sessionrc').select2({
    allowClear:true
    });
      $('#student').select2({
    allowClear:true
    });
    
    $('#classrc').select2({
    allowClear:true
    });
    
     $('#sectionrc').select2({
    allowClear:true
    });
    $('#add_exam').select2({
    allowClear:true
    });
    
     $('#sessionph').select2({
    allowClear:true
    });
     
    $('#classph').select2({
    allowClear:true
    });
    
     $('#sectionph').select2({
    allowClear:true
    });
    $('#examph').select2({
    allowClear:true
    });
    
    $('#classsnt').select2({
    allowClear:true
    });
    
     $('#sectionsnt').select2({
    allowClear:true
    });
    $('#examsnt').select2({
    allowClear:true
    });
    
    
     $('#classswr').select2({
    allowClear:true
    });
    
     $('#sectionswr').select2({
    allowClear:true
    });
     $('#sessionswr').select2({
    allowClear:true
    });
    $('#examswr').select2({
    allowClear:true
    });
    
     $('#classaward').select2({
    allowClear:false
    });
    
     $('#sectionaward').select2({
    allowClear:false
    });
    
    $('#classmxr').select2({
    allowClear:true
    });
    
     $('#sectionmxr').select2({
    allowClear:true
    });
     $('#sessionmxr').select2({
    allowClear:true
    });
    $('#exammxr').select2({
    allowClear:true
    });
     $('#examaward').select2({
    allowClear:false
    });
    $('#examblock').select2({
    allowClear:false
    });
     $('#classblock').select2({
    allowClear:false
    });
      $('#block').select2({
    allowClear:false
    });
   
    </script>

<!-- Assessment Report -->

 <script>

        $(document).ready(function(){
            $(document).on("change","#examsre",function(){
                var value = $(this).val();
                if(value !='')
                {
                  $.get("<?php echo base_url(); ?>exam/fetch_subtype/"+value,{},function(d){
                    var pre = '<option value="">Select Exam Subtype</opiton>';
                    $("#subexamssre").html(pre+d);
                         });
                }else
                {
                    $("#subexamssre").html("");
                }
             
            });
            
        });
    </script>
 
<script>
$(document).ready(function(){
            $(function(){
                var value = $('#branchsre').val();
                $.get("<?php echo base_url(); ?>load/classs/role/"+value,{},function(d){
                    var pre = '<option value="">Select Class</opiton>';
                    $("#classsre").html(pre+d);
                });
             
              $.get("<?php echo base_url(); ?>load/exam/"+value,{},function(d){
                    var pre = '<option value="">Select Exam</opiton>';
                    $("#examsre").html(pre+d);
                });
                
            });
            
        });
 
        $(document).ready(function(){
            $(document).on("change","#branchsre",function(){
                var value = $(this).val();
                $.get("<?php echo base_url(); ?>load/classs/role/"+value,{},function(d){
                    var pre = '<option value="">Select Class</opiton>';
                    $("#classsre").html(pre+d);
                });
                
                  $.get("<?php echo base_url(); ?>load/exam/"+value,{},function(d){
                    var pre = '<option value="">Select Exam</opiton>';
                    $("#examsre").html(pre+d);
                });
                  
            });
            
        });
        $(document).ready(function(){
            $(document).on("change","#classsre",function(){
                var value = $(this).val();
                $.get("<?php echo base_url(); ?>load/section/role/"+value,{},function(d){
                    var pre = '<option value="">Select Section</opiton>';
                    $("#sectionsre").html(pre+d);
                });

            });
        });
    </script>

<!-- Exampass Report -->

 <script>
        $(document).ready(function(){
            
                var value = $('#branchexp').val();
                $.get("<?php echo base_url(); ?>load/classs/role/"+value,{},function(d){
                    var pre = '<option value="">Select Class</opiton>';
                    $("#classexp").html(pre+d);
                });
                $.get("<?php echo base_url(); ?>Load/exam/"+value,{},function(data){
            var pre = "<option value=''>Select Exam</option>";
            $("#examexp").html(pre+data);
          });
            
        });
    </script>
    
    <script>
      $(function(){
        $(document).on("change","#branchexp",function(){
          var val = $(this).val();
          $.get("<?php echo base_url(); ?>Load/classs/role/"+val,{},function(data){
            var pre = "<option value=''>Select Class</option>";
            $("#classexp").html(pre+data);
          });
          $.get("<?php echo base_url(); ?>Load/exam/"+val,{},function(data){
            var pre = "<option value=''>Select Exam</option>";
            $("#examexp").html(pre+data);
          });
        });
      });
    </script>
    <script>
      $(function(){
        $(document).on("change","#classexp",function(){
          var val = $(this).val();
          $.get("<?php echo base_url(); ?>Load/section/role/"+val,{},function(data){
            var pre = "<option value=''>Select Section</option>";
            $("#sectionexp").html(pre+data);
          });
          
        });
      });
    </script>
    
 <!-- Report Card-->

  <!--<script>-->
  <!--      $(document).on("change","#classrc",function(){-->
  <!--              var value = $(this).val();-->
  <!--              $.get("<?php echo base_url(); ?>load/section_prev/"+1+"/"+value,{},function(d){-->
  <!--                  var pre = '<option value="">Select Section</opiton>';-->
  <!--                  $("#sectionrc").html(pre+d);-->
  <!--              });-->
  <!--          });-->
  <!--      $('#sectionrc').change(function(){-->
  <!--         var val=$('#classrc').val();-->
  <!--         var se=$(this).val();-->
  <!--         $.get("<?php echo base_url(); ?>load/sectionbase/"+val+"/"+se+"/"+1,{},function (d){-->
  <!--           var pre = '<option value="">Select Student</opiton>';-->
  <!--                  $("#student").html(pre+d);-->
  <!--          });-->
  <!--     });-->
       
  <!--     $(document).ready(function(){-->
  <!--          $(document).on("change","#classrc",function(){-->
  <!--              var value = $(this).val();-->
  <!--              $.get("<?php echo base_url(); ?>load/exam_prev/"+value,{},function(d){-->
  <!--                  var pre = '<option value="">Select Exam</opiton>';-->
  <!--                  $("#examrc").html(pre+d);-->
  <!--                  $("#add_exam").html(pre+d);-->
  <!--              });-->
  <!--          });-->
            
  <!--      });-->
  <!--  </script>-->
    
    <!--Position Holder-->
    <script>
          $(function(){
                var value = $('#branchph').val();
                $.get("<?php echo base_url(); ?>load/classs/role/"+value,{},function(d){
                    var pre = '<option value="">Select Class</opiton>';
                    $("#classph").html(pre+d);
                });
                $.get("<?php echo base_url(); ?>load/exam/"+value,{},function(d){
                    var pre = '<option value="">Select Exam</opiton>';
                    $("#examph").html(pre+d);
                });
            });
            
        
        $(document).ready(function(){
            $(document).on("change","#branchph",function(){
                var value = $(this).val();
                $.get("<?php echo base_url(); ?>load/classs/role/"+value,{},function(d){
                    var pre = '<option value="">Select Class</opiton>';
                    $("#classph").html(pre+d);
                });
                $.get("<?php echo base_url(); ?>load/exam/"+value,{},function(d){
                    var pre = '<option value="">Select Exam</opiton>';
                    $("#examph").html(pre+d);
                });
            });
            
        });
          $(document).ready(function(){
            $(document).on("change","#classph",function(){
                var value = $(this).val();
                $.get("<?php echo base_url(); ?>load/section/role/"+value,{},function(d){
                    var pre = '<option value="">Select Section</opiton>';
                    $("#sectionph").html(pre+d);
                });
            });
            
        });
          $(document).ready(function(){
            $(document).on("change","#classph",function(){
                var value = $(this).val();
                
            });
            
        });
    </script>
    
    <!--Seat No tag-->
     <script>
      $(function(){
       
          var val = $('#branchsnt').val();
          $.get("<?php echo base_url(); ?>Load/classs/role/"+val,{},function(data){
            var pre = "<option value=''>Select Class</option>";
            $("#classsnt").html(pre+data);
          });
          $.get("<?php echo base_url(); ?>Load/exam/"+val,{},function(data){
            var pre = "<option value=''>Select exam</option>";
            $("#examsnt").html(pre+data);
          });
        });

    </script>
   
    <script>
      $(function(){
        $(document).on("change","#branchsnt",function(){
          var val = $(this).val();
          $.get("<?php echo base_url(); ?>Load/classs/role/"+val,{},function(data){
            var pre = "<option value=''>Select Class</option>";
            $("#classsnt").html(pre+data);
          });
           
        });
      });
    </script>
    <script>
      $(function(){
        $(document).on("change","#classsnt",function(){
          var val= $(this).val();
          var value2=$('#branchsnt').val();
         
           $.ajax({
         url: '<?php echo base_url(); ?>load/studentagainstclasstagsreport/'+val+'/'+value2,
             data: {},
        success: function (result) {
            if(result =""){
            alert("Seating Plan is not generated for this class.Please select another class");
          return false;
               }
              
                    }
                });
                
            
					
				// 	 $.get("<?php echo base_url(); ?>load/get_exam_sitting_plan/class/"+val,{},function(ret){
					
				// 		 var pre = '<option value="">Select Exam</option>';
				// 		 $("#examsnt").html(pre+ret);
                    
    //             });
             
            
          $.get("<?php echo base_url(); ?>Load/section/role/"+val,{},function(data){
            var pre = "<option value=''>Select Section</option>";
            $("#sectionsnt").html(pre+data);
          });
         
        });
      });
    </script>
    
    <!--Section wise result-->
    <script>
          $(function(){
                var value = $('#branchswr').val();
                $.get("<?php echo base_url(); ?>load/classs/role/"+value,{},function(d){
                    var pre = '<option value="">Select Class</opiton>';
                    $("#classswr").html(pre+d);
                });
                $.get("<?php echo base_url(); ?>load/exam/"+value,{},function(d){
                    var pre = '<option value="">Select Exam</opiton>';
                    $("#examswr").html(pre+d);
                });
            });
            
        
        $(document).ready(function(){
            $(document).on("change","#branchswr",function(){
                var value = $(this).val();
                $.get("<?php echo base_url(); ?>load/classs/role/"+value,{},function(d){
                    var pre = '<option value="">Select Class</opiton>';
                    $("#classswr").html(pre+d);
                });
                $.get("<?php echo base_url(); ?>load/exam/"+value,{},function(d){
                    var pre = '<option value="">Select Exam</opiton>';
                    $("#examswrswr").html(pre+d);
                });
            });
            
        });
          $(document).ready(function(){
            $(document).on("change","#classswr",function(){
                var value = $(this).val();
                $.get("<?php echo base_url(); ?>load/section/role/"+value,{},function(d){
                    var pre = '<option value="">Select Section</opiton>';
                    $("#sectionswr").html(pre+d);
                });
            });
            
        });
          $(document).ready(function(){
            $(document).on("change","#classswr",function(){
                var value = $(this).val();
                
            });
            
        });
    </script>
    
     <!--Multi Exam result-->
<script>
$(document).ready(function(){
            $(function(){
                var value = $('#branchmxr').val();
                $.get("<?php echo base_url(); ?>load/classs/role/"+value,{},function(d){
                    var pre = '<option value="">Select Class</opiton>';
                    $("#classmxr").html(pre+d);
                });
                $.get("<?php echo base_url(); ?>load/load_exams/"+value,{},function(d){
                    
                    $("#exammxr").html(d);
                });
                
            });
            
        });
 
        $(document).ready(function(){
            $(document).on("change","#branchmxr",function(){
                var value = $(this).val();
                $.get("<?php echo base_url(); ?>load/classs/role/"+value,{},function(d){
                    var pre = '<option value="">Select Class</opiton>';
                    $("#classmxr").html(pre+d);
                });
                        $.get("<?php echo base_url(); ?>load/load_exams/"+value,{},function(d){
                    $("#exammxr").html(d);
                });
            });
            
        });
        $(document).ready(function(){
            $(document).on("change","#classmxr",function(){
                var value = $(this).val();
                $.get("<?php echo base_url(); ?>load/section/role/"+value,{},function(d){
                    var pre = '<option value="">Select Section</opiton>';
                    $("#sectionmxr").html(pre+d);
                });

            });
        });
        
        	$(document).on("change","#examblock",function(){
					var exams =$("#examblock").val();
					
					 $.get("<?php echo base_url(); ?>load/get_blocks/block/"+exams,{},function(ret){
					
						 var pre = '<option value="">Select Block</option>';
						 $("#block").html(pre+ret);
                    
                });
            });
            
          $(document).ready(function(){
            $(document).on("change","#classaward",function(){
                var value = $(this).val();
                $.get("<?php echo base_url(); ?>load/section/role/"+value,{},function(d){
                    var pre = '<option value="">Select Section</opiton>';
                    $("#sectionaward").html(pre+d);
                });
                
                	 $.get("<?php echo base_url(); ?>load/get_exam_sitting_plan/class/"+value,{},function(ret){
					     var pre = '<option value="">Select Exam</option>';
						 $("#examaward").html(pre+ret);
                  });

            });
        });
    </script>
        </body>
        </html>