PageSourceSearch

https://www.compmedchem.org/scriptsv3/antalys_jv_operations.php?langue=english&antdocvers=20180710153241

js compmedchem.org collected 2026-09-27 03:01:59 UTC 9,202 bytes, 310 lines download raw bytes

1
2
3function modify_date(it){
4        if (CheckDate(document.formadmin.elements['value_' + it].value) || document.formadmin.elements['value_' + it].value == ''){
5            document.formadmin.elements['status_' + it].value=1;
6            }
7        else {
8              alert ('Wrong date format ' + document.formadmin.elements['value_' + it].value);
9              document.formadmin.elements['value_' + it].value='00/00/0000';
10              }
11        }
12        
13function modify_date_confirmation(it){
14        if (CheckDate(document.formadmin.elements['value_' + it].value) || document.formadmin.elements['value_' + it].value == ''){
15            if (confirm(': ' + document.formadmin.elements['value_' + it].value + ' ?')){
16                document.formadmin.elements['status_' + it].value=1;
17                updateActionWithanchor('anch',0);
18                updateOp('savecustom','noconfirm');
19                } 
20            else{
21                document.formadmin.elements['value_' + it].value='00/00/0000';
22                }
23            }
24        else {
25              alert ('Wrong date format ' + document.formadmin.elements['value_' + it].value);
26              document.formadmin.elements['value_' + it].value='00/00/0000';
27              }
28        }
29
30function modify_time(it){
31        if (CheckTime(document.formadmin.elements['value_' + it].value) || document.formadmin.elements['value_' + it].value == ''){
32            document.formadmin.elements['status_' + it].value=1;
33            }
34        else {
35              alert ('Wrong time format ' + document.formadmin.elements['value_' + it].value)
36              }
37        }
38
39function modify_email(it){
40        if (AntCheckEmail(document.formadmin.elements['value_' + it].value)){
41            document.formadmin.elements['status_' + it].value=1;
42            }
43        else {
44              alert ('Your email adress is wrong ' + document.formadmin.elements['value_' + it].value)
45              }
46        }
47
48function updateOp(it,option,itemnum){
49        document.formadmin.adminop.value=it;
50        if (it=="save" || it=="savecustom"){
51        
52                document.formadmin.submit();
53                
54            }
55        else if (it=="delete" || it=="deletecustom" || it=="delfile"){
56            if (option == "noconfirm") document.formadmin.submit();
57            else {
58                if (confirm ("Do you want to delete the selected data ?")){
59                    document.formadmin.submit();
60                    }
61                else{
62                    if (itemnum) document.formadmin.elements['status_' + itemnum].value=0;
63                    }
64                }
65            }
66            
67        else if (it=="deletenote"){
68            if (confirm ("Do you want to delete the linked notes of selected data ?")){
69                document.formadmin.submit();
70                }
71            }
72        else if (it=="unsubscribe"){
73            if (confirm ("Do you want to cancel selected data ?")){
74                document.formadmin.submit();
75                }
76            }
77        else if (it=="emailrappel"){
78            if (confirm ("Do you want to send reminder bills emails to the selected people ?")){
79                document.formadmin.submit();
80                }
81            }
82        else if (it=="createfromOgone"){
83            if (confirm ("Are you !! really !! sure that you want to create new registrations from the !! validated !! registrations done with Ogone for this seminar ?")){
84                document.formadmin.submit();
85                }
86            }            
87            
88        else if (it=="delparticipants"){
89            if (option == "noconfirm") document.formadmin.submit();
90            else {
91                if (confirm ("Do you want to remove the selected participants from this project ?")){
92                    document.formadmin.submit();
93                    }
94                else{
95                    if (itemnum) document.formadmin.elements['status_' + itemnum].value=0;
96                    }
97                }
98            }
99        
100         else if (it=="toggleall"){
101              CheckAll();
102            }
103         else if (it=="selectall"){
104              SelectAll('select');
105            }
106        else if (it=="deselectall"){
107              SelectAll('deselect');
108            }
109         else {
110              document.formadmin.submit();
111            }
112        }
113
114
115
116function updateFilter(filter,value){
117    document.formadmin.ant_filter.value=filter;
118    document.formadmin.ant_filter_value.value=value;
119    }
120
121function updateFastFilter(filter,value){
122    document.formadminfast.ant_filter.value=filter;
123    document.formadminfast.ant_filter_value.value=value;
124    }
125    
126function updateFastOp(it){
127    document.formadminfast.adminop.value=it;
128    document.formadminfast.submit();
129    }
130
131function submitentercrm(filter,value,e)
132{
133var keycode;
134if (window.event) keycode = window.event.keyCode;
135else if (e) keycode = e.which;
136else return true;
137
138if (keycode == 13)
139   {
140   document.formadmin.ant_filter.value=filter;
141   document.formadmin.ant_filter_value.value=value;
142   document.formadmin.submit();
143   return false;
144   }
145else
146   return true;
147}
148    
149function submitfastenter(filter,value,e)
150{
151var keycode;
152if (window.event) keycode = window.event.keyCode;
153else if (e) keycode = e.which;
154else return true;
155
156if (keycode == 13)
157   {
158   document.formadminfast.ant_filter.value=filter;
159   document.formadminfast.ant_filter_value.value=value;
160   document.formadminfast.submit();
161   return false;
162   }
163else
164   return true;
165}
166
167
168function updateAnchor(anchor,flagfast)
169{
170	if (flagfast == 1) document.formadminfast.selectedanchor.value=anchor;
171	else document.formadmin.selectedanchor.value=anchor;
172}
173
174function updateActionWithanchor(prefix,flagfast)
175{
176	if (flagfast == 1) document.formadminfast.action=document.formadminfast.action + "#" + prefix + document.formadminfast.selectedanchor.value;
177	else document.formadmin.action=document.formadmin.action + "#" + prefix + document.formadmin.selectedanchor.value;
178}
179
180function submitenteranchor(value,anchor,prefix,e)
181{
182var keycode;
183if (window.event) keycode = window.event.keyCode;
184else if (e) keycode = e.which;
185else return true;
186
187if (keycode == 13)
188   {
189   updateAnchor(anchor);
190   updateActionWithanchor(prefix);
191   value.form.submit();
192   return false;
193   }
194else
195   return true;
196}
197            
198
199
200function updateThisFilter(antform,filter,value){
201    antform.ant_filter.value=filter;
202    antform.ant_filter_value.value=value;
203    }
204    
205function submitThisEnter(antform,filter,value,e)
206{
207    var keycode;
208    if (window.event) keycode = window.event.keyCode;
209    else if (e) keycode = e.which;
210    else return true;
211
212    if (keycode == 13){
213       antform.ant_filter.value=filter;
214       antform.ant_filter_value.value=value;
215       antform.submit();
216       return false;
217       }
218    else
219       return true;
220}
221
222function updateThisOp(antform,it)
223{
224    antform.adminop.value=it;
225    antform.submit();
226}
227    
228function updateThisAnchor(antform,anchor)
229{
230    antform.selectedanchor.value=anchor;
231}
232
233function updateThisActionWithanchor(antform,prefix)
234{
235    antform.action=antform.action + "#" + prefix + antform.selectedanchor.value;
236}
237
238function modifyThis(antelem,mode)
239{
240    var reg=/OK$/;
241    if (reg.test(antelem.name) == false)
242    {
243        antelem.name=antelem.name + '|OK';
244        if (mode == 'refresh'){
245            antelem.form.adminop.value='saveAndRefresh';
246            }
247    }
248}
249
250function modifyThisTime(antelem,mode)
251{
252    if (CheckTime(antelem.value) || antelem.value == ''){
253            antelem.name=antelem.name + '|OK';
254            }
255    else{
256        alert ('Wrong time format ' + antelem.value)
257        }
258    if (mode == 'refresh'){
259        antelem.form.adminop.value='saveAndRefresh';
260        }
261}
262
263function modifyThisDate(antelem,mode)
264{
265    if (CheckDate(antelem.value) || antelem.value == ''){
266            antelem.name=antelem.name + '|OK';
267            }
268    else {
269        swal('Wrong date format ' + antelem.value,'','error');
270        antelem.value='';
271        }
272    if (mode == 'refresh'){
273        antelem.form.adminop.value='saveAndRefresh';
274        }
275}
276        
277function modifyThisDateConfirmation(antelem,mode)
278{
279    if (CheckDate(antelem.value) || antelem.value == ''){
280            if (confirm(': ' + antelem.value + ' ?')){
281                antelem.name=antelem.name + '|OK';
282                updateThisActionWithanchor(antelem.form,'anch');
283                updateThisOp(antelem.form,'saveAndRefresh');
284                } 
285            else{
286                antelem.value='00/00/0000';
287                }
288            }
289    else {
290        swal('Wrong date format ' + antelem.value,'','error');
291        antelem.value='';
292        }
293        
294    if (mode == 'refresh'){
295        antelem.form.adminop.value='saveAndRefresh';
296        }
297}
298
299function antaCheckEmailFormat(email)
300{
301    var regex = /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
302    return regex.test(email);    
303}
304    
305
306function radiosel(it,key){
307        document.formadmin.elements['status_' + it].value=1;
308        document.formadmin.elements['key_' + it].value=key;
309        }
310        

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.