<?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> Student Report Card</title>

<!-- Favicons-->

<link rel="icon" type="image/png" href="img/favicon.png" sizes="32x32" />



<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>







  <div class="book">

    <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">  </td>



         <td width="15%"> Student Name Urdu   </td>

         <td width="35%" class="fieldStyle">  </td>





      </tr>



      <tr>  

         <td width="15%"> Father Name Eng   </td>

         <td width="35%" class="fieldStyle">  </td>



         <td width="15%"> Father Name Urdu   </td>

         <td width="35%" class="fieldStyle">  </td>





      </tr>

         <td width="13%"> Gender   </td>

         <td width="20%" class="fieldStyle">  </td>



         <td width="13%"> Religion   </td>

         <td width="20%" class="fieldStyle">  </td>

      <tr>

  

      </tr>

    

       <tr>  

         <td width="13%"> Date of Birth   </td>

         <td width="20%" class="fieldStyle">  </td>



         <td width="13%"> Date of Admission   </td>

         <td width="20%" class="fieldStyle">  </td>

      </tr>

   

      

       <tr>  

         <td width="13%"> Form-B No   </td>

         <td width="20%" class="fieldStyle">  </td>



         <td width="13%"> Cast   </td>

         <td width="20%" class="fieldStyle">  </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">  </td>



         <td width="13%"> Optional Subjects   </td>

         <td width="20%" class="fieldStyle">  </td>

      </tr>

       <tr>  

        



         <td width="13%"> Select Category   </td>

         <td width="20%" class="fieldStyle">  </td>



         <td width="13%"> Have Siblings?   </td>

         <td width="20%" class="fieldStyle">  </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"> 

          </td>



         

      </tr>



        <tr>  

        



         <td width="13%"> Select Medium   </td>

         <td width="20%" class="fieldStyle">  </td>



         <td width="13%"> Number/ Reporting SMS   </td>

         <td width="20%" class="fieldStyle">  </td>

      </tr>



        <tr>  

        



         <td width="13%"> Postal Code   </td>

         <td width="20%" class="fieldStyle">  </td>



         <td width="13%"> Email   </td>

         <td width="20%" class="fieldStyle">  </td>

      </tr>



        <tr>  

        



         <td width="13%"> City   </td>

         <td width="20%" class="fieldStyle">    </td>



         <td width="13%"> Any Chronical Disease  </td>

         <td width="20%" class="fieldStyle">  </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>









</body>

</html>

