source: trunk/admin/template/goto/install.tpl @ 4410

Revision 4410, 5.4 KB checked in by nikrou, 9 years ago (diff)

Feature 1255 :

  • add postgres database engine
  • change installation process to allow postgres or mysql database
  • Property svn:eol-style set to LF
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2"http://www.w3.org/TR/html4/strict.dtd">
3<html lang="{$lang_info.code}" dir="{$lang_info.direction}">
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset={$T_CONTENT_ENCODING}">
6<meta http-equiv="Content-script-type" content="text/javascript">
7<meta http-equiv="Content-Style-Type" content="text/css">
8<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}template-common/favicon.ico">
9<link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/layout.css">
10<link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/default-colors.css">
11<link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/theme/{$themeconf.theme}/theme.css">
12{literal}
13<style type="text/css">
14.content {
15 width: 800px;
16 margin: auto;
17 text-align: center;
18}
19
20.table2 {
21  width: 100%;
22  margin-bottom: 1em !important;
23}
24
25TD {
26  text-align: left;
27  padding: 0.1em 0.5em;
28  height: 2.5em;
29}
30
31.sql_content, .infos a {
32  color: #ff3363;
33}
34</style>
35{/literal}
36<title>Piwigo {$RELEASE} - {'Installation'|@translate}</title>
37</head>
38
39<body>
40<div id="headbranch"></div> {* Dummy block for double background management *}
41<div id="the_page">
42<div id="theHeader"></div>
43<div id="content" class="content">
44
45<h2>Piwigo {$RELEASE} - {'Installation'|@translate}</h2>
46
47{if isset($errors)}
48<div class="errors">
49  <ul>
50    {foreach from=$errors item=error}
51    <li>{$error}</li>
52    {/foreach}
53  </ul>
54</div>
55{/if}
56
57{if isset($infos)}
58<div class="infos">
59  <ul>
60    {foreach from=$infos item=info}
61    <li>{$info}</li>
62    {/foreach}
63  </ul>
64</div>
65{/if}
66
67{if isset($install)}
68<form method="POST" action="{$F_ACTION}" name="install_form">
69
70  <table class="table2">
71    <tr class="throw">
72      <th colspan="2">{'Initial_config'|@translate}</th>
73    </tr>
74    <tr>
75      <td style="width: 30%">{'Default_lang'|@translate}</td>
76      <td>
77    <select name="language" onchange="document.location = 'install.php?language='+this.options[this.selectedIndex].value;">
78    {html_options options=$language_options selected=$language_selection}
79    </select>
80      </td>
81    </tr>
82  </table>
83  <table class="table2">
84    <tr class="throw">
85      <th colspan="3">{'step1_title'|@translate}</th>
86    </tr>
87    {if count($F_DB_ENGINES)>1}
88    <tr>
89      <td style="width: 30%;">{'step1_dbengine'|@translate}</td>
90      <td>
91        <select name="dblayer">
92          {html_options options=$F_DB_ENGINES selected=$F_DB_LAYER}
93        </select>   
94      </td>
95      <td>{'step1_dbengine_info'|@translate}</td>
96    {else}
97    <td colspan="3">
98    <input type="hidden" name="dbengine" value="{$F_DB_LAYER}">
99    </td>
100    {/if}
101    </tr>
102    <tr>
103      <td style="width: 30%;">{'step1_host'|@translate}</td>
104      <td align=center><input type="text" name="dbhost" value="{$F_DB_HOST}"></td>
105      <td>{'step1_host_info'|@translate}</td>
106    </tr>
107    <tr>
108      <td>{'step1_user'|@translate}</td>
109      <td align=center><input type="text" name="dbuser" value="{$F_DB_USER}"></td>
110      <td>{'step1_user_info'|@translate}</td>
111    </tr>
112    <tr>
113      <td>{'step1_pass'|@translate}</td>
114      <td align=center><input type="password" name="dbpasswd" value=""></td>
115      <td>{'step1_pass_info'|@translate}</td>
116    </tr>
117    <tr>
118      <td>{'step1_database'|@translate}</td>
119      <td align=center><input type="text" name="dbname" value="{$F_DB_NAME}"></td>
120      <td>{'step1_database_info'|@translate}</td>
121    </tr>
122    <tr>
123      <td>{'step1_prefix'|@translate}</td>
124      <td align=center><input type="text" name="prefix" value="{$F_DB_PREFIX}"></td>
125      <td>{'step1_prefix_info'|@translate}</td>
126    </tr>
127  </table>
128
129  <table class="table2">
130    <tr class="throw">
131      <th colspan="3">{'step2_title'|@translate}</th>
132    </tr>
133    <tr>
134      <td style="width: 30%;">{'install_webmaster'|@translate}</td>
135      <td align="center"><input type="text" name="admin_name" value="{$F_ADMIN}"></td>
136      <td>{'install_webmaster_info'|@translate}</td>
137    </tr>
138    <tr>
139      <td>{'step2_pwd'|@translate}</td>
140      <td align="center"><input type="password" name="admin_pass1" value=""></td>
141      <td>{'step2_pwd_info'|@translate}</td>
142    </tr>
143    <tr>
144      <td>{'step2_pwd_conf'|@translate}</td>
145      <td align="center"><input type="password" name="admin_pass2" value=""></td>
146      <td>{'step2_pwd_conf_info'|@translate}</td>
147    </tr>
148    <tr>
149      <td>{'conf_mail_webmaster'|@translate}</td>
150      <td align="center"><input type="text" name="admin_mail" value="{$F_ADMIN_EMAIL}"></td>
151      <td>{'conf_mail_webmaster_info'|@translate}</td>
152    </tr>
153  </table>
154
155  <table>
156    <tr>
157      <td style="text-align: center;">
158        <input class="submit" type="submit" name="install" value="{'Start_Install'|@translate}">
159      </td>
160    </tr>
161  </table>
162</form>
163{else}
164<p>
165  <br />
166  <input type="button" name="home" value="{'home'|@translate}" onClick="window.open('index.php');"/>
167  <input type="button" name="admin" value="{'admin'|@translate}" onClick="window.open('admin.php');"/>
168</p>
169
170<div class="infos">
171  <ul>
172    <li>{'Subscribe to Piwigo Announcements Newsletter'|@translate}</li>
173  </ul>
174</div>
175
176<p>
177  <br />
178  <input type="button" name="subscribe" value="{'Subscribe %s'|@translate|@sprintf:$F_ADMIN_EMAIL}" onClick="window.open('{$SUBSCRIBE_BASE_URL}{$F_ADMIN_EMAIL}');"/>
179</p>
180{/if}
181</div> {* content *}
182<div style="text-align: center">{$L_INSTALL_HELP}</div>
183</div> {* the_page *}
184</body>
185</html>
Note: See TracBrowser for help on using the repository browser.