74 lines
4.4 KiB
HTML
74 lines
4.4 KiB
HTML
{include="header"}
|
|
|
|
{if condition="!$show_settings"}
|
|
<h2>{$i18n['edit_homepage_notice']}</h2>
|
|
<form method="post" id="notice_form" action="index.php?do=edit_notice">
|
|
<p>
|
|
<label for="textarea_notice">{$i18n['homepage_notice']}{$i18n['before_double_ponctuation']}:</label><br/>
|
|
<textarea name="notice" rows="15" id="textarea_notice">{$notice}</textarea>
|
|
</p>
|
|
<p><em>{$i18n['note']}{$i18n['before_double_ponctuation']}:</em> {$i18n['note_use_html']}</p>
|
|
<p class="center">
|
|
<input type="submit" value="{$i18n['submit']}"/>
|
|
<input type="hidden" name="token" value="{$token}"/>
|
|
</p>
|
|
</form>
|
|
|
|
{else}
|
|
<h2>{$i18n['settings']}</h2>
|
|
<form method="post" action="index.php?do=settings" id="settings_form">
|
|
<fieldset>
|
|
<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>
|
|
|
|
<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>
|
|
<p>
|
|
<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']}
|
|
</p>
|
|
<p>
|
|
<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']}
|
|
</p>
|
|
<p>
|
|
<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>
|
|
</fieldset>
|
|
<fieldset>
|
|
<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>
|
|
<p>
|
|
<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']}
|
|
</p>
|
|
<p><label for="currency">{$i18n['currency']}{$i18n['before_double_ponctuation']}: </label><input type="text" name="currency" id="currency" size="3" value="{$currency}"/></p>
|
|
<p>
|
|
<label for="timezone">{$i18n['timezone']}{$i18n['before_double_ponctuation']}: </label><input type="text" name="timezone" id="timezone" value="{$timezone}"/><br/>
|
|
{$i18n['timezone_doc']}
|
|
</p>
|
|
<p>
|
|
<label for="template">{$i18n['template']}{$i18n['before_double_ponctuation']}: </label>
|
|
<select name="template" id="template">
|
|
{loop="templates"}
|
|
<option value="{$value['value']}" {if condition="$value['value'] == $current_template"} selected="selected" {/if}>{$value['option']}</option>
|
|
{/loop}
|
|
</select
|
|
</p>
|
|
<p>
|
|
<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>
|
|
<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>
|
|
</fieldset>
|
|
<p class="center"><input type="submit" value="{$i18n['update_settings']}"><input type="hidden" name="token" value="{$token}"/></p>
|
|
</form>
|
|
|
|
{/if}
|
|
|
|
{include="footer"}
|