Fix for missing array elements
[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                                         {%message,MEMBER_TIME_COUNTER,<input type="text" name="counter" size="$content[tim2]" readonly class="member_normal" value="$content[time]" />%}
31                                 </form>
32                                 </td>
33                         </tr>
34                 </table>
35                 </td>
36                 <td align="center">
37                 <table border="0" cellspacing="0" cellpadding="0" class="member_banner dashed">
38                         <tr>
39                                 <td align="center">$content[banner]</td>
40                         </tr>
41                 </table>
42                 </td>
43         </tr>
44 </table>
45 <script type="text/javascript">
46 <!--
47 document.confirm.counter.value = Timer;
48 Init();
49 //-->
50 </script>