Show
Ignore:
Timestamp:
10/26/2004 05:24:02 PM (8 years ago)
Author:
kstemen
Message:

Added categorization.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/matml/webselector/php/select.php

    r79 r121  
    88   <meta name="Keywords" content="Materials Engineering, Metallurgy, Materials Learning"> 
    99   <title>MatDL:: Materials Selector</title> 
    10 <link rel="stylesheet" title="Default" href="style.css" type="text/css" media="screen"> 
    1110</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> 
    1530<? 
    16 $plot = $_REQUEST["plot"]; 
     31if(isset($_REQUEST["plot"])) 
     32{ 
     33    $plot = $_REQUEST["plot"]; 
     34} 
     35else 
     36{ 
     37    $plot = "EvsD"; 
     38} 
     39if(isset($_REQUEST["selected"])) 
     40{ 
     41    $selected = $_REQUEST["selected"]; 
     42} 
     43else 
     44    $selected = ""; 
     45if(isset($_REQUEST["categorization"])) 
     46    $categorization=$_REQUEST['categorization']; 
     47else 
     48    $categorization=0; 
     49include("clicked.inc"); 
     50if(isset($_REQUEST["clicked"])) 
     51{ 
     52    list($clickX,$clickY)=explode(",",substr($_REQUEST["clicked"],1)); 
     53    clicked(); 
     54} 
     55if($selected) 
     56    get_selected_data(); 
    1757 
    18 if(!isset($plot)){ 
    19   $plot = "EvsD"; 
    20 } 
    21  
    22 echo "<img src=\"plot.php?plot=$plot\">" 
     58echo "<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>" 
    2359?> 
    2460<div class="content"> 
    2561<br> 
    2662<br> 
     63<? 
     64if($selected) 
     65{ 
     66echo "<table>\n"; 
     67echo "<tr>\n<td colspan=3 align=center><h3>Selected Material Information</h3></td>\n</tr>\n"; 
     68echo "<tr><td>Name</td><td width=20></td><td>$selected</td></tr>\n"; 
     69echo "<tr><td>$xlabel</td><td></td><td>$selected_xval</td></tr>\n"; 
     70echo "<tr><td>$ylabel</td><td></td><td>$selected_yval</td></tr>\n"; 
     71echo "</table>\n"; 
     72} 
     73?> 
     74<BR> 
     75<BR> 
     76<HR> 
     77<BR> 
     78<BR> 
    2779<form action="select.php" method="get"> 
     80<table> 
     81<tr> 
     82<th>Plot type</th> 
     83</tr> 
     84<tr> 
     85<td align="left"> 
    2886<? 
     87echo "<input type=\"hidden\" name=\"selected\" value=\"$selected\">\n"; 
     88 
    2989$plotypes = array("EvsD","EvsYield","EovDvsYieldovD","KvsDCp"); 
    3090$plotnames = array( 
     
    55115  echo $plotnames[$type]; 
    56116} 
    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 
     133foreach($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> 
    58151<br> 
    59152<input type="submit" value="Change Plot"> 
    60153</form> 
    61154</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> 
     179NSF DUE-0333520<BR> 
     180NIST 70NANB30H1 
     181</center> 
    64182</body> 
    65183</html>