| Current Path : /proc/thread-self/cwd/public/ |
| Current File : //proc/thread-self/cwd/public/bill.php |
<?php
ob_start();
header('Content-Type: text/html; charset=ISO-8859-1');
require_once('../api/autoload.php');
$user = new user();
$user->checklogin();
?>
<!DOCTYPE HTML>
<html lang="en" class="gr__localhost">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link rel="shortcut icon" type="image/png" href="asset/images/bill.ico">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Bills</title>
<!-- Bootstrap -->
<link href="asset/css/bootstrap.min.css" rel="stylesheet">
<link href="asset/css/style.css" rel="stylesheet">
<link href="asset/css/scroll.css" rel="stylesheet">
<link href="asset/toast/jquery.toast.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="js/html5shiv.min.js"></script>
<script src="js/respond.min.js"></script>
<![endif]-->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="asset/js/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="asset/js/bootstrap.min.js"></script>
<script src="asset/toast/jquery.toast.min.js"></script>
<script src="http/config.js"></script>
<script src="http/bill.js"></script>
</head>
<body data-gr-c-s-loaded="true" cz-shortcut-listen="true">
<a class="top" style="display: none;"><img src="asset/images/down.png"></a>
<div id="hideForm">
<div class="container">
<div class="row" style="margin-top:20px">
<div class="alert alert-danger" role="alert" id="error" style="display: none;">
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<span class="sr-only">Error:</span>
<span id="errorMsg"></span>
</div>
<div class="col-xs-12 col-sm-12 col-md-12">
<form role="form" id="obForm" onsubmit="return false">
<input type="hidden" name="ob_company_id" value="<?=$_SESSION['companyid']?>">
<input type="hidden" name="ob_user_id" value="<?=$_SESSION['userid']?>">
<input type="hidden" name="ob_id" id="ob_id" value="-1">
<fieldset>
<h2>Manage Bills</h2>
<hr class="colorgraph">
<div class="row form-group">
<div class="col-xs-3 col-sm-3 col-md-3">
<select class="form-control input-md" name="ob_book_id" id="ob_book_id" title="Select Book">
</select>
</div>
<div class="col-xs-3 col-sm-3 col-md-3">
<input type="date" name="ob_issue_date" id="ob_issue_date" class="form-control input-md" required="" title="Issue Date">
</div>
<div class="col-xs-3 col-sm-3 col-md-3">
<input type="date" name="ob_due_date" id="ob_due_date" class="form-control input-md" required="" title="Due Date">
</div>
<div class="col-xs-3 col-sm-3 col-md-3">
<select class="form-control input-md" name="ob_business_id" id="ob_business_id" title="Select Business">
</select>
</div>
</div>
<div class="row form-group">
<div class="col-xs-4 col-sm-4 col-md-4">
<input type="text" name="ob_sign_board_size" id="ob_sign_board_size" class="form-control input-md charges" placeholder="Enter Sign Board Size" title="Enter Sign Board Size">
</div>
<div class="col-xs-4 col-sm-4 col-md-4">
<input type="text" name="ob_sign_board_total_sf" id="ob_sign_board_total_sf" class="form-control input-md" readonly placeholder="Total Sq. Ft. For Sign Board" title="Total Sq. Ft. For Sign Board">
</div>
<div class="col-xs-4 col-sm-4 col-md-4">
<input type="number" name="ob_sign_board_charges_per_sf" id="ob_sign_board_charges_per_sf" class="form-control input-md charges" placeholder="Enter Charges Per Sq. Ft." title="Enter Charges Per Sq. Ft.">
</div>
</div>
<div class="row form-group">
<div class="col-xs-4 col-sm-4 col-md-4">
<input type="text" name="ob_glass_pasting_size" id="ob_glass_pasting_size" class="form-control input-md charges" placeholder="Enter Glass Pasting Size" title="Enter Glass Pasting Size">
</div>
<div class="col-xs-4 col-sm-4 col-md-4">
<input type="text" name="ob_glass_pasting_total_sf" id="ob_glass_pasting_total_sf" class="form-control input-md" readonly placeholder="Total Sq. Ft. For Glass Pasting" title="Total Sq. Ft. For Glass Pasting">
</div>
<div class="col-xs-4 col-sm-4 col-md-4">
<input type="number" name="ob_glass_plasting_charges_per_sf" id="ob_glass_plasting_charges_per_sf" class="form-control input-md charges" placeholder="Enter Charges Per Sq. Ft." title="Enter Charges Per Sq. Ft.">
</div>
</div>
<div class="row form-group">
<div class="col-xs-4 col-sm-4 col-md-4">
<input type="text" name="ob_advertisement_size" id="ob_advertisement_size" class="form-control input-md charges" placeholder="Enter Advertisement Board Size" title="Enter Advertisement Board Size">
</div>
<div class="col-xs-4 col-sm-4 col-md-4">
<input type="text" name="ob_advertisement_total_sf" id="ob_advertisement_total_sf" class="form-control input-md" readonly placeholder="Total Sq. Ft. For Advertisement Board" title="Total Sq. Ft. For Advertisement Board">
</div>
<div class="col-xs-4 col-sm-4 col-md-4">
<input type="number" name="ob_advertisement_charges_per_sf" id="ob_advertisement_charges_per_sf" class="form-control input-md charges" placeholder="Enter Charges Per Sq. Ft." title="Enter Charges Per Sq. Ft.">
</div>
</div>
<div class="row form-group">
<div class="col-xs-4 col-sm-4 col-md-4">
<input type="text" name="ob_sun_shade_size" id="ob_sun_shade_size" class="form-control input-md charges" placeholder="Enter Sun Shade Size" title="Enter Sun Shade Size">
</div>
<div class="col-xs-4 col-sm-4 col-md-4">
<input type="text" name="ob_sun_shade_total_sf" id="ob_sun_shade_total_sf" class="form-control input-md" readonly placeholder="Total Sq. Ft. For Sun Shade" title="Total Sq. Ft. For Sun Shade">
</div>
<div class="col-xs-4 col-sm-4 col-md-4">
<input type="number" name="ob_sun_shade_charges_per_sf" id="ob_sun_shade_charges_per_sf" class="form-control input-md charges" placeholder="Enter Charges Per Sq. Ft." title="Enter Charges Per Sq. Ft.">
</div>
</div>
<div class="row form-group">
<div class="col-xs-4 col-sm-4 col-md-4">
<input type="text" name="ob_total_amount" id="ob_total_amount" class="form-control input-md" readonly placeholder="Total Amount" title="Total Amount">
</div>
<div class="col-xs-4 col-sm-4 col-md-4">
<input type="text" name="ob_amount_in_words" id="ob_amount_in_words" class="form-control input-md" readonly placeholder="Amount in words" title="Amount in words">
</div>
<div class="col-xs-4 col-sm-4 col-md-4">
<input type="text" name="ob_remarks" id="ob_remarks" class="form-control input-md" placeholder="Remarks" title="Remarks">
</div>
</div>
<hr class="colorgraph">
<div class="row form-group">
<div class="col-xs-6 col-sm-6 col-md-6">
<input type="submit" id="submit" value="Submit" class="btn btn-success btn-block btn-md" tabindex="7">
</div>
<div class="col-xs-6 col-sm-6 col-md-6" id="viewOb">
<a href="#" class="btn btn-primary btn-block btn-md">View Bills</a>
</div>
</div>
<div class="row form-group">
<div class="col-xs-6 col-sm-6 col-md-6">
<a href="<?=config::getConfig('indexRedirect')?>" class="btn btn-info btn-block btn-md">Go Home</a>
</div>
<div class="col-xs-6 col-sm-6 col-md-6">
<a href="<?=config::getConfig('loginRedirect')?>" class="btn btn-danger btn-block btn-md">Logout</a>
</div>
</div>
</fieldset>
</form>
</div>
</div>
</div>
<div id="obList" style="display: none;">
<h3 class="bg-info text-center">Available Bills</h3>
<table table class="table table-hover table-bordered table-responsive" id="obTable">
<thead>
<tr>
<th>Book</th>
<th>Bill Serial</th>
<th>Business</th>
<th>Issue Date</th>
<th>Due Date</th>
<th>Sign Board</th>
<th>Unit Price</th>
<th>Glass Pasting</th>
<th>Unit Price</th>
<th>Adv. Board</th>
<th>Unit Price</th>
<th>Sun Shade</th>
<th>Unit Price</th>
<th>Total Amount</th>
<!-- <th>Total Amount In Words</th> -->
<th>Remarks</th>
<th>Action</th>
</tr>
</thead>
<tbody id="obdata"></tbody>
</table>
<hr class="colorgraph">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12">
<input type="button" id="back" value="Back" class="btn btn-success btn-block btn-md" tabindex="7" required="">
</div>
</div>
</div>
</div>
</body>
</html>