source: ether_eccad/trunk/ECCAD_INTERFACE/original/OldSelect.php

Last change on this file was 68, checked in by cbipsl, 14 years ago

commit v1 eccad

  • Property svn:executable set to *
File size: 5.0 KB
Line 
1<HTML>
2<HEADER>
3   <TITLE>Selection</TITLE>
4</HEADER>
5<SCRIPT type="text/javascript" SRC="./SelectEccad.js"> </SCRIPT>
6<BODY>
7<?
8   require('adodb/adodb.inc.php');
9   $DB = ADONewConnection('postgres');
10//   $DB->debug = true;
11//   $DB->Connect('shiva', 'wwwadm', 'adm001', 'ECCAD');
12   $DB->Connect('eccad', 'eccad', 'adm001', 'ECCAD');
13   $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC;
14//      echo "<FORM action='http://zeus.medias.cnes.fr/eccad/CODEPHP/clientXmlRpc.php' method='GET'  enctype='text/plain'>" ;
15        echo "<FORM action='http://postel.medias.cnes.fr/cgi-bin/ion-p' method='GET'  enctype='text/plain'>" ;
16   echo "<input type='hidden' name='page' value='New.ion'/>";
17   echo "<TABLE>";
18   echo "<TR> <H1>Products selection</H1> </TR>";
19
20
21
22   //Selection of the Parameter
23   echo "<TR>";
24   echo "<TD><B>Selection of the product :</B></TD>";
25   echo "</TR>";
26   echo "<TR>";
27      echo "<TD> Parameter</TD>";
28      echo "<TD><select name='Parameter' id='Parameter' onclick='LoadProduct()'>";
29      $rs = $DB->Execute('select * from parametre');
30      while (!$rs->EOF) {
31/*
32         A remettre pour l'extraction
33         echo "<option value= " . $rs->fields[id_param] . ">". $rs->fields[fullname_param] . "</option>";
34
35
36*/
37         echo "<option value= " . $rs->fields[id_param] ."_".$rs->fields[fullname_param].">". $rs->fields[fullname_param] . "</option>";
38         $rs->MoveNext();
39      }
40   echo "</select></TD>";
41   echo "</TR>";
42
43   //Line of the selection of the Products
44   echo "<TR id='ProductLine'>";
45      echo "<TD> Product</TD>";
46      echo "<TD><select name='Product' id='Product' onclick='LoadDate()'/></TD>";
47   echo "</TR>";
48
49
50   echo "<TR id='ZoneStudy'>";
51   echo "<TD><B>Zone of study :</B></TD>";
52   echo "</TR>";
53   //Lines of the selected area
54   echo "<TR id='UpLeftCorn'>";
55      echo "<TD>Upper Left Corner : </TD>";
56      echo "<TD>Lat:<input type='text' id='UpLeftLat' name='UpLeftLat' value='90' size=5 onKeyUp='VerifyArea()'/>";
57      echo "Lon:<input type='text' id='UpLeftLon' name='UpLeftLon' value='-180' size=6 onKeyUp='VerifyArea()'/></TD>";
58   echo "</TR>";
59   echo "<TR id='LowRightCorn'>";
60      echo "<TD>Low Right Corner : </TD>";
61      echo "<TD>Lat:<input type='text' id='LowRightLat' name='LowRightLat' value='-90' size=5 onKeyUp='VerifyArea()'/>";
62      echo "Lon:<input type='text' id='LowRightLon' name='LowRightLon' value='180' size=6 onKeyUp='VerifyArea()'/></TD>";
63   echo "</TR>";
64   echo "<TR><TD><div id='ErrorArea'></div><TD></TR>";
65
66
67   //Line of the selection of the dates
68   echo "<TR id='Dates'>";
69   echo "<TD><B>Dates :</B></TD>";
70   echo "</TR>";
71   echo "<TR id='FirstDateLine'>";
72      echo "<TD><div id='FirstDate'>First Date</div></TD>";
73      echo "<TD><select name='Year1' id='Year1' onchange='VerifyDate()'/>";
74      echo "<select name='Month1' id='Month1' onchange='VerifyDate()'/>";
75      echo "<select name='Day1' id='Day1' onchange='VerifyDate()'/></TD>";
76   echo "</TR>";
77   echo "<TR id='SecondDateLine'>";
78      echo "<TD>Last Date</TD>";
79      echo "<TD><select name='Year2' id='Year2' onchange='VerifyDate()'/>";
80      echo "<select name='Month2' id='Month2' onchange='VerifyDate()'/>";
81      echo "<select name='Day2' id='Day2' onchange='VerifyDate()'/></TD>";
82   echo "</TR>";
83   echo "<TR><TD></TD><TD><div id='ErrorDate'></div></TD></TR>";
84
85
86   echo "<TR id='Output'>";
87   echo "<TD><B>Format of the file :</B></TD>";
88   echo "</TR>";
89   echo "<TR id='DFFLine'><TD>Data file format</TD>";
90   echo "<TD><SELECT Name='DataFileFormat'>";
91   echo "<OPTION VALUE=1>Ascii</OPTION>";
92   echo "<OPTION VALUE=2>NetCDF</OPTION>";
93   echo "</SELECT></TD></TR>";
94
95   echo "<TR id='DFCLine'><TD>Data file compress</TD>";
96   echo "<TD><SELECT Name='DataFileCompress'>";
97   echo "<OPTION VALUE=0>No compress</OPTION>";
98   echo "<OPTION VALUE=1>Zip</OPTION>";
99   echo "<OPTION VALUE=2>Gzip</OPTION>";
100   echo "</SELECT></TD></TR>";
101   echo "</TABLE>";
102
103   echo "<TABLE>";
104   echo "<BUTTON TYPE='SUBMIT' VALUE='Start_visualization' ID='Valid' NAME='Start_visualization' >Start extraction </BUTTON>";
105   echo "</TABLE>";
106   echo "</FORM>";
107
108   //Products & Dates are hidden, they appear depending the use case
109   echo "<SCRIPT language='javascript'>";
110   echo "document.getElementById('ProductLine').style.visibility='hidden';";
111   echo "document.getElementById('Dates').style.visibility='hidden';";
112   echo "document.getElementById('FirstDateLine').style.visibility='hidden';";
113   echo "document.getElementById('SecondDateLine').style.visibility='hidden';";
114   echo "document.getElementById('ZoneStudy').style.visibility='hidden';";
115   echo "document.getElementById('UpLeftCorn').style.visibility='hidden';";
116   echo "document.getElementById('LowRightCorn').style.visibility='hidden';";
117   echo "document.getElementById('Valid').style.visibility='hidden';";
118   echo "document.getElementById('Output').style.visibility='hidden';";
119   echo "document.getElementById('DFFLine').style.visibility='hidden';";
120   echo "document.getElementById('DFCLine').style.visibility='hidden';";
121   echo "</SCRIPT>\n";
122
123   $DB->Close();
124?>
125</BODY>
126</HTML>
Note: See TracBrowser for help on using the repository browser.