]> git.mxchange.org Git - mailer.git/blob - templates/de/html/surfbar/surfbar_frame_top.tpl
Even some more HTML cleanups #2
[mailer.git] / templates / de / html / surfbar / surfbar_frame_top.tpl
1 <table border="0" cellspacing="0" cellpadding="0" width="100%" id="surfbar_table">
2 <tr>
3         <td id="surfbar_td">
4                 &raquo;<span id="surfbar_points">$content[xxx],$content[xxx]&nbsp; {?POINTS?}</span> in
5                 <span id="surfbar_counter">$content[xxx]</span>&nbsp;<span
6                  id="surfbar_counter_word">Sekunden</span>&laquo;&nbsp;&raquo;<span
7                  id="surfbar_reload">X</span> von <span
8                  id="surfbar_max">X</span> im Reload&laquo;<br />
9
10                 &raquo;<a href="$content[url]" target="_blank">Aktuelle Seite in neuem
11                 Fenster &ouml;ffnen</a>&laquo;&nbsp;<span id="surfbar_navi">[<a
12                  href="#" onclick="return StartStopCounter();" id="start">Anhalten</a>|<a
13                  target="_parent" href="{%url=login.php%}">Loginbereich</a>|<a
14                  target="_parent" href="{%url=modules.ph?module=login&amp;what=logout%}">Ausloggen</a>|<a
15                  href="javascript:window.close()">Schliessen</a>]</span><br />
16
17                 &raquo;{?MAIN_TITLE?} ist f&uuml;r den Inhalt nicht verantwortlich!&laquo;
18         </td>
19 </tr>
20 </table>
21 <script type="text/javascript">
22 <!--
23 // @TODO Try to rewrite this JavaScript to js.php?js=surfbar_frame_top (wouldn't be easy)
24 var currCounter = "$content[reload]";
25 var maxCounter = "$content[reload]";
26 var counter = document.getElementById("surfbar_counter");
27 var points = document.getElementById("surfbar_points");
28 var reload = document.getElementById("surfbar_reload");
29 var max = document.getElementById("surfbar_max");
30 var countDown = null;
31
32 function StartStopCounter () {
33         if (countDown == null) {
34                 // Start counter
35                 document.getElementById("start").innerHTML = "Anhalten";
36                 countDown = window.setInterval("StartCounter()", 1000);
37         } else {
38                 document.getElementById("start").innerHTML = "Weiter";
39                 window.clearInterval(countDown);
40                 countDown = null;
41         }
42         return false;
43 }
44
45 function Init() {
46         countDown = window.setInterval("StartCounter()", 1000);
47         window.setTimeout("InitCounter()", 500);
48 }
49
50 function Confirm() {
51         parent.surfbar_url.location="{%url=surfbar.php?id=$content[id]&check=$content[check]&salt=$content[salt]%}";
52 }
53
54 function ReloadThis() {
55         parent.surfbar_stats.location.reload();
56         this.location.reload();
57 }
58
59 function InitCounter() {
60         parent.surfbar_url.location.href = '$content[url]';
61         counter.innerHTML = '$content[reload]';
62         points.innerHTML  = '$content[reward]';
63         reload.innerHTML  = '$content[curr_reload]';
64         max.innerHTML     = '$content[max_urls]';
65 }
66
67 function StartCounter() {
68         if (currCounter < 1) {
69                 return false;
70         }
71
72         currCounter--;
73         counter.innerHTML = currCounter;
74
75         if (currCounter == 0) {
76                 clearInterval(countDown);
77                 Confirm();
78                 window.setTimeout("ReloadThis()", 500);
79         }
80 }
81
82 Init();
83
84 //-->
85 </script>