factor/extra/webapps/calculator/calculator.xml

31 lines
519 B
XML
Raw Normal View History

2008-09-23 04:35:09 -04:00
<?xml version='1.0' ?>
<t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
2009-01-12 17:17:58 -05:00
<html>
2008-09-23 04:35:09 -04:00
<head> <title>Calculator</title> </head>
<body>
<h1>Calculator</h1>
<t:form t:action="$calculator">
<table>
<tr><td>First value:</td><td> <t:field t:name="x" /> </td></tr>
<tr><td>Second value:</td><td> <t:field t:name="y" /> </td></tr>
</table>
<input type="SUBMIT" value="Compute" />
<t:if t:value="z">
<br/>
Result: <t:label t:name="z" />
</t:if>
</t:form>
</body>
2009-01-12 17:17:58 -05:00
</html>
2008-09-23 04:35:09 -04:00
</t:chloe>