"copied"
[mailer.git] / 0.2.1-FINAL / templates / de / html / mailid / mailid_timer.tpl
1 <SCRIPT language="JavaScript" type="text/javascript">
2 <!--
3 var Timer = "{!_TIME_VALUE!}";
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!}/mailid_top.php?uid={!_UID_VALUE!}&{!_TYPE_VALUE!}={!_DATA_VALUE!}&mode=confirm&code={--_RAND_VALUE!}";
18                 clearInterval(Counter);
19         }
20 }
21 //-->
22 </SCRIPT>
23 <TABLE border="0" cellspacing="0" cellpadding="0"
24         class="member_mailidtop">
25         <TR>
26                 <TD width="10" class="seperator">&nbsp;</TD>
27                 <TD width="220" align="center">
28                 <TABLE border="0" cellspacing="0" cellpadding="0" width="200"
29                         class="member_confirm dashed">
30                         <TR>
31                                 <TD height="3" class="seperator">&nbsp;</TD>
32                         </TR>
33                         <TR>
34                                 <TD align="center">
35                                 <FORM name="confirm" style="margin-top: 0px; margin-bottom: 0px">
36                                 {--MEMBER_TIME_COUNTER_1--} <INPUT type="text" name="counter"
37                                         size="{--_TIM2_VALUE!}" readonly class="member_normal"
38                                         value="{--_TIME_VALUE!}">&nbsp;{--_SECONDS--}
39                                 {--MEMBER_TIME_COUNTER_2--}</FORM>
40                                 </TD>
41                         </TR>
42                         <TR>
43                                 <TD height="4" class="seperator">&nbsp;</TD>
44                         </TR>
45                 </TABLE>
46                 </TD>
47                 <TD width="10" class="seperator">&nbsp;</TD>
48                 <TD align="center">
49                 <TABLE border="0" cellspacing="0" cellpadding="0"
50                         class="member_banner dashed">
51                         <TR>
52                                 <TD height="3" class="seperator">&nbsp;</TD>
53                         </TR>
54                         <TR>
55                                 <TD align="center">{--_TEMPLATE_BANNER--}</TD>
56                         </TR>
57                         <TR>
58                                 <TD height="4" class="seperator">&nbsp;</TD>
59                         </TR>
60                 </TABLE>
61                 </TD>
62                 <TD width="10" class="seperator">&nbsp;</TD>
63         </TR>
64 </TABLE>
65 <SCRIPT language="JavaScript" type="text/javascript">
66 <!--
67   document.confirm.counter.value = Timer;
68   Init();
69 //-->
70 </SCRIPT>