]> git.mxchange.org Git - mailer.git/blobdiff - templates/de/html/surfbar/surfbar_frame_top.tpl
More rewrites to make use of the EL
[mailer.git] / templates / de / html / surfbar / surfbar_frame_top.tpl
index 5562d97ce303b7cfc20b8873fa0f0ab54727b9b5..5ac130021b34e130b0e667a60c7ab40544c66029 100644 (file)
@@ -1,47 +1,79 @@
-<table border="0" cellspacing="0" cellpadding="0" width="100%" class="surfbar_table">
+<div align="center">
+<table border="0" cellspacing="0" cellpadding="0" width="100%" id="surfbar_table">
 <tr>
-       <td class="surfbar_td">
-               &raquo;<span class="surfbar_points">$content[reward] {!POINTS!}</span> in
-               <span id="surfbar_counter">X</span>&nbsp;<span
-                id="counter_word">Sekunden</span>&laquo;&nbsp;&raquo;<span
-                class="surfbar_reload">$content[curr_reload]</span> von <span
-                class="surfbar_max">$content[max_urls]</span> im Reload&laquo;<br />
-
-                &raquo;<a href="$content[url]" target="_blank">Aktuelle Seite in neuem
-                Fenster &ouml;ffnen</a>&laquo;<br />&nbsp;[<a
-                 href="{!URL!}/modules.php?module=index&amp;what=logout">Ausloggen</a>|<a
-                 href="javascript:window.close()">Schliessen</a>]
-
-               &raquo;{!MAIN_TITLE!} ist f&uuml;r den Inhalt nicht verantwortlich!&laquo;
+       <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;
+               </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>
+               </div>
+
+               <div>
+               &raquo;{?MAIN_TITLE?} ist f&uuml;r den Inhalt nicht verantwortlich!&laquo;
+               </div>
        </td>
 </tr>
 </table>
-<script language="JavaScript" type="text/javascript">
+</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 Init() {
-       countDown = window.setInterval("StartCounter()", 1000);
-       window.setTimeout("InitCounter()", 500);
+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[id]&check=$content[check]&salt=$content[salt]";
+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 ReloadThis() {
+function reloadSurfbar () {
+       parent.surfbar_stats.location.reload();
        this.location.reload();
 }
 
-function InitCounter() {
-       parent.surfbar_url.location.href = "$content[url]";
-       counter.innerHTML = $content[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() {
+function startCounter () {
        if (currCounter < 1) {
                return false;
        }
@@ -51,12 +83,12 @@ function StartCounter() {
 
        if (currCounter == 0) {
                clearInterval(countDown);
-               Confirm();
-               window.setTimeout("ReloadThis()", 500);
+               confirm();
+               window.setTimeout("reloadSurfbar()", 500);
        }
 }
 
-Init();
+init();
 
 //-->
 </script>