07bdbc878aee575d7e65a5912bb394da8d2ef3af
[mailer.git] / templates / de / html / mailid / mailid_timer.tpl
1 <script type="text/javascript">
2 <!--
3 var timer = "$content[time]";
4
5 function init() {
6         var Counter = window.setInterval("startCounter()", 1000);
7 }
8
9 function startCounter() {
10         if (timer < 1) {
11                 return false;
12         }
13
14         timer--;
15         document.confirm.counter.value = timer;
16         if (timer == 0) {
17                 clearInterval(Counter);
18                 document.location.href = '{%url,js=mailid.php?userid=$content[userid]&type=$content[type]&id=$content[id]&do=confirm&code={%pipe,getRandomTan%}%}';
19         }
20 }
21 //-->
22 </script>
23 <table border="0" cellspacing="0" cellpadding="0" class="mailid_table">
24         <tr>
25                 <td width="220" align="center">
26                 <table border="0" cellspacing="0" cellpadding="0" class="form_submit dashed">
27                         <tr>
28                                 <td align="center">
29                                 {%form,formNameConfirm,formMethodGet%}
30                                         {--MEMBER_TIME_COUNTER_1--}
31                                         <input type="text" class="form_field" name="counter" size="$content[tim2]" readonly="readonly" value="$content[time]" />
32                                         {--MEMBER_TIME_COUNTER_2--}
33                                 {%form_close%}
34                                 </td>
35                         </tr>
36                 </table>
37                 </td>
38                 <td align="center">
39                         <div class="banner dashed">
40                                 $content[banner]
41                         </div>
42                 </td>
43         </tr>
44 </table>
45 <script type="text/javascript">
46 <!--
47 document.confirm.counter.value = timer;
48 init();
49 //-->
50 </script>