1 | <%@ page import="fr.acri.norm.*" %> |
---|
2 | |
---|
3 | <%@ page import="java.io.*" %> |
---|
4 | <%@ page import="java.util.*" %> |
---|
5 | <%@ page import="java.lang.*" %> |
---|
6 | <%@ include file="conf_visu.jsp" %> |
---|
7 | <% |
---|
8 | String active=""; |
---|
9 | |
---|
10 | active=request.getParameter("active"); |
---|
11 | if (active==null || active.equals("") || active.equals("null")) { |
---|
12 | active="0"; |
---|
13 | } |
---|
14 | |
---|
15 | |
---|
16 | %> |
---|
17 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
18 | <html> |
---|
19 | <head> |
---|
20 | <meta http-equiv="pragma" content="no-cache"> |
---|
21 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
22 | <title>Visualisation V3</title> |
---|
23 | <link rel="stylesheet" href="ether.css" type="text/css"> |
---|
24 | <script language="Javascript"> |
---|
25 | var regExpEmpty=/^(\s)*$/g; |
---|
26 | //<!-- |
---|
27 | function activer() { |
---|
28 | element = document.getElementById('create'); |
---|
29 | if (navigator.appName=='Microsoft Internet Explorer') { |
---|
30 | element.setAttribute("class","rubrique"); |
---|
31 | } |
---|
32 | else { |
---|
33 | if (<%=active%>) element.setAttribute("class","rubrique"); |
---|
34 | else element.setAttribute("class","inactif"); |
---|
35 | } |
---|
36 | return true; |
---|
37 | } |
---|
38 | |
---|
39 | function checkOH() { |
---|
40 | if (parent.maine.document.thisForm.observation_height.value!='') { |
---|
41 | if (!parent.maine.checkValue(parent.maine.document.thisForm.observation_height.value,'The height observation','','1')) { |
---|
42 | return false; |
---|
43 | } |
---|
44 | else { |
---|
45 | if (!parent.maine.matchRegExp(parent.maine.document.thisForm.observation_height.value, regExpEmpty) && parent.maine.document.thisForm.observation_height.value!='') { |
---|
46 | return true; |
---|
47 | } |
---|
48 | else { |
---|
49 | parent.maine.initForm('6'); |
---|
50 | return false; |
---|
51 | } |
---|
52 | } |
---|
53 | } |
---|
54 | else { |
---|
55 | return false; |
---|
56 | } |
---|
57 | } |
---|
58 | |
---|
59 | function lanceA() { |
---|
60 | var obj=document.thisForm; |
---|
61 | var type_abs=parent.maine.document.thisForm.file_type_abs.value; |
---|
62 | var is_batch=obj.is_batch.value; |
---|
63 | var em=parent.user_info.document.thisForm.email.value; |
---|
64 | var ib=parent.user_info.document.thisForm.is_batch.value; |
---|
65 | |
---|
66 | parent.maine.document.thisForm.login.value=parent.user_info.document.thisForm.login.value; |
---|
67 | parent.maine.document.thisForm.passu.value=parent.user_info.document.thisForm.passu.value; |
---|
68 | |
---|
69 | |
---|
70 | if (ib=='1') { |
---|
71 | if (verifMail(em)) { |
---|
72 | parent.maine.document.thisForm.email.value=parent.user_info.document.thisForm.email.value; |
---|
73 | parent.maine.lancerTrace(type_abs,is_batch); |
---|
74 | return true; |
---|
75 | } |
---|
76 | else return false; |
---|
77 | } |
---|
78 | else { |
---|
79 | return parent.maine.lancerTrace(type_abs,is_batch); |
---|
80 | |
---|
81 | } |
---|
82 | |
---|
83 | } |
---|
84 | |
---|
85 | function Newfen (URL,NAME,W,H) { |
---|
86 | var wconf = 'scrollbars=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,width=' + W + ',height=' + H; |
---|
87 | var w = window.open (URL, NAME, wconf); |
---|
88 | } |
---|
89 | |
---|
90 | function verifMail( email ) |
---|
91 | { |
---|
92 | var regEmail = new RegExp ( "^\\w[\\w+\.\-]*@[\\w\-]+\.\\w[\\w+\.\-]*\\w$", "gi" ) ; |
---|
93 | |
---|
94 | if ( email.search( regEmail )==-1 || email=='') { |
---|
95 | alert ( "Error email format" ) ; |
---|
96 | return false; |
---|
97 | } |
---|
98 | else { |
---|
99 | return true; |
---|
100 | } |
---|
101 | } |
---|
102 | |
---|
103 | //--> |
---|
104 | |
---|
105 | </script> |
---|
106 | </head> |
---|
107 | <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#CCCCCC" onClick="lanceA();" onLoad="activer();"> |
---|
108 | <form name="thisForm"> |
---|
109 | <table border=1 width="35%" align="center"> |
---|
110 | <input type="hidden" name="file_type_abs" value=""> |
---|
111 | <input type="hidden" name="is_batch" value=""> |
---|
112 | <input type="hidden" name="active" value="<%=active%>"> |
---|
113 | <tr> |
---|
114 | <td id="create" class='rubrique' align="center"><b>CREATE GRAPHIC</b></td> |
---|
115 | </tr> |
---|
116 | </table> |
---|
117 | </form> |
---|
118 | </body> |
---|
119 | </html> |
---|