| 
									
										
										
										
											2023-12-03 16:37:39 +08:00
										 |  |  | <div class="container settings"> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-05 06:02:53 +08:00
										 |  |  |     <div class="row"> | 
					
						
							|  |  |  |         <!-- Nav Start --> | 
					
						
							|  |  |  |         <?php $this->load->view('options/sidebar') ?>
 | 
					
						
							|  |  |  |         <!-- Nav End --> | 
					
						
							| 
									
										
										
										
											2023-12-03 16:37:39 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-05 06:02:53 +08:00
										 |  |  |         <!-- Content --> | 
					
						
							|  |  |  |         <div class="col-md-9"> | 
					
						
							| 
									
										
										
										
											2023-12-03 16:37:39 +08:00
										 |  |  |             <div class="card"> | 
					
						
							| 
									
										
										
										
											2023-12-05 06:02:53 +08:00
										 |  |  |                 <div class="card-header"> | 
					
						
							|  |  |  |                     <h2><?php echo $page_title; ?> - <?php echo $sub_heading; ?></h2>
 | 
					
						
							|  |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2023-12-03 16:37:39 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |                 <div class="card-body"> | 
					
						
							| 
									
										
										
										
											2023-12-05 06:02:53 +08:00
										 |  |  |                     <?php if ($this->session->flashdata('success0')) { ?>
 | 
					
						
							| 
									
										
										
										
											2023-12-03 16:37:39 +08:00
										 |  |  |                         <!-- Display Success Message --> | 
					
						
							|  |  |  |                         <div class="alert alert-success"> | 
					
						
							| 
									
										
										
										
											2023-12-05 06:02:53 +08:00
										 |  |  |                             <?php echo $this->session->flashdata('success0'); ?>
 | 
					
						
							| 
									
										
										
										
											2023-12-05 03:44:26 +08:00
										 |  |  |                         </div> | 
					
						
							|  |  |  |                     <?php } ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-05 06:02:53 +08:00
										 |  |  |                     <?php if ($this->session->flashdata('success1')) { ?>
 | 
					
						
							| 
									
										
										
										
											2023-12-05 03:44:26 +08:00
										 |  |  |                         <!-- Display Success Message --> | 
					
						
							|  |  |  |                         <div class="alert alert-success"> | 
					
						
							| 
									
										
										
										
											2023-12-05 06:02:53 +08:00
										 |  |  |                             <?php echo $this->session->flashdata('success1'); ?>
 | 
					
						
							| 
									
										
										
										
											2023-12-03 16:37:39 +08:00
										 |  |  |                         </div> | 
					
						
							|  |  |  |                     <?php } ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-05 06:02:53 +08:00
										 |  |  |                     <?php if ($this->session->flashdata('success2')) { ?>
 | 
					
						
							| 
									
										
										
										
											2023-12-03 16:37:39 +08:00
										 |  |  |                         <!-- Display Success Message --> | 
					
						
							|  |  |  |                         <div class="alert alert-success"> | 
					
						
							| 
									
										
										
										
											2023-12-05 06:02:53 +08:00
										 |  |  |                             <?php echo $this->session->flashdata('success2'); ?>
 | 
					
						
							| 
									
										
										
										
											2023-12-03 16:37:39 +08:00
										 |  |  |                         </div> | 
					
						
							|  |  |  |                     <?php } ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-05 06:02:53 +08:00
										 |  |  |                     <?php if ($this->session->flashdata('message')) { ?>
 | 
					
						
							| 
									
										
										
										
											2023-12-03 16:37:39 +08:00
										 |  |  |                         <!-- Display Message --> | 
					
						
							|  |  |  |                         <div class="alert-message error"> | 
					
						
							| 
									
										
										
										
											2023-12-05 06:02:53 +08:00
										 |  |  |                             <?php echo $this->session->flashdata('message'); ?>
 | 
					
						
							| 
									
										
										
										
											2023-12-03 16:37:39 +08:00
										 |  |  |                         </div> | 
					
						
							|  |  |  |                     <?php } ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                     <?php echo form_open('options/version_dialog_save'); ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-05 06:02:53 +08:00
										 |  |  |                     <div class="mb-3"> | 
					
						
							|  |  |  |                         <label for="version_dialog_header"><?php echo lang('options_version_dialog_header'); ?></label>
 | 
					
						
							|  |  |  |                         <input type="text" name="version_dialog_header" class="form-control" id="version_dialog_header" aria-describedby="version_dialog_header" value="<?php echo htmlspecialchars($this->optionslib->get_option('version_dialog_header') ?? ''); ?>"> | 
					
						
							|  |  |  |                         <small id="version_dialog_header_hint" class="form-text text-muted"><?php echo lang('options_version_dialog_header_hint'); ?></small>
 | 
					
						
							|  |  |  |                     </div> | 
					
						
							| 
									
										
										
										
											2023-12-05 03:44:26 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-05 06:02:53 +08:00
										 |  |  |                     <div class="mb-3"> | 
					
						
							|  |  |  |                         <label for="version_dialog_mode"><?php echo lang('options_version_dialog_mode'); ?></label>
 | 
					
						
							|  |  |  |                         <select name="version_dialog_mode" class="form-select" id="version_dialog_mode"> | 
					
						
							|  |  |  |                             <option value="release_notes" <?php if ($this->optionslib->get_option('version_dialog') == "release_notes") { | 
					
						
							|  |  |  |                                                                 echo "selected=\"selected\""; | 
					
						
							|  |  |  |                                                             } ?>><?php echo lang('options_version_dialog_mode_release_notes'); ?></option>
 | 
					
						
							|  |  |  |                             <option value="custom_text" <?php if ($this->optionslib->get_option('version_dialog') == "custom_text") { | 
					
						
							|  |  |  |                                                             echo "selected=\"selected\""; | 
					
						
							|  |  |  |                                                         } ?>><?php echo lang('options_version_dialog_mode_custom_text'); ?></option>
 | 
					
						
							|  |  |  |                             <option value="both" <?php if ($this->optionslib->get_option('version_dialog') == "both") { | 
					
						
							|  |  |  |                                                         echo "selected=\"selected\""; | 
					
						
							|  |  |  |                                                     } ?>><?php echo lang('options_version_dialog_mode_both'); ?></option>
 | 
					
						
							|  |  |  |                             <option value="disabled" <?php if ($this->optionslib->get_option('version_dialog') == "disabled") { | 
					
						
							|  |  |  |                                                             echo "selected=\"selected\""; | 
					
						
							|  |  |  |                                                         } ?>><?php echo lang('options_version_dialog_mode_disabled'); ?></option>
 | 
					
						
							|  |  |  |                         </select> | 
					
						
							|  |  |  |                         <small id="version_dialog_mode_hint" class="form-text text-muted"><?php echo lang('options_version_dialog_mode_hint'); ?></small>
 | 
					
						
							|  |  |  |                     </div> | 
					
						
							| 
									
										
										
										
											2023-12-03 16:37:39 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-05 06:02:53 +08:00
										 |  |  |                     <div class="mb-3" id="version_dialog_custom_textarea" style="display: none" role="alert"> | 
					
						
							|  |  |  |                         <label for="version_dialog_custom_text"><?php echo lang('options_version_dialog_custom_text'); ?></label>
 | 
					
						
							|  |  |  |                         <textarea type="text" rows="6" name="version_dialog_custom_text" class="form-control" id="version_dialog_custom_text" aria-describedby="version_dialog_custom_text"><?php echo htmlspecialchars($this->optionslib->get_option('version_dialog_text') ?? ''); ?></textarea>
 | 
					
						
							|  |  |  |                         <small id="version_dialog_custom_text_hint" class="form-text text-muted"><?php echo lang('options_version_dialog_custom_text_hint'); ?></small>
 | 
					
						
							|  |  |  |                     </div> | 
					
						
							| 
									
										
										
										
											2023-12-03 16:37:39 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-05 06:02:53 +08:00
										 |  |  |                     <!-- Save the Form --> | 
					
						
							|  |  |  |                     <input class="btn btn-primary" type="submit" value="<?php echo lang('options_save'); ?>" /> | 
					
						
							| 
									
										
										
										
											2023-12-03 16:37:39 +08:00
										 |  |  |                     </form> | 
					
						
							|  |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2023-12-05 03:44:26 +08:00
										 |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2023-12-05 06:25:35 +08:00
										 |  |  |             <div class="card mt-4 mb-4"> | 
					
						
							| 
									
										
										
										
											2023-12-05 03:44:26 +08:00
										 |  |  |                 <div class="card-header"> | 
					
						
							| 
									
										
										
										
											2023-12-05 06:02:53 +08:00
										 |  |  |                     <h5><?php echo lang('options_version_dialog_show_hide'); ?></h5>
 | 
					
						
							| 
									
										
										
										
											2023-12-05 03:44:26 +08:00
										 |  |  |                 </div> | 
					
						
							|  |  |  |                 <div class="card-body"> | 
					
						
							| 
									
										
										
										
											2023-12-05 06:02:53 +08:00
										 |  |  |                     <?php if ($this->session->flashdata('success_trigger')) { ?>
 | 
					
						
							|  |  |  |                         <!-- Display Success Message --> | 
					
						
							|  |  |  |                         <div class="alert alert-info"> | 
					
						
							|  |  |  |                             <?php echo $this->session->flashdata('success_trigger'); ?>
 | 
					
						
							|  |  |  |                         </div> | 
					
						
							|  |  |  |                     <?php } ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                     <div class="row"> | 
					
						
							|  |  |  |                         <div class="col-md-6 border-end d-flex flex-column align-items-center text-center"> | 
					
						
							|  |  |  |                             <?php echo form_open('options/version_dialog_show_to_all'); ?>
 | 
					
						
							|  |  |  |                             <button class="btn btn-success m-2"><?php echo lang('options_version_dialog_show_all'); ?></button>
 | 
					
						
							|  |  |  |                             </form> | 
					
						
							|  |  |  |                             <small class="form-text text-muted"><?php echo lang('options_version_dialog_show_all_hint'); ?></small>
 | 
					
						
							|  |  |  |                         </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                         <div class="col-md-6 d-flex flex-column align-items-center text-center"> | 
					
						
							|  |  |  |                             <?php echo form_open('options/version_dialog_show_to_none'); ?>
 | 
					
						
							|  |  |  |                             <button class="btn btn-danger m-2"><?php echo lang('options_version_dialog_hide_all'); ?></button>
 | 
					
						
							|  |  |  |                             </form> | 
					
						
							|  |  |  |                             <small class="form-text text-muted"><?php echo lang('options_version_dialog_hide_all_hint'); ?></small>
 | 
					
						
							|  |  |  |                         </div> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-05 03:44:26 +08:00
										 |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2023-12-03 16:37:39 +08:00
										 |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2023-12-05 06:02:53 +08:00
										 |  |  |         </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2023-12-03 16:37:39 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-05 06:02:53 +08:00
										 |  |  | </div> |