| Current Path : /var/www/html/tax/public/ |
| Current File : /var/www/html/tax/public/book.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>Books</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/book.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="bookForm" onsubmit="return false">
<input type="hidden" name="b_company_id" value="<?=$_SESSION['companyid']?>">
<input type="hidden" name="b_user_id" value="<?=$_SESSION['userid']?>">
<input type="hidden" name="b_id" id="b_id" value="-1">
<fieldset>
<h2>Manage Books</h2>
<hr class="colorgraph">
<div class="row form-group">
<div class="col-xs-4 col-sm-4 col-md-4">
<input type="text" name="b_name" id="b_name" class="form-control input-md" placeholder="Book Name" title="Enter book name" required="">
</div>
<div class="col-xs-4 col-sm-4 col-md-4">
<input type="text" name="b_description" id="b_description" class="form-control input-md" title="Enter book description" placeholder="Book Description">
</div>
<div class="col-xs-4 col-sm-4 col-md-4">
<select class="form-control input-md" id="b_type" name="b_type" title="Select book type">
<option value="-1">Select Book Type</option>
</select>
</div>
</div>
<div class="row form-group">
<div class="col-xs-4 col-sm-4 col-md-4">
<input type="number" name="b_page_count" id="b_page_count" class="form-control input-md" title="Enter number of pages" placeholder="Number Of Pages" required="">
</div>
<div class="col-xs-4 col-sm-4 col-md-4">
<select class="form-control input-md" title="Book has parent?" name="b_has_parent" id="b_has_parent">
<option value="-1">Has Parent</option>
<option value="1">Yes</option>
<option value="0">No</option>
</select>
</div>
<div class="col-xs-4 col-sm-4 col-md-4">
<select class="form-control input-md" title="Select parent book" name="b_parent_book_id" id="b_parent_book_id">
</select>
</div>
</div>
<div class="row form-group">
<div class="col-xs-4 col-sm-4 col-md-4">
<select class="form-control input-md" title="Who issued the book?" name="b_issued_by" id="b_issued_by">
<option value="-1">Issued By</option>
</select>
</div>
<div class="col-xs-4 col-sm-4 col-md-4">
<select class="form-control input-md" title="To whom book is issued?" name="b_issued_to" id="b_issued_to">
<option value="-1">Issued To</option>
</select>
</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" required="">
</div>
<div class="col-xs-6 col-sm-6 col-md-6" id="viewBooks">
<a href="#" class="btn btn-primary btn-block btn-md">View Books</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="booksList" style="display: none;">
<h3 class="bg-info text-center">Available Books</h3>
<table table class="table table-hover table-bordered table-responsive" id="booksTable">
<thead>
<tr>
<th>Book ID</th>
<th>Name</th>
<th>Desciption</th>
<th>Type</th>
<th>Page Count</th>
<th>Serial</th>
<th>Active Serial</th>
<th>Status</th>
<th>Parent Book</th>
<th>Issued By</th>
<th>Issued To</th>
<th>Action</th>
</tr>
</thead>
<tbody id="bookdata"></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>