2013-08-12 09:52:50 +02:00
{include="header"}
{if condition="!$show_settings"}
< h2 > Edit homepage notice< / h2 >
< form method = "post" id = "notice_form" action = "index.php?do=edit_notice" >
< p >
2014-08-30 23:39:41 +02:00
< label for = "textarea_notice" > Homepage notice:< / label > < br / >
2013-08-12 09:52:50 +02:00
< textarea name = "notice" rows = "15" id = "textarea_notice" > {$notice}< / textarea >
< / p >
2014-08-30 23:39:41 +02:00
< p > < em > Note:< / em > You can use HTML formatting in this form.< / p >
2013-08-30 20:07:52 +02:00
< p class = "center" >
2013-08-24 23:53:52 +02:00
< input type = "submit" value = "Submit" / >
< input type = "hidden" name = "token" value = "{$token}" / >
< / p >
2013-08-12 09:52:50 +02:00
< / form >
{else}
< h2 > Change settings of your Bouffe@Ulm installation< / h2 >
< form method = "post" action = "index.php?do=settings" id = "settings_form" >
< fieldset >
< legend > Database< / legend >
2014-08-30 23:39:41 +02:00
< p > < em > Note:< / em > Use these settings carefully. Your database won't be updated by the script as it was during install and you'll have to manually update it.< / p >
< p > < label for = "mysql_host" > MySQL host: < / label > < input type = "text" name = "mysql_host" id = "mysql_host" value = "{$mysql_host}" / > < / p >
2013-08-12 09:52:50 +02:00
2014-08-30 23:39:41 +02:00
< p > < label for = "mysql_login" > MySQL login: < / 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-30 23:39:41 +02:00
< label for = "mysql_password" > MySQL password: < / 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 = "Toggle visible" / > < / a > < br / >
< em > Note:< / em > Leave the above field blank if you don't want to change your password.
2013-08-12 09:52:50 +02:00
< / p >
< p >
2014-08-30 23:39:41 +02:00
< label for = "mysql_db" > Name of the MySQL database to use: < / label > < input type = "text" name = "mysql_db" id = "mysql_db" value = "{$mysql_db}" / > < br / >
< em > Note:< / em > You < em > must< / em > create this database first.
2013-08-12 09:52:50 +02:00
< / p >
< p >
2014-08-30 23:39:41 +02:00
< label for = "mysql_prefix" > Prefix for the created tables: < / label > < input type = "text" name = "mysql_prefix" id = "mysql_prefix" value = "{$mysql_prefix}" / > < br / >
< em > Note:< / em > Leave the field blank to not use any. You must create the necessary tables manually.< / p >
2013-08-12 09:52:50 +02:00
< / fieldset >
< fieldset >
< legend > General options< / legend >
2014-08-30 23:39:41 +02:00
< p > < label for = "instance_title" > Title to display in pages: < / 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-30 23:39:41 +02:00
< label for = "base_url" > Base URL: < / label > < input type = "text" size = "30" name = "base_url" id = "base_url" value = "{$base_url}" / > < br / >
< em > Note:< / em > This is the base URL from which you access this page. You must keep the trailing "/" in the above address.
2013-08-12 09:52:50 +02:00
< / p >
2014-08-30 23:39:41 +02:00
< p > < label for = "currency" > Currency: < / label > < input type = "text" name = "currency" id = "currency" size = "3" value = "{$currency}" / > < / p >
2013-08-13 19:37:11 +02:00
< p >
2014-08-30 23:39:41 +02:00
< label for = "timezone" > Timezone: < / label > < input type = "text" name = "timezone" id = "timezone" value = "{$timezone}" / > < br / >
< em > For example:< / em > Europe/Paris. See the doc for more info.
2013-08-13 19:37:11 +02:00
< / p >
2013-09-05 20:09:03 +02:00
< p >
2014-08-30 23:39:41 +02:00
< label for = "template" > Template: < / 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 >
2014-08-30 23:39:41 +02:00
< p > < label for = "lang" > Lang: < / label > < select name = "lang" id = "lang" > TODO< / select > < / p >
< p > < label for = "email_webmaster" > Webmaster's email (optionnal): < / label > < input type = "text" name = "email_webmaster" id = "email_webmaster" value = "{$email_webmaster}" / > < / p >
2013-08-12 09:52:50 +02:00
< / fieldset >
2013-08-24 23:53:52 +02:00
< p class = "center" > < input type = "submit" value = "Update settings" > < input type = "hidden" name = "token" value = "{$token}" / > < / p >
2013-08-12 09:52:50 +02:00
< / form >
{/if}
{include="footer"}