PK

ADDRLIN : /home/questend/public_html/subdomain/trufflenation.questend.com/admin/student/
FLL :
Current File : /home/questend/public_html/subdomain/trufflenation.questend.com/admin/student/edit-installment.php

<?php
   ob_start();
   //error_reporting(E_ALL ^ E_NOTICE);
   @session_start();
   ini_set('allow_url_include',1);    
   date_default_timezone_set("Asia/Kolkata");
   set_time_limit(600);
   ini_set('max_execution_time',600);
   include '../includes/settings/constant.php';
   //include '../includes/settings/db.php';
   require_once '../includes/settings/PDODB.php';
   include '../includes/modules/functions.php';

   $function = new FUNCTIONS();

   if(empty($_SESSION['adminId'])){
    header("Location: ../index.php");
    exit();
   }

   $pdodb = PDODB::getInstance();

   $studentdata = $function->getStudent($id=$_GET['uid'],$isActive=1,$orderBy='DESC');

   $name = $studentdata[0]['username'];
   $email = $studentdata[0]['uemail'];
   $mobileno = $studentdata[0]['mobileno'];

   //print_r($joincoursedata[0]);

   if(isset($_POST['btnPay']) && !empty($_POST)){

       $ids = $_POST['id'];
       $amounts = $_POST['amount'];
       $dueDates = $_POST['dueDate'];
       
       foreach ($ids as $key => $installmentId) {
           $amount = $amounts[$key];
           $dueDate = $dueDates[$key];
           
           $sqlupt = "UPDATE `tn_installments` SET amount='".$amount."', dueDate='".$dueDate."' WHERE id = '".$installmentId."'";
           //echo $sqlupt; // For testing purposes, remove or comment out in production
           
           $resultitem = $pdodb->query($sqlupt);

            $sqlinstlmnt2 = "UPDATE `tn_accounts` SET debit='".$amount."', date='".$dueDate."' WHERE installmentId='".$installmentId."'";
            //echo $sqlinstlmnt2; //exit;
            $resultinstlmnt2 = $pdodb->query($sqlinstlmnt2);
       }
   }

?>
<!DOCTYPE html>
<html>
   <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>INSPINIA | Basic Form</title>
      <?php include_once '../layout/style.php'; ?>
   </head>
   <body>
      <div id="wrapper">
         <?php $currentPage = 'student-list'; include_once '../layout/side-bar.php'; ?>
         <div id="page-wrapper" class="gray-bg">
            <?php include_once '../layout/header.php'; ?>
            <div class="row wrapper border-bottom white-bg page-heading">
               <div class="col-lg-8">
                  <h2><?=$name;?></h2>
                  <h3>Email ID :  <?=$email;?></h3>
                  <h3>Mobile No. :  <?=$mobileno;?></h3>                  
               </div>
               <div class="col-sm-4">
                   <button class="btn btn-primary btn-md pull-right" onclick="history.go(-1);"><i class="fa fa-arrow-circle-left"></i> BACK </button>
               </div>
            </div>           
            <div class="row">
               <div class="col-lg-12">
                  <div class="ibox float-e-margins">
                     <div class="ibox-title">
                        <h5><?=$name;?>'s Installment Details</h5>
                     </div>
                     <div class="ibox-content">
                       <div class="table-responsive">
                           <form method="POST" action="">
                             <table class="table table-striped table-bordered table-hover dataTables-example" id="editable">
                                <thead>                               
                                   <tr>
                                    <th scope="col">S.no.</th> 
                                    <th scope="col">Installment Date :</th>
                                    <th scope="col">Installment Amount</th>
                                   </tr>
                                </thead>
                                <tbody>
                                 <?php $getDueDate = $function->getInstallmentList($id=NULL,$uId=$_GET['uid'],$orderId=$_GET['oid'],$isActive=NULL);
                                    for($i=0;$i<count($getDueDate);$i++){ ?> 
                                    <tr>
                                       <th scope="row"><?=$i+1;?></th>                                 
                                       <td><input type="date" class="form-control" name="dueDate[]" value="<?=$getDueDate[$i]['dueDate'];?>"></td>
                                       <td><input class="form-control" name="amount[]" value="<?=$getDueDate[$i]['amount'];?>"></td>
                                       <input class="hidden"  name="id[]" value="<?=$getDueDate[$i]['id'];?>">
                                    </tr>
                                 <?php } ?>
                                </tbody>
                             </table>
                             <div class="col-lg-12">
                                <div class="form-group">                                 
                                    <div class="col-sm-12">
                                       <button class="btn btn-lg btn-danger pull-right mr-5" name="btnPay" id="btnPay" type="submit">
                                          <strong>Submit</strong>
                                       </button>
                                    </div>                                 
                                 </div> 
                             </div>
                           </form>
                       </div>
                     </div>                     
                  </div>
               </div>
            </div>            
         </div>         
      </div>
      <?php include_once '../layout/script.php'; ?>
      <script>
         $(document).ready(function () {
             $('.i-checks').iCheck({
                 checkboxClass: 'icheckbox_square-green',
                 radioClass: 'iradio_square-green',
             });
         });
      </script>      
   </body>
</html>


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

It looks like you found a glitch in the matrix...

← Back to Home