]> git.mxchange.org Git - mailer.git/blobdiff - templates/de/html/surfbar/surfbar_frame_top.tpl
mailer project continued:
[mailer.git] / templates / de / html / surfbar / surfbar_frame_top.tpl
index df7e2321dc5a9a55bc5675ed3da23600c52cb413..9753b0cb5d0800bda7bd5151a646ad2a0a4d012a 100644 (file)
@@ -1,85 +1,31 @@
+<div align="center">
 <table border="0" cellspacing="0" cellpadding="0" width="100%" id="surfbar_table">
 <tr>
        <td id="surfbar_td">
-               &raquo;<span id="surfbar_points">$content[xxx]=$content[xxx]&nbsp; {?POINTS?}</span> in
-               <span id="surfbar_counter">$content[xxx]</span>&nbsp;<span
-                id="surfbar_counter_word">Sekunden</span>&laquo;&nbsp;&raquo;<span
-                id="surfbar_reload">X</span> von <span
-                id="surfbar_max">X</span> im Reload&laquo;<br />
-
-               &raquo;<a href="$content[url]" target="_blank">Aktuelle Seite in neuem
-               Fenster &ouml;ffnen</a>&laquo;&nbsp;<span id="surfbar_navi">[<a
-                href="#" onclick="return StartStopCounter();" id="start">Anhalten</a>|<a
-                target="_parent" href="{%url=login.php%}">Loginbereich</a>|<a
-                target="_parent" href="{%url=modules.php?module=login&amp;what=logout%}">Ausloggen</a>|<a
-                href="javascript:window.close()">Schliessen</a>]</span><br />
-
-               &raquo;{?MAIN_TITLE?} ist f&uuml;r den Inhalt nicht verantwortlich!&laquo;
+               <div>
+                       &raquo;<span id="surfbar_points">$content[xxx]</span> {?POINTS?} in
+                       <span id="surfbar_counter" class="surfbar_counter">$content[xxx]</span>
+                       <span id="surfbar_counter_word">Sekunden</span>&laquo;
+                       &raquo;<span id="surfbar_reload">X</span> von
+                       <span id="surfbar_max">X</span> im Reload&laquo;
+               </div>
+
+               <div>
+                       &raquo;<a href="{%pipe,gerSurfbarUrl=$content[url_id]%}" target="_blank">Aktuelle Seite in neuem
+                       Fenster &ouml;ffnen</a>&laquo;
+                       <span id="surfbar_navi">[<a href="#" onclick="return startStopCounter();"
+                        id="start">{--MEMBER_SURFBAR_ACTION_PAUSE_SUBMIT--}</a>|<a target="_parent"
+                        href="{%url=login.php%}">Loginbereich</a>|<a target="_parent"
+                        href="{%url=modules.php?module=login&amp;what=logout%}">Ausloggen</a>|<a
+                        href="javascript:window.close()">Schliessen</a>]</span>
+               </div>
+
+               <div>
+                       &raquo;{?MAIN_TITLE?} ist f&uuml;r den Inhalt nicht verantwortlich!&laquo;
+               </div>
        </td>
 </tr>
 </table>
-<script type="text/javascript">
-<!--
-// @TODO Try to rewrite this JavaScript to js.php?js=surfbar_frame_top (wouldn't be easy)
-var currCounter = "$content[reload]";
-var maxCounter = "$content[reload]";
-var counter = document.getElementById("surfbar_counter");
-var points = document.getElementById("surfbar_points");
-var reload = document.getElementById("surfbar_reload");
-var max = document.getElementById("surfbar_max");
-var countDown = null;
-
-function StartStopCounter () {
-       if (countDown == null) {
-               // Start counter
-               document.getElementById("start").innerHTML = "Anhalten";
-               countDown = window.setInterval("StartCounter()", 1000);
-       } else {
-               document.getElementById("start").innerHTML = "Weiter";
-               window.clearInterval(countDown);
-               countDown = null;
-       }
-       return false;
-}
-
-function Init() {
-       countDown = window.setInterval("StartCounter()", 1000);
-       window.setTimeout("InitCounter()", 500);
-}
-
-function Confirm() {
-       parent.surfbar_url.location="{%url=surfbar.php?id=$content[url_id]&check=$content[check]&salt=$content[salt]%}";
-}
-
-function ReloadThis() {
-       parent.surfbar_stats.location.reload();
-       this.location.reload();
-}
-
-function InitCounter() {
-       parent.surfbar_url.location.href = '$content[url]';
-       counter.innerHTML = '$content[reload]';
-       points.innerHTML  = '$content[reward]';
-       reload.innerHTML  = '$content[curr_reload]';
-       max.innerHTML     = '$content[max_urls]';
-}
-
-function StartCounter() {
-       if (currCounter < 1) {
-               return false;
-       }
-
-       currCounter--;
-       counter.innerHTML = currCounter;
-
-       if (currCounter == 0) {
-               clearInterval(countDown);
-               Confirm();
-               window.setTimeout("ReloadThis()", 500);
-       }
-}
-
-Init();
+</div>
 
-//-->
-</script>
+<script type="text/javascript" src="{%url=js.php?js=surfbar_frame_top&amp;url_id=$content[url_id]%}"></script>