| 
									
										
										
										
											2020-05-17 20:57:28 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | <div class="container" id="create_mode"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <br> | 
					
						
							|  |  |  | 	<?php if($this->session->flashdata('message')) { ?>
 | 
					
						
							|  |  |  | 		<!-- Display Message --> | 
					
						
							|  |  |  | 		<div class="alert-message error"> | 
					
						
							|  |  |  | 		  <p><?php echo $this->session->flashdata('message'); ?></p>
 | 
					
						
							|  |  |  | 		</div> | 
					
						
							|  |  |  | 	<?php } ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		<?php if($this->session->flashdata('notice')) { ?>
 | 
					
						
							|  |  |  | 			<div id="message" > | 
					
						
							|  |  |  | 			<?php echo $this->session->flashdata('notice'); ?>
 | 
					
						
							|  |  |  | 			</div> | 
					
						
							|  |  |  | 		<?php } ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		<?php $this->load->helper('form'); ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		<?php echo validation_errors(); ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-10-07 18:14:17 +08:00
										 |  |  | 		<form> | 
					
						
							| 
									
										
										
										
											2023-11-14 20:35:53 +08:00
										 |  |  | 		<div class="mb-3"> | 
					
						
							| 
									
										
										
										
											2020-05-17 20:57:28 +08:00
										 |  |  | 		    <label for="modeInput">ADIF Mode</label> | 
					
						
							|  |  |  | 		    <input type="text" class="form-control" name="mode" id="modeInput" aria-describedby="modeInputHelp" required> | 
					
						
							|  |  |  | 		    <small id="modeInputHelp" class="form-text text-muted">Name of mode in ADIF-specification</small> | 
					
						
							|  |  |  | 		  </div> | 
					
						
							| 
									
										
										
										
											2020-05-24 06:06:08 +08:00
										 |  |  | 		   | 
					
						
							| 
									
										
										
										
											2023-11-14 20:35:53 +08:00
										 |  |  | 		  <div class="mb-3"> | 
					
						
							| 
									
										
										
										
											2020-05-24 06:06:08 +08:00
										 |  |  | 		    <label for="submodeInput">ADIF Sub-Mode</label> | 
					
						
							|  |  |  | 		    <input type="text" class="form-control" name="submode" id="submodeInput" aria-describedby="submodeInputHelp"> | 
					
						
							|  |  |  | 		    <small id="submodeInputHelp" class="form-text text-muted">Name of sub-mode in ADIF-specification</small> | 
					
						
							|  |  |  | 		  </div> | 
					
						
							| 
									
										
										
										
											2020-05-17 20:57:28 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-14 20:35:53 +08:00
										 |  |  | 			<div class="mb-3"> | 
					
						
							| 
									
										
										
										
											2020-05-17 20:57:28 +08:00
										 |  |  | 		    <label for="qrgmodeInput">SSB/CW/DATA</label> | 
					
						
							| 
									
										
										
										
											2023-11-14 20:35:53 +08:00
										 |  |  | 			<select id="qrgmodeInput" class="form-select mode form-select-sm" name="qrgmode"> | 
					
						
							| 
									
										
										
										
											2020-05-17 20:57:28 +08:00
										 |  |  | 				<option value="CW">CW</option> | 
					
						
							|  |  |  | 				<option value="SSB">SSB</option> | 
					
						
							|  |  |  | 				<option value="DATA">DATA</option> | 
					
						
							|  |  |  | 			</select> | 
					
						
							|  |  |  | 		    <small id="qrgmodeInputHelp" class="form-text text-muted">Defines the QRG-segment in bandplan.</small> | 
					
						
							|  |  |  | 		  </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-14 20:35:53 +08:00
										 |  |  | 		  <div class="mb-3"> | 
					
						
							| 
									
										
										
										
											2020-05-17 20:57:28 +08:00
										 |  |  | 		    <label for="activeInput">Active</label> | 
					
						
							| 
									
										
										
										
											2023-11-14 20:35:53 +08:00
										 |  |  | 			<select id="activeInput" class="form-select mode form-select-sm" name="active"> | 
					
						
							| 
									
										
										
										
											2020-05-17 20:57:28 +08:00
										 |  |  | 				<option value="1">active</option> | 
					
						
							|  |  |  | 				<option value="0">not active</option> | 
					
						
							|  |  |  | 			</select> | 
					
						
							|  |  |  | 		    <small id="activeInputHelp" class="form-text text-muted">Set to active if to be listed in Modes-list</small> | 
					
						
							|  |  |  | 		  </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-10-07 18:14:17 +08:00
										 |  |  | 			<button type="button" onclick="createMode(this.form);" class="btn btn-primary"><i class="fas fa-plus-square"></i> Create mode</button> | 
					
						
							| 
									
										
										
										
											2020-05-17 20:57:28 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 		</form> | 
					
						
							|  |  |  | </div> |