"copied"
[mailer.git] / 0.2.1-FINAL / templates / de / html / member / member_order_send.tpl
1 <form id="form" action="{!URL!}/modules.php?module=order&amp;order=$content" method="POST" target="_parent" onsubmit="return Submit()">
2 {--MEMBER_ORDER_PLEASE_WAIT_1--}<span id="counter" style="font-weight:bold">10</span>{--MEMBER_ORDER_PLEASE_WAIT_2--}<br />
3 <input type="submit" class="member_submit" id="ok" name="ok" value="{--MEMBER_DO_ORDER--}" />
4 <script language="JavaScript" type="text/javascript">
5 <!--
6 var counter = document.getElementById('counter');
7 var form    = document.getElementById('form');
8 var ok      = document.getElementById('ok');
9
10 function Submit() {
11         if (counter.innerHTML > 0) {
12                 alert('{--MEMBER_ORDER_PLEASE_WAIT_TESTER--}');
13                 return false;
14         } else {
15                 form.submit();
16         }
17 }
18
19 function Counter() {
20         if (counter.innerHTML == 1) {
21                 ok.value='{--MEMBER_DO_ORDER--}';
22                 window.clearInterval(interval);
23         }
24
25         counter.innerHTML--;
26 }
27
28 ok.value='{--MEMBER_ORDER_TEST_STARTED--}';
29 var interval = window.setInterval("Counter()", 1000);
30
31 //-->
32 </script>
33 </form>