Code of ExampleGrid11

<?php
define
("PATHDRASTICTOOLS""");
include (
PATHDRASTICTOOLS "Examplemysqlconfig.php");
include (
PATHDRASTICTOOLS "drasticSrcMySQL.class.php");
$src = new drasticSrcMySQL($server$user$pw$db"mountains");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<link rel="stylesheet" type="text/css" href="css/grid_default.css"/>
<title>ExampleGrid11</title>
</head><body>
<script type="text/javascript" src="js/mootools-1.2-core.js"></script>
<script type="text/javascript" src="js/mootools-1.2-more.js"></script>
<script type="text/javascript" src="js/drasticGrid.js"></script>

<h2>The use of the DDTYPEKEY type:</h2>
<div id="grid1"></div>

<script type="text/javascript">
thegrid = new drasticGrid('grid1', {
    pathimg:"img/",
    pagelength:15,
    columns: [
        {name: 'id', displayname:'#', width: 40},
        {name: 'Name', width: 100},
        {name: 'Height', width: 60},       
        {name: 'Continent', displayname:'Renamed Continent',
            type: DDTYPEKEY, values:['Europe','Asia', 'North-America', 'South-America', 'Oceania', 'Africa', 'Antarctica'], labels:['EU','AS', 'NA', 'SA', 'OC', 'AF', 'ANT'], width: 140}                
        // Of course, the DDTYPEKEY type will typically be used to 
        // map user-unfriendly values ('0', '1', '2') to meaningful names ('Africa', 'Europe', 'Asia').
        // The meaningful names can then be read from a lookup table in the database.
    ]
});
</script>

</body></html>