source: ether_visual/trunk/menu_form.jsp @ 511

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

ajout V3

  • Property svn:executable set to *
File size: 4.7 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<%
7send_request req = new send_request();
8
9String sql="",exp_options="", error_msg="", selected="", sel_tpl_name="" ;
10String[] exp_columns={"exp_name"};
11
12int nexp=-1,indiceSN=0,k=0;
13
14boolean isExp=true;
15
16sel_tpl_name=request.getParameter("sel_tpl_name");
17//if (sel_tpl_name.equals("") || sel_tpl_name.equals("null")) sel_tpl_name="";
18if (sel_tpl_name==null || sel_tpl_name.equals("") || sel_tpl_name.equals("null")) sel_tpl_name="";
19
20sql="SELECT distinct exp_name";
21sql+=" FROM ether.dcp_file_class, ether.ether_experiment, ether.dcp_descripteur, ether.dcp_parameter ";
22sql+="WHERE ether_experiment.exp_id=dcp_file_class.exp_id and dcp_descripteur.tpl_id=dcp_file_class.tpl_id ";
23sql+="and dcp_parameter.par_acronym = ether.dcp_descripteur.par_acronym and (isord=0 or isord=2) and associate=-1 ";
24sql+=" and dcp_file_class.tpl_id NOT IN (1332,1333,1331) ";
25
26sql+="ORDER BY exp_name";
27ArrayList exp_list=req.get_list(sql,exp_columns);
28
29if (exp_list==null || exp_list.size()==0) {
30        error_msg="No file class found in the databse";
31}
32else {
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">
61function init() {
62
63parent.maine.location.href="formulaire.jsp?sel_tpl_name=";
64document.thisForm.sel_tpl_name.disabled=false;
65document.thisForm.sel_tpl_name.value="";
66
67return true;
68
69}
70
71function majForm(fr1)
72{
73parent.maine.location.href=fr1;
74
75}
76
77function 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">&nbsp;ETHER Graphic Tools</span><br>
106                <span class="lien">&nbsp;Experiment :&nbsp;&nbsp;
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%'>&nbsp;<br>Advances Settings&nbsp;&nbsp;
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">&nbsp;Interactive Plot</TD>
127        <TD align="right"><input type="radio" name="plot" value="1" disabled></TD>
128        <TD class="lien" align="left">&nbsp;Multi-Plot</td>
129        <TD align="right"><input type="radio" name="plot" value="2" disabled></TD>
130        <TD class="lien" align="left">&nbsp;Animation</TD>
131</TR>
132</TABLE>
133</DIV>
134</FORM>
135</BODY>
136</HTML>
137
Note: See TracBrowser for help on using the repository browser.