| Current Path : /proc/self/cwd/public/ |
| Current File : //proc/self/cwd/public/business.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>Businesses</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/business.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="businessForm" onsubmit="return false">
<input type="hidden" name="bs_company_id" value="<?=$_SESSION['companyid']?>">
<input type="hidden" name="bs_user_id" value="<?=$_SESSION['userid']?>">
<input type="hidden" name="bs_id" id="bs_id" value="-1">
<fieldset>
<h2>Manage Businesses</h2>
<hr class="colorgraph">
<div class="row form-group">
<div class="col-xs-6 col-sm-6 col-md-6">
<input type="text" name="bs_name" id="bs_name" class="form-control input-md" placeholder="Business Name" required="">
</div>
<div class="col-xs-6 col-sm-6 col-md-6">
<input type="text" name="bs_label" id="bs_label" class="form-control input-md" placeholder="Business Label" required="">
</div>
</div>
<div class="row form-group">
<div class="col-xs-6 col-sm-6 col-md-6">
<input type="text" name="bs_address" id="bs_address" class="form-control input-md" placeholder="Business Address" required="">
</div>
<div class="col-xs-6 col-sm-6 col-md-6">
<select class="form-control" name="bs_type" id="bs_type">
</select>
</div>
</div>
<div class="row form-group">
<div class="col-xs-6 col-sm-6 col-md-6">
<select class="form-control" name="bs_sponsor" id="bs_sponsor">
</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="viewBusinesses">
<a href="#" class="btn btn-primary btn-block btn-md">View Businesses</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="businessesList" style="display: none;">
<h3 class="bg-info text-center">Available Businesses</h3>
<table table class="table table-hover table-bordered table-responsive" id="businessesTable">
<thead>
<tr>
<th>Business ID</th>
<th>Name</th>
<th>Label</th>
<th>Address</th>
<th>Type</th>
<th>Sponsor</th>
<th>Action</th>
</tr>
</thead>
<tbody id="businessdata"></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>