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

Last change on this file since 5408 was 5408, checked in by plg, 14 years ago

Simplify installation message, no need to explain the following step, the
"no photo yet" feature makes the explanations useless at this point.

.infos admin block is used to display messages, I've set the background
transparent here, because it's the only message of the page. Anyway, I don't
think using .infos blocks are relevant if that's the only message on the page.

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