He afegit opinions per usuari.
<html>
<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">
body {
background-color: #fff;
margin: 40px;
font-family: Lucida Grande, Verdana, Sans-serif;
font-size: 14px;
color: #4F5155;
}
a {
color: #003399;
background-color: transparent;
font-weight: normal;
}
h1 {
color: #444;
background-color: transparent;
border-bottom: 1px solid #D0D0D0;
font-size: 16px;
font-weight: bold;
margin: 24px 0 2px 0;
padding: 5px 0 6px 0;
}
code {
font-family: Monaco, Verdana, Sans-serif;
font-size: 12px;
background-color: #f9f9f9;
border: 1px solid #D0D0D0;
color: #002166;
display: block;
margin: 14px 0 14px 0;
padding: 12px 10px 12px 10px;
}
</style>
</head>
<body>
<h1>Opiniarbo</h1>
<h2>Uzantoj</h2>
{logindata}
<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>{calc_value}
<td><?php echo anchor('opiniarbo/index/{id}', '{assert}'); ?>
{/preasserts}
</table>
<h2>Ĉefaserto</h2>
<table border=1>
<tr>
<th>Id
<th>Valoro
<th>Influo
<th>Kalkulita
<th>Aserto
<tr>
<td>{mainassert}
<td>{mainvalue}
<td>{maininfluence}
<td>{maincalc_value}
<td>{maintext}
</table>
<h3>Kunteksto</h3>
<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 echo form_open('opiniarbo/index/{mainassert}'); ?>
<input type="hidden" name="mainassert" id="mainassert" value="{parent}">
<input type="hidden" name="id" id="id" value="{id}">
<input type="hidden" name="vid" id="vid" value="{vid}">
<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>{calc_value}
<td><?php echo anchor('opiniarbo/index/{id}', '{assert}'); ?>
<td><input type="submit" name="modify" value="Ŝanĝi"/>
</form>
{/subasserts}
</table>
<h2>Nova subaserto</h2>
<?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" />
<li>Valoro de aserto: <input type="text" name="value" id="value" maxlength="5" size="3" />
<li>Influo al la ĉefaserto: <input type="text" name="influence" id="influence" maxlength="5" size="3" />
</ul>
<h3>Kunteksto</h3>
<p><textarea rows="10" cols="50" name="context" id="context"></textarea></p>
<p><input type="submit" name="add" value="Aldoni"/></p>
</form>
<p><br />Page rendered in {elapsed_time} seconds</p>
</body>
</html>