]> 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 5ac130021b34e130b0e667a60c7ab40544c66029..9753b0cb5d0800bda7bd5151a646ad2a0a4d012a 100644 (file)
@@ -3,92 +3,29 @@
 <tr>
        <td id="surfbar_td">
                <div>
-               &raquo;<span id="surfbar_points">$content[xxx]=$content[xxx] {?POINTS?}</span> in
-               <span id="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;
+                       &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,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"
-                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>
+                       &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;
+                       &raquo;{?MAIN_TITLE?} ist f&uuml;r den Inhalt nicht verantwortlich!&laquo;
                </div>
        </td>
 </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>