source: ether_visual/trunk/creation.jsp

Last change on this file was 17, checked in by cbipsl, 18 years ago

ajout V3

  • Property svn:executable set to *
File size: 3.3 KB
Line 
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<%
8String active="";
9
10active=request.getParameter("active");
11if (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">
25var regExpEmpty=/^(\s)*$/g;
26//<!--
27function activer() {
28element = document.getElementById('create');
29if (navigator.appName=='Microsoft Internet Explorer') {
30        element.setAttribute("class","rubrique");
31}
32else {
33        if (<%=active%>) element.setAttribute("class","rubrique");
34        else element.setAttribute("class","inactif");
35}
36return true;
37}
38
39function 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
59function lanceA() {
60var obj=document.thisForm;
61var type_abs=parent.maine.document.thisForm.file_type_abs.value;
62var is_batch=obj.is_batch.value;
63var em=parent.user_info.document.thisForm.email.value;
64var ib=parent.user_info.document.thisForm.is_batch.value;
65
66parent.maine.document.thisForm.login.value=parent.user_info.document.thisForm.login.value;
67parent.maine.document.thisForm.passu.value=parent.user_info.document.thisForm.passu.value;
68
69
70if (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}
78else {
79        return parent.maine.lancerTrace(type_abs,is_batch);
80       
81}
82
83}
84
85function 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
90function verifMail( email )
91{
92var regEmail = new RegExp ( "^\\w[\\w+\.\-]*@[\\w\-]+\.\\w[\\w+\.\-]*\\w$", "gi" ) ;
93
94if ( email.search( regEmail )==-1  || email=='') {
95        alert ( "Error email format" ) ;
96        return false;
97}
98else {
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>
Note: See TracBrowser for help on using the repository browser.