source: trunk/admin/themes/default/template/upgrade.tpl @ 28703

Last change on this file since 28703 was 26401, checked in by plg, 10 years ago

feature 3016: upgrade script to Piwigo 2.6

  • Property svn:eol-style set to LF
File size: 4.9 KB
RevLine 
[2819]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=utf-8">
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
[9596]10{get_combined_css}
[5123]11{foreach from=$themes item=theme}
[9596]12{if $theme.load_css}
13{combine_css path="admin/themes/`$theme.id`/theme.css" order=-10}
14{/if}
[5123]15{/foreach}
16
[9596]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
[2819]25{literal}
26<style type="text/css">
[5257]27body {
[9596]28  font-size:12px;
[5257]29}
30
[2819]31.content {
[9596]32 width: 800px;
33 margin: auto;
34 text-align: center;
35 padding:0;
36 background-color:transparent !important;
37 border:none;
[2819]38}
[1927]39
[9596]40#content {
41  min-height:0;
[26401]42  border:none;
[5257]43}
44
45#theHeader {
46  display: block;
[9596]47  background:url("admin/themes/clear/images/piwigo_logo_big.png") no-repeat scroll center 20px transparent;
48  height:100px;
[5257]49}
50
[9596]51fieldset {
52  margin-top:20px;
53  background-color:#f1f1f1;
54}
55
56legend {
57  font-weight:bold;
58  letter-spacing:2px;
59}
60
61form fieldset p {
62  text-align:left;
63  margin:10px;
64}
65
[5257]66.content h2 {
67  display:block;
[9596]68  font-size:20px;
69  text-align:center;
70  /* margin-top:5px; */
[5257]71}
72
[9596]73table.table2 {
74  width: 100%;
75  border:0;
76}
77
78table.table2 td {
79  text-align: left;
80  padding: 5px 2px;
81}
82
83table.table2 td.fieldname {
84  font-weight:normal;
85}
86
87table.table2 td.fielddesc {
88  padding-left:10px;
89  font-style:italic;
90}
91
92input[type="submit"], input[type="button"], a.bigButton {
93  font-size:14px;
94  font-weight:bold;
95  letter-spacing:2px;
96  border:none;
97  background-color:#666666;
98  color:#fff;
99  padding:5px;
100  -moz-border-radius:5px;
101}
102
103input[type="submit"]:hover, input[type="button"]:hover, a.bigButton:hover {
104  background-color:#ff7700;
105  color:white;
106}
107
108input[type="text"], input[type="password"], select {
109  background-color:#ddd;
110  border:2px solid #ccc;
111  -moz-border-radius:5px;
112  padding:2px;
113}
114
115input[type="text"]:focus, input[type="password"]:focus, select:focus {
116  background-color:#fff;
117  border:2px solid #ff7700;
118}
119
120.sql_content, .infos a {
121  color: #ff3363;
122}
123
124.errors {
125  padding-bottom:5px;
126}
127
[2819]128</style>
129{/literal}
130<title>Piwigo {$RELEASE} - {'Upgrade'|@translate}</title>
131</head>
[1927]132
[2819]133<body>
[2998]134<div id="the_page">
[2819]135<div id="theHeader"></div>
136<div id="content" class="content">
[1927]137
[2819]138{if isset($introduction)}
[9596]139<h2>{'Version'|@translate} {$RELEASE} - {'Upgrade'|@translate}</h2>
[1927]140
[2836]141{if isset($errors)}
142<div class="errors">
143  <ul>
144    {foreach from=$errors item=error}
145    <li>{$error}</li>
146    {/foreach}
147  </ul>
148</div>
149{/if}
[1927]150
[9596]151<form method="POST" action="{$introduction.F_ACTION}" name="upgrade_form">
152
153<fieldset>
[2836]154<table>
155  <tr>
[5021]156    <td>{'Language'|@translate}</td>
[2836]157    <td>
158      <select name="language" onchange="document.location = 'upgrade.php?language='+this.options[this.selectedIndex].value;">
159        {html_options options=$language_options selected=$language_selection}
160      </select>
161    </td>
162  </tr>
163</table>
164
[25005]165<p>{'This page proposes to upgrade your database corresponding to your old version of Piwigo to the current version. The upgrade assistant thinks you are currently running a <strong>release %s</strong> (or equivalent).'|@translate:$introduction.CURRENT_RELEASE}</p>
[2836]166{if isset($login)}
[5021]167<p>{'Only administrator can run upgrade: please sign in below.'|@translate}</p>
[2836]168{/if}
[1927]169
[2836]170{if isset($login)}
171<table>
172  <tr>
173    <td>{'Username'|@translate}</td>
[3185]174    <td><input type="text" name="username" id="username" size="25" maxlength="40" style="width: 150px;"></td>
[2836]175  </tr>
176  <tr>
177    <td>{'Password'|@translate}</td>
[3185]178    <td><input type="password" name="password" id="password" size="25" maxlength="25" style="width: 150px;"></td>
[2836]179  </tr>
180</table>
181{/if}
[9596]182</fieldset>
[2819]183<p style="text-align: center;">
[25005]184<input class="submit" type="submit" name="submit" value="{'Upgrade from version %s to %s'|@translate:$introduction.CURRENT_RELEASE:$RELEASE}">
[2819]185</p>
[2836]186</form>
187<!--
188<p style="text-align: center;">
[25005]189<a href="{$introduction.RUN_UPGRADE_URL}">{'Upgrade from version %s to %s'|@translate:$introduction.CURRENT_RELEASE:$RELEASE}</a>
[2836]190</p>
191-->
192
[2819]193{/if}
[1927]194
[2819]195{if isset($upgrade)}
[25005]196<h2>{'Upgrade from version %s to %s'|@translate:$upgrade.VERSION:$RELEASE}</h2>
[2254]197
[9596]198<fieldset>
199<legend>{'Statistics'|@translate}</legend>
[2819]200<ul>
201  <li>{'total upgrade time'|@translate} : {$upgrade.TOTAL_TIME}</li>
202  <li>{'total SQL time'|@translate} : {$upgrade.SQL_TIME}</li>
203  <li>{'SQL queries'|@translate} : {$upgrade.NB_QUERIES}</li>
204</ul>
[9596]205</fieldset>
[1927]206
[9596]207<fieldset>
208<legend>{'Upgrade informations'|@translate}</legend>
[2819]209<ul>
210  {foreach from=$infos item=info}
211  <li>{$info}</li>
212  {/foreach}
213</ul>
[9596]214</fieldset>
[2884]215
[9596]216<p>
217  <a class="bigButton" href="index.php">{'Home'|@translate}</a>
218</p>
[2819]219{/if}
220
221</div> {* content *}
[3203]222<div>{$L_UPGRADE_HELP}</div>
[2998]223</div> {* the_page *}
[2819]224</body>
[1927]225</html>
Note: See TracBrowser for help on using the repository browser.