| 
									
										
										
										
											2022-01-19 22:26:36 +08:00
										 |  |  | <div class="container settings"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	<div class="row"> | 
					
						
							|  |  |  | 		<!-- Nav Start --> | 
					
						
							|  |  |  | 		<?php $this->load->view('options/sidebar') ?>
 | 
					
						
							|  |  |  | 		<!-- Nav End --> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		<!-- Content --> | 
					
						
							|  |  |  | 		<div class="col-md-9"> | 
					
						
							|  |  |  |             <div class="card"> | 
					
						
							|  |  |  |                 <div class="card-header"><h2><?php echo $page_title; ?> - <?php echo $sub_heading; ?></h2></div>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                 <div class="card-body"> | 
					
						
							|  |  |  |                     <?php if($this->session->flashdata('success')) { ?>
 | 
					
						
							|  |  |  |                         <!-- Display Success Message --> | 
					
						
							|  |  |  |                         <div class="alert alert-success"> | 
					
						
							|  |  |  |                         <?php echo $this->session->flashdata('success'); ?>
 | 
					
						
							|  |  |  |                         </div> | 
					
						
							|  |  |  |                     <?php } ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                     <?php if($this->session->flashdata('message')) { ?>
 | 
					
						
							|  |  |  |                         <!-- Display Message --> | 
					
						
							| 
									
										
										
										
											2023-11-21 19:14:14 +08:00
										 |  |  |                         <div class="alert alert-info"> | 
					
						
							| 
									
										
										
										
											2022-01-19 22:26:36 +08:00
										 |  |  |                         <?php echo $this->session->flashdata('message'); ?>
 | 
					
						
							|  |  |  |                         </div> | 
					
						
							|  |  |  |                     <?php } ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-21 19:14:14 +08:00
										 |  |  |                     <?php if($this->session->flashdata('error')) { ?>
 | 
					
						
							|  |  |  |                         <!-- Display Message --> | 
					
						
							|  |  |  |                         <div class="alert alert-danger"> | 
					
						
							|  |  |  |                         <?php echo $this->session->flashdata('error'); ?>
 | 
					
						
							|  |  |  |                         </div> | 
					
						
							|  |  |  |                     <?php } ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-01-19 22:26:36 +08:00
										 |  |  |                     <?php if(validation_errors()) { ?>
 | 
					
						
							|  |  |  |                     <div class="alert alert-danger"> | 
					
						
							|  |  |  |                         <a class="close" data-dismiss="alert">x</a> | 
					
						
							|  |  |  |                         <?php echo validation_errors(); ?>
 | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                     <?php } ?>
 | 
					
						
							| 
									
										
										
										
											2023-11-21 19:14:14 +08:00
										 |  |  |                          | 
					
						
							| 
									
										
										
										
											2022-01-19 22:26:36 +08:00
										 |  |  |                     <?php echo form_open('options/email_save'); ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                         <div class="form-group"> | 
					
						
							| 
									
										
										
										
											2023-05-19 17:48:29 +08:00
										 |  |  |                             <label for="emailProtocol"><?php echo lang('options_outgoing_protocol'); ?></label>
 | 
					
						
							| 
									
										
										
										
											2022-01-19 22:26:36 +08:00
										 |  |  |                             <select name="emailProtocol" class="form-control" id="emailProtocol"> | 
					
						
							|  |  |  |                                 <option value="sendmail" <?php if($this->optionslib->get_option('emailProtocol')== "sendmail") { echo "selected=\"selected\""; } ?>>Sendmail</option>
 | 
					
						
							|  |  |  |                                 <option value="smtp" <?php if($this->optionslib->get_option('emailProtocol')== "smtp") { echo "selected=\"selected\""; } ?>>SMTP</option>
 | 
					
						
							|  |  |  |                             </select> | 
					
						
							|  |  |  |                         </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                         <div class="form-group"> | 
					
						
							| 
									
										
										
										
											2023-05-19 17:48:29 +08:00
										 |  |  |                             <label for="smtpEncryption"><?php echo lang('options_smtp_encryption'); ?></label>
 | 
					
						
							| 
									
										
										
										
											2022-01-19 22:26:36 +08:00
										 |  |  |                             <select name="smtpEncryption" class="form-control" id="smtpEncryption"> | 
					
						
							|  |  |  |                                 <option value="" <?php if($this->optionslib->get_option('smtpEncryption') == "") { echo "selected=\"selected\""; } ?>>None</option>
 | 
					
						
							|  |  |  |                                 <option value="tls" <?php if($this->optionslib->get_option('smtpEncryption') == "tls") { echo "selected=\"selected\""; } ?>>TLS</option>
 | 
					
						
							|  |  |  |                                 <option value="ssl" <?php if($this->optionslib->get_option('smtpEncryption') == "ssl") { echo "selected=\"selected\""; } ?>>SSL</option>
 | 
					
						
							|  |  |  |                             </select> | 
					
						
							|  |  |  |                         </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-06-17 15:03:00 +08:00
										 |  |  |                         <div class="form-group row"> | 
					
						
							|  |  |  |                         <label for="emailSenderName" class="col-sm-2 col-form-label"><?php echo lang('options_email_sender_name'); ?></label>
 | 
					
						
							|  |  |  |                             <div class="col-sm-10"> | 
					
						
							| 
									
										
										
										
											2023-06-17 15:14:56 +08:00
										 |  |  |                                 <input type="text" name="emailSenderName" class="form-control" id="emailSenderName" value="<?php echo ($this->optionslib->get_option('emailSenderName') == "" ? 'Cloudlog' : $this->optionslib->get_option('emailSenderName'));?>"> | 
					
						
							| 
									
										
										
										
											2023-06-17 15:03:00 +08:00
										 |  |  |                             </div> | 
					
						
							|  |  |  |                         </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-06-16 16:56:06 +08:00
										 |  |  |                         <div class="form-group row"> | 
					
						
							|  |  |  |                         <label for="emailAddress" class="col-sm-2 col-form-label"><?php echo lang('options_email_address'); ?></label>
 | 
					
						
							|  |  |  |                             <div class="col-sm-10"> | 
					
						
							|  |  |  |                                 <input type="text" name="emailAddress" class="form-control" id="emailAddress" value="<?php if($this->optionslib->get_option('emailAddress') != "") { echo $this->optionslib->get_option('emailAddress'); } ?>"> | 
					
						
							|  |  |  |                             </div> | 
					
						
							|  |  |  |                         </div> | 
					
						
							| 
									
										
										
										
											2022-01-19 22:26:36 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |                         <div class="form-group row"> | 
					
						
							| 
									
										
										
										
											2023-05-19 17:48:29 +08:00
										 |  |  |                             <label for="smtpHost" class="col-sm-2 col-form-label"><?php echo lang('options_smtp_host'); ?></label>
 | 
					
						
							| 
									
										
										
										
											2022-01-19 22:26:36 +08:00
										 |  |  |                             <div class="col-sm-10"> | 
					
						
							|  |  |  |                                 <input type="text" name="smtpHost" class="form-control" id="smtpHost" value="<?php if($this->optionslib->get_option('smtpHost') != "") { echo $this->optionslib->get_option('smtpHost'); } ?>"> | 
					
						
							|  |  |  |                             </div> | 
					
						
							|  |  |  |                         </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                         <div class="form-group row"> | 
					
						
							| 
									
										
										
										
											2023-05-19 17:48:29 +08:00
										 |  |  |                             <label for="smtpPort" class="col-sm-2 col-form-label"><?php echo lang('options_smtp_port'); ?></label>
 | 
					
						
							| 
									
										
										
										
											2022-01-19 22:26:36 +08:00
										 |  |  |                             <div class="col-sm-10"> | 
					
						
							|  |  |  |                                 <input type="number" name="smtpPort" class="form-control" id="smtpPort" value="<?php if($this->optionslib->get_option('smtpPort') != "") { echo $this->optionslib->get_option('smtpPort'); } ?>"> | 
					
						
							|  |  |  |                             </div> | 
					
						
							|  |  |  |                         </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                         <div class="form-group row"> | 
					
						
							| 
									
										
										
										
											2023-05-19 17:48:29 +08:00
										 |  |  |                             <label for="smtpUsername" class="col-sm-2 col-form-label"><?php echo lang('options_smtp_username'); ?></label>
 | 
					
						
							| 
									
										
										
										
											2022-01-19 22:26:36 +08:00
										 |  |  |                             <div class="col-sm-10"> | 
					
						
							|  |  |  |                                 <input type="text" name="smtpUsername" class="form-control" id="smtpUsername" value="<?php if($this->optionslib->get_option('smtpUsername') != "") { echo $this->optionslib->get_option('smtpUsername'); } ?>"> | 
					
						
							|  |  |  |                             </div> | 
					
						
							|  |  |  |                         </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                         <div class="form-group row"> | 
					
						
							| 
									
										
										
										
											2023-05-19 17:48:29 +08:00
										 |  |  |                             <label for="smtpPassword" class="col-sm-2 col-form-label"><?php echo lang('options_smtp_password'); ?></label>
 | 
					
						
							| 
									
										
										
										
											2022-01-19 22:26:36 +08:00
										 |  |  |                             <div class="col-sm-10"> | 
					
						
							|  |  |  |                                 <input type="password" name="smtpPassword" class="form-control" id="smtpPassword"  value="<?php if($this->optionslib->get_option('smtpPassword') != "") { echo $this->optionslib->get_option('smtpPassword'); } ?>"> | 
					
						
							|  |  |  |                             </div> | 
					
						
							|  |  |  |                         </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                         <!-- Save the Form --> | 
					
						
							| 
									
										
										
										
											2023-05-19 17:48:29 +08:00
										 |  |  |                         <input class="btn btn-primary" type="submit" value="<?php echo lang('options_save'); ?>" /> | 
					
						
							| 
									
										
										
										
											2023-11-21 19:14:14 +08:00
										 |  |  |                         <button class="btn btn-secondary" id="sendTestMailButton"><?php echo lang('options_send_testmail'); ?></button>
 | 
					
						
							| 
									
										
										
										
											2022-01-19 22:26:36 +08:00
										 |  |  |                     </form> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  | 		</div> | 
					
						
							|  |  |  | 	</div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | </div> |