Example #1
0
// select transactions from dropdown, or default to current tool location
if (isset($_REQUEST['edit_location'])) {
    $current_edit_location = $_REQUEST['edit_location'];
} else {
    $current_edit_location = $_COOKIE['location'];
}
?>
								<!-- adding "All Locations" option element -->								
								<option <?php 
if ($current_edit_location == "ALL") {
    echo 'selected="selected"';
}
?>
 value="ALL">All Locations</option>
								<?php 
makeLocationDropdown(False, $current_edit_location);
?>
							

							</select>	
							<!-- hidden input to maintain current page -->
							<input type="hidden" name="page" value="<?php 
echo $page;
?>
"/>
						</div>
					</form>					
				</div>

				<div class="col-md-6">
					<ul class="pager">											
Example #2
0
        }
    }
}
userSetter();
?>

		<div id="ref_actions">
			
			<!-- location choosing -->
			<div class="row-fluid">
				<div class="col-md-12">
					<form action="" method="POST">
					<!-- <label for="location">Select Location</label> -->
					<select class="form-control" id="location" name="location" onchange=this.form.submit()>
						<?php 
makeLocationDropdown(True, $_COOKIE['location']);
?>
					</select>
					</form>
				</div>
			</div> <!-- row -->		


			<!-- transaction recording -->	

			<div class="row-fluid">
				<div class="col-md-12">
					<form action="." method="POST">
						<div class="form-group">
							<!-- <label for="count1">Enter Counts</label> -->
							<input type="text" class="form-control" id="count1" name="count1" id="count1" placeholder="Enter count here">