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

Last change on this file since 25280 was 25279, checked in by plg, 11 years ago

syntax error

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