<?php
	session_start();
	include("../../asset/theme/css/myfunc.php");
	include("../../php_crud/my_class.php");
	$obj = new my_class();
?>
<style>
	input[type="text"], textarea, select{
		width: 100%;
	}
</style>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="asset/theme/css/modal.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>

<script src="module/ground_water/js/equipment_maintenance.js" type="text/javascript"></script>

<div id="cover-spin"></div>
<div class="row-fluid" id="form_data">
	<div class="row-fluid">
		
			<div class="table-header">
				<i class="fa fa-desktop"></i> All Field Tracking Information<span id="go_back_button" style="display:none;float:right;margin-right: 10px;">
				<button type="button" class="btn btn-warning btn-small" onclick="go_back()"> <i class="fa fa-backward"></i> Go Back To List</button></span>
			
			<?php
				// if ($_SESSION['add'] == 'Y') { ?>
					<button class="btn btn-small btn-yellow" type="button" id="btn_add" style="margin-right:3px;margin-top:3px;float:right;hover:cursor;" onclick="load_equip_main_his_form()">
                        <i class="icon-plus bigger-100"></i> Add Maintenance History
					</button>
					<a href="#" id="btn_back" style="float:right; margin-right:3px; margin-top:0px; display: none;" onclick="go_back()">
						<button class="btn btn-small btn-yellow">
							<i class="icon-arrow-left icon-on-left"></i>Back
						</button>
					</a>
					<!--<button class="btn btn-small btn-success" type="button" id="btn_add" href="#modal_add_equip_main_hist" data-toggle="modal" style="margin-right:10px;margin-top:15px;float:right;hover:cursor;" onclick="load_equip_main_his_form()">
                        <i class="icon-plus bigger-100"></i> Add Maintenance History
					</button>-->
			<?php // } ?>
			</div>
		
	</div>
</div>

<div id="equip_main_hist_datatble"></div>
<div id="equip_main_hist_add"></div>

<div id="modal_device_list" class="modal hide fade modal-fullscreen" style="overflow-x:show;" tabindex="-1">
	<div class="modal-header no-padding">
		<div class="table-header">
			<button type="button" class="close" data-dismiss="modal">&times;</button>
			Device List
		</div>
	</div>
	<div class="modal-body" id="device_list_body" style="min-height: 450px;"></div>
	<!---<div valign="top" class="modal-footer" style="height: 20px !important;">
		<div class="row-fluid">
			<div class="span6">
				<button class="btn btn-success" type="button" id="btn_save" style="margin-top: -10px; margin-right: 15px;"  onclick="set_device_info()">
					<i class="icon-check"></i> Pick
				</button>
			</div>
			<div class="span6">
				<button class="btn btn-danger" type="reset" data-dismiss="modal" style="margin-top: -10px; margin-left: 15px; float: left;">
					<i class="icon-remove"></i> Close
				</button>
			</div>
		</div>
	</div>-->									
</div>
<!--<div id="modal_add_equip_main_hist" class="modal hide fade modal-fullscreen" style="overflow-x:show;" tabindex="-1">
	<div class="modal-header no-padding">
		<div class="table-header">
			<button type="button" class="close" data-dismiss="modal">&times;</button>
			Add Equipment Maintenance History
		</div>
	</div>
	<div class="modal-body" id="add_equip_main_hist_body" style="min-height: 450px;"></div>
	<div valign="top" class="modal-footer" style="height: 20px !important;">
		<div class="row-fluid">
			<div class="span6">
				<button class="btn btn-success" type="button" id="btn_save" style="margin-top: -10px; margin-right: 15px;"  onclick="save_equipment_maintenance()">
					<i class="fa fa-floppy-o"></i> Save
				</button>
			</div>
			<div class="span6">
				<button class="btn btn-danger" type="reset" data-dismiss="modal" style="margin-top: -10px; margin-left: 15px; float: left;">
					<i class="icon-remove"></i> Close
				</button>
			</div>
		</div>
	</div>									
</div>-->