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

Last change on this file since 12886 was 12886, checked in by mistic100, 12 years ago

feature:2021 change contents of the mail + add option on admin/user_list

  • Property svn:eol-style set to LF
File size: 8.8 KB
RevLine 
[996]1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2"http://www.w3.org/TR/html4/strict.dtd">
[2819]3<html lang="{$lang_info.code}" dir="{$lang_info.direction}">
[859]4<head>
[2248]5<meta http-equiv="Content-Type" content="text/html; charset={$T_CONTENT_ENCODING}">
[996]6<meta http-equiv="Content-script-type" content="text/javascript">
7<meta http-equiv="Content-Style-Type" content="text/css">
[5123]8<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico">
9
[8310]10{get_combined_css}
[5123]11{foreach from=$themes item=theme}
[8310]12{if $theme.load_css}
13{combine_css path="admin/themes/`$theme.id`/theme.css" order=-10}
14{/if}
[5123]15{/foreach}
16
[9373]17<!--[if IE 7]>
18  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/themes/default/fix-ie7.css">
19<![endif]-->
20
[8311]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'}
[2248]26{literal}
[5123]27<script type="text/javascript">
28$(function() {
[6128]29$(document).ready(function() {
30  $("a.externalLink").click(function() {
31    window.open($(this).attr("href"));
32    return false;
33  });
[8311]34
35  $("#admin_mail").keyup(function() {
36    $(".adminEmail").text($(this).val());
37  });
[6128]38});
39
[5123]40</script>
41
[859]42<style type="text/css">
[5257]43body {
[8310]44  font-size:12px;
[5257]45}
46
[2747]47.content {
48 width: 800px;
49 margin: auto;
50 text-align: center;
[8310]51 padding:0;
52 background-color:transparent !important;
53 border:none;
[859]54}
55
[5257]56#theHeader {
57  display: block;
[8310]58  background:url("admin/themes/clear/images/piwigo_logo_big.png") no-repeat scroll center 20px transparent;
59  height:100px;
[5257]60}
61
[8310]62fieldset {
63  margin-top:20px;
64  background-color:#f1f1f1;
65}
66
67legend {
68  font-weight:bold;
69  letter-spacing:2px;
70}
71
[5257]72.content h2 {
73  display:block;
[8310]74  font-size:20px;
75  text-align:center;
76  /* margin-top:5px; */
[5257]77}
78
[6128]79table.table2 {
[2747]80  width: 100%;
[6128]81  border:0;
[859]82}
[1855]83
[8310]84table.table2 td {
[1855]85  text-align: left;
[8310]86  padding: 5px 2px;
[1855]87}
88
[8310]89table.table2 td.fieldname {
90  font-weight:normal;
91}
92
93table.table2 td.fielddesc {
94  padding-left:10px;
95  font-style:italic;
96}
97
[9008]98input[type="submit"], input[type="button"], a.bigButton {
[8310]99  font-size:14px;
100  font-weight:bold;
101  letter-spacing:2px;
[5408]102  border:none;
[8310]103  background-color:#666666;
104  color:#fff;
105  padding:5px;
106  -moz-border-radius:5px;
[12028]107  -webkit-border-radius:5px;
108  border-radius:5px;
[5408]109}
110
[9008]111input[type="submit"]:hover, input[type="button"]:hover, a.bigButton:hover {
[8310]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;
[12028]120  -webkit-border-radius:5px;
121  border-radius:5px;
[8310]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
[2752]130.sql_content, .infos a {
[2747]131  color: #ff3363;
[1855]132}
[5571]133
[8310]134.errors {
135  padding-bottom:5px;
[5571]136}
[6128]137
[859]138</style>
[2248]139{/literal}
[8311]140
[9554]141{combine_script id='jquery.cluetip' load='async' require='jquery' path='themes/default/js/plugins/jquery.cluetip.js'}
[8311]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
[2747]154<title>Piwigo {$RELEASE} - {'Installation'|@translate}</title>
[859]155</head>
[2747]156
[859]157<body>
[3074]158<div id="the_page">
[2747]159<div id="theHeader"></div>
160<div id="content" class="content">
[859]161
[8310]162<h2>{'Version'|@translate} {$RELEASE} - {'Installation'|@translate}</h2>
[2747]163
[5571]164{if isset($config_creation_failed)}
[8310]165<div class="errors">
[5571]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
[2747]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>
[2248]192{/if}
193
[2747]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
[2248]204{if isset($install)}
205<form method="POST" action="{$F_ACTION}" name="install_form">
[2747]206
[8310]207<fieldset>
208  <legend>{'Basic configuration'|@translate}</legend>
209
[2747]210  <table class="table2">
[859]211    <tr>
[5021]212      <td style="width: 30%">{'Default gallery language'|@translate}</td>
[2747]213      <td>
[2248]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>
[859]217      </td>
218    </tr>
[2747]219  </table>
[8310]220</fieldset>
221
222<fieldset>
223  <legend>{'Database configuration'|@translate}</legend>
224
[2747]225  <table class="table2">
[859]226    <tr>
[8310]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>
[859]230    </tr>
231    <tr>
[8310]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>
[859]235    </tr>
236    <tr>
[8310]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>
[859]240    </tr>
241    <tr>
[8310]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>
[859]245    </tr>
246    <tr>
[8310]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>
[859]250    </tr>
[2747]251  </table>
252
[8310]253</fieldset>
254<fieldset>
255  <legend>{'Admin configuration'|@translate}</legend>
256
[2747]257  <table class="table2">
[859]258    <tr>
[8310]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>
[859]262    </tr>
263    <tr>
[8310]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>
[859]267    </tr>
268    <tr>
[8310]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>
[859]272    </tr>
273    <tr>
[8310]274      <td class="fieldname">{'Webmaster mail address'|@translate}</td>
[8311]275      <td><input type="text" name="admin_mail" id="admin_mail" value="{$F_ADMIN_EMAIL}"></td>
[8310]276      <td class="fielddesc">{'Visitors will be able to contact site administrator with this mail'|@translate}</td>
[859]277    </tr>
[8311]278    <tr>
279      <td>{'Options'|@translate}</options>
280      <td colspan="2">
[12885]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        <label>
287          <input type="checkbox" name="send_password_by_mail" checked="checked">
[12886]288          {'Send my connection settings by email'|@translate}
[12885]289        </label>
[8311]290      </td>
291    </tr>
[2747]292  </table>
293
[8310]294</fieldset>
295
296  <div style="text-align:center; margin:20px 0 10px 0">
297    <input class="submit" type="submit" name="install" value="{'Start Install'|@translate}">
298  </div>
[859]299</form>
[2902]300{else}
301<p>
[9008]302  <a class="bigButton" href="index.php">{'Visit Gallery'|@translate}</a>
[2902]303</p>
[2248]304{/if}
[2747]305</div> {* content *}
306<div style="text-align: center">{$L_INSTALL_HELP}</div>
[3074]307</div> {* the_page *}
[8311]308
309<!-- BEGIN get_combined_scripts -->
310{get_combined_scripts load='footer'}
311<!-- END get_combined_scripts -->
312
[2747]313</body>
[996]314</html>
Note: See TracBrowser for help on using the repository browser.