]> git.mxchange.org Git - mailer.git/blob - templates/de/html/mailid/mailid_timer.tpl
Naming-inconsistency fixed
[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                 document.location.href = '{%url,js=mailid_top.php?userid=$content[userid]&$content[type]=$content[data]&mode=confirm&code=$content[rand]%}';
18                 clearInterval(Counter);
19         }
20 }
21 //-->
22 </script>
23 <table border="0" cellspacing="0" cellpadding="0" class="member_mailidtop">
24         <tr>
25                 <td width="220" align="center">
26                 <table border="0" cellspacing="0" cellpadding="0" class="member_confirm dashed">
27                         <tr>
28                                 <td align="center">
29                                 <form accept-charset="utf-8" name="confirm" style="margin-top: 0px;margin-bottom:0px">
30                                 {--MEMBER_TIME_COUNTER_1--}
31                                 <input type="text" name="counter" size="$content[tim2]" readonly class="member_normal" value="$content[time]" />
32                                 {--_SECONDS--} {--MEMBER_TIME_COUNTER_2--}
33                                 </form>
34                                 </td>
35                         </tr>
36                 </table>
37                 </td>
38                 <td align="center">
39                 <table border="0" cellspacing="0" cellpadding="0" class="member_banner dashed">
40                         <tr>
41                                 <td align="center">$content[banner]</td>
42                         </tr>
43                 </table>
44                 </td>
45         </tr>
46 </table>
47 <script type="text/javascript">
48 <!--
49 document.confirm.counter.value = Timer;
50 Init();
51 //-->
52 </script>