1 <?xml version="1.0" encoding="iso-8859-1"?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 3 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 4 <html xmlns="http://www.w3.org/1999/xhtml" 5 xmlns:template="http://www.boddie.org.uk/ns/xmltools/template"> 6 <head> 7 <title template:i18n="-">System Configurator</title> 8 <meta name="generator" content="amaya 8.1a, see http://www.w3.org/Amaya/" /> 9 <link xmlns:xlink="http://www.w3.org/1999/xlink" href="styles/styles.css" rel="stylesheet" type="text/css" /> 10 <script type="text/javascript" src="scripts/sarissa.js"> </script> 11 <script type="text/javascript" src="scripts/XSLForms.js"> </script> 12 </head> 13 14 <body> 15 <h1 template:i18n="-">System Configurator</h1> 16 17 <form method="post" action="" template:element="configuration"> 18 <div id="left"> 19 <div template:element="details" class="details"> 20 <h2 template:i18n="Base System">Base System</h2> 21 22 <p xml:space="preserve"><span template:i18n="-">Model</span> 23 <select template:multiple-choice-field="base-system,value" name="..." 24 onchange=" 25 requestUpdate('cpu', '{template:this-attribute()}', 26 '{template:other-elements(../cpu)}', '{template:other-attributes('value', ../cpu)}', 27 '/configuration/details'); 28 requestUpdate('memory', '{template:this-attribute()}', 29 '{template:other-elements(../../memory)}', '{template:other-attributes('value', ../../memory/memory-unit)}', 30 '/configuration/memory'); 31 requestUpdate('hard-disks', '{template:this-attribute()}', 32 '{template:other-elements(../../hard-disks)}', 33 '{template:other-attributes('value', ../../hard-disks/hard-disk)}', '/configuration/hard-disks')"> 34 <option template:multiple-choice-value="base-system-enum,value,selected,text()" value="..."></option> 35 </select> 36 </p> 37 38 <h2 template:i18n="-">Processor</h2> 39 40 <p template:element="cpu" template:section="cpu-node" id="{template:this-element()}" xml:space="preserve"><span template:i18n="-">CPU</span> 41 <select template:multiple-choice-field="-,value" name="..."> 42 <option template:multiple-choice-value="cpu-enum,value,selected" value="..."></option> 43 </select> 44 </p> 45 </div> 46 47 <div class="memory" template:element="memory"> 48 <h2 template:i18n="-">Memory</h2> 49 50 <div template:section="memory-node" id="{template:this-element()}"> 51 <p template:element="memory-unit" xml:space="preserve"><span template:i18n="-">Memory unit</span> 52 <select template:multiple-choice-field="-,value" name="..."> 53 <option template:multiple-choice-value="memory-unit-enum,value,selected" value="..."></option> 54 </select> 55 56 <input type="submit" value="{template:i18n('Remove')}" name="..." template:selector-field="remove-memory-unit" /> 57 </p> 58 59 <p> 60 <input type="submit" value="{template:i18n('Add memory')}" name="..." template:selector-field="add-memory-unit,memory-unit" /> 61 </p> 62 </div> 63 </div> 64 </div> 65 <div id="right"> 66 <div class="hard-disks" template:element="hard-disks"> 67 <h2 template:i18n="-">Hard Disks</h2> 68 69 <div template:section="hard-disks-node" id="{template:this-element()}"> 70 <p template:element="hard-disk" xml:space="preserve"><span template:i18n="-">Hard disk drive</span> 71 <select template:multiple-choice-field="-,value" name="..."> 72 <option template:multiple-choice-value="hard-disk-enum,value,selected" value="..."></option> 73 </select> 74 75 <input type="submit" value="{template:i18n('Remove')}" name="..." template:selector-field="remove-hard-disk" /> 76 </p> 77 78 <p> 79 <input type="submit" value="{template:i18n('Add hard disk')}" name="..." template:selector-field="add-hard-disk,hard-disk" /> 80 </p> 81 </div> 82 </div> 83 84 <div template:element="storage" class="storage"> 85 <h2 template:i18n="-">Additional Storage</h2> 86 87 <p template:element="storage-unit" xml:space="preserve"><span template:i18n="-">Storage unit</span> 88 <select template:multiple-choice-field="-,value" name="..." 89 onchange="requestUpdate('accessories', '{template:other-attributes('value', ../storage-unit)}', '{template:other-elements(../../accessories)}', '{template:other-list-attributes('accessory-enum', 'value', ../../accessories)}', '/configuration')"> 90 91 <option template:multiple-choice-value="storage-unit-enum,value,selected" value="..."></option> 92 </select> 93 94 <input type="submit" value="{template:i18n('Remove')}" name="..." template:selector-field="remove-storage-unit" /> 95 </p> 96 97 <p> 98 <input type="submit" value="{template:i18n('Add storage')}" name="..." template:selector-field="add-storage-unit,storage-unit" /></p> 99 </div> 100 101 <div template:element="accessories" template:section="accessories-node" id="{template:this-element()}" class="accessories"> 102 <h2 template:i18n="-">Accessories</h2> 103 104 <select name="..." template:multiple-choice-list-field="-,accessory-enum,value" multiple="multiple"> 105 <option template:multiple-choice-list-value="accessory-enum,value,selected" value="..."></option> 106 </select> 107 </div> 108 </div> 109 <div id="bottom"> 110 <div template:element="peripherals" class="peripherals"> 111 <h2 template:i18n="-">Input Devices</h2> 112 113 <p template:element="keyboard" xml:space="preserve"><span template:i18n="-">Keyboard</span> 114 <select template:multiple-choice-field="-,value" name="..."> 115 <option template:multiple-choice-value="keyboard-enum,value,selected" value="..."></option> 116 </select> 117 </p> 118 119 <p template:element="mouse" xml:space="preserve"><span template:i18n="-">Mouse</span> 120 <select template:multiple-choice-field="-,value" name="..."> 121 <option template:multiple-choice-value="mouse-enum,value,selected" value="..."></option> 122 </select> 123 </p> 124 125 <h2 template:i18n="-">Display</h2> 126 127 <p template:element="screen" xml:space="preserve"><span template:i18n="-">Screen</span> 128 <select template:multiple-choice-field="-,value" name="..."> 129 <option template:multiple-choice-value="screen-enum,value,selected" value="..."></option> 130 </select> 131 </p> 132 </div> 133 134 <div class="price"> 135 <h2 template:i18n="-">Price</h2> 136 137 <p xml:space="preserve"><span template:i18n="-">Total for this configuration:</span> 138 <span template:value="sum(/configuration//*[@value-is-set]/@price) + sum(/configuration//*[@value = ../@value]/@price)"></span></p> 139 140 <p> 141 <input type="submit" value="{template:i18n('Update!')}" name="update" /> 142 <input type="submit" value="{template:i18n('Export!')}" name="export" /></p> 143 </div> 144 </div> 145 </form> 146 </body> 147 </html>