
PK 
<?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']) && empty($_SESSION['admin_role_id'])) {
header("Location: ../index.php");
exit();
}
$ipaddress = $function->getRealIpAddr();
//print_r($days2); exit;
if(isset($_POST['type']) && !empty($_POST)){
//print_r($_POST); //exit;
$uid = !empty($_POST['id'])?trim($_POST['id']):"";
$owner_name = !empty($_POST['owner_name'])?trim($_POST['owner_name']):"";
$house_no = !empty($_POST['house_no'])?trim($_POST['house_no']):"";
$type = !empty($_POST['type'])?trim($_POST['type']):"";
}
else{ ?>
<script type="text/javascript">location.replace("index.php");</script>
<?php }
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>INSPINIA | Basic Form</title>
<link rel="stylesheet" type="text/css" href="../../css/noida40.css">
<?php include_once '../layout/style.php'; ?>
</head>
<body>
<div id="wrapper">
<?php $currentPage = 'adjustment-index'; 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-10">
<h2><?=$type;?> Adjustment Entry</h2>
</div>
<div class="col-lg-2">
<button class="btn-lg btn-primary pull-right" style="margin-top: 15px;" onclick="history.back()">Back</button>
</div>
</div>
<div class="row">
<div class="col-lg-10">
<div class="ibox float-e-margins">
<!-- <div class="ibox-title">
<h5>All form elements <small>With custom checbox and radion elements.</small></h5>
</div> -->
<div class="ibox-content">
<form method="POST" action="paynow.php" class="form-horizontal">
<div class="form-group">
<label class="col-lg-2 control-label">Name :</label>
<div class="col-lg-10">
<p class="form-control-static"><?=$owner_name;?></p>
</div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group">
<label class="col-lg-2 control-label">House No. :</label>
<div class="col-lg-10">
<p class="form-control-static"><?=$house_no;?>, Sector 40, Noida</p>
</div>
</div>
<div class="hr-line-dashed"></div>
<div class="hr-line-dashed"></div>
<div class="form-group">
<label class="col-sm-2 control-label">Amount :</label>
<div class="col-sm-10">
<input type="text" name="amount" class="form-control" required="">
</div>
<input type="hidden" name="owner_name" value="<?=$owner_name;?>">
<input type="hidden" name="house_no" value="<?=$house_no;?>">
<input type="hidden" name="uid" value="<?=$uid;?>">
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Narration :</label>
<div class="col-sm-10">
<textarea name="particular" rows="3" class="form-control" required=""></textarea>
</div>
</div>
<div class="hr-line-dashed"></div>
<?php if($type=='Credit'){ ?>
<div class="form-group">
<div class="col-sm-4 col-sm-offset-2">
<button class="btn btn-white" type="submit">Cancel</button>
<button class="btn btn-primary" name="payBtn" value="Credit" type="submit">Submit</button>
</div>
</div>
<?php }else{?>
<div class="form-group">
<div class="col-sm-4 col-sm-offset-2">
<button class="btn btn-white" type="submit">Cancel</button>
<button class="btn btn-primary" name="payBtn" value="Debit" type="submit">Submit</button>
</div>
</div>
<?php } ?>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include_once '../layout/script.php'; ?>
<script>
function tossterMsgAlert(msg='Welcome',title='') {
toastr.options = {
closeButton: true,
//debug: false,
newestOnTop: false,
//progressBar: false,
positionClass: 'toast-top-center',
preventDuplicates: true,
//onclick: null,
//showDuration: 300,
//hideDuration: 1000,
timeOut: 2000,
//extendedTimeOut: 1000,
//showEasing: 'swing',
//hideEasing: 'linear',
//showMethod: 'fadeIn',
hideMethod: 'fadeOut'
};
toastr.warning(title,msg);
}
</script>
</body>
</html>


PK 99