source: branches/2.1/admin/themes/default/template/install.tpl @ 9374

Last change on this file since 9374 was 9374, checked in by Gotcha, 13 years ago

Merge r9373 from trunk to br2.1

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