Rev 12927 | Rev 12986 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12927 | Rev 12977 | ||
---|---|---|---|
Line 40... | Line 40... | ||
40 | !next _k |
40 | !next _k |
41 | !let _now=!char 1 to 8 of $wims_now |
41 | !let _now=!char 1 to 8 of $wims_now |
42 | !if $(begindscore$_num)=$class_creation or $(begindscore$_num)=$empty |
42 | !if $(begindscore$_num)=$class_creation or $(begindscore$_num)=$empty |
43 | !let begindscore$_num=$_now |
43 | !let begindscore$_num=$_now |
44 | !if $(enddscore$_num)=$empty |
44 | !if $(enddscore$_num)=$empty |
45 | !let |
45 | !let datecheck$_num=none |
46 | !endif |
46 | !endif |
47 | !endif |
47 | !endif |
48 | !default enddscore$_num=$class_expiration |
48 | !default enddscore$_num=$class_expiration |
49 | !default begintscore$_num=00:00 |
49 | !default begintscore$_num=00:00 |
50 | !default endtscore$_num=23:59 |
50 | !default endtscore$_num=23:59 |
51 | !exit |
51 | !exit |
52 | 52 | ||
53 | :html |
53 | :html |
- | 54 | ||
- | 55 | !if $_num != $empty |
|
- | 56 | !! score restriction use a $_num for each techvar |
|
- | 57 | <select name="datecheck$_num" id="datecheck$_num" |
|
- | 58 | onchange="toggle_techvar_scorerestriction(this)"> |
|
- | 59 | <option value="none" |
|
- | 60 | !if $(datecheck$_num)=none |
|
- | 61 | selected="selected" |
|
- | 62 | !endif |
|
- | 63 | >$(name_allowtype[2])</option> |
|
- | 64 | <option value="select" |
|
- | 65 | !if $(datecheck$_num)!=none |
|
- | 66 | selected="selected" |
|
- | 67 | !endif |
|
- | 68 | >$(name_allowtype[3])</option> |
|
- | 69 | </select> |
|
- | 70 | !else |
|
- | 71 | <p>$(name_allowtype[3]):</p> |
|
- | 72 | !endif |
|
- | 73 | ||
54 | <ul class="wims_nopuce" |
74 | <ul class="wims_nopuce" |
- | 75 | !if $_num != $empty and $(datecheck$_num)=none |
|
- | 76 | style="display:none" |
|
- | 77 | !else |
|
- | 78 | style="display:block" |
|
- | 79 | !endif |
|
- | 80 | > |
|
55 | <li> |
81 | <li> |
56 | - | ||
57 | <label for="begindscore$_num">$wims_name_from</label> |
82 | <label for="begindscore$_num">$wims_name_from</label> |
58 | !if $jquery_defined=yes |
83 | !if $jquery_defined=yes |
59 | !read adm/datepickerform.phtml $(begindscore$_num)\ |
84 | !read adm/datepickerform.phtml $(begindscore$_num)\ |
60 | begindscore$_num\ |
85 | begindscore$_num\ |
61 | "$class_creation","$class_expiration" |
86 | "$class_creation","$class_expiration" |
62 | !else |
87 | !else |
63 | <input size="8" name="begindscore$_num" id="begindscore$_num" value="$(begindscore$_num)" /> |
88 | <input size="8" name="begindscore$_num" id="begindscore$_num" value="$(begindscore$_num)" /> |
64 | !endif |
89 | !endif |
65 | <label for="begintscore$_num">$wims_name_at</label> |
90 | <label for="begintscore$_num">$wims_name_at</label> |
66 | <input size="5" name="begintscore$_num" id="begintscore$_num" value="$(begintscore$_num)" /> |
91 | <input size="5" name="begintscore$_num" id="begintscore$_num" value="$(begintscore$_num)" /> |
67 | 92 | ||
68 | <label for="enddscore$_num">$wims_name_to</label> |
93 | <label for="enddscore$_num">$wims_name_to</label> |
69 | !if $jquery_defined=yes |
94 | !if $jquery_defined=yes |
70 | !read adm/datepickerform.phtml $(enddscore$_num)\ |
95 | !read adm/datepickerform.phtml $(enddscore$_num)\ |
71 | enddscore$_num\ |
96 | enddscore$_num\ |
72 | "$class_creation","$class_expiration" |
97 | "$class_creation","$class_expiration" |
73 | !else |
98 | !else |
74 | <input size="8" name="enddscore$_num" id="enddscore$_num" value="$(enddscore$_num)" /> |
99 | <input size="8" name="enddscore$_num" id="enddscore$_num" value="$(enddscore$_num)" /> |
75 | !endif |
100 | !endif |
76 | <label for="endtscore$_num">$wims_name_at</label> |
101 | <label for="endtscore$_num">$wims_name_at</label> |
77 | <input size="5" name="endtscore$_num" id="endtscore$_num" value="$(endtscore$_num)" /> |
102 | <input size="5" name="endtscore$_num" id="endtscore$_num" value="$(endtscore$_num)" /> |
78 | <input type="checkbox" name="datecheck$_num" value="yes" id="datecheck$_num" |
- | |
79 | !if $(datecheck$_num)=yes |
- | |
80 | checked="checked" |
- | |
81 | !endif |
- | |
82 | /> |
103 | |
83 | !reset datecheck$_num |
- | |
84 | <label for="datecheck$_num">$wims_name_Close</label> |
- | |
85 | </li><li> |
104 | </li><li> |
86 | <label for="IPscore$_num">$wims_name_IP</label> |
105 | <label for="IPscore$_num">$wims_name_IP</label> |
87 | <input size=" |
106 | <input size="15" name="IPscore$_num" id="IPscore$_num" value="$(IPscore$_num)" placeholder="127.0.0.1" /> |
88 | </li> |
107 | </li> |
89 | </ul> |
108 | </ul> |
- | 109 | !reset datecheck$_num |
|
90 | !exit |
110 | !exit |
91 | 111 | ||
92 | :get |
112 | :get |
93 | !! error are not display to user but default value replace bad value |
113 | !! error are not display to user but default value replace bad value |
94 | !! date format verification |
114 | !! date format verification |
Line 128... | Line 148... | ||
128 | !next _t |
148 | !next _t |
129 | !! IP restriction char |
149 | !! IP restriction char |
130 | !set IPscore$_num=!text select char 1234567890. in $(IPscore$_num) |
150 | !set IPscore$_num=!text select char 1234567890. in $(IPscore$_num) |
131 | !! write output |
151 | !! write output |
132 | !reset _output |
152 | !reset _output |
133 | !if $(begindscore$_num)!=$empty and ($(begindscore$_num)!=$class_creation or $(begintscore$_num)!=00:00) and |
153 | !if $(begindscore$_num)!=$empty and ($(begindscore$_num)!=$class_creation or $(begintscore$_num)!=00:00) and none notin $(datecheck$_num) |
134 | !set _output=$_output>$(begindscore$_num).$(begintscore$_num) |
154 | !set _output=$_output>$(begindscore$_num).$(begintscore$_num) |
135 | !endif |
155 | !endif |
136 | !if $(enddscore$_num)!=$empty and ($(enddscore$_num)!=$class_expiration or $(endtscore$_num)!=23:59) and |
156 | !if $(enddscore$_num)!=$empty and ($(enddscore$_num)!=$class_expiration or $(endtscore$_num)!=23:59) and none notin $(datecheck$_num) |
137 | !set _output=$_output <$(enddscore$_num).$(endtscore$_num) |
157 | !set _output=$_output <$(enddscore$_num).$(endtscore$_num) |
138 | !endif |
158 | !endif |
139 | !set _output=$_output $(IPscore$_num) |
159 | !set _output=$_output $(IPscore$_num) |
140 | !exit |
160 | !exit |