File: aksara/Modules/Administrative/Views/settings/form.php

Recommend this page to a friend!
  Classes of Aby Dahana  >  Aksara  >  aksara/Modules/Administrative/Views/settings/form.php  >  Download  
File: aksara/Modules/Administrative/Views/settings/form.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Aksara
A CodeIgniter based API and CRUD generator
Author: By
Last change: Initial commit for update 4.2.7

##### Bug Fixed:
Core: Fix the CRUD function both back end and front end;
Core: Fix the query string parameter for each returned data;
Core: Fix the table data that return nothing when no data exists;
Model: Fix the multiple database connection when switching the main connection to the second connection;
Model: Fix the field check when table using alias;
Javascript: Fix the query string extraction that return null value;
Javascript: Fix the geocoding (place search) on the map when using Google or OpenStreet provider;
Galleries: Fix the link that turned image not found when clicked from gallery category;
Dashboard: Fix RecursiveIterator that return error when catch unreadable upload folder;

##### Changes:
Modules: Change the "not found" page message to matched with modules;
Group: Replace the module structure for permission with path;
Permission: Change the permission check with module path;
Permission: Remove the field of module, submodule and controller and replaced with path instead;
Activity Log: Remove the field of module, submodule and controller and replaced with path instead;
Group Privileges: Remove the field of module, submodule and controller and replaced with path instead;

##### Improvements:
Core: Replace the permission with module path so it will work with unlimited sub module;
Core: Add title trim to prevent blank title when the requested data was not found;
Core: Block the Internet Explorer under version 11 that no longer supports common used javascript;
Modules: Change the "not found" page message to matched with modules;
Installer: Add the character restriction for encryption key and cookie name to prevent breaking the configuration parameter;
Javascript: Increase the maximum depth of menu builder;
Seeder: Apply column modification related to app__activity_logs, app__groups_privileges and app__settings table;
Redesign the "not found" page;
Add new language phrases;

##### New Features:
Galleries: Add the slide view for next and previous image if available;
Settings: Add the action sound toggle;
Addon: Install the add on directly from the Aksara Market;
Addon: Customize the installed theme;
Authentication: Add the annually sign in when active years is presents;
Date: 1 month ago
Size: 18,718 bytes
 

Contents

Class file image Download
<div class="container-fluid pb-3">
	<form action="<?php echo current_page(); ?>" method="POST" class="--validate-form" enctype="multipart/form-data">
		<div class="row border-bottom bg-white mb-3 sticky-top" style="overflow-x: auto; top:88px">
			<ul class="nav" style="flex-wrap: nowrap">
				<li class="nav-item">
					<a href="#pills-setting" data-toggle="pill" id="pills-setting-tab" class="nav-link no-wrap active">
						<i class="mdi mdi-cogs"></i>
						<?php echo phrase('configuration'); ?>
					</a>
				</li>
				<li class="nav-item">
					<a href="#pills-membership" data-toggle="pill" id="pills-membership-tab" class="nav-link no-wrap">
						<i class="mdi mdi-account-group-outline"></i>
						<?php echo phrase('membership'); ?>
					</a>
				</li>
				<li class="nav-item">
					<a href="#pills-apis" data-toggle="pill" id="pills-apis-tab" class="nav-link no-wrap">
						<i class="mdi mdi-code-braces"></i>
						<?php echo phrase('apis'); ?>
					</a>
				</li>
				<li class="nav-item">
					<a href="#pills-oauth" data-toggle="pill" id="pills-oauth-tab" class="nav-link no-wrap">
						<i class="mdi mdi-shield-lock-outline"></i>
						OAuth
					</a>
				</li>
				<li class="nav-item">
					<a href="#pills-notifier" data-toggle="pill" id="pills-notifier-tab" class="nav-link no-wrap">
						<i class="mdi mdi-bullhorn"></i>
						<?php echo phrase('notifier'); ?>
					</a>
				</li>
			</ul>
		</div>
		<div class="row">
			<div class="col-md-8">
				<div class="tab-content" id="pills-tabContent">
					<div class="tab-pane fade show active" id="pills-setting">
						<div class="form-group">
							<label class="text-muted d-block" for="app_name_input">
								<?php echo $results->form_data->app_name->label; ?>
								<?php echo ($results->form_data->app_name->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
							</label>
							<?php echo $results->form_data->app_name->content; ?>
						</div>
						<div class="form-group">
							<label class="text-muted d-block" for="app_description_input">
								<?php echo $results->form_data->app_description->label; ?>
								<?php echo ($results->form_data->app_description->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
							</label>
							<?php echo $results->form_data->app_description->content; ?>
						</div>
						<div class="form-group">
							<label class="text-muted d-block" for="office_name_input">
								<?php echo $results->form_data->office_name->label; ?>
								<?php echo ($results->form_data->office_name->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
							</label>
							<?php echo $results->form_data->office_name->content; ?>
						</div>
						<div class="row form-group">
							<div class="col-sm-6">
								<label class="text-muted d-block" for="office_email_input">
									<?php echo $results->form_data->office_email->label; ?>
									<?php echo ($results->form_data->office_email->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
								</label>
								<?php echo $results->form_data->office_email->content; ?>
							</div>
							<div class="col-sm-6">
								<label class="text-muted d-block" for="office_phone_input">
									<?php echo $results->form_data->office_phone->label; ?>
									<?php echo ($results->form_data->office_phone->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
								</label>
								<?php echo $results->form_data->office_phone->content; ?>
							</div>
						</div>
						<div class="row form-group">
							<div class="col-sm-6">
								<label class="text-muted d-block" for="office_fax_input">
									<?php echo $results->form_data->office_fax->label; ?>
									<?php echo ($results->form_data->office_fax->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
								</label>
								<?php echo $results->form_data->office_fax->content; ?>
							</div>
							<div class="col-sm-6">
								<label class="text-muted d-block" for="whatsapp_number_input">
									<?php echo $results->form_data->whatsapp_number->label; ?>
									<?php echo ($results->form_data->whatsapp_number->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
								</label>
								<?php echo $results->form_data->whatsapp_number->content; ?>
							</div>
						</div>
						<div class="row form-group">
							<div class="col-sm-6">
								<label class="text-muted d-block" for="instagram_username_input">
									<?php echo $results->form_data->instagram_username->label; ?>
									<?php echo ($results->form_data->instagram_username->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
								</label>
								<?php echo $results->form_data->instagram_username->content; ?>
							</div>
							<div class="col-sm-6">
								<label class="text-muted d-block" for="twitter_username_input">
									<?php echo $results->form_data->twitter_username->label; ?>
									<?php echo ($results->form_data->twitter_username->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
								</label>
								<?php echo $results->form_data->twitter_username->content; ?>
							</div>
						</div>
						<div class="form-group">
							<label class="text-muted d-block" for="office_address_input">
								<?php echo $results->form_data->office_address->label; ?>
								<?php echo ($results->form_data->office_address->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
							</label>
							<?php echo $results->form_data->office_address->content; ?>
						</div>
						<div class="form-group">
							<label class="text-muted d-block" for="office_map_input">
								<?php echo $results->form_data->office_map->label; ?>
								<?php echo ($results->form_data->office_map->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
							</label>
							<?php echo $results->form_data->office_map->content; ?>
						</div>
						<div class="row">
							<div class="col-6 col-md-3">
								<div class="form-group text-center">
									<label class="text-muted d-block" for="app_logo_input">
										<?php echo $results->form_data->app_logo->label; ?>
									</label>
									<div class="row">
										<div class="col-md-8 offset-md-2">
											<?php echo $results->form_data->app_logo->content; ?>
										</div>
									</div>
								</div>
							</div>
							<div class="col-6 col-md-3">
								<div class="form-group text-center">
									<label class="text-muted d-block" for="app_icon_input">
										<?php echo $results->form_data->app_icon->label; ?>
									</label>
									<div class="row">
										<div class="col-md-8 offset-md-2">
											<?php echo $results->form_data->app_icon->content; ?>
										</div>
									</div>
								</div>
							</div>
						</div>
						<hr />
						<div class="row">
							<div class="col-sm-6">
								<div class="form-group">
									<label class="text-muted d-block" for="app_language_input">
										<?php echo $results->form_data->app_language->label; ?>
										<?php echo ($results->form_data->app_language->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
									</label>
									<?php echo $results->form_data->app_language->content; ?>
								</div>
							</div>
						</div>
					</div>
					<div class="tab-pane fade" id="pills-membership">
						<div class="row">
							<div class="col-md-6">
								<div class="form-group">
									<label class="text-muted d-block" for="frontend_registration_input">
										<?php echo $results->form_data->frontend_registration->label; ?>
									</label>
									<?php echo $results->form_data->frontend_registration->content; ?>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="text-muted d-block" for="default_membership_group_input">
										<?php echo $results->form_data->auto_active_registration->label; ?>
										<i class="mdi mdi-help-circle-outline" data-toggle="tooltip" title="<?php echo phrase('activate_user_after_registration'); ?>"></i>
									</label>
									<?php echo $results->form_data->auto_active_registration->content; ?>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-md-6">
								<div class="form-group">
									<label class="text-muted d-block" for="default_membership_group_input">
										<?php echo $results->form_data->default_membership_group->label; ?>
									</label>
									<?php echo $results->form_data->default_membership_group->content; ?>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="text-muted d-block" for="username_changes_input">
										<?php echo $results->form_data->username_changes->label; ?>
									</label>
									<?php echo $results->form_data->username_changes->content; ?>
								</div>
							</div>
						</div>
						<hr />
						<div class="row">
							<div class="col-sm-6">
								<div class="form-group">
									<label class="text-muted d-block">
										<?php echo $results->form_data->one_device_login->label; ?>
									</label>
									<?php echo $results->form_data->one_device_login->content; ?>
								</div>
							</div>
						</div>
					</div>
					<div class="tab-pane fade" id="pills-apis">
						<div class="row">
							<div class="col-md-5">
								<div class="form-group">
									<label class="text-muted d-block" for="openlayers_search_provider_input">
										<?php echo $results->form_data->openlayers_search_provider->label; ?>
										<?php echo ($results->form_data->openlayers_search_provider->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
									</label>
									<?php echo $results->form_data->openlayers_search_provider->content; ?>
								</div>
							</div>
							<div class="col-md-7">
								<div class="form-group">
									<label class="text-muted d-block" for="openlayers_search_key_input">
										<?php echo $results->form_data->openlayers_search_key->label; ?>
										<?php echo ($results->form_data->openlayers_search_key->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
									</label>
									<?php echo $results->form_data->openlayers_search_key->content; ?>
								</div>
							</div>
						</div>
						<hr />
						<div class="row">
							<div class="col-md-5">
								<div class="form-group">
									<label class="text-muted d-block" for="google_analytics_key_input">
										<?php echo $results->form_data->google_analytics_key->label; ?>
										<?php echo ($results->form_data->google_analytics_key->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
									</label>
									<?php echo $results->form_data->google_analytics_key->content; ?>
								</div>
							</div>
							<div class="col-md-7">
								<div class="form-group">
									<label class="text-muted d-block" for="disqus_site_domain_input">
										<?php echo $results->form_data->disqus_site_domain->label; ?>
										<?php echo ($results->form_data->disqus_site_domain->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
									</label>
									<?php echo $results->form_data->disqus_site_domain->content; ?>
								</div>
							</div>
						</div>
					</div>
					<div class="tab-pane fade" id="pills-oauth">
						<div class="row">
							<div class="col-md-5">
								<div class="form-group">
									<label class="text-muted d-block" for="facebook_app_id_input">
										<?php echo $results->form_data->facebook_app_id->label; ?>
										<?php echo ($results->form_data->facebook_app_id->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
									</label>
									<?php echo $results->form_data->facebook_app_id->content; ?>
								</div>
							</div>
							<div class="col-md-7">
								<div class="form-group">
									<label class="text-muted d-block" for="facebook_app_secret_input">
										<?php echo $results->form_data->facebook_app_secret->label; ?>
										<?php echo ($results->form_data->facebook_app_secret->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
									</label>
									<?php echo $results->form_data->facebook_app_secret->content; ?>
								</div>
							</div>
						</div>
						<hr />
						<div class="row">
							<div class="col-md-5">
								<div class="form-group">
									<label class="text-muted d-block" for="google_client_id_input">
										<?php echo $results->form_data->google_client_id->label; ?>
										<?php echo ($results->form_data->google_client_id->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
									</label>
									<?php echo $results->form_data->google_client_id->content; ?>
								</div>
							</div>
							<div class="col-md-7">
								<div class="form-group">
									<label class="text-muted d-block" for="google_client_secret_input">
										<?php echo $results->form_data->google_client_secret->label; ?>
										<?php echo ($results->form_data->google_client_secret->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
									</label>
									<?php echo $results->form_data->google_client_secret->content; ?>
								</div>
							</div>
						</div>
					</div>
					<div class="tab-pane fade" id="pills-notifier">
						<div class="row">
							<div class="col-md-6">
								<div class="form-group">
									<label class="text-muted d-block" for="action_sound_input">
										<?php echo $results->form_data->action_sound->label; ?>
										<?php echo ($results->form_data->action_sound->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
										<i class="mdi mdi-help-circle-outline" data-toggle="tooltip" title="<?php echo phrase('turn_the_action_sound_effect_on_or_off'); ?>"></i>
									</label>
									<?php echo $results->form_data->action_sound->content; ?>
								</div>
							</div>
						</div>
						<hr />
						<h5 class="mb-3">
							<?php echo phrase('email_notifier'); ?>
						</h5>
						<div class="alert alert-warning">
							<?php echo phrase('to_working_with_google_smtp_make_sure_to_activate_less_secure_apps_setting_on_your_google_account'); ?>
						</div>
						<div class="row">
							<div class="col-md-6">
								<div class="form-group">
									<label class="text-muted d-block" for="smtp_email_masking_input">
										<?php echo $results->form_data->smtp_email_masking->label; ?>
										<?php echo ($results->form_data->smtp_email_masking->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
									</label>
									<?php echo $results->form_data->smtp_email_masking->content; ?>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="text-muted d-block" for="smtp_sender_masking_input">
										<?php echo $results->form_data->smtp_sender_masking->label; ?>
										<?php echo ($results->form_data->smtp_sender_masking->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
									</label>
									<?php echo $results->form_data->smtp_sender_masking->content; ?>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-md-8">
								<div class="form-group">
									<label class="text-muted d-block" for="smtp_host_input">
										<?php echo $results->form_data->smtp_host->label; ?>
										<?php echo ($results->form_data->smtp_host->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
									</label>
									<?php echo $results->form_data->smtp_host->content; ?>
								</div>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<label class="text-muted d-block" for="smtp_port_input">
										<?php echo $results->form_data->smtp_port->label; ?>
										<?php echo ($results->form_data->smtp_port->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
									</label>
									<?php echo $results->form_data->smtp_port->content; ?>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-md-6">
								<div class="form-group">
									<label class="text-muted d-block" for="smtp_username_input">
										<?php echo $results->form_data->smtp_username->label; ?>
										<?php echo ($results->form_data->smtp_username->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
									</label>
									<?php echo $results->form_data->smtp_username->content; ?>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="text-muted d-block" for="smtp_password_input">
										<?php echo $results->form_data->smtp_password->label; ?>
										<?php echo ($results->form_data->smtp_password->required ? '<span class="float-right text-sm text-danger">' . phrase('required') . '</span>' : null); ?>
									</label>
									<?php echo $results->form_data->smtp_password->content; ?>
								</div>
							</div>
						</div>
					</div>
					
					<div class="--validation-callback mb-0"></div>
					
				</div>
			</div>
		</div>
		<div class="opt-btn-overlap-fix"></div><!-- fix the overlap -->
		<div class="row opt-btn">
			<div class="col-md-8">
				<a href="<?php echo base_url('administrative'); ?>" class="btn btn-link --xhr">
					<i class="mdi mdi-arrow-left"></i>
					<?php echo phrase('administrative'); ?>
				</a>
				<button type="submit" class="btn btn-primary float-right">
					<i class="mdi mdi-check"></i>
					<?php echo phrase('update'); ?>
					<em class="text-sm">(ctrl+s)</em>
				</button>
			</div>
		</div>
	</form>
</div>

For more information send a message to info at phpclasses dot org.