Show
Ignore:
Timestamp:
02/18/2005 02:27:34 PM (7 years ago)
Author:
kstemen
Message:

Set page encoding to UTF8 (some of the data from the MatML files is in UTF8, not ANSI).

Changed heat capacity so it uses Kelvin, like Thermal Conductivity.

Categorization color key is fixed for IE.

The extra 1's in unit descriptions have been removed, e.g. W-1-1/1-1-m-K is now W/m-K.

The unit conversion code now converts between degrees Fahrenheit, degrees Celcius, and Kelvin by only multiplying or dividing if those units appear with negative powers. I think this means I am treating all degrees Fahrenheit with negative powers as Rankin.

Upon Laura's request, the page title has been switched back to MatDL: MatML and Material Grapher.

Files:
1 modified

Legend:

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

    r152 r155  
    11<?php 
     2header("Content-Type: text/html; charset=utf-8");  
    23include("dbquery.php.inc"); 
    34include "setvars.inc.php"; 
     
    78<html> 
    89<head> 
    9    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
     10   <!--<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">--> 
    1011   <meta name="Author" content="MatDL Team"> 
    1112   <meta name="Description" content="MatDL Simple Selector"> 
     
    5152echo "<td>\n"; 
    5253$color=$category_raw_colors[$number]; 
    53 echo sprintf("<table border=1 width=8 height=8 bgcolor=#%02X%02X%02X></table>\n",$color[0],$color[1],$color[2]); 
     54echo sprintf("<table border=1 width=8 height=8 bgcolor=#%02X%02X%02X><tr><td></td></tr></table>\n",$color[0],$color[1],$color[2]); 
    5455echo "</td>\n"; 
    5556echo "<td>\n"; 
     
    6970    echo "<tr>\n"; 
    7071    echo "<td>\n"; 
    71     echo sprintf("<table border=1 width=8 height=8 bgcolor=#%02X%02X%02X></table>\n",$color[0],$color[1],$color[2]); 
     72    echo sprintf("<table border=1 width=8 height=8 bgcolor=#%02X%02X%02X><tr><td></td></tr></table>\n",$color[0],$color[1],$color[2]); 
    7273    echo "</td>\n"; 
    7374    echo "<td>\n&nbsp;&nbsp;";