1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/examples/Common/Configurator/Resources/config_template.xhtml Thu Dec 30 02:03:35 2004 +0000
1.3 @@ -0,0 +1,131 @@
1.4 +<?xml version="1.0" encoding="iso-8859-1"?>
1.5 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
1.6 + "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
1.7 +<html xmlns="http://www.w3.org/1999/xhtml"
1.8 + xmlns:template="http://www.boddie.org.uk/ns/xmltools/template">
1.9 +<head>
1.10 + <title>System Configurator</title>
1.11 + <meta name="generator" content="amaya 8.1a, see http://www.w3.org/Amaya/" />
1.12 + <link xmlns:xlink="http://www.w3.org/1999/xlink" href="styles.css"
1.13 + rel="stylesheet" type="text/css" />
1.14 +</head>
1.15 +
1.16 +<body>
1.17 +<h1>System Configurator</h1>
1.18 +
1.19 +<form method="post" action="" template:element="configuration">
1.20 +<div id="left">
1.21 + <div template:element="details" class="details">
1.22 + <h2>Base System</h2>
1.23 +
1.24 + <p template:element="base-system">Model
1.25 + <select name="{template:multi-field-name('value')}">
1.26 + <option template:element="base-system-enum" template:expr="@value-is-set" template:expr-attr="selected" template:value="@value"
1.27 + value="{@value}"></option>
1.28 + </select>
1.29 + </p>
1.30 +
1.31 + <h2>Processor</h2>
1.32 +
1.33 + <p template:element="cpu">CPU
1.34 + <select name="{template:multi-field-name('value')}">
1.35 + <option template:element="cpu-enum" template:expr="@value-is-set" template:expr-attr="selected" template:value="@value"
1.36 + value="{@value}"></option>
1.37 + </select>
1.38 + </p>
1.39 + </div>
1.40 +
1.41 + <div template:element="memory" class="memory">
1.42 + <h2>Memory</h2>
1.43 +
1.44 + <p template:element="memory-unit">Memory unit
1.45 + <select name="{template:multi-field-name('value')}">
1.46 + <option template:element="memory-unit-enum" template:expr="@value-is-set" template:expr-attr="selected" template:value="@value"
1.47 + value="{@value}"></option>
1.48 + </select>
1.49 +
1.50 + <input type="submit" value="Remove"
1.51 + name="remove-memory-unit={template:this-position()}" /></p>
1.52 +
1.53 + <p>
1.54 + <input type="submit" value="Add memory"
1.55 + name="add-memory-unit={template:this-position()}" /></p>
1.56 + </div>
1.57 +</div>
1.58 +<div id="right">
1.59 + <div template:element="hard-disks" class="hard-disks">
1.60 + <h2>Hard Disks</h2>
1.61 +
1.62 + <p template:element="hard-disk">Hard disk drive
1.63 + <select name="{template:multi-field-name('value')}">
1.64 + <option template:element="hard-disk-enum" template:expr="@value-is-set" template:expr-attr="selected" template:value="@value"
1.65 + value="{@value}"></option>
1.66 + </select>
1.67 +
1.68 + <input type="submit" value="Remove"
1.69 + name="remove-hard-disk={template:this-position()}" /></p>
1.70 +
1.71 + <p>
1.72 + <input type="submit" value="Add hard disk"
1.73 + name="add-hard-disk={template:this-position()}" /></p>
1.74 + </div>
1.75 +
1.76 + <div template:element="storage" class="storage">
1.77 + <h2>Additional Storage</h2>
1.78 +
1.79 + <p template:element="storage-unit">Storage unit
1.80 + <select name="{template:multi-field-name('value')}">
1.81 + <option template:element="storage-unit-enum" template:expr="@value-is-set" template:expr-attr="selected" template:value="@value"
1.82 + value="{@value}"></option>
1.83 + </select>
1.84 +
1.85 + <input type="submit" value="Remove"
1.86 + name="remove-storage-unit={template:this-position()}" /></p>
1.87 +
1.88 + <p>
1.89 + <input type="submit" value="Add storage"
1.90 + name="add-storage-unit={template:this-position()}" /></p>
1.91 + </div>
1.92 +</div>
1.93 +<div id="bottom">
1.94 + <div template:element="peripherals" class="peripherals">
1.95 + <h2>Input Devices</h2>
1.96 +
1.97 + <p template:element="keyboard">Keyboard
1.98 + <select name="{template:multi-field-name('value')}">
1.99 + <option template:element="keyboard-enum" template:expr="@value-is-set" template:expr-attr="selected" template:value="@value"
1.100 + value="{@value}"></option>
1.101 + </select>
1.102 + </p>
1.103 +
1.104 + <p template:element="mouse">Mouse
1.105 + <select name="{template:multi-field-name('value')}">
1.106 + <option template:element="mouse-enum" template:expr="@value-is-set" template:expr-attr="selected" template:value="@value"
1.107 + value="{@value}"></option>
1.108 + </select>
1.109 + </p>
1.110 +
1.111 + <h2>Display</h2>
1.112 +
1.113 + <p template:element="screen">Screen
1.114 + <select name="{template:multi-field-name('value')}">
1.115 + <option template:element="screen-enum" template:expr="@value-is-set" template:expr-attr="selected" template:value="@value"
1.116 + value="{@value}"></option>
1.117 + </select>
1.118 + </p>
1.119 + </div>
1.120 +
1.121 + <div class="price">
1.122 + <h2>Price</h2>
1.123 +
1.124 + <p>Total for this configuration:
1.125 + <span template:value="sum(/configuration//*/@price)"></span></p>
1.126 +
1.127 + <p>
1.128 + <input type="submit" value="Update!" name="update" />
1.129 + <input type="submit" value="Export!" name="export" /></p>
1.130 + </div>
1.131 +</div>
1.132 +</form>
1.133 +</body>
1.134 +</html>