????

Your IP : 216.73.216.174


Current Path : /home2/morganrand/www/wp-content/plugins/order-tracking/html/
Upload File :
Current File : /home2/morganrand/www/wp-content/plugins/order-tracking/html/LocationsPage.php

<?php if ($EWD_OTP_Full_Version == "Yes") { 
	$Locations_Array = get_option("EWD_OTP_Locations_Array");
	if (!is_array($Locations_Array)) {$Locations_Array = array();}
?>
<div class="wrap">
	<div id="icon-options-general" class="icon32"><br /></div>

	<form method="post" action="admin.php?page=EWD-OTP-options&DisplayPage=Locations&OTPAction=EWD_OTP_UpdateLocations">
	<?php wp_nonce_field('EWD_OTP_Admin_Nonce', 'EWD_OTP_Admin_Nonce'); ?>

		<div id="col-right">

			<table class="wp-list-table striped widefat tags sorttable location-list">
				<thead>
					<tr>
						<th><?php _e("Location", 'order-tracking') ?></th>
						<th><?php _e("Latitude", 'order-tracking') ?></th>
						<th><?php _e("Longitude", 'order-tracking') ?></th>
						<th></th>
					</tr>
				</thead>
				<tfoot>
					<tr>
						<th><?php _e("Location", 'order-tracking') ?></th>
						<th><?php _e("Latitude", 'order-tracking') ?></th>
						<th><?php _e("Longitude", 'order-tracking') ?></th>
						<th></th>
					</tr>
				</tfoot>
						
				<?php 
				foreach ($Locations_Array as $key => $Location_Array_Item) { ?>
					<tr id="list-item-<?php echo $key; ?>" class="list-item edit-location-item">
						<td class="location"><input type='text' class='ewd-otp-edit-location-input' name='location[]' value='<?php echo stripslashes_deep($Location_Array_Item['Name']); ?>' /></td>
						<td class="latitude"><input type='text' class='ewd-otp-edit-location-input' name='location_latitude[]' value='<?php echo stripslashes_deep($Location_Array_Item['Latitude']); ?>' /></td>
						<td class="longitude"><input type='text' class='ewd-otp-edit-location-input' name='location_longitude[]' value='<?php echo stripslashes_deep($Location_Array_Item['Longitude']); ?>' /></td>
						<td class="location-delete"><a href="admin.php?page=EWD-OTP-options&OTPAction=EWD_OTP_DeleteLocation&DisplayPage=Locations&Location=<?php echo $Location_Array_Item['Name']; ?>"><?php _e("Delete", 'order-tracking') ?></a></td>
					</tr>	
				<?php } ?>
			
			</table>

		</div> <!-- col-right -->	

		<div id="col-left">	

			<h3>Add New Location</h3>
			<div class="form-field form-required">
				<label for="Location"><?php _e("Name of Location", 'order-tracking') ?></label>
				<input name="location[]" id="Location" type="text" size="60" />
			</div>
			<div class="form-field form-required">
				<label for="Location_Latitude"><?php _e("Location Latitude", 'order-tracking') ?></label>
				<input name="location_latitude[]" id="Location_Latitude" type="text" size="60" />
				<p><?php _e("The latitude of the location, if you'd like it to display on the map.", 'order-tracking') ?></p>
			</div>
			<div class="form-field form-required">
				<label for="Location_Longitude"><?php _e("Location Longitude", 'order-tracking') ?></label>
				<input name="location_longitude[]" id="Location_Longitude" type="text" size="60" />
				<p><?php _e("The longitude of the location, if you'd like it to display on the map.", 'order-tracking') ?></p>
			</div>
	
			<p class="submit"><input type="submit" name="Locations_Submit" id="submit" class="button button-primary" value="Add Location"  /></p>

		</div> <!-- col-left -->

	</form>

</div>

<?php } else { ?>
<div class="Info-Div">
		<h2><?php _e("Full Version Required!", 'order-tracking') ?></h2>
		<div class="upcp-full-version-explanation">
				<?php _e("The full version of Order Tracking is required to use locations.", "UPCP");?><a href="http://www.etoilewebdesign.com/order-tracking/"><?php _e(" Please upgrade to unlock this page!", 'order-tracking'); ?></a>
		</div>
</div>
<?php } ?>