]> git.mxchange.org Git - mailer.git/blobdiff - templates/de/html/surfbar/surfbar_frame_top.tpl
Some templates renamed, fixed of double-init of extension notes:
[mailer.git] / templates / de / html / surfbar / surfbar_frame_top.tpl
index 6574dedf7fc41b79ff97819bc1a2b5677869d927..f73f4fa6e92abe65d50d24cccc9921f579a41239 100644 (file)
@@ -3,8 +3,8 @@
 <tr>
        <td id="surfbar_td">
                <div>
-               &raquo;<span id="surfbar_points">$content[xxx]=$content[xxx] {?POINTS?}</span> in
-               <span class="surfbar_counter">$content[xxx]</span>
+               &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;
@@ -14,7 +14,7 @@
                &raquo;<a href="{%pipe,SURFBAR_GET_URL=$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">Anhalten</a>|<a target="_parent"
+                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>
 </tr>
 </table>
 </div>
-<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={%pipe,SURFBAR_GENERATE_VALIDATION_CODE=$content[url_id]%}&salt={%pipe,SURFBAR_GET_SALT%}%}";
-}
-
-function reloadSurfbar () {
-       parent.surfbar_stats.location.reload();
-       this.location.reload();
-}
-
-function initCounter () {
-       parent.surfbar_url.location.href = '{%pipe,SURFBAR_GET_URL=$content[url_id]%}';
-       counter.innerHTML = '{%pipe,SURFBAR_GET_RELOAD_TIME=$content[url_id]%}';
-       points.innerHTML  = '{%pipe,SURFBAR_GET_REWARD,translateComma=$content[url_id]%}';
-       reload.innerHTML  = '{%pipe,SURFBAR_GET_USER_LOCKS%}';
-       max.innerHTML     = '{%pipe,SURFBAR_GET_TOTAL_URLS%}';
-}
-
-function startCounter () {
-       if (currCounter < 1) {
-               return false;
-       }
-
-       currCounter--;
-       counter.innerHTML = currCounter;
-
-       if (currCounter == 0) {
-               clearInterval(countDown);
-               confirm();
-               window.setTimeout("reloadSurfbar()", 500);
-       }
-}
-
-init();
-
-//-->
-</script>
+<script type="text/javascript"
+ src="{%url=js.php?js=surfbar_frame_top&amp;url_id=$content[url_id]%}"></script>