1 | <%@ page import="fr.acri.norm.*" %> |
---|
2 | |
---|
3 | <%@ page import="java.io.*" %> |
---|
4 | <%@ page import="java.util.*" %> |
---|
5 | <%@ page import="java.lang.*"%> |
---|
6 | <% |
---|
7 | send_request req = new send_request(); |
---|
8 | |
---|
9 | String sql="",exp_options="", error_msg="", selected="", sel_tpl_name="" ; |
---|
10 | String[] exp_columns={"exp_name"}; |
---|
11 | |
---|
12 | int nexp=-1,indiceSN=0,k=0; |
---|
13 | |
---|
14 | boolean isExp=true; |
---|
15 | |
---|
16 | sel_tpl_name=request.getParameter("sel_tpl_name"); |
---|
17 | //if (sel_tpl_name.equals("") || sel_tpl_name.equals("null")) sel_tpl_name=""; |
---|
18 | if (sel_tpl_name==null || sel_tpl_name.equals("") || sel_tpl_name.equals("null")) sel_tpl_name=""; |
---|
19 | |
---|
20 | sql="SELECT distinct exp_name"; |
---|
21 | sql+=" FROM ether.dcp_file_class, ether.ether_experiment, ether.dcp_descripteur, ether.dcp_parameter "; |
---|
22 | sql+="WHERE ether_experiment.exp_id=dcp_file_class.exp_id and dcp_descripteur.tpl_id=dcp_file_class.tpl_id "; |
---|
23 | sql+="and dcp_parameter.par_acronym = ether.dcp_descripteur.par_acronym and (isord=0 or isord=2) and associate=-1 "; |
---|
24 | sql+=" and dcp_file_class.tpl_id NOT IN (1332,1333,1331) "; |
---|
25 | |
---|
26 | sql+="ORDER BY exp_name"; |
---|
27 | ArrayList exp_list=req.get_list(sql,exp_columns); |
---|
28 | |
---|
29 | if (exp_list==null || exp_list.size()==0) { |
---|
30 | error_msg="No file class found in the databse"; |
---|
31 | } |
---|
32 | else { |
---|
33 | nexp=exp_list.size()/exp_columns.length; |
---|
34 | exp_options="<OPTION VALUE=''></OPTION>"; |
---|
35 | if (nexp>0) { |
---|
36 | k=0; |
---|
37 | sel_tpl_name=""; |
---|
38 | for(int i=0;i<nexp;i++){ |
---|
39 | selected=""; |
---|
40 | if( isExp && exp_list.get(k).toString().equals(sel_tpl_name) ){ |
---|
41 | selected="selected"; |
---|
42 | sel_tpl_name=exp_list.get(k).toString(); |
---|
43 | } |
---|
44 | exp_options+="<OPTION VALUE=\""+exp_list.get(k)+"\" "+selected+">"+exp_list.get(k); |
---|
45 | exp_options+="</OPTION>"; |
---|
46 | k+=exp_columns.length; |
---|
47 | } |
---|
48 | |
---|
49 | } |
---|
50 | } |
---|
51 | |
---|
52 | %> |
---|
53 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
54 | <HTML> |
---|
55 | <HEAD> |
---|
56 | <META http-equiv="pragma" content="no-cache"> |
---|
57 | <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
58 | <TITLE>Menu Visualisation V3</TITLE> |
---|
59 | <LINK rel="stylesheet" href="etherTypo.css" type="text/css"> |
---|
60 | <SCRIPT language="Javascript"> |
---|
61 | function init() { |
---|
62 | |
---|
63 | parent.maine.location.href="formulaire.jsp?sel_tpl_name="; |
---|
64 | document.thisForm.sel_tpl_name.disabled=false; |
---|
65 | document.thisForm.sel_tpl_name.value=""; |
---|
66 | |
---|
67 | return true; |
---|
68 | |
---|
69 | } |
---|
70 | |
---|
71 | function majForm(fr1) |
---|
72 | { |
---|
73 | parent.maine.location.href=fr1; |
---|
74 | |
---|
75 | } |
---|
76 | |
---|
77 | function Newfen (URL,NAME,W,H) |
---|
78 | { |
---|
79 | var wconf = 'scrollbars=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,width=' + W + ',height=' + H; |
---|
80 | var w = window.open (URL, NAME, wconf); |
---|
81 | } |
---|
82 | |
---|
83 | </SCRIPT> |
---|
84 | |
---|
85 | </HEAD> |
---|
86 | <BODY leftmargin='0' topmargin='0' marginwidth='0' marginheight='' bgcolor='#ffffff'> |
---|
87 | <FORM name='thisForm' method="GET"> |
---|
88 | <DIV align='center'> |
---|
89 | <TABLE border='0' cellpadding=2 cellspacing=2 width='100%'> |
---|
90 | <input type="hidden" name="interpolatormethod1d" value="0"> |
---|
91 | <input type="hidden" name="spacing1d" value="0"> |
---|
92 | <input type="hidden" name="nmin1d" value="50"> |
---|
93 | <input type="hidden" name="nmax1d" value="500"> |
---|
94 | <input type="hidden" name="reg_grid_method" value="0"> |
---|
95 | <input type="hidden" name="irreg_grid_method" value="0"> |
---|
96 | <input type="hidden" name="xspacing2d" value="0"> |
---|
97 | <input type="hidden" name="nxmin2d" value="50"> |
---|
98 | <input type="hidden" name="nxmax2d" value="500"> |
---|
99 | <input type="hidden" name="yspacing2d" value="0"> |
---|
100 | <input type="hidden" name="nymin2d" value="50"> |
---|
101 | <input type="hidden" name="nymax2d" value="500"> |
---|
102 | |
---|
103 | <TR> |
---|
104 | <TD align="left" valign="top" nowrap> |
---|
105 | <span class="titrePageInfo"> ETHER Graphic Tools</span><br> |
---|
106 | <span class="lien"> Experiment : |
---|
107 | <SELECT class="contenuN" NAME="sel_tpl_name" onChange='return majForm("formulaire.jsp?sel_tpl_name="+document.thisForm.sel_tpl_name.value);'> |
---|
108 | <%=exp_options%> |
---|
109 | </SELECT> |
---|
110 | </span> |
---|
111 | </TD> |
---|
112 | <TD class="normal" width='100%'> <br>Advances Settings |
---|
113 | <img src="Icons/infos.gif" width="17" height="17" border="0" align="absmiddle"> |
---|
114 | </TD> |
---|
115 | <td align="right" valign="middle" colspan="2"><a href="#" onClick="return init();">Clear</a></td> |
---|
116 | <TD align="right" valign="top" colspan="2"> |
---|
117 | <a href="Javascript:Newfen('question.html','question','400','300')"> |
---|
118 | <img src="Icons/question.gif" width="43" height="43" border="0" alt="Question"> |
---|
119 | </a> |
---|
120 | </TD> |
---|
121 | </TR> |
---|
122 | </TABLE> |
---|
123 | <TABLE border='0' align='left' cellpadding="0" cellspacing="0" width="50%"> |
---|
124 | <TR> |
---|
125 | <TD align="right"><input type="radio" name="plot" value="0" checked></TD> |
---|
126 | <TD class="lien" align="left"> Interactive Plot</TD> |
---|
127 | <TD align="right"><input type="radio" name="plot" value="1" disabled></TD> |
---|
128 | <TD class="lien" align="left"> Multi-Plot</td> |
---|
129 | <TD align="right"><input type="radio" name="plot" value="2" disabled></TD> |
---|
130 | <TD class="lien" align="left"> Animation</TD> |
---|
131 | </TR> |
---|
132 | </TABLE> |
---|
133 | </DIV> |
---|
134 | </FORM> |
---|
135 | </BODY> |
---|
136 | </HTML> |
---|
137 | |
---|