Huge script change, see http://forum.mxchange.org/topic-458.html for details:
[mailer.git] / templates / de / html / member / member_surfbar_book_static.tpl
index 3cf168d39b317cc35e25672179f90ea4f1a73da7..6e03731707615a8ee984902d1583e782af506b9b 100644 (file)
@@ -1,4 +1,4 @@
-<form id="book" action="{?URL?}/modules.php?module=login&amp;what=surfbar_book" method="post" onsubmit="return SubmitForm()" onreset="return ResetForm()">
+<form accept-charset="utf-8" id="book" action="{?URL?}/modules.php?module=login&amp;what=surfbar_book" method="post" onsubmit="return SubmitForm()" onreset="return ResetForm()">
 <div class="member_table dashed" style="width:600px;margin-top:10px">
        <div class="member_title2 bottom2" style="padding-top:5px;padding-bottom:5px">
                <strong>URL in Surfbar buchen - Statisch:</strong>
@@ -15,7 +15,7 @@
        </div>
 
        <div class="member_input bottom2" style="padding-top:5px;padding-bottom:5px">
-               Aufrufe begrenzen auf: <input class="member_normal" type="text" id="limit" name="limit" size="7" maxlength="20" value="-" />
+               Aufrufe begrenzen auf: <input type="text" class="member_normal" id="limit" name="limit" size="7" maxlength="20" value="-" />
        </div>
 
        <div class="member_input" style="padding-top:5px;padding-bottom:5px">
        </div>
 </div>
 
-<script language="JavaScript" type="text/javascript">
-<!--
-var limit = document.getElementById('limit');
-var span = document.getElementById('span_limit');
-var old_limit = 0;
+<script type="text/javascript"
+ src="{?URL?}/js.php?js=surfbar_member_book{%version=surfbar%}"></script>
 
-function FocusLimitedNo () {
-       if ((limit.value > 0) && (limit.value != '-')) {
-               old_limit = limit.value;
-       }
-       limit.disabled = true;
-       limit.setAttribute('class', 'disabled');
-       limit.style.textAlign = 'center';
-       limit.value = '-';
-}
-
-function FocusLimitedYes () {
-       limit.disabled = false;
-       limit.setAttribute('class', 'member_normal');
-       limit.style.textAlign = 'left';
-       if (old_limit > 0) {
-               limit.value = old_limit;
-       } else {
-               limit.value = '';
-       }
-       limit.focus();
-}
-
-function SubmitForm () {
-       if (limit.value == '-') {
-               limit.value = 0;
-       }
-       return true;
-}
-
-function ResetForm () {
-       old_limit = 0;
-       FocusLimitedNo();
-       return true;
-}
-
-FocusLimitedNo();
-
-//-->
-</script>
 </form>