| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-09 23:18:46 +08:00
										 |  |  | <div class="container"> | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-09 23:18:46 +08:00
										 |  |  | <br> | 
					
						
							| 
									
										
										
										
											2011-08-20 00:12:59 +08:00
										 |  |  | <?php if($this->session->flashdata('notice')) { ?>
 | 
					
						
							|  |  |  |     <div id="message" > | 
					
						
							|  |  |  |         <?php echo $this->session->flashdata('notice'); ?>
 | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | <?php } ?>
 | 
					
						
							| 
									
										
										
										
											2019-01-09 23:18:46 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | <div class="card"> | 
					
						
							|  |  |  |   <div class="card-header">Create User Account</div> | 
					
						
							|  |  |  |   <div class="card-body"> | 
					
						
							|  |  |  |     <h5 class="card-title"></h5> | 
					
						
							|  |  |  |     <p class="card-text"></p> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <?php $this->load->helper('form'); ?>
 | 
					
						
							|  |  |  |     <?php echo validation_errors(); ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <form method="post" action="<?php echo site_url('user/add'); ?>" name="users"> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-17 04:00:16 +08:00
										 |  |  | 		<div class="form-group"> | 
					
						
							|  |  |  | 			<label>Username</label> | 
					
						
							| 
									
										
										
										
											2019-01-09 23:18:46 +08:00
										 |  |  | 		    <input class="form-control" type="text" name="user_name" value="<?php if(isset($user_name)) { echo $user_name; } ?>" /> | 
					
						
							| 
									
										
										
										
											2020-09-17 04:00:16 +08:00
										 |  |  | 			<?php if(isset($username_error)) { echo "<div class=\"small error\">".$username_error."</div>"; } ?>
 | 
					
						
							|  |  |  | 		</div> | 
					
						
							| 
									
										
										
										
											2019-01-09 23:18:46 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-17 04:00:16 +08:00
										 |  |  | 		<div class="form-group"> | 
					
						
							|  |  |  | 			<label>User Role</label> | 
					
						
							| 
									
										
										
										
											2020-09-16 16:17:58 +08:00
										 |  |  | 		    <select class="custom-select" name="user_type"> | 
					
						
							| 
									
										
										
										
											2020-09-17 04:00:16 +08:00
										 |  |  | 			<?php			 | 
					
						
							|  |  |  | 				$levels = $this->config->item('auth_level'); | 
					
						
							|  |  |  | 				while (list($key, $val) = each($levels)) { | 
					
						
							|  |  |  | 			?>
 | 
					
						
							|  |  |  | 					<option value="<?php echo $key; ?>" <?php if(isset($user_type)) { if($user_type == $key) { echo "selected=\"selected\""; } } ?>><?php echo $val; ?></option>
 | 
					
						
							|  |  |  | 				<?php } ?>
 | 
					
						
							|  |  |  | 			</select> | 
					
						
							| 
									
										
										
										
											2019-01-09 23:18:46 +08:00
										 |  |  | 		  </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-17 04:00:16 +08:00
										 |  |  | 		<div class="form-group"> | 
					
						
							|  |  |  | 			<label>Email Address</label> | 
					
						
							|  |  |  | 			<input class="form-control" type="text" name="user_email" value="<?php if(isset($user_email)) { echo $user_email; } ?>" /> | 
					
						
							|  |  |  | 			<?php if(isset($email_error)) { echo "<div class=\"small error\">".$email_error."</div>"; } ?>
 | 
					
						
							|  |  |  | 		</div> | 
					
						
							| 
									
										
										
										
											2019-01-09 23:18:46 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-17 04:00:16 +08:00
										 |  |  | 		<div class="form-group"> | 
					
						
							|  |  |  | 			<label>Password</label> | 
					
						
							| 
									
										
										
										
											2019-01-09 23:18:46 +08:00
										 |  |  | 		    <input class="form-control" type="password" name="user_password" value="<?php if(isset($user_password)) { echo $user_password; } ?>" /> | 
					
						
							|  |  |  | 				<?php if(isset($password_error)) { echo "<div class=\"small error\">".$password_error."</div>"; } ?>
 | 
					
						
							| 
									
										
										
										
											2020-09-17 04:00:16 +08:00
										 |  |  | 		</div> | 
					
						
							| 
									
										
										
										
											2019-01-09 23:18:46 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-17 04:00:16 +08:00
										 |  |  | 		<div class="form-group"> | 
					
						
							|  |  |  | 			<label>First Name</label> | 
					
						
							| 
									
										
										
										
											2019-01-09 23:18:46 +08:00
										 |  |  | 		    <input class="form-control" type="text" name="user_firstname" value="<?php if(isset($user_firstname)) { echo $user_firstname; } ?>" /> | 
					
						
							| 
									
										
										
										
											2020-09-17 04:00:16 +08:00
										 |  |  | 			<?php if(isset($firstname_error)) { echo "<div class=\"small error\">".$firstname_error."</div>"; } ?>
 | 
					
						
							|  |  |  | 		</div> | 
					
						
							| 
									
										
										
										
											2019-01-09 23:18:46 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-17 04:00:16 +08:00
										 |  |  | 		<div class="form-group"> | 
					
						
							| 
									
										
										
										
											2019-01-09 23:18:46 +08:00
										 |  |  | 		    <label>Last Name</label> | 
					
						
							|  |  |  | 		    <input class="form-control" type="text" name="user_lastname" value="<?php if(isset($user_lastname)) { echo $user_lastname; } ?>" /> | 
					
						
							| 
									
										
										
										
											2020-09-17 04:00:16 +08:00
										 |  |  | 			<?php if(isset($lastname_error)) { echo "<div class=\"small error\">".$lastname_error."</div>"; } ?>
 | 
					
						
							|  |  |  | 		</div> | 
					
						
							| 
									
										
										
										
											2019-01-09 23:18:46 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-17 04:00:16 +08:00
										 |  |  | 		<div class="form-group"> | 
					
						
							| 
									
										
										
										
											2019-01-09 23:18:46 +08:00
										 |  |  | 		    <label>Callsign</label> | 
					
						
							|  |  |  | 		    <input class="form-control" type="text" name="user_callsign" value="<?php if(isset($user_callsign)) { echo $user_callsign; } ?>" /> | 
					
						
							| 
									
										
										
										
											2020-09-17 04:00:16 +08:00
										 |  |  | 			<?php if(isset($callsign_error)) { echo "<div class=\"small error\">".$callsign_error."</div>"; } ?>
 | 
					
						
							|  |  |  | 		</div> | 
					
						
							| 
									
										
										
										
											2019-01-09 23:18:46 +08:00
										 |  |  | 			 | 
					
						
							| 
									
										
										
										
											2020-09-17 04:00:16 +08:00
										 |  |  | 		<div class="form-group"> | 
					
						
							| 
									
										
										
										
											2019-01-09 23:18:46 +08:00
										 |  |  | 		    <label>Locator</label> | 
					
						
							|  |  |  | 		    <input class="form-control" type="text" name="user_locator" value="<?php if(isset($user_locator)) { echo $user_locator; } ?>" /> | 
					
						
							| 
									
										
										
										
											2020-09-17 04:00:16 +08:00
										 |  |  | 			<?php if(isset($locator_error)) { echo "<div class=\"small error\">".$locator_error."</div>"; } ?>
 | 
					
						
							|  |  |  | 		</div> | 
					
						
							| 
									
										
										
										
											2019-01-09 23:18:46 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-17 04:00:16 +08:00
										 |  |  | 		<div class="form-group"> | 
					
						
							| 
									
										
										
										
											2019-01-09 23:18:46 +08:00
										 |  |  | 		    <label>Timezone</label> | 
					
						
							| 
									
										
										
										
											2020-06-03 04:21:22 +08:00
										 |  |  | 			<?php  | 
					
						
							|  |  |  | 				if(!isset($user_timezone)) { $user_timezone = 0; } | 
					
						
							|  |  |  | 				echo form_dropdown('user_timezone', $timezones, $user_timezone);  | 
					
						
							|  |  |  | 			?>
 | 
					
						
							| 
									
										
										
										
											2020-09-17 04:00:16 +08:00
										 |  |  | 		</div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		<div class="form-group"> | 
					
						
							|  |  |  |         	<label for="SelectDateFormat">Date Format</label> | 
					
						
							|  |  |  |             <select name="user_date_format" class="custom-select" id="SelectDateFormat" aria-describedby="SelectDateFormatHelp"> | 
					
						
							| 
									
										
										
										
											2020-09-17 04:02:00 +08:00
										 |  |  |             	<option value="">Select Format</option> | 
					
						
							| 
									
										
										
										
											2020-09-17 04:00:16 +08:00
										 |  |  |             	<option value="d/m/y"><?php echo date('d/m/y'); ?></option>
 | 
					
						
							|  |  |  |             	<option value="d/m/Y"><?php echo date('d/m/Y'); ?></option>
 | 
					
						
							|  |  |  |             	<option value="m/d/y"><?php echo date('m/d/y'); ?></option>
 | 
					
						
							|  |  |  |             	<option value="m/d/Y"><?php echo date('m/d/Y'); ?></option>
 | 
					
						
							|  |  |  |             	<option value="d.m.Y"><?php echo date('d.m.Y'); ?></option>
 | 
					
						
							|  |  |  |             	<option value="Y-m-d"><?php echo date('Y-m-d'); ?></option>
 | 
					
						
							|  |  |  |             </select> | 
					
						
							|  |  |  |              | 
					
						
							|  |  |  |             <small id="SelectDateFormatHelp" class="form-text text-muted">Select how you would like dates shown when logged into your account.</small> | 
					
						
							|  |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2020-09-17 03:22:37 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-14 18:29:02 +08:00
										 |  |  |         <div class="form-group"> | 
					
						
							|  |  |  |             <label for="user_measurement_base">Measurement preference</label> | 
					
						
							|  |  |  |             <select class="custom-select" id="user_measurement_base" name="user_measurement_base" required> | 
					
						
							| 
									
										
										
										
											2020-09-17 01:56:29 +08:00
										 |  |  |                 <option value=''></option> | 
					
						
							| 
									
										
										
										
											2020-09-15 17:16:47 +08:00
										 |  |  |                 <option value='K' <?php if($measurement_base == "K") { echo "selected=\"selected\""; } ?>>Kilometers</option>
 | 
					
						
							|  |  |  |                 <option value='M' <?php if($measurement_base == "M") { echo "selected=\"selected\""; } ?>>Miles</option>
 | 
					
						
							|  |  |  |                 <option value='N' <?php if($measurement_base == "N") { echo "selected=\"selected\""; } ?>>Nautical miles</option>
 | 
					
						
							| 
									
										
										
										
											2020-09-14 18:29:02 +08:00
										 |  |  |             </select> | 
					
						
							|  |  |  |             <small id="user_measurement_base_Help" class="form-text text-muted">Choose which unit distances will be shown in.</small> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-23 16:59:49 +08:00
										 |  |  |         <div class="form-group"> | 
					
						
							|  |  |  |             <label for="user_stylesheet">Theme</label> | 
					
						
							|  |  |  |             <select class="custom-select" id="user_stylesheet" name="user_stylesheet" required> | 
					
						
							|  |  |  |                 <option value='bootstrap.min.css' selected="selected">Standard theme</option> | 
					
						
							|  |  |  |                 <option value='bootstrap-dark.css'>Dark theme</option> | 
					
						
							| 
									
										
										
										
											2020-09-24 00:19:28 +08:00
										 |  |  |                 <option value='bootstrap-blue.css'>Blue theme</option> | 
					
						
							| 
									
										
										
										
											2020-09-23 16:59:49 +08:00
										 |  |  |             </select> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-17 04:00:16 +08:00
										 |  |  | 		<input type="hidden" name="id" value="<?php echo $this->uri->segment(3); ?>" /> | 
					
						
							|  |  |  | 		<button type="submit" class="btn btn-primary">Create Account</button> | 
					
						
							| 
									
										
										
										
											2019-01-09 23:18:46 +08:00
										 |  |  |     </form> | 
					
						
							|  |  |  |   </div> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-08-18 09:27:53 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-17 03:22:37 +08:00
										 |  |  | </div> |