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