1 | <%@ page import="fr.acri.norm.*" %> |
---|
2 | <%@ page import="java.io.*" %> |
---|
3 | <%@ page import="java.util.*" %> |
---|
4 | <%@ page import="java.lang.*" %> |
---|
5 | <% |
---|
6 | String type_abs=request.getParameter("type_abs"); |
---|
7 | String modifye=request.getParameter("modifye"); |
---|
8 | if (modifye.equals("null") || modifye=="null" || modifye.equals("") || modifye=="") { |
---|
9 | modifye="0"; |
---|
10 | } |
---|
11 | |
---|
12 | String cemail=request.getParameter("cemail"); |
---|
13 | if (cemail.equals("null") || cemail=="null" || cemail.equals("") || cemail=="") { |
---|
14 | cemail=""; |
---|
15 | } |
---|
16 | |
---|
17 | |
---|
18 | %> |
---|
19 | <html> |
---|
20 | <head> |
---|
21 | <meta http-equiv="pragma" content="no-cache"> |
---|
22 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
23 | <title>Graphic Creation</title> |
---|
24 | <link rel="stylesheet" href="etherTypo.css" type="text/css"> |
---|
25 | <script language="JavaScript" type="text/JavaScript"> |
---|
26 | //!-- |
---|
27 | function deplace () { |
---|
28 | window.moveTo(175,175); |
---|
29 | } |
---|
30 | |
---|
31 | function verifMail( email ) |
---|
32 | { |
---|
33 | var regEmail = new RegExp ( "^\\w[\\w+\.\-]*@[\\w\-]+\.\\w[\\w+\.\-]*\\w$", "gi" ) ; |
---|
34 | |
---|
35 | if ( email.search( regEmail )==-1 ) { |
---|
36 | alert ( "Errro email format" ) ; |
---|
37 | return false; |
---|
38 | } |
---|
39 | else { |
---|
40 | return true; |
---|
41 | } |
---|
42 | } |
---|
43 | |
---|
44 | function loadSetting(type_abs) { |
---|
45 | if (document.myForm.cemail.value!='') { |
---|
46 | if (verifMail(document.myForm.cemail.value)) { |
---|
47 | window.opener.document.thisForm.email.value=''; |
---|
48 | window.opener.document.thisForm.cemail.value=document.myForm.cemail.value; |
---|
49 | if (document.myForm.modifye.value=='1') window.opener.document.thisForm.lance.value='0'; |
---|
50 | else window.opener.document.thisForm.lance.value='1'; |
---|
51 | window.opener.document.thisForm.submit(); |
---|
52 | window.close(); |
---|
53 | return true; |
---|
54 | } |
---|
55 | else return false; |
---|
56 | } |
---|
57 | else { |
---|
58 | alert("Please enter your email."); |
---|
59 | return false; |
---|
60 | } |
---|
61 | |
---|
62 | } |
---|
63 | |
---|
64 | //--> |
---|
65 | </script> |
---|
66 | </head> |
---|
67 | <body bgcolor="#ffffff" onload="Javascript:deplace()"> |
---|
68 | <p class="titrePageInfo">Email<br><br> |
---|
69 | This vizualisation is in batch mode.<br> |
---|
70 | Please enter your email to receive a link to see the result. |
---|
71 | </p> |
---|
72 | |
---|
73 | <form name="myForm"> |
---|
74 | <input type="hidden" value="<%=modifye%>" name="modifye"> |
---|
75 | <table border="0" align="center" cellpadding="2" cellspacing="0"> |
---|
76 | <tr> |
---|
77 | <td class="normal" align="left">Email</td> |
---|
78 | <td align="left"> |
---|
79 | <input type="text" value="<%=cemail%>" name="cemail"> |
---|
80 | </td> |
---|
81 | </tr> |
---|
82 | </table> |
---|
83 | |
---|
84 | <div align="center"> |
---|
85 | <a href=# onClick="return loadSetting('<%=type_abs%>')"><img src="Icons/valid.gif" width="75" height="25" border="0"></a> <a href="Javascript:window.close();"><img src="Icons/cancel.gif" width="75" height="25" border="0"></a> |
---|
86 | </div> |
---|
87 | |
---|
88 | </form> |
---|
89 | </body> |
---|
90 | </html> |
---|