bouffeatulm/tpl/default/settings.html

74 lines
4.4 KiB
HTML
Raw Normal View History

2013-08-12 09:52:50 +02:00
{include="header"}
{if condition="!$show_settings"}
2014-08-31 14:27:57 +02:00
<h2>{$i18n['edit_homepage_notice']}</h2>
2013-08-12 09:52:50 +02:00
<form method="post" id="notice_form" action="index.php?do=edit_notice">
<p>
2014-08-31 14:27:57 +02:00
<label for="textarea_notice">{$i18n['homepage_notice']}{$i18n['before_double_ponctuation']}:</label><br/>
2013-08-12 09:52:50 +02:00
<textarea name="notice" rows="15" id="textarea_notice">{$notice}</textarea>
</p>
2014-08-31 14:27:57 +02:00
<p><em>{$i18n['note']}{$i18n['before_double_ponctuation']}:</em> {$i18n['note_use_html']}</p>
2013-08-30 20:07:52 +02:00
<p class="center">
2014-08-31 14:27:57 +02:00
<input type="submit" value="{$i18n['submit']}"/>
<input type="hidden" name="token" value="{$token}"/>
</p>
2013-08-12 09:52:50 +02:00
</form>
{else}
2014-08-31 14:27:57 +02:00
<h2>{$i18n['settings']}</h2>
2013-08-12 09:52:50 +02:00
<form method="post" action="index.php?do=settings" id="settings_form">
<fieldset>
2014-08-31 14:27:57 +02:00
<legend>{$i18n['database']}</legend>
<p><em>{$i18n['note']}{$i18n['before_double_ponctuation']}:</em> {$i18n['settings_note']}</p>
<p><label for="mysql_host">{$i18n['mysql_host']}{$i18n['before_double_ponctuation']}: </label><input type="text" name="mysql_host" id="mysql_host" value="{$mysql_host}"/></p>
2013-08-12 09:52:50 +02:00
2014-08-31 14:27:57 +02:00
<p><label for="mysql_login">{$i18n['mysql_login']}{$i18n['before_double_ponctuation']}: </label><input type="text" name="mysql_login" id="mysql_login" value="{$mysql_login}"/></p>
2013-08-12 09:52:50 +02:00
<p>
2014-08-31 14:27:57 +02:00
<label for="mysql_password">{$i18n['mysql_password']}{$i18n['before_double_ponctuation']}: </label><input type="password" name="mysql_password" id="mysql_password"/> <a href="" onclick="toggle_password('mysql_password'); return false;"><img src="img/toggleVisible.png" alt="{$i18n['before_double_ponctuation']}"/></a><br/>
<em>{$i18n['note']}{$i18n['before_double_ponctuation']}:</em> {$i18n['mysql_password_note']}
2013-08-12 09:52:50 +02:00
</p>
<p>
2014-08-31 14:27:57 +02:00
<label for="mysql_db">{$i18n['mysql_db']}{$i18n['before_double_ponctuation']}: </label><input type="text" name="mysql_db" id="mysql_db" value="{$mysql_db}"/><br/>
<em>{$i18n['note']}{$i18n['before_double_ponctuation']}:</em> {$i18n['mysql_db_note']}
2013-08-12 09:52:50 +02:00
</p>
<p>
2014-08-31 14:27:57 +02:00
<label for="mysql_prefix">{$i18n['mysql_prefix']}{$i18n['before_double_ponctuation']}: </label><input type="text" name="mysql_prefix" id="mysql_prefix" value="{$mysql_prefix}"/><br/>
<em>{$i18n['note']}{$i18n['before_double_ponctuation']}:</em> {$i18n['mysql_prefix_note']}</p>
2013-08-12 09:52:50 +02:00
</fieldset>
<fieldset>
2014-08-31 14:27:57 +02:00
<legend>{$i18n['general_options']}</legend>
<p><label for="instance_title">{$i18n['instance_title']}{$i18n['before_double_ponctuation']}: </label><input type="text" name="instance_title" id="instance_title" value="{$instance_title}"/></p>
2013-08-12 09:52:50 +02:00
<p>
2014-08-31 14:27:57 +02:00
<label for="base_url">{$i18n['base_url']}{$i18n['before_double_ponctuation']}: </label><input type="text" size="30" name="base_url" id="base_url" value="{$base_url}"/><br/>
<em>{$i18n['note']}{$i18n['before_double_ponctuation']}:</em> {$i18n['base_url_note']}
2013-08-12 09:52:50 +02:00
</p>
2014-08-31 14:27:57 +02:00
<p><label for="currency">{$i18n['currency']}{$i18n['before_double_ponctuation']}: </label><input type="text" name="currency" id="currency" size="3" value="{$currency}"/></p>
<p>
2014-08-31 14:27:57 +02:00
<label for="timezone">{$i18n['timezone']}{$i18n['before_double_ponctuation']}: </label><input type="text" name="timezone" id="timezone" value="{$timezone}"/><br/>
{$i18n['timezone_doc']}
</p>
2013-09-05 20:09:03 +02:00
<p>
2014-08-31 14:27:57 +02:00
<label for="template">{$i18n['template']}{$i18n['before_double_ponctuation']}: </label>
2013-09-05 20:09:03 +02:00
<select name="template" id="template">
{loop="templates"}
2013-09-21 16:19:01 +02:00
<option value="{$value['value']}" {if condition="$value['value'] == $current_template"} selected="selected" {/if}>{$value['option']}</option>
2013-09-05 20:09:03 +02:00
{/loop}
</select
</p>
<p>
2014-08-31 14:27:57 +02:00
<label for="lang">{$i18n['lang']}{$i18n['before_double_ponctuation']}: </label>
<select name="lang" id="lang">
{loop="$available_lang"}
<option value="{$value['value']}" {if="$value['value'] == $current_lang"}selected="selected"{/if}>{$value['option']}</option>
{/loop}
</select>
</p>
2014-08-31 14:27:57 +02:00
<p><label for="email_webmaster">{$i18n['webmaster_email']} ({$i18n['optionnal']}){$i18n['before_double_ponctuation']}: </label><input type="text" name="email_webmaster" id="email_webmaster" value="{$email_webmaster}"/></p>
2013-08-12 09:52:50 +02:00
</fieldset>
2014-08-31 14:27:57 +02:00
<p class="center"><input type="submit" value="{$i18n['update_settings']}"><input type="hidden" name="token" value="{$token}"/></p>
2013-08-12 09:52:50 +02:00
</form>
{/if}
{include="footer"}