Current File : /home/inlingua/www/sensoriumpsychologists.com/backup/diagnostics/screening/e_wallet_summary.php
<?php require_once("../franchise_between/check_franchise.php");?>
<?php require_once("../franchise_between/user_details_msg_setup.php");?>
<?php require_once("../franchise_between/e_wallet_funcs.php");?>
<?php
$fund_by_cheque=0;
$fund_by_dd=0;
$fund_by_neft=0;
$fund_by_online=0;
$fund_by_cash=0;
$total_refund=0;
$e_wallet_obj=new e_wallet();
$e_wallet_obj->set_value("franchise_id",$session_id);
$e_wallet_obj->e_wallet_summary();
$fund_by_cheque=$e_wallet_obj->get_value("fund_by_cheque");
$fund_by_dd=$e_wallet_obj->get_value("fund_by_dd");
$fund_by_neft=$e_wallet_obj->get_value("fund_by_neft");
$fund_by_online=$e_wallet_obj->get_value("fund_by_online");
$fund_by_cash=$e_wallet_obj->get_value("fund_by_cash");
$total_refund=$e_wallet_obj->get_value("total_refund");
$total_student_fees=$e_wallet_obj->get_value("total_student_fees");
?>
<!doctype html>
<html>
<?php include("common/page_head.php");?>
<body>
<?php include("common/header_var.php");?>
<?php
$top_accounts=$top_val;
?>
<?php include("common/header.php");?>
<div id="main_container">
  <div id="main">
  <br /><br />
    <fieldset>
    <legend>E-WALLET SUMMARY (in Rs.)</legend>
    <table border="0" class="tables_fieldset" cellpadding="0" cellspacing="0">
      <tr>
        <td style="width:50%;"><div style="position:relative;display:inline-block;border:1px solid #000;padding:2px 5px;">CREDIT</div></td>
        <td style="width:50%;"><div style="position:relative;display:inline-block;border:1px solid #000;padding:2px 5px;">DEBIT</div></td>
      </tr>
      <tr style="height:5px;">
        <td colspan="2"></td>
      </tr>
      <tr valign="top">
      <td>
      <table cellpadding="5px" cellspacing="0">
      <tr>
        <td style="font-weight:bold;">Fund Added by Cheque</td>
        <td style="font-weight:bold;">:</td>
        <td style="text-align:right;"><?php echo($fund_by_cheque);?></td>
      </tr>
      <tr>
        <td style="font-weight:bold;">Fund Added by DD</td>
        <td style="font-weight:bold;">:</td>
        <td style="text-align:right;"><?php echo($fund_by_dd);?></td>
      </tr>
      <tr>
        <td style="font-weight:bold;">Fund Added by NEFT/RTGS</td>
        <td style="font-weight:bold;">:</td>
        <td style="text-align:right;"><?php echo($fund_by_neft);?></td>
      </tr>
      <tr>
        <td style="font-weight:bold;">Fund Added by Online</td>
        <td style="font-weight:bold;">:</td>
        <td style="text-align:right;"><?php echo($fund_by_online);?></td>
      </tr>
      <tr>
        <td style="font-weight:bold;">Fund Added by Cash</td>
        <td style="font-weight:bold;">:</td>
        <td style="text-align:right;"><?php echo($fund_by_cash);?></td>
      </tr>
      <tr>
        <td style="font-weight:bold;">Total Refund</td>
        <td style="font-weight:bold;">:</td>
        <td style="text-align:right;"><?php echo($total_refund);?></td>
      </tr>
      <tr>
        <td colspan="3">
        <div style="position:relative;height:1px;background-color:#000;"></div>
        </td>
      </tr>
<?php
$total_fund_added=$fund_by_cheque+$fund_by_dd+$fund_by_neft+$fund_by_online+$fund_by_cash+$total_refund;
?>
      <tr>
        <td style="font-weight:bold;">Total Fund</td>
        <td style="font-weight:bold;">:</td>
        <td style="text-align:right;"><?php echo($total_fund_added);?></td>
      </tr>
      <tr>	
        <td colspan="3">
        <div style="position:relative;height:1px;background-color:#000;"></div>
        </td>
      </tr>
    </table>
    </td>
      <td>
      <table cellpadding="5px" cellspacing="0">
      <tr>
        <td style="font-weight:bold;">Student Fees Paid</td>
        <td style="font-weight:bold;">:</td>
        <td style="text-align:right;"><?php echo($total_student_fees);?></td>
      </tr>
      <tr>
        <td colspan="3">
        <div style="position:relative;height:1px;background-color:#000;"></div>
        </td>
      </tr>
<?php
$total_funds_used=$total_student_fees;
?>
      <tr>
        <td style="font-weight:bold;">Total</td>
        <td style="font-weight:bold;">:</td>
        <td style="text-align:right;"><?php echo($total_funds_used);?></td>
      </tr>
      <tr>	
        <td colspan="3">
        <div style="position:relative;height:1px;background-color:#000;"></div>
        </td>
      </tr>
    </table>
    </td>
    </tr>
    <tr style="height:30px;">
      <td colspan="2"></td>
    </tr>
    <tr>
        <td colspan="2" style="width:50%;"><div style="position:relative;display:inline-block;border:1px solid #000;padding:2px 5px;">BALANCE</div></td>
    </tr>
<?php
$balance=$total_fund_added-$total_funds_used;
?>
    <tr style="height:5px;">
      <td colspan="2"></td>
    </tr>
    <tr>
      <td>
      <table cellpadding="5px" cellspacing="0">
      <tr>
        <td style="font-weight:bold;">Current E-Wallet Amount</td>
        <td style="font-weight:bold;">:</td>
        <td style="text-align:right;"><?php echo($balance);?></td>
      </tr>
      </table>
      </td>
    </tr>
    <tr style="height:20px;">
      <td colspan="2"></td>
    </tr>
    <tr>
      <td colspan="2"><a href="add_funds_1.php"><div class="button_div" style="color:#FFF;background-color:#060;">ADD FUNDS</div></a></td>
    </tr>
    </table>
    </fieldset>
  </div>
  <br><br>
</div>
</body>	
</html>