<?php
include_once 'includes/processes.php';
$Process = new Login_Process;
$pageLink = basename($_SERVER['REQUEST_URI']);
$Process->check_status($pageLink);
?> 
  
  
	<div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h3 class="modal-title"><i class="fa fa-ticket"></i> New Asset</h3>
    </div>
	  <form action="asset.php" method="post">
	  <input type="hidden" name="request_scope" value="Station" />
		<div class="modal-body">
			<div class="row">
				
				<div class="col-sm-12">
					<div class="form-group col-sm-12">
						<label for="asset_user">Asset User.</label>
						<input type="text" id="asset_user" name="asset_user" class="form-control" required>
					</div>				
				</div>
				
				<div class="col-sm-6">
					<div class="form-group col-sm-12">
						<label for="designation">User Designation</label>
						<input type="text" id="designation" name="designation" class="form-control" required>
					</div>				
				</div>
				
				
				
				
				
				<div class="col-sm-6">
					<div class="form-group col-sm-12">
						<label for="user_location">Location</label>
						<span class="error"><?php $Process->updateAsset($locationErr); ?></span>
						<select name="user_location" class="form-control select2-input" data-required="true" required>
							<option value=""></option>
							<?php $Process->listLocation(); ?>
						</select>
					</div>
				</div>
				<div class="col-sm-6">
					<div class="form-group col-sm-12">
						<label for="device_id">Device</label>
						<select name="device_id" class="form-control select2-input" data-required="true">
							<option value=""></option>
							<?php $Process->listDevice(); ?>
						</select>
					</div>
				</div>
				
				<div class="col-sm-6">
					<div class="form-group col-sm-12">
						<label for="brand_id">Brand</label>
						<select name="brand_id" class="form-control select2-input" data-required="true">
							<option value=""></option>
							<?php $Process->listBrand(); ?>
						</select>
					</div>
				</div>
				
				<div class="col-sm-12">
					<div class="form-group col-sm-12">
						<label for="model_product_no">Model / Product No.</label>
						<input type="text" id="model_product_no" name="model_product_no" class="form-control" required>
					</div>				
				</div>
				
				<div class="col-sm-6">
					<div class="form-group col-sm-12">
						<label for="asset_tag">Asset Tag</label>
						<select name="asset_tag" class="form-control select2-input" data-required="true">
						<option value=""></option>
						<option value="Serial Number">Serial Number</option>
						<option value="Mobile Number">Mobile Number</option>
						<option value="Service Tag">Service Tag</option>
						<option value="IMEI">IMEI</option>
						<option value="PRODUCT KEY">PRODUCT KEY</option>
						<option value="Mac Address">Mac Address</option>
						<option value="Account Number">Account Number</option>
						</select>
					</div>				
				</div>
				
				<div class="col-sm-12">
					<div class="form-group col-sm-12">
						<label for="asset_user">Barcode Number</label>
						<input type="text" id="barcode_number" name="barcode_number" class="form-control" required>
					</div>				
				</div>
				
				<div class="col-sm-6">
					<div class="form-group col-sm-12">
						<label for="tag_no">Tagging No</label>
						<input type="text" id="tag_no" name="tag_no" class="form-control" required>
					</div>				
				</div>
				
				<div class="col-sm-6">
					<div class="form-group col-sm-12">
						<label for="date_requested">Date Requested</label>
						<input type="date" id="date_requested" name="date_requested" placeholder="dd/mm/yyyy" class="form-control" required>
					</div>				
				</div>
				
				<div class="col-sm-6">
					<div class="form-group col-sm-12">
						<label for="date_received">Date Received</label>
						<input type="date" id="date_received" name="date_received" placeholder="dd/mm/yyyy" class="form-control" required>
					</div>				
				</div>
				
				<div class="col-sm-6">
					<div class="form-group col-sm-12">
						<label for="date_received">Date Issued</label>
						<input type="date" id="date_issued" name="date_issued" placeholder="dd/mm/yyyy" class="form-control" required>
					</div>				
				</div>
				
				<div class="col-sm-6">
					<div class="form-group col-sm-12">
						<label for="asset_status">Status</label>
						<select name="asset_status" class="form-control select2-input" data-required="true">
							<option value=""></option>
							<option>Active</option>
							<option>Exited</option>
							<option>On Leave</option>
							<option>Out Of The Country Duties</option>
							<option>Stolean/lost</option>
							<option>Returned</option>
							<option>Damaged</option>
							<option>Re-Allocation</option>
                        	<option>Replacement</option>
							<option>Undergoing Repair</option>
							<option>Location Not Known</option>
						</select>
					</div>
				</div>
				
				<div class="col-sm-12">
					<div class="form-group col-sm-12">
						<label for="remark">Remarks</label>
						<textarea name="remark" class="form-control" required></textarea>
					</div>				
				</div>
			</div>			
		</div>
		<div class="modal-footer">
			<button type="submit" name="add-asset" class="btn btn-xs btn-success pull-left"><i class="fa fa-check"></i> Add Asset</button>
			<button type="button" class="btn btn-xs btn-danger" data-dismiss="modal"><i class="fa fa-times"></i> Close</button>
		</div>
	  </form>
    </div><!-- /.modal-content -->