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

Last change on this file since 25005 was 25005, checked in by mistic100, 11 years ago

feature 2978: remove useless sprintf in the core

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