views/arbo.php
changeset 1 f08a11b5d207
parent 0 3773f4677c40
child 2 7c6c888b2fed
equal deleted inserted replaced
0:3773f4677c40 1:f08a11b5d207
     1 <html>
     1 <html>
     2 <head>
     2 <head>
     3 <title>Opiniarbo</title>
     3 <title>Opiniarbo</title>
     4 <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>
     4 <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>
       
     5 <meta http-equiv="cache-control" content="no-cache">
     5 
     6 
     6 <style type="text/css">
     7 <style type="text/css">
     7 
     8 
     8 body {
     9 body {
     9  background-color: #fff;
    10  background-color: #fff;
    50 
    51 
    51 {logindata}
    52 {logindata}
    52 
    53 
    53 <h2>Antaŭasertoj</h2>
    54 <h2>Antaŭasertoj</h2>
    54 
    55 
       
    56 <td><?php echo anchor('opiniarbo/index/', 'Ĉiuj bazaj asertoj'); ?>
       
    57 
    55 <table border=1>
    58 <table border=1>
    56 <tr>
    59 <tr>
       
    60 <th>Id
    57 <th>Valoro
    61 <th>Valoro
    58 <th>Influo
    62 <th>Influo
    59 <th>Kalkulita
    63 <th>Kalkulita
    60 <th>Teksto
    64 <th>Teksto
    61 {preasserts}
    65 {preasserts}
    62 <tr>
    66 <tr>
       
    67 <td>{id}
    63 <td>{value}
    68 <td>{value}
    64 <td>{influence}
    69 <td>{influence}
    65 <td>{calculation}
    70 <td>{calc_value}
    66 <td>{text}
    71 <td><?php echo anchor('opiniarbo/index/{id}', '{assert}'); ?>
    67 {/preasserts}
    72 {/preasserts}
    68 </table>
    73 </table>
    69 
    74 
    70 <h2>Ĉefaserto</h2>
    75 <h2>Ĉefaserto</h2>
    71 
    76 
    72 <table border=1>
    77 <table border=1>
    73 <tr>
    78 <tr>
       
    79 <th>Id
    74 <th>Valoro
    80 <th>Valoro
    75 <th>Influo
    81 <th>Influo
    76 <th>Kalkulita
    82 <th>Kalkulita
    77 <th>Aserto
    83 <th>Aserto
    78 {preasserts}
       
    79 <tr>
    84 <tr>
    80 <td>{value}
    85 <td>{mainassert}
    81 <td>{influence}
    86 <td>{mainvalue}
    82 <td>{calculation}
    87 <td>{maininfluence}
    83 <td>{assert}
    88 <td>{maincalc_value}
    84 {/preasserts}
    89 <td>{maintext}
    85 </table>
    90 </table>
    86 
    91 
    87 <h3>Kunteksto</h3>
    92 <h3>Kunteksto</h3>
    88 <p>{context}</p>
    93 <p>{maincontext}</p>
    89 
    94 
    90 <h2>Subasertoj</h2>
    95 <h2>Subasertoj</h2>
    91 
    96 
    92 <table border=1>
    97 <table border=1>
    93 <tr>
    98 <tr>
       
    99 <th>Id
    94 <th>Valoro
   100 <th>Valoro
    95 <th>Influo
   101 <th>Influo
    96 <th>Kalkulita
   102 <th>Kalkulita
    97 <th>Aserto
   103 <th>Aserto
    98 <th>Ŝanĝi
   104 <th>Ŝanĝi
    99 {subasserts}
   105 {subasserts}
   100 <?php form_open('opiniarbo/index'); ?>
   106 <?php form_open('opiniarbo/index/{mainassert}'); ?>
   101 <input type="hidden" name="mainassert" id="mainassert" value="{parent}">
   107 <input type="hidden" name="mainassert" id="mainassert" value="{parent}">
   102 <input type="hidden" name="id" id="id" value="{id}">
   108 <input type="hidden" name="id" id="id" value="{id}">
   103 <tr>
   109 <tr>
       
   110 <td>{id}
   104 <td><input type="text" name="value" id="value" value="{value}" maxlength="5" size="3" />
   111 <td><input type="text" name="value" id="value" value="{value}" maxlength="5" size="3" />
   105 <td><input type="text" name="influence" id="influence" value="{influence}" maxlength="5" size="3" />
   112 <td><input type="text" name="influence" id="influence" value="{influence}" maxlength="5" size="3" />
   106 <td>{calculation}
   113 <td>{calc_value}
   107 <td>{assert}
   114 <td><?php echo anchor('opiniarbo/index/{id}', '{assert}'); ?>
   108 <td><input type="submit" name="modify" value="Ŝanĝi"/>
   115 <td><input type="submit" name="modify" value="Ŝanĝi"/>
   109 </form>
   116 </form>
   110 {/subasserts}
   117 {/subasserts}
   111 </table>
   118 </table>
   112 
   119 
   113 <h2>Nova subaserto</h2>
   120 <h2>Nova subaserto</h2>
   114 
   121 
   115 <?php form_open('opiniarbo/index'); ?>
   122 <?php echo validation_errors(); ?>
       
   123 
       
   124 <?php echo form_open('opiniarbo/index/{mainassert}'); ?>
   116 <input type="hidden" name="mainassert" id="mainassert" value="{parent}">
   125 <input type="hidden" name="mainassert" id="mainassert" value="{parent}">
   117 <ul>
   126 <ul>
   118 <li>Aserto: <input type="text" name="text" id="text" maxlength="500" size="100" />
   127 <li>Aserto: <input type="text" name="text" id="text" maxlength="500" size="100" />
   119 <li>Valoro de aserto: <input type="text" name="value" id="value" maxlength="5" size="3" />
   128 <li>Valoro de aserto: <input type="text" name="value" id="value" maxlength="5" size="3" />
   120 <li>Influo al la ĉefaserto: <input type="text" name="influence" id="influence" maxlength="5" size="3" />
   129 <li>Influo al la ĉefaserto: <input type="text" name="influence" id="influence" maxlength="5" size="3" />
   121 </ul>
   130 </ul>
   122 
   131 
   123 <h3>Kunteksto</h3>
   132 <h3>Kunteksto</h3>
   124 <p><textarea rows="10" cols="50" name="context" id="context"></textarea></p>
   133 <p><textarea rows="10" cols="50" name="context" id="context"></textarea></p>
   125 
   134 
   126 <p><input type="submit" name="modify" value="Ŝanĝi"/></p>
   135 <p><input type="submit" name="modify" value="Aldoni"/></p>
   127 </form>
   136 </form>
   128 
   137 
   129 <p><br />Page rendered in {elapsed_time} seconds</p>
   138 <p><br />Page rendered in {elapsed_time} seconds</p>
   130 
   139 
   131 </body>
   140 </body>