PK

ADDRLIN : /home/questend/public_html/subdomain/trufflenation.questend.com/useradmin/
FLL :
Current File : /home/questend/public_html/subdomain/trufflenation.questend.com/useradmin/my-account.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 '../admin/includes/settings/constant.php';
   //include '../includes/settings/db.php';
   require_once '../admin/includes/settings/PDODB.php';
   include '../admin/includes/modules/functions.php';
   
   $function = new FUNCTIONS();
   //print_r($_SESSION['userId']);
   if(empty($_SESSION['userId'])){
    header("Location: ../index.php");
    exit();
   }
   $account = $function->getAccountDetails($ac_id=NULL,$uid=$_SESSION['userId'],$isActive=1,$orderBy='ASC');
   //print_r($account[0]); //exit;
   $paid=0;
   for($i=0;$i<count($account);$i++){
      $paid += (int)$account[$i]['credit'];
   }
   $bal = 0;                     
   for($i=0;$i<count($account);$i++){
      $bal += (int)$account[$i]['debit']-(int)$account[$i]['credit'];
   }

   $joincoursedata = $function->getStudentJoinCourseList($id=NULL,$studentId=$_SESSION['userId'],$isActive=1,$orderBy='DESC');
?>
<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
      <meta name="description" content="">
      <meta name="author" content="">
      <title>Trufflenation</title>
      <!-- Bootstrap core CSS -->
      <link href="../vendor/bootstrap/css/bootstrap.css" rel="stylesheet">
      <!-- Custom styles for this template -->
      <link href="../css/noida40.css" rel="stylesheet">
      <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
      <link href="../css/bootstrap-dropdownhover.css" rel="stylesheet">
      <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
   </head>
   <body class="body-bg">
      <?php include_once '../layout/header.php'; ?>
      <header class="user-admin-hdr">
         <div class="user-title">
            <h1>My Account</h1>
         </div>
      </header>
      <!-- Page Content -->
      <div class="container-fluid padding-0">
         <!--container-->
         <div class="container mt-4">
            <!-- Content Column -->
            <div class="row mb-4">
               <div class="col-lg-3">
                  <div class="info-box bg-pink">
                     <a href="dashboard.php">
                        <div class="content"><i class="fa fa-arrow-left" aria-hidden="true"></i>
                           Go<br>Back
                        </div>
                     </a>
                  </div>
               </div>
               <div class="col-lg-3">
                  <div class="info-box bg-cyan">
                     <a href="#">
                        <div class="content">Account
                           <span>Paid Amt. Rs. <?=$paid;?></span>
                           <span>Dues Amt. Rs. <?=$bal;?></span>
                        </div>
                     </a>
                  </div>
               </div>
               <div class="col-lg-3">
                  <div class="info-box bg-light-green">
                     <a href="#">
                        <div class="content" style="font-size:24px; line-height:26px">Pay<br>Now</div>
                     </a>
                  </div>
               </div>
            </div>
            <!--content-->
            <div class="col-lg-12">
               <div class="row">
                  <div class="card">
                     <!-- <div class="header">
                        <h2>Installment Details</h2>
                     </div> -->

                     <div class="body table-responsive">
                        <?php if ($joincoursedata[0]['isInstallment']==1){ ?>
                           <div class="header">
                              <h2>Installment Details</h2>
                           </div>
                           <table class="table table-bordered table-striped table-hover table-responsive" style="display:table">
                              <thead style="background:#a6a6a6; color:#fff;">
                                 <tr style="background:#e91e1e; color:#fff;">                                 
                                    <th colspan="3">Course Total Fee :  <?=$joincoursedata[0]['totalFee'];?></th>
                                 </tr>
                                 <tr>
                                    <th scope="col">S.no.</th>                                 
                                    <th scope="col">Due Date</th>
                                    <th scope="col">Amount</th>                                    
                                 </tr>
                              </thead>
                              <tbody>
                                 <?php $getDueDate = $function->getInstallmentList($id=NULL,$uId=$joincoursedata[0]['studentId'],$orderId=$joincoursedata[0]['id'],$isActive=NULL); 
                                 for($i=0;$i<count($getDueDate);$i++){ ?> 
                                 <tr>
                                    <th scope="row"><?=$i+1;?></th>                                 
                                    <td><?=date('jS M, Y', strtotime($getDueDate[$i]['dueDate']));?></td>
                                    <td><?=$getDueDate[$i]['amount'];?></td>
                                    
                                 </tr>
                                 <?php } ?>
                              </tbody>
                           </table>
                        <?php } ?> 
                     </div>
                     <div class="header">
                        <h2>Account Details</h2>
                     </div>
                     <div class="body table-responsive">
                        <table class="table table-bordered table-striped table-hover table-responsive" style="display:table">
                           <thead style="background:#a6a6a6; color:#fff;">
                              <tr>
                                 <th scope="col">S.no.</th>                                 
                                 <th scope="col">Particular</th>
                                 <th scope="col">Amt. Due</th>
                                 <th scope="col">Amount Paid</th>
                                 <th scope="col">Balance Amt.</th>
                                 <th scope="col">Demand/<br>Clearing<br>Date</th>
                                 <th scope="col">Pay Mode</th>
                                 <th scope="col">Invoice</th>
                                 <th scope="col">Against By</th>
                                 <th scope="col">PDF</th>
                              </tr>
                           </thead>
                           <tbody>
                              <?php                                 
                                 //$accountdata = $function->getAccountDetails($ac_id=NULL,$uid=$_SESSION['userId'],$isActive=1,$orderBy='ASC');
                                 //print_r($accountdata[0]);
                                 $pdodb = PDODB::getInstance();
                                 $sql = "SELECT * FROM `tn_accounts` WHERE uid = '".$_SESSION['userId']."'  AND isActive =1 ORDER BY `tn_accounts`.`date` ASC"; //exit;
                                 //print_r($accountdata[0]);
                                 $accountdata = $pdodb->query($sql);

                                 $bal = 0; 
                                 $i=0;
                                 foreach ($accountdata as $key => $value) {
                                    $i++;
                                    $bal += (int)$value['debit']-(int)$value['credit'];
                                    if ($value['isActive']==1) {
                                       if (!empty($value['orderid'])) {
                                          $courselistdata = $function->getStudentJoinCourseList($id=$value['orderid'],$studentId=NULL,$isActive=NULL,$orderBy='ASC');
                                          $courseEndDate = $courselistdata[0]['endDate'];
                                       }else {
                                          $courselistdata = $function->getStudentJoinCourseList($id=$value['demand_id'],$studentId=NULL,$isActive=NULL,$orderBy='ASC');
                                          $courseEndDate = $courselistdata[0]['endDate'];
                                       }
                                       $todayDate = date('Y-m-d'); // Get today's date
                               ?>
                              <tr style="<?php if($todayDate > $courseEndDate){ echo "background-color: rgba(255, 0, 0, 0.2); color: #000;"; }else { echo "background-color: rgba(117, 164, 127, 0.4); color: #000;"; } ?>">
                                 <th scope="row"><?=$i;?></th>
                                 <td><?=$value['particular'];?></td>
                                 <td><?=!empty($value['debit'])?$value['debit']:'';?></td>
                                 <td><?=!empty($value['credit'])?$value['credit']:'';?></td>
                                 <td><?=$bal;?></td>
                                 <td><?=date('jS M, Y h:i A', strtotime($value['date']));?></td>
                                 <td><?=!empty($value['paymentMode'])?$value['paymentMode']:'';?></td>
                                 <td><?=!empty($value['invoice'])?$value['invoice']:'';?></td>
                                 <td><?=$value['againstBy'];?></td>
                                 <td>
                                    <!-- <?php if(!empty($value['invoice'])) { 
                                             if(!empty($value['orderid'])) {  ?>
                                                <a href="receipt.php?uid=<?=$value['uid'];?>&id=<?=$value['ac_id'];?>&invoicetype=Paid" target="_blank">
                                                  <i class="fa fa-file-pdf-o" aria-hidden="true"></i>
                                                </a>
                                             <?php } elseif($value['is_adjustment']==2) {  ?>
                                                <a href="invoice.php?uid=<?=$value['uid'];?>&id=<?=$value['ac_id'];?>&invoicetype=Paid" target="_blank">
                                                  <i class="fa fa-file-pdf-o" aria-hidden="true"></i>
                                                </a>
                                             <?php }else {  ?>
                                             <a href="receipt.php?uid=<?=$value['uid'];?>&id=<?=$value['ac_id'];?>&invoicetype=Unpaid" target="_blank">
                                               <i class="fa fa-file-pdf-o" aria-hidden="true"></i>
                                             </a>
                                    <?php } } ?> -->

                                    <?php if($todayDate > $courseEndDate){ }else {  
                                             if(!empty($value['invoice'])) { 
                                                if(!empty($value['orderid'])) {  ?>
                                                   <a href="receipt.php?uid=<?=$value['uid'];?>&id=<?=$value['ac_id'];?>&invoicetype=Paid" target="_blank">
                                                     <i class="fa fa-file-pdf-o" aria-hidden="true"></i>
                                                   </a>
                                                <?php } elseif($value['is_adjustment']==2) {  ?>
                                                   <a href="invoice.php?uid=<?=$value['uid'];?>&id=<?=$value['ac_id'];?>&invoicetype=Paid" target="_blank">
                                                     <i class="fa fa-file-pdf-o" aria-hidden="true"></i>
                                                   </a>
                                                <?php }else {  ?>
                                                <a href="invoice-design.php?uid=<?=$value['uid'];?>&id=<?=$value['ac_id'];?>&invoicetype=Unpaid" target="_blank">
                                                  <i class="fa fa-file-pdf-o" aria-hidden="true"></i>
                                                </a>
                                    <?php } }  } ?> 
                                 </td>
                              </tr>
                              <?php } } ?>
                           </tbody>
                        </table>
                     </div>
                  </div>
               </div>
            </div>
            <!--end content-->
         </div>
         <!--end container-->
      </div>
      <!-- end Page Content -->
      <!-- Footer -->
      <?php include_once'../layout/footer.php';?>
      <!-- End Footer -->
      <!-- Bootstrap core JavaScript -->
      <script src="../vendor/jquery/jquery.min.js"></script>
      <script src="../vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
      <script src="../js/bootstrap-4-hover-navbar.js"></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