Surfbar continued:
[mailer.git] / templates / de / html / member / member_surfbar_edit_action_form.tpl
1 <form id="edit" action="{!URL!}/modules.php?module=login&amp;what=surfbar_list" method="post" onsubmit="return SubmitForm()" onreset="return ResetForm()">
2 <div class="member_table dashed" style="width:600px;margin-top:10px">
3         <div class="member_title2 bottom2" style="padding-top:5px;padding-bottom:5px">
4                 <strong>URL in Surfbar editieren:</strong>
5         </div>
6
7         <div class="member_input bottom2" style="padding-top:5px;padding-bottom:5px">
8                 URL eingeben: <input class="member_normal" type="text" name="url" size="20" maxlength="255" value="$content[url]" />
9         </div>
10
11         <div class="member_input" style="padding-top:5px;padding-bottom:5px">
12                 Soll die Anzahl Aufrufe begrenzt werden?<br />
13                 <input type="radio" id="limited_no" onfocus="return FocusLimitedNo()" name="limited" value="N"$content[limited_no] /> {--NO--}
14                 <input type="radio" id="limited_yes" onfocus="return FocusLimitedYes()" name="limited" value="Y"$content[limited_yes] /> {--YES--}
15         </div>
16
17         <div class="member_input bottom2" style="padding-top:5px;padding-bottom:5px">
18                 Aufrufe begrenzen auf: <input class="member_normal" type="text" id="limit" name="limit" size="7" maxlength="20" value="$content[views_max]" />
19         </div>
20
21         <div class="member_title2 top2" style="padding-top:5px;padding-bottom:5px">
22                 <input type="reset" class="member_reset" value="{--CLEAR_FORM--}" />
23                 <input type="hidden" name="id" value="$content[id]" />
24                 <input type="hidden" name="action" value="edit" />
25                 <input type="hidden" name="execute" value="1" />
26                 <input type="submit" class="member_submit" name="ok" value="{--MEMBER_SURFBAR_ACTION_EDIT_NOW_SUBMIT--}" />
27         </div>
28 </div>
29
30 <script language="JavaScript" type="text/javascript">
31 <!--
32 var limit = document.getElementById('limit');
33 var span = document.getElementById('span_limit');
34 var old_limit = $content[views_max];
35
36 function FocusLimitedNo () {
37         if ((limit.value > 0) && (limit.value != '-')) {
38                 old_limit = limit.value;
39         }
40         limit.disabled = true;
41         limit.setAttribute('class', 'disabled');
42         limit.style.textAlign = 'center';
43         limit.value = '-';
44 }
45
46 function FocusLimitedYes () {
47         limit.disabled = false;
48         limit.setAttribute('class', 'member_normal');
49         limit.style.textAlign = 'left';
50         if (old_limit > 0) {
51                 limit.value = old_limit;
52         } else {
53                 limit.value = '';
54         }
55         limit.focus();
56 }
57
58 function SubmitForm () {
59         if (limit.value == '-') {
60                 limit.value = 0;
61         }
62         return true;
63 }
64
65 function ResetForm () {
66         old_limit = 0;
67         FocusLimitedNo();
68         return false;
69 }
70
71 if ($content[limited] == true) {
72         FocusLimitedYes();
73 } else {
74         FocusLimitedNo();
75 }
76
77 //-->
78 </script>
79 </form>