. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 94.23.64.18 / Your IP :
216.73.216.185 [
Web Server : Apache System : Linux webm005.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : villadal ( 6036) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/villadal/www/old/booked/tpl/Admin/Configuration/ |
Upload File : |
{*
Copyright 2013-2014 Nick Korbel
This file is part of Booked Scheduler.
Booked Scheduler is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Booked Scheduler is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Booked Scheduler. If not, see <http://www.gnu.org/licenses/>.
*}
{include file='globalheader.tpl' cssFiles='css/admin.css,scripts/css/colorbox.css'}
<form id="frmConfigFile" method="GET" action="{$SCRIPT_NAME}">
{translate key=File}:
<select name="cf" id="cf" class="textbox">
{foreach from=$ConfigFiles item=file}
{assign var=selected value=""}
{if $file->Location eq $SelectedFile}{assign var=selected value="selected='selected'"}{/if}
<option value="{$file->Location}" {$selected}>{$file->Name}</option>
{/foreach}
</select>
</form>
{function name="list_settings"}
{foreach from=$settings item=setting}
{cycle values=',row1' assign=rowCss}
{assign var="name" value=$setting->Name}
<li class="{$rowCss}"><span class="label">{$setting->Key}</span>
{if $setting->Key == ConfigKeys::DEFAULT_TIMEZONE}
<select name="{$name}" class="textbox">
{html_options values=$TimezoneValues output=$TimezoneOutput selected=$setting->Value}
</select>
{elseif $setting->Key == ConfigKeys::LANGUAGE}
<select name="{$name}" class="textbox">
{object_html_options options=$Languages key='GetLanguageCode' label='GetDisplayName' selected=$setting->Value|strtolower}
</select>
{elseif $setting->Type == ConfigSettingType::String}
<input type="text" size="50" name="{$name}" value="{$setting->Value|escape}" class="textbox"/>
{else}
<label>{translate key="True"}<input type="radio" value="true" name="{$name}"{if $setting->Value == 'true'}
checked="checked"{/if} /></label>
<label>{translate key="False"}<input type="radio" value="false"
name="{$name}"{if $setting->Value == 'false'} checked="checked"{/if} /></label>
{/if}
</li>
{/foreach}
{/function}
<h1>{translate key=ManageConfiguration}</h1>
{if !$IsPageEnabled}
<div class="warning">
{translate key=ConfigurationUiNotEnabled}
</div>
{/if}
{if !$IsConfigFileWritable}
<div class="warning">
{translate key=ConfigurationFileNotWritable}
</div>
{/if}
{if $IsPageEnabled && $IsConfigFileWritable}
{assign var=HelpUrl value="$ScriptUrl/help.php?ht=admin"}
<h3>{translate key=ConfigurationUpdateHelp args=$HelpUrl}</h3>
<div id="updatedMessage" class="success" style="display:none">
{translate key=ConfigurationUpdated}
</div>
<div id="configSettings">
<input type="button" value="{translate key=Update}" class='button save'/>
<form id="frmConfigSettings" method="post" ajaxAction="{ConfigActions::Update}" action="{$smarty.server.SCRIPT_NAME}">
<h3>{translate key=GeneralConfigSettings}</h3>
<fieldset>
<ul class="no-style config-settings">
{list_settings settings=$Settings}
</ul>
</fieldset>
{foreach from=$SectionSettings key=section item=settings}
<h3>{$section}</h3>
<fieldset>
<ul class="no-style config-settings">
{list_settings settings=$settings}
</ul>
</fieldset>
{/foreach}
<input type="hidden" name="setting_names" value="{$SettingNames}"/>
</form>
<input type="button" value="{translate key=Update}" class='button save'/>
</div>
{jsfile src="admin/edit.js"}
{jsfile src="js/jquery.form-3.09.min.js"}
{jsfile src="js/jquery.colorbox-min.js"}
{jsfile src="admin/configuration.js"}
<script type="text/javascript">
$(document).ready(function ()
{
var config = new Configuration();
config.init();
});
</script>
<div id="modalDiv" style="display:none;text-align:center; top:15%;position:relative;">
<h3>{translate key=Working}</h3>
{html_image src="reservation_submitting.gif"}
</div>
{/if}
{include file='globalfooter.tpl'}