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

Last change on this file since 12427 was 12427, checked in by rvelices, 12 years ago

bug 2469 compiled_template_cache_language option does not work properly on some language keys because of double escaping

  • Property svn:eol-style set to LF
File size: 8.6 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{get_combined_css}
11{foreach from=$themes item=theme}
12{if $theme.load_css}
13{combine_css path="admin/themes/`$theme.id`/theme.css" order=-10}
14{/if}
15{/foreach}
16
17<!--[if IE 7]>
18  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/themes/default/fix-ie7.css">
19<![endif]-->
20
21<!-- BEGIN get_combined_scripts -->
22{get_combined_scripts load='header'}
23<!-- END get_combined_scripts -->
24
25{combine_script id='jquery' path='themes/default/js/jquery.min.js'}
26{literal}
27<script type="text/javascript">
28$(function() {
29$(document).ready(function() {
30  $("a.externalLink").click(function() {
31    window.open($(this).attr("href"));
32    return false;
33  });
34
35  $("#admin_mail").keyup(function() {
36    $(".adminEmail").text($(this).val());
37  });
38});
39
40</script>
41
42<style type="text/css">
43body {
44  font-size:12px;
45}
46
47.content {
48 width: 800px;
49 margin: auto;
50 text-align: center;
51 padding:0;
52 background-color:transparent !important;
53 border:none;
54}
55
56#theHeader {
57  display: block;
58  background:url("admin/themes/clear/images/piwigo_logo_big.png") no-repeat scroll center 20px transparent;
59  height:100px;
60}
61
62fieldset {
63  margin-top:20px;
64  background-color:#f1f1f1;
65}
66
67legend {
68  font-weight:bold;
69  letter-spacing:2px;
70}
71
72.content h2 {
73  display:block;
74  font-size:20px;
75  text-align:center;
76  /* margin-top:5px; */
77}
78
79table.table2 {
80  width: 100%;
81  border:0;
82}
83
84table.table2 td {
85  text-align: left;
86  padding: 5px 2px;
87}
88
89table.table2 td.fieldname {
90  font-weight:normal;
91}
92
93table.table2 td.fielddesc {
94  padding-left:10px;
95  font-style:italic;
96}
97
98input[type="submit"], input[type="button"], a.bigButton {
99  font-size:14px;
100  font-weight:bold;
101  letter-spacing:2px;
102  border:none;
103  background-color:#666666;
104  color:#fff;
105  padding:5px;
106  -moz-border-radius:5px;
107  -webkit-border-radius:5px;
108  border-radius:5px;
109}
110
111input[type="submit"]:hover, input[type="button"]:hover, a.bigButton:hover {
112  background-color:#ff7700;
113  color:white;
114}
115
116input[type="text"], input[type="password"], select {
117  background-color:#ddd;
118  border:2px solid #ccc;
119  -moz-border-radius:5px;
120  -webkit-border-radius:5px;
121  border-radius:5px;
122  padding:2px;
123}
124
125input[type="text"]:focus, input[type="password"]:focus, select:focus {
126  background-color:#fff;
127  border:2px solid #ff7700;
128}
129
130.sql_content, .infos a {
131  color: #ff3363;
132}
133
134.errors {
135  padding-bottom:5px;
136}
137
138</style>
139{/literal}
140
141{combine_script id='jquery.cluetip' load='async' require='jquery' path='themes/default/js/plugins/jquery.cluetip.js'}
142
143{footer_script require='jquery.cluetip'}
144jQuery().ready(function(){ldelim}
145        jQuery('.cluetip').cluetip({ldelim}
146                width: 300,
147                splitTitle: '|',
148                positionBy: 'bottomTop'
149        });
150});
151{/footer_script}
152
153
154<title>Piwigo {$RELEASE} - {'Installation'|@translate}</title>
155</head>
156
157<body>
158<div id="the_page">
159<div id="theHeader"></div>
160<div id="content" class="content">
161
162<h2>{'Version'|@translate} {$RELEASE} - {'Installation'|@translate}</h2>
163
164{if isset($config_creation_failed)}
165<div class="errors">
166  <p style="margin-left:30px;">
167    <strong>{'Creation of config file local/config/database.inc.php failed.'|@translate}</strong>
168  </p>
169  <ul>
170    <li>
171      <p>{'You can download the config file and upload it to local/config directory of your installation.'|@translate}</p>
172      <p style="text-align:center">
173          <input type="button" value="{'Download the config file'|@translate}" onClick="window.open('{$config_url}');">
174      </p>
175    </li>
176    <li>
177      <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>
178      <textarea rows="15" cols="70">{$config_file_content}</textarea>
179    </li>
180  </ul>
181</div>
182{/if}
183
184{if isset($errors)}
185<div class="errors">
186  <ul>
187    {foreach from=$errors item=error}
188    <li>{$error}</li>
189    {/foreach}
190  </ul>
191</div>
192{/if}
193
194{if isset($infos)}
195<div class="infos">
196  <ul>
197    {foreach from=$infos item=info}
198    <li>{$info}</li>
199    {/foreach}
200  </ul>
201</div>
202{/if}
203
204{if isset($install)}
205<form method="POST" action="{$F_ACTION}" name="install_form">
206
207<fieldset>
208  <legend>{'Basic configuration'|@translate}</legend>
209
210  <table class="table2">
211    <tr>
212      <td style="width: 30%">{'Default gallery language'|@translate}</td>
213      <td>
214    <select name="language" onchange="document.location = 'install.php?language='+this.options[this.selectedIndex].value;">
215    {html_options options=$language_options selected=$language_selection}
216    </select>
217      </td>
218    </tr>
219  </table>
220</fieldset>
221
222<fieldset>
223  <legend>{'Database configuration'|@translate}</legend>
224
225  <table class="table2">
226    <tr>
227      <td style="width: 30%;" class="fieldname">{'Host'|@translate}</td>
228      <td><input type="text" name="dbhost" value="{$F_DB_HOST}"></td>
229      <td class="fielddesc">{'localhost, sql.multimania.com, toto.freesurf.fr'|@translate}</td>
230    </tr>
231    <tr>
232      <td class="fieldname">{'User'|@translate}</td>
233      <td><input type="text" name="dbuser" value="{$F_DB_USER}"></td>
234      <td class="fielddesc">{'user login given by your host provider'|@translate}</td>
235    </tr>
236    <tr>
237      <td class="fieldname">{'Password'|@translate}</td>
238      <td><input type="password" name="dbpasswd" value=""></td>
239      <td class="fielddesc">{'user password given by your host provider'|@translate}</td>
240    </tr>
241    <tr>
242      <td class="fieldname">{'Database name'|@translate}</td>
243      <td><input type="text" name="dbname" value="{$F_DB_NAME}"></td>
244      <td class="fielddesc">{'also given by your host provider'|@translate}</td>
245    </tr>
246    <tr>
247      <td class="fieldname">{'Database table prefix'|@translate}</td>
248      <td><input type="text" name="prefix" value="{$F_DB_PREFIX}"></td>
249      <td class="fielddesc">{'database tables names will be prefixed with it (enables you to manage better your tables)'|@translate}</td>
250    </tr>
251  </table>
252
253</fieldset>
254<fieldset>
255  <legend>{'Admin configuration'|@translate}</legend>
256
257  <table class="table2">
258    <tr>
259      <td style="width: 30%;" class="fieldname">{'Webmaster login'|@translate}</td>
260      <td><input type="text" name="admin_name" value="{$F_ADMIN}"></td>
261      <td class="fielddesc">{'It will be shown to the visitors. It is necessary for website administration'|@translate}</td>
262    </tr>
263    <tr>
264      <td class="fieldname">{'Webmaster password'|@translate}</td>
265      <td><input type="password" name="admin_pass1" value=""></td>
266      <td class="fielddesc">{'Keep it confidential, it enables you to access administration panel'|@translate}</td>
267    </tr>
268    <tr>
269      <td class="fieldname">{'Password [confirm]'|@translate}</td>
270      <td><input type="password" name="admin_pass2" value=""></td>
271      <td class="fielddesc">{'verification'|@translate}</td>
272    </tr>
273    <tr>
274      <td class="fieldname">{'Webmaster mail address'|@translate}</td>
275      <td><input type="text" name="admin_mail" id="admin_mail" value="{$F_ADMIN_EMAIL}"></td>
276      <td class="fielddesc">{'Visitors will be able to contact site administrator with this mail'|@translate}</td>
277    </tr>
278    <tr>
279      <td>{'Options'|@translate}</options>
280      <td colspan="2">
281<label>
282<input type="checkbox" name="newsletter_subscribe"{if $F_NEWSLETTER_SUBSCRIBE} checked="checked"{/if}>
283<span class="cluetip" title="{'Piwigo Announcements Newsletter'|@translate}|{'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|@htmlspecialchars|@nl2br}">{'Subscribe %s to Piwigo Announcements Newsletter'|@translate|@sprintf:$EMAIL}</span>
284</label>
285<br>
286      </td>
287    </tr>
288  </table>
289
290</fieldset>
291
292  <div style="text-align:center; margin:20px 0 10px 0">
293    <input class="submit" type="submit" name="install" value="{'Start Install'|@translate}">
294  </div>
295</form>
296{else}
297<p>
298  <a class="bigButton" href="index.php">{'Visit Gallery'|@translate}</a>
299</p>
300{/if}
301</div> {* content *}
302<div style="text-align: center">{$L_INSTALL_HELP}</div>
303</div> {* the_page *}
304
305<!-- BEGIN get_combined_scripts -->
306{get_combined_scripts load='footer'}
307<!-- END get_combined_scripts -->
308
309</body>
310</html>
Note: See TracBrowser for help on using the repository browser.