CSS classes cleaned up, templates simplified:
[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                         <div class="member_banner dashed">
38                                 $content[banner]
39                         </div>
40                 </td>
41         </tr>
42 </table>
43 <script type="text/javascript">
44 <!--
45 document.confirm.counter.value = timer;
46 init();
47 //-->
48 </script>