Rev 12999 | Rev 14367 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12999 | Rev 14366 | ||
---|---|---|---|
Line 81... | Line 81... | ||
81 | !endif |
81 | !endif |
82 | > |
82 | > |
83 | <li> |
83 | <li> |
84 | <label for="begindscore$_num">$wims_name_from</label> |
84 | <label for="begindscore$_num">$wims_name_from</label> |
85 | 85 | ||
86 | !if $jquery_defined=yes |
- | |
87 | !read adm/datepickerform.phtml $(begindscore$_num)\ |
86 | !read adm/datepickerform.phtml $(begindscore$_num)\ |
88 | begindscore$_num\ |
87 | begindscore$_num\ |
89 | "$class_creation","$class_expiration" |
88 | "$class_creation","$class_expiration" |
90 | !else |
- | |
91 | <input size="8" name="begindscore$_num" id="begindscore$_num" value="$(begindscore$_num)" /> |
- | |
92 | !endif |
- | |
93 | <label for="begintscore$_num">$wims_name_at</label> |
89 | <label for="begintscore$_num">$wims_name_at</label> |
94 | <input size="5" name="begintscore$_num" id="begintscore$_num" value="$(begintscore$_num)" /> |
90 | <input type="time" size="5" name="begintscore$_num" id="begintscore$_num" value="$(begintscore$_num)" /> |
95 | 91 | ||
96 | <label for="enddscore$_num">$wims_name_to</label> |
92 | <label for="enddscore$_num">$wims_name_to</label> |
97 | !if $jquery_defined=yes |
- | |
98 | !read adm/datepickerform.phtml $(enddscore$_num)\ |
93 | !read adm/datepickerform.phtml $(enddscore$_num)\ |
99 | enddscore$_num\ |
94 | enddscore$_num\ |
100 | "$class_creation","$class_expiration" |
95 | "$class_creation","$class_expiration" |
101 | !else |
- | |
102 | <input size="8" name="enddscore$_num" id="enddscore$_num" value="$(enddscore$_num)" /> |
- | |
103 | !endif |
- | |
104 | <label for="endtscore$_num">$wims_name_at</label> |
96 | <label for="endtscore$_num">$wims_name_at</label> |
105 | <input size="5" name="endtscore$_num" id="endtscore$_num" value="$(endtscore$_num)" /> |
97 | <input type="time" size="5" name="endtscore$_num" id="endtscore$_num" value="$(endtscore$_num)" /> |
106 | 98 | ||
107 | </li><li> |
99 | </li><li> |
108 | <label for="IPscore$_num">$wims_name_IP</label> |
100 | <label for="IPscore$_num">$wims_name_IP</label> |
109 | <input size="15" name="IPscore$_num" id="IPscore$_num" value="$(IPscore$_num)" placeholder="127.0.0.1" /> |
101 | <input size="15" name="IPscore$_num" id="IPscore$_num" value="$(IPscore$_num)" placeholder="127.0.0.1" /> |
110 | </li> |
102 | </li> |
Line 116... | Line 108... | ||
116 | !! error are not display to user but default value replace bad value |
108 | !! error are not display to user but default value replace bad value |
117 | !! date format verification |
109 | !! date format verification |
118 | !set _e=begin,end |
110 | !set _e=begin,end |
119 | !set _l=$class_creation,$class_expiration |
111 | !set _l=$class_creation,$class_expiration |
120 | !for _t=1 to 2 |
112 | !for _t=1 to 2 |
- | 113 | !if $jquery_defined!=yes |
|
- | 114 | _m=!char 2,3 of $[abs(floor($(month$(_e[$_t])dscore$_num)))+100] |
|
- | 115 | _d=!char 2,3 of $[abs(floor($(day$(_e[$_t])dscore$_num)))+100] |
|
- | 116 | _y=!char -4 to -1 of $[abs($(year$(_e[$_t])dscore$_num))+100000] |
|
- | 117 | $(_e[$_t])dscore$_num=$_y$_m$_d |
|
- | 118 | !endif |
|
121 | !set $(_e[$_t])dscore$_num=!text select 0123456789 in $($(_e[$_t])dscore$_num) |
119 | !set $(_e[$_t])dscore$_num=!text select 0123456789 in $($(_e[$_t])dscore$_num) |
122 | !bound $(_e[$_t])dscore$_num between $class_creation and $class_expiration default $(_l[$_t]) |
120 | !bound $(_e[$_t])dscore$_num between $class_creation and $class_expiration default $(_l[$_t]) |
123 | !set _y=!char 1 to 4 of $($(_e[$_t])dscore$_num) |
121 | !set _y=!char 1 to 4 of $($(_e[$_t])dscore$_num) |
124 | !set _m=!char 5 to 6 of $($(_e[$_t])dscore$_num) |
122 | !set _m=!char 5 to 6 of $($(_e[$_t])dscore$_num) |
125 | !set _d=!char 7 to 8 of $($(_e[$_t])dscore$_num) |
123 | !set _d=!char 7 to 8 of $($(_e[$_t])dscore$_num) |