2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Allow for drop down boxes in sample import to be translatable

Updated translation template
Update changelog
Updated translations from Launchpad
This commit is contained in:
azammitdcarf
2013-01-24 01:17:59 +00:00
parent 7995a806c0
commit 004494e4ff
34 changed files with 1732 additions and 1673 deletions

View File

@@ -132,7 +132,7 @@ function display_table($data)
$sql = "SELECT description,type
FROM sample_var_type";
$rs = $db->Execute($sql);
$rs = $db->GetAll($sql);
foreach ($data as $key => $value)
{
@@ -140,10 +140,18 @@ function display_table($data)
$checked = "checked";
if (empty($val)) $val = "samp_$row";
print "<tr><td>$value</td><td><input type=\"checkbox\" name=\"i_$row\" checked=\"$checked\"/></td><td><input type=\"text\" value=\"$val\" name=\"n_$row\"/></td><td>" . $rs->GetMenu("t_$row","1",false) . "</td></tr>";
print "<tr><td>$value</td><td><input type=\"checkbox\" name=\"i_$row\" checked=\"$checked\"/></td><td><input type=\"text\" value=\"$val\" name=\"n_$row\"/></td><td>";
print "<select name=\"t_$row\">";
$selected = "selected=\"selected\"";
foreach($rs as $r)
{
print "<option value=\"{$r['type']}\" $selected>" . T_($r['description']) . "</option>";
$selected = "";
}
print "</select>";
print "</td></tr>";
$row++;
$rs->MoveFirst();
}
print "</table>";