aboutsummaryrefslogtreecommitdiffstats
path: root/admin/template/goto/install.tpl
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2010-02-27 20:00:00 +0000
committernikrou <nikrou@piwigo.org>2010-02-27 20:00:00 +0000
commitd4287e2ad82770d8903dc1eb6cb906bb690de63a (patch)
tree614d7d8e12c9cbf94ba09682e09206aef370dd82 /admin/template/goto/install.tpl
parent4986d620e35d0ddecfb88c444cc220d379a48cda (diff)
Feature 1460 : Customize form installation depending on database engine
- sqlite is proposed by default if severals database engine are available (cf conf) - sqlite is proposed before pdo-sqlite - remove host, user and password for sqlite git-svn-id: http://piwigo.org/svn/trunk@4985 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/template/goto/install.tpl10
1 files changed, 8 insertions, 2 deletions
diff --git a/admin/template/goto/install.tpl b/admin/template/goto/install.tpl
index 6976d8ccc..2b83d3bf4 100644
--- a/admin/template/goto/install.tpl
+++ b/admin/template/goto/install.tpl
@@ -9,6 +9,7 @@
<link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/layout.css">
<link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/default-colors.css">
<link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/theme/{$themeconf.theme}/theme.css">
+{include file="include/install.inc.tpl"}
{literal}
<style type="text/css">
.content {
@@ -88,8 +89,13 @@ TD {
<tr>
<td style="width: 30%;">{'step1_dbengine'|@translate}</td>
<td>
- <select name="dblayer">
- {html_options options=$F_DB_ENGINES selected=$F_DB_LAYER}
+ <select name="dblayer" id="dblayer">
+ {foreach from=$F_DB_ENGINES key=k item=v}
+ <option value="{$k}"
+ {if $k==$F_DB_LAYER or $v.selected} selected="selected"{/if}
+ {if $v.available!=1} disabled="disabled"{/if}
+ >{$v.label}</option>
+ {/foreach}
</select>
</td>
<td>{'step1_dbengine_info'|@translate}</td>