Changeset 121 for trunk/matml/webselector/php/select.php
- Timestamp:
- 10/26/2004 05:24:02 PM (8 years ago)
- Files:
-
- 1 modified
-
trunk/matml/webselector/php/select.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/matml/webselector/php/select.php
r79 r121 8 8 <meta name="Keywords" content="Materials Engineering, Metallurgy, Materials Learning"> 9 9 <title>MatDL:: Materials Selector</title> 10 <link rel="stylesheet" title="Default" href="style.css" type="text/css" media="screen">11 10 </head> 12 <body> 13 <h1><em>MatDL:: Plot</em></h1> 14 <div id="main"> 11 <body bgcolor="#e5e8b2" style="font-family: arial,helevetica,verdana, sans-serif"> 12 <center> 13 <table width="101%" border="0" cellpadding="0" cellspacing="0"> 14 <tr> 15 <th width="24%" bordercolor="#BDB583" bgcolor="#BDB583" scope="col"><div align="center"><img src="images/MATDL-LOGO.JPG" width="240" height="85" border="0" usemap="#Map" /></div></th> 16 <th width="49%" height="84" bordercolor="#BDB583" bgcolor="#BDB583" scope="col"><p> 17 <b><em style="font-size: 40px">MatDL: MatML and Material Grapher</em></b> 18 </p> </th> 19 <th width="27%" colspan="2" bordercolor="#BDB583" bgcolor="#BDB583" scope="col"><div align="center"><img src="images/NSF+NSDL-LOGO.JPG" width="256" height="77" border="0" usemap="#Map3Map" /> 20 <map name="Map3Map" id="Map32"> 21 <area shape="rect" coords="-2,24,112,59" href="http://www.nsdl.org" /> 22 <area shape="circle" coords="149,29,20" href="http://www.nsf.gov" /> 23 24 <area shape="rect" coords="177,35,245,66" href="http://www.nist.gov" /> 25 </map> 26 </div></th> 27 </tr> 28 </table> 29 <br> 15 30 <? 16 $plot = $_REQUEST["plot"]; 31 if(isset($_REQUEST["plot"])) 32 { 33 $plot = $_REQUEST["plot"]; 34 } 35 else 36 { 37 $plot = "EvsD"; 38 } 39 if(isset($_REQUEST["selected"])) 40 { 41 $selected = $_REQUEST["selected"]; 42 } 43 else 44 $selected = ""; 45 if(isset($_REQUEST["categorization"])) 46 $categorization=$_REQUEST['categorization']; 47 else 48 $categorization=0; 49 include("clicked.inc"); 50 if(isset($_REQUEST["clicked"])) 51 { 52 list($clickX,$clickY)=explode(",",substr($_REQUEST["clicked"],1)); 53 clicked(); 54 } 55 if($selected) 56 get_selected_data(); 17 57 18 if(!isset($plot)){ 19 $plot = "EvsD"; 20 } 21 22 echo "<img src=\"plot.php?plot=$plot\">" 58 echo "<a href=\"select.php?plot=$plot&selected=".urlencode($selected)."&categorization=$categorization&clicked=\"><img width=600 height=450 src=\"plot.php?plot=$plot&selected=".urlencode($selected)."&categorization=$categorization\" ismap style=\"border-style: none\"></a>" 23 59 ?> 24 60 <div class="content"> 25 61 <br> 26 62 <br> 63 <? 64 if($selected) 65 { 66 echo "<table>\n"; 67 echo "<tr>\n<td colspan=3 align=center><h3>Selected Material Information</h3></td>\n</tr>\n"; 68 echo "<tr><td>Name</td><td width=20></td><td>$selected</td></tr>\n"; 69 echo "<tr><td>$xlabel</td><td></td><td>$selected_xval</td></tr>\n"; 70 echo "<tr><td>$ylabel</td><td></td><td>$selected_yval</td></tr>\n"; 71 echo "</table>\n"; 72 } 73 ?> 74 <BR> 75 <BR> 76 <HR> 77 <BR> 78 <BR> 27 79 <form action="select.php" method="get"> 80 <table> 81 <tr> 82 <th>Plot type</th> 83 </tr> 84 <tr> 85 <td align="left"> 28 86 <? 87 echo "<input type=\"hidden\" name=\"selected\" value=\"$selected\">\n"; 88 29 89 $plotypes = array("EvsD","EvsYield","EovDvsYieldovD","KvsDCp"); 30 90 $plotnames = array( … … 55 115 echo $plotnames[$type]; 56 116 } 57 ?><br> 117 ?> 118 </td></tr></table> 119 <BR><BR> 120 <table> 121 <tr> 122 <th>Categorization</th> 123 </tr> 124 <tr> 125 <td align="left"> 126 <? 127 $categorizations=array("None","Metals, Polymers, and Ceramics"); 128 $left="<input type=\"radio\" name=\"categorization\" value=\""; 129 $right = "\">"; 130 131 132 133 foreach($categorizations as $index=>$name){ 134 135 echo $left; 136 echo $index; 137 138 139 140 if($index == $categorization){ 141 echo "\" checked>"; 142 } 143 else{ 144 echo $right; 145 } 146 147 echo $name."<BR>\n"; 148 } 149 ?> 150 </td></tr></table> 58 151 <br> 59 152 <input type="submit" value="Change Plot"> 60 153 </form> 61 154 </div> 62 63 </div> 155 <HR> 156 <table> 157 <tr><td colspan=2 align=center> 158 <h3>People</h3> 159 </td></tr> 160 <tr> 161 <td>Kyle Stemen</td><td>Kent State University</td> 162 </tr> 163 <tr> 164 <td>Jorge Vieyra</td><td>Massachusetts Institute of Technology</td> </tr> 165 </tr> 166 <tr> 167 <td>Cathy Lowe</td><td>Kent State University</td> </tr> 168 </tr> 169 <tr> 170 <td>Laura Bartolo</td><td>Kent State University</td> </tr> 171 </tr> 172 <tr> 173 <td>Adam Powell</td><td>Massachusetts Institute of Technology</td> </tr> 174 </tr> 175 </table> 176 <P> 177 <BR> 178 <h3>Grants</h3> 179 NSF DUE-0333520<BR> 180 NIST 70NANB30H1 181 </center> 64 182 </body> 65 183 </html>