Rev 64 | Rev 192 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 64 | Rev 172 | ||
|---|---|---|---|
| Line -... | Line 1... | ||
| - | 1 | <?php header('Content-Type: text/html; charset=UTF-8'); ?> |
|
| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" |
2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" |
| 2 | "http://www.w3.org/TR/html4/strict.dtd"> |
3 | "http://www.w3.org/TR/html4/strict.dtd"> |
| 3 | <html lang="de"> |
4 | <html lang="de"> |
| 4 | <head> |
5 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
6 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| Line 20... | Line 21... | ||
| 20 | {
|
21 | {
|
| 21 | var prop = styleProperties[i]; |
22 | var prop = styleProperties[i]; |
| 22 | obj.style[prop] = style[prop]; |
23 | obj.style[prop] = style[prop]; |
| 23 | } |
24 | } |
| 24 | } |
25 | } |
| 25 | 26 | ||
| 26 | function editor() |
27 | function editor() |
| 27 | {
|
28 | {
|
| 28 | var div = document.createElement("div");
|
29 | var div = document.createElement("div");
|
| 29 | setStyle(div, {
|
30 | setStyle(div, {
|
| 30 | position: "fixed", |
31 | position: "fixed", |
| Line 91... | Line 92... | ||
| 91 | "lois-clark-the-new-adventures-of-superman": "lois-clark-the-new-adventures-of-superman-1993", |
92 | "lois-clark-the-new-adventures-of-superman": "lois-clark-the-new-adventures-of-superman-1993", |
| 92 | get: function (key) {
|
93 | get: function (key) {
|
| 93 | return this.hasOwnProperty(key) ? this[key] : key; |
94 | return this.hasOwnProperty(key) ? this[key] : key; |
| 94 | } |
95 | } |
| 95 | }; |
96 | }; |
| 96 | 97 | ||
| 97 | var f = function (e) {
|
98 | var f = function (e) {
|
| 98 | if (e && e.shiftKey && e.ctrlKey) |
99 | if (e && e.shiftKey && e.ctrlKey) |
| 99 | {
|
100 | {
|
| 100 | var key = map.get(this.textContent.toLowerCase() |
101 | var key = map.get(this.textContent.toLowerCase() |
| 101 | .replace(/[&:.,()–]/g, "").replace(/\s+/g, "-").replace("-de", ""));
|
102 | .replace(/[&:.,()–]/g, "").replace(/\s+/g, "-").replace("-de", ""));
|
| Line 128... | Line 129... | ||
| 128 | {
|
129 | {
|
| 129 | if ($timestamp === null) |
130 | if ($timestamp === null) |
| 130 | {
|
131 | {
|
| 131 | $timestamp = time(); |
132 | $timestamp = time(); |
| 132 | }
|
133 | }
|
| 133 | 134 | ||
| 134 | $format = preg_replace('#(?<!%)((?:%%)*)%e#', '\1%#d', $format); |
135 | $format = preg_replace('#(?<!%)((?:%%)*)%e#', '\1%#d', $format); |
| 135 | return strftime($format, $timestamp); |
136 | return strftime($format, $timestamp); |
| 136 | }
|
137 | }
|
| 137 | }
|
138 | }
|
| 138 | else
|
139 | else
|
| Line 141... | Line 142... | ||
| 141 | {
|
142 | {
|
| 142 | if ($timestamp === null) |
143 | if ($timestamp === null) |
| 143 | {
|
144 | {
|
| 144 | $timestamp = time(); |
145 | $timestamp = time(); |
| 145 | }
|
146 | }
|
| 146 | 147 | ||
| 147 | return strftime($format, $timestamp); |
148 | return strftime($format, $timestamp); |
| 148 | }
|
149 | }
|
| 149 | }
|
150 | }
|
| 150 | 151 | ||
| 151 | setlocale(LC_ALL, 'de_CH.UTF-8'); |
152 | setlocale(LC_ALL, 'de_CH.UTF-8'); |
| 152 | 153 | ||
| - | 154 | $min_series = $this->min_series; |
|
| 153 | foreach ($serien as $name => &$serie) |
155 | foreach ($this->serien as $name => $serie) |
| 154 | {
|
156 | {
|
| 155 | ?>
|
157 | ?>
|
| 156 | <tr> |
158 | <tr> |
| 157 | <td style="text-align: center"><?php
|
159 | <td style="text-align: center"><?php
|
| 158 | $recommended = ($name === $min_series); |
160 | $recommended = ($name === $min_series); |
| Line 186... | Line 188... | ||
| 186 | echo implode(', ', $serie['coverage']) . ' ('. $serie['count']; |
188 | echo implode(', ', $serie['coverage']) . ' ('. $serie['count']; |
| 187 | ?> von <?php $total = $serie['total']; echo $total; ?> Episoden)<?php |
189 | ?> von <?php $total = $serie['total']; echo $total; ?> Episoden)<?php |
| 188 | if (isset($serie['last_seen'])) |
190 | if (isset($serie['last_seen'])) |
| 189 | {
|
191 | {
|
| 190 | ?>; zuletzt am <?php |
192 | ?>; zuletzt am <?php |
| 191 | echo strftime_portable('%A, %e. %B %Y %H:%M %z', $serie['last_seen']); |
193 | echo utf8_encode(strftime_portable('%A, %e. %B %Y %H:%M %z', $serie['last_seen'])); |
| 192 | }
|
194 | }
|
| 193 | ?></div>
|
195 | ?></div>
|
| 194 | <div class="box"> |
196 | <div class="box"> |
| 195 | <div class="meter" |
197 | <div class="meter" |
| 196 | style="width: <?php
|
198 | style="width: <?php
|
| Line 230... | Line 232... | ||
| 230 | ?></div>
|
232 | ?></div>
|
| 231 | <?php
|
233 | <?php
|
| 232 | $offset += round($season / $total * 100, 1); |
234 | $offset += round($season / $total * 100, 1); |
| 233 | }
|
235 | }
|
| 234 | }
|
236 | }
|
| 235 | 237 | ||
| 236 | if (isset($serie['episodes'])) |
238 | if (isset($serie['episodes'])) |
| 237 | {
|
239 | {
|
| 238 | $prevNumber = null; |
240 | $prevNumber = null; |
| 239 | foreach ($serie['episodes'] as $episode => $description) |
241 | foreach ($serie['episodes'] as $episode => $description) |
| 240 | {
|
242 | {
|
| Line 265... | Line 267... | ||
| 265 | echo "{$episode_str}: " . htmlspecialchars($description); |
267 | echo "{$episode_str}: " . htmlspecialchars($description); |
| 266 | ?>"></div><?php |
268 | ?>"></div><?php |
| 267 | $prevNumber = $episode; |
269 | $prevNumber = $episode; |
| 268 | }
|
270 | }
|
| 269 | }
|
271 | }
|
| 270 | 272 | ||
| 271 | if (isset($serie['seen'])) |
273 | if (isset($serie['seen'])) |
| 272 | {
|
274 | {
|
| 273 | foreach ($serie['seen'] as $range) |
275 | foreach ($serie['seen'] as $range) |
| 274 | {
|
276 | {
|
| 275 | if (!is_array($range)) |
277 | if (!is_array($range)) |
| Line 287... | Line 289... | ||
| 287 | <?php
|
289 | <?php
|
| 288 | }
|
290 | }
|
| 289 | }
|
291 | }
|
| 290 | else
|
292 | else
|
| 291 | */
|
293 | */
|
| 292 | 294 | ||
| 293 | for ($episode = $range[0]; $episode <= $range[1]; ++$episode) |
295 | for ($episode = $range[0]; $episode <= $range[1]; ++$episode) |
| 294 | {
|
296 | {
|
| 295 | $episode_str = $episode; |
297 | $episode_str = $episode; |
| 296 | if (isset($serie['season_ranges']) && is_array($serie['season_ranges'])) |
298 | if (isset($serie['season_ranges']) && is_array($serie['season_ranges'])) |
| 297 | {
|
299 | {
|