views/assertions.php
changeset 5 cb13c07e7e5d
parent 4 fcb273554da6
--- a/views/assertions.php	Sun Dec 28 17:20:55 2008 +0000
+++ b/views/assertions.php	Sun Dec 28 20:48:10 2008 +0000
@@ -13,19 +13,19 @@
 <th colspan="<?=$colspan?>"><?=$user_name?>
 <th colspan="<?=$colspan?>"><?=$other_user_name?>
 <tr>
-<th>Id
+<th><?=lang("id_str");?>
 <?php if(isset($show_influences)):?>
-<th>Influo
+<th><?=lang("influence_str")?>
 <?php endif;?>
-<th>Valoro
-<th>Kalkulita
+<th><?=lang("value_str")?>
+<th><?=lang("calculated_str")?>
 <?php if(isset($show_influences)):?>
-<th>Influo
+<th><?=lang("influence_str")?>
 <?php endif;?>
-<th>Valoro
-<th>Kalkulita
-<th>Teksto
-<th>Ŝanĝi
+<th><?=lang("value_str")?>
+<th><?=lang("calculated_str")?>
+<th><?=lang("assertion_str")?>
+<th><?=lang("change_str")?>
 <?php foreach($assertions as $assertion):?>
 <?=form_open("opiniarbo/index/$assertionid/$other_user");?>
 <tr>
@@ -36,7 +36,7 @@
     echo "<td>{$assertion['id']}";
     if(isset($assertion['value1']))
     {
-        $value1 = $assertion['value1'];
+        $value1 = sprintf("%2.2f", $assertion['value1']);
         // We suppose any value1 comes with vid
         echo "<input type=\"hidden\" name=\"vid\" id=\"vid\" value=\"{$assertion['vid']}\">";
     }
@@ -47,18 +47,18 @@
         if (isset($assertion['parent']))
         {
             if(isset($assertion['influence1']))
-                $influence1 = $assertion['influence1'];
+                $influence1 = sprintf("%2.2f", $assertion['influence1']);
             else
                 $influence1 = "";
             echo "<td><input type=\"text\" name=\"influence\" id=\"influence\" value=\"".
-               sprintf("%2.2f", $influence1)."\" maxlength=\"5\" size=\"3\" />";
+               $influence1."\" maxlength=\"5\" size=\"3\" />";
         }
         else
             echo "<td>";
     }
 
     echo "<td><input type=\"text\" name=\"value\" id=\"value\" value=\"".
-        sprintf("%2.2f", $value1)."\" maxlength=\"5\" size=\"3\" />";
+        $value1."\" maxlength=\"5\" size=\"3\" />";
 
     if (isset($assertion['calc_value1']))
         echo "<td>".sprintf("%2.2f", $assertion['calc_value1']);
@@ -70,10 +70,10 @@
         if (isset($assertion['parent']))
         {
             if(isset($assertion['influence2']))
-                $influence2 = $assertion['influence2'];
+                $influence2 = sprintf("%2.2f", $assertion['influence2']);
             else
                 $influence2 = "";
-            echo "<td>".sprintf("%2.2f", $influence2);
+            echo "<td>".$influence2;
         }
         else
             echo "<td>";
@@ -93,10 +93,10 @@
 ?>
 <td>
 <?php  if(isset($assertion['value1'])):?>
-    <input type="submit" name="modify" value="Ŝanĝi"/>
-    <input type="submit" name="delete" value="Forigi"/>
+    <input type="submit" name="modify" value="<?=lang("change_str");?>"/>
+    <input type="submit" name="delete" value="<?=lang("delete_str");?>"/>
 <?php  else:?>
-    <input type="submit" name="addvalue" value="Taksi"/>
+    <input type="submit" name="addvalue" value="<?=lang("addvalue_str");?>"/>
 <?php  endif;?>
 </form>
 <?php endforeach;?>