Fixes for POST setter, template and others
[mailer.git] / templates / de / html / member / member_order_send.tpl
index 7da55b5..08dadaf 100644 (file)
@@ -1,33 +1,6 @@
-<form id="form" action="{!URL!}/modules.php?module=order&amp;order=$content" method="POST" target="_parent" onsubmit="return Submit()">
+<form accept-charset="utf-8" id="form" action="{?URL?}/modules.php?module=order&amp;order=$content" method="post" target="_parent" onsubmit="return Submit()">
 {--MEMBER_ORDER_PLEASE_WAIT_1--}<span id="counter" style="font-weight:bold">10</span>{--MEMBER_ORDER_PLEASE_WAIT_2--}<br />
 <input type="submit" class="member_submit" id="ok" name="ok" value="{--MEMBER_DO_ORDER--}" />
-<script language="JavaScript" type="text/javascript">
-<!--
-var counter = document.getElementById('counter');
-var form    = document.getElementById('form');
-var ok      = document.getElementById('ok');
-
-function Submit() {
-       if (counter.innerHTML > 0) {
-               alert('{--MEMBER_ORDER_PLEASE_WAIT_TESTER--}');
-               return false;
-       } else {
-               form.submit();
-       }
-}
-
-function Counter() {
-       if (counter.innerHTML == 1) {
-               ok.value='{--MEMBER_DO_ORDER--}';
-               window.clearInterval(interval);
-       }
-
-       counter.innerHTML--;
-}
-
-ok.value='{--MEMBER_ORDER_TEST_STARTED--}';
-var interval = window.setInterval("Counter()", 1000);
-
-//-->
-</script>
+<script type="text/javascript"
+ src="{?URL?}/js.php?js=order_send{%version=order%}"></script>
 </form>