source: trunk/admin/themes/default/template/install.tpl @ 6348

Last change on this file since 6348 was 6348, checked in by plg, 14 years ago

merge r6347 from branch 2.1 to trunk

bug 1672: replace the language key where it's used.

File size: 9.3 KB
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}{$themeconf.icon_dir}/favicon.ico">
9
10{foreach from=$themes item=theme}
11{if isset($theme.local_head)}{include file=$theme.local_head}{/if}
12<link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/themes/{$theme.id}/theme.css">
13{/foreach}
14
15<script type="text/javascript" src="themes/default/js/jquery.packed.js"></script>
16{literal}
17<script type="text/javascript">
18$(function() {
19    $option_selected = $('#dblayer option:selected').attr('value');
20    if ($option_selected=='sqlite' || $option_selected=='pdo-sqlite') {
21       $('input[name=dbhost],input[name=dbuser],input[name=dbpasswd]').parent().parent().hide();
22    }
23    if ($option_selected=='mysql') {
24        $('#experimentalDbEngines').hide();
25    }
26
27    $('#dblayer').change(function() {
28        $db = this;
29        if ($db.value=='sqlite' || $db.value=='pdo-sqlite') {
30           $('input[name=dbhost],input[name=dbuser],input[name=dbpasswd]').parent().parent().hide();
31        } else {
32           $('input[name=dbhost],input[name=dbuser],input[name=dbpasswd]').parent().parent().show();
33        }
34
35        if ($db.value=='mysql') {
36            $('#experimentalDbEngines').hide();
37        }
38        else {
39            $('#experimentalDbEngines').show();
40        }
41      });
42  });
43
44$(document).ready(function() {
45  $("a.externalLink").click(function() {
46    window.open($(this).attr("href"));
47    return false;
48  });
49});
50
51</script>
52
53<style type="text/css">
54body {
55  background:url("admin/themes/roma/images/bottom-left-bg.jpg") no-repeat fixed left bottom #111111;
56}
57
58.content {
59 background:url("admin/themes/roma/images/fillet.png") repeat-x scroll left top #222222;
60 width: 800px;
61 margin: auto;
62 text-align: center;
63 padding: 5px;
64}
65
66#headbranch  {
67  background:url("admin/themes/roma/images/top-left-bg.jpg") no-repeat scroll left top transparent;
68}
69
70#theHeader {
71  display: block;
72  background:url("admin/themes/roma/images/piwigo_logo_sombre_214x100.png") no-repeat scroll 245px top transparent;
73}
74
75.content h2 {
76  display:block;
77  font-size:28px;
78  height:104px;
79  width:54%;
80  color:#666666;
81  letter-spacing:-1px;
82  margin:0 30px 3px 20px;
83  overflow:hidden;
84  position:absolute;
85  right:0;
86  text-align:right;
87  top:0;
88  width:770px;
89  text-align:right;
90  text-transform:none;
91}
92
93table.table2 {
94  width: 100%;
95  margin-bottom: 1em !important;
96  border:0;
97}
98
99TD {
100  text-align: left;
101  padding: 0.1em 0.5em;
102  height: 2.5em;
103}
104
105.infos {
106  background-color:transparent;
107  border:none;
108  color:#999;
109}
110
111.sql_content, .infos a {
112  color: #ff3363;
113}
114
115.config_creation_failed {
116  text-align:left;
117  border:3px solid #F20D00;
118  color:#999;
119  margin:20px;
120  padding:0px 20px 5px 20px;
121  background-image:url(admin/themes/default/icon/errors.png);
122  background-repeat:no-repeat;
123}
124
125#experimentalDbEngines TD {border:2px solid #666;background-color:#444; color:#ccc;}
126</style>
127{/literal}
128<title>Piwigo {$RELEASE} - {'Installation'|@translate}</title>
129</head>
130
131<body>
132<div id="headbranch"></div> {* Dummy block for double background management *}
133<div id="the_page">
134<div id="theHeader"></div>
135<div id="content" class="content">
136
137<h2>Piwigo {$RELEASE} - {'Installation'|@translate}</h2>
138
139{if isset($config_creation_failed)}
140<div class="config_creation_failed">
141  <p style="margin-left:30px;">
142    <strong>{'Creation of config file local/config/database.inc.php failed.'|@translate}</strong>
143  </p>
144  <ul>
145    <li>
146      <p>{'You can download the config file and upload it to local/config directory of your installation.'|@translate}</p>
147      <p style="text-align:center">
148          <input type="button" value="{'Download the config file'|@translate}" onClick="window.open('{$config_url}');">
149      </p>
150    </li>
151    <li>
152      <p>{'An alternate solution is to copy the text in the box above and paste it into the file "local/config/database.inc.php" (Warning : database.inc.php must only contain what is in the textarea, no line return or space character)'|@translate}</p>
153      <textarea rows="15" cols="70">{$config_file_content}</textarea>
154    </li>
155  </ul>
156</div>
157{/if}
158
159{if isset($errors)}
160<div class="errors">
161  <ul>
162    {foreach from=$errors item=error}
163    <li>{$error}</li>
164    {/foreach}
165  </ul>
166</div>
167{/if}
168
169{if isset($infos)}
170<div class="infos">
171  <ul>
172    {foreach from=$infos item=info}
173    <li>{$info}</li>
174    {/foreach}
175  </ul>
176</div>
177{/if}
178
179{if isset($install)}
180<form method="POST" action="{$F_ACTION}" name="install_form">
181
182  <table class="table2">
183    <tr class="throw">
184      <th colspan="2">{'Basic configuration'|@translate}</th>
185    </tr>
186    <tr>
187      <td style="width: 30%">{'Default gallery language'|@translate}</td>
188      <td>
189    <select name="language" onchange="document.location = 'install.php?language='+this.options[this.selectedIndex].value;">
190    {html_options options=$language_options selected=$language_selection}
191    </select>
192      </td>
193    </tr>
194  </table>
195  <table class="table2">
196    <tr class="throw">
197      <th colspan="3">{'Database configuration'|@translate}</th>
198    </tr>
199    {if count($F_DB_ENGINES)>1}
200    <tr>
201      <td style="width: 30%;">{'Database type'|@translate}</td>
202      <td>
203        <select name="dblayer" id="dblayer">
204          {foreach from=$F_DB_ENGINES key=k item=v}
205          <option value="{$k}"
206                  {if $k==$F_DB_LAYER and $v.available} selected="selected"{/if}
207                  {if !$v.available} disabled="disabled"{/if}
208                  >{$v.label}</option>
209          {/foreach}
210        </select>   
211      </td>
212      <td>{'The type of database your piwigo data will be store in'|@translate}</td>
213    {else}
214    <td colspan="3">
215    <input type="hidden" name="dbengine" value="{$F_DB_LAYER}">
216    </td>
217    {/if}
218    </tr>
219    <tr id="experimentalDbEngines">
220      <td colspan="3">
221      {'SQLite and PostgreSQL are currently in experimental state.'|@translate}
222      <a href="http://piwigo.org/forum/viewtopic.php?id=15927" class="externalLink">{'Learn more'|@translate}</a>
223      </td>
224    </tr>
225    <tr>
226      <td style="width: 30%;">{'Host'|@translate}</td>
227      <td align=center><input type="text" name="dbhost" value="{$F_DB_HOST}"></td>
228      <td>{'localhost, sql.multimania.com, toto.freesurf.fr'|@translate}</td>
229    </tr>
230    <tr>
231      <td>{'User'|@translate}</td>
232      <td align=center><input type="text" name="dbuser" value="{$F_DB_USER}"></td>
233      <td>{'user login given by your host provider'|@translate}</td>
234    </tr>
235    <tr>
236      <td>{'Password'|@translate}</td>
237      <td align=center><input type="password" name="dbpasswd" value=""></td>
238      <td>{'user password given by your host provider'|@translate}</td>
239    </tr>
240    <tr>
241      <td>{'Database name'|@translate}</td>
242      <td align=center><input type="text" name="dbname" value="{$F_DB_NAME}"></td>
243      <td>{'also given by your host provider'|@translate}</td>
244    </tr>
245    <tr>
246      <td>{'Database table prefix'|@translate}</td>
247      <td align=center><input type="text" name="prefix" value="{$F_DB_PREFIX}"></td>
248      <td>{'database tables names will be prefixed with it (enables you to manage better your tables)'|@translate}</td>
249    </tr>
250  </table>
251
252  <table class="table2">
253    <tr class="throw">
254      <th colspan="3">{'Admin configuration'|@translate}</th>
255    </tr>
256    <tr>
257      <td style="width: 30%;">{'Webmaster login'|@translate}</td>
258      <td align="center"><input type="text" name="admin_name" value="{$F_ADMIN}"></td>
259      <td>{'It will be shown to the visitors. It is necessary for website administration'|@translate}</td>
260    </tr>
261    <tr>
262      <td>{'Webmaster password'|@translate}</td>
263      <td align="center"><input type="password" name="admin_pass1" value=""></td>
264      <td>{'Keep it confidential, it enables you to access administration panel'|@translate}</td>
265    </tr>
266    <tr>
267      <td>{'Password [confirm]'|@translate}</td>
268      <td align="center"><input type="password" name="admin_pass2" value=""></td>
269      <td>{'verification'|@translate}</td>
270    </tr>
271    <tr>
272      <td>{'Webmaster mail address'|@translate}</td>
273      <td align="center"><input type="text" name="admin_mail" value="{$F_ADMIN_EMAIL}"></td>
274      <td>{'Visitors will be able to contact site administrator with this mail'|@translate}</td>
275    </tr>
276  </table>
277
278  <table>
279    <tr>
280      <td style="text-align: center;">
281        <input class="submit" type="submit" name="install" value="{'Start Install'|@translate}">
282      </td>
283    </tr>
284  </table>
285</form>
286{else}
287<p>
288  <input type="button" name="Home" value="{'Visit Gallery'|@translate}" onClick="window.open('index.php');">
289</p>
290
291{if !isset($migration)}
292<div class="infos">
293  <ul>
294    <li>{'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'|@translate}</li>
295  </ul>
296</div>
297
298<p>
299  <input type="button" name="subscribe" value="{'Subscribe %s'|@translate|@sprintf:$F_ADMIN_EMAIL}" onClick="window.open('{$SUBSCRIBE_BASE_URL}{$F_ADMIN_EMAIL}');">
300</p>
301{/if}
302{/if}
303</div> {* content *}
304<div style="text-align: center">{$L_INSTALL_HELP}</div>
305</div> {* the_page *}
306</body>
307</html>
Note: See TracBrowser for help on using the repository browser.