views/arbo.php
changeset 1 f08a11b5d207
parent 0 3773f4677c40
child 2 7c6c888b2fed
--- a/views/arbo.php	Thu Dec 25 11:25:58 2008 +0000
+++ b/views/arbo.php	Thu Dec 25 21:39:19 2008 +0000
@@ -2,6 +2,7 @@
 <head>
 <title>Opiniarbo</title>
 <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>
+<meta http-equiv="cache-control" content="no-cache">
 
 <style type="text/css">
 
@@ -52,18 +53,22 @@
 
 <h2>Antaŭasertoj</h2>
 
+<td><?php echo anchor('opiniarbo/index/', 'Ĉiuj bazaj asertoj'); ?>
+
 <table border=1>
 <tr>
+<th>Id
 <th>Valoro
 <th>Influo
 <th>Kalkulita
 <th>Teksto
 {preasserts}
 <tr>
+<td>{id}
 <td>{value}
 <td>{influence}
-<td>{calculation}
-<td>{text}
+<td>{calc_value}
+<td><?php echo anchor('opiniarbo/index/{id}', '{assert}'); ?>
 {/preasserts}
 </table>
 
@@ -71,40 +76,42 @@
 
 <table border=1>
 <tr>
+<th>Id
 <th>Valoro
 <th>Influo
 <th>Kalkulita
 <th>Aserto
-{preasserts}
 <tr>
-<td>{value}
-<td>{influence}
-<td>{calculation}
-<td>{assert}
-{/preasserts}
+<td>{mainassert}
+<td>{mainvalue}
+<td>{maininfluence}
+<td>{maincalc_value}
+<td>{maintext}
 </table>
 
 <h3>Kunteksto</h3>
-<p>{context}</p>
+<p>{maincontext}</p>
 
 <h2>Subasertoj</h2>
 
 <table border=1>
 <tr>
+<th>Id
 <th>Valoro
 <th>Influo
 <th>Kalkulita
 <th>Aserto
 <th>Ŝanĝi
 {subasserts}
-<?php form_open('opiniarbo/index'); ?>
+<?php form_open('opiniarbo/index/{mainassert}'); ?>
 <input type="hidden" name="mainassert" id="mainassert" value="{parent}">
 <input type="hidden" name="id" id="id" value="{id}">
 <tr>
+<td>{id}
 <td><input type="text" name="value" id="value" value="{value}" maxlength="5" size="3" />
 <td><input type="text" name="influence" id="influence" value="{influence}" maxlength="5" size="3" />
-<td>{calculation}
-<td>{assert}
+<td>{calc_value}
+<td><?php echo anchor('opiniarbo/index/{id}', '{assert}'); ?>
 <td><input type="submit" name="modify" value="Ŝanĝi"/>
 </form>
 {/subasserts}
@@ -112,7 +119,9 @@
 
 <h2>Nova subaserto</h2>
 
-<?php form_open('opiniarbo/index'); ?>
+<?php echo validation_errors(); ?>
+
+<?php echo form_open('opiniarbo/index/{mainassert}'); ?>
 <input type="hidden" name="mainassert" id="mainassert" value="{parent}">
 <ul>
 <li>Aserto: <input type="text" name="text" id="text" maxlength="500" size="100" />
@@ -123,7 +132,7 @@
 <h3>Kunteksto</h3>
 <p><textarea rows="10" cols="50" name="context" id="context"></textarea></p>
 
-<p><input type="submit" name="modify" value="Ŝanĝi"/></p>
+<p><input type="submit" name="modify" value="Aldoni"/></p>
 </form>
 
 <p><br />Page rendered in {elapsed_time} seconds</p>