rowedit-taborder_interface.php.patch (1,203 bytes)
--- inc/interface.php 2013-06-12 12:34:27.565135511 +0200
+++ /inc/interface.php 2013-06-17 07:40:16.341132554 +0200
@@ -580,8 +580,10 @@
echo "<tr><th> </th><th>Location</th><th>Name</th><th> </th></tr>\n";
if (getConfigVar ('ADDNEW_AT_TOP') == 'yes')
printNewItemTR();
+ $t = 103;
foreach (getAllRows() as $row_id => $rowInfo)
{
+ $t++;
echo "<tr><td>";
if ($rc = count (listCells ('rack', $row_id)))
printImageHREF ('nodestroy', "${rc} rack(s) here");
@@ -597,10 +599,11 @@
$selectlist['other'][0] = '-- NONE --';
foreach ($locationlist as $location_id => $locationdata)
$selectlist['other'][$location_id] = $locationdata['name'];
- echo "<select name=location_id tabindex=100>";
+ echo "<select name=location_id tabindex={$t}>";
locationSelectTree($rowInfo['location_id']);
- echo "</td><td><input type=text name=name value='${rowInfo['name']}'></td><td>";
- printImageHREF ('save', 'Save changes', TRUE);
+ $t++;
+ echo "</td><td><input type=text name=name value='${rowInfo['name']}' tabindex={$t}></td><td>";
+ printImageHREF ('save', 'Save changes', TRUE,$t+1);
echo "</form></td></tr>\n";
}
if (getConfigVar ('ADDNEW_AT_TOP') != 'yes')