Counter for pending surfbar added
[mailer.git] / templates / de / html / surfbar / surfbar_stopped.tpl
index 4ce5779f74f489951b28635684b6d069db59d3c3..9e39f077fe021b30ffce62c0bedc67e9106e1bd2 100644 (file)
@@ -4,6 +4,35 @@
                        <strong>Surfbar angehalten!</strong>
                </div>
 
-               Keine URLs mehr verf&uuml;rgbar oder Datenbankfehler liegt vor.
+               Keine URLs mehr verf&uuml;rgbar oder Datenbankfehler liegt vor.<br />
+               Neustart in <span id="surfbar_restart">$content[start]</span> Sekunden
        </div>
 </div>
+
+<script language="JavaScript" type="text/javascript">
+<!--
+var counter = "$content[restart]";
+var timer   = document.getElementById("surfbar_restart");
+
+function Restart() {
+       this.location.reload();
+}
+
+function Counter () {
+       if (counter == 0) {
+               Restart();
+       } else {
+               counter--;
+               timer.innerHTML = counter;
+       }
+}
+
+function Init () {
+       window.setInterval("Counter()", 1000);
+       timer.innerHTML = "$content[restart]";
+}
+
+window.setTimeout("Init()", 500);
+
+//-->
+</script>
\ No newline at end of file