diff --git a/lam/templates/lists/listgroups.php b/lam/templates/lists/listgroups.php
index 3d430632..3b93bbcf 100644
--- a/lam/templates/lists/listgroups.php
+++ b/lam/templates/lists/listgroups.php
@@ -108,6 +108,8 @@ if ($refresh) {
ldap_free_result($sr);
// delete first array entry which is "count"
unset($info['count']);
+ // save position in original $info
+ for ($i = 0; $i < sizeof($info); $i++) $info[$i]['LAM_ID'] = $i;
// save results
$_SESSION[$scope . 'info'] = $info;
}
@@ -158,19 +160,19 @@ else $table_end = ($page * $max_page_entries);
if (sizeof($info) > 0) {
// print group list
for ($i = $table_begin; $i < $table_end; $i++) {
- echo("
");
+ echo("
\n");
if (isset($_GET['selectall'])) {
- echo " | ";
+ echo " | \n";
}
else {
- echo " | ";
+ echo " | \n";
}
- echo (" " . _("Edit") . " | ");
+ echo (" " . _("Edit") . " | \n");
for ($k = 0; $k < sizeof($attr_array); $k++) {
echo ("");
// print all attribute entries seperated by "; "
@@ -201,7 +203,7 @@ if (sizeof($info) > 0) {
else echo $info[$i][strtolower($attr_array[$k])];
}
}
- echo (" | ");
+ echo ("\n");
}
echo("
\n");
}
diff --git a/lam/templates/lists/listhosts.php b/lam/templates/lists/listhosts.php
index 132319a3..96150803 100644
--- a/lam/templates/lists/listhosts.php
+++ b/lam/templates/lists/listhosts.php
@@ -108,6 +108,8 @@ if ($refresh) {
ldap_free_result($sr);
// delete first array entry which is "count"
unset($info['count']);
+ // save position in original $info
+ for ($i = 0; $i < sizeof($info); $i++) $info[$i]['LAM_ID'] = $i;
// save results
$_SESSION[$scope . 'info'] = $info;
}
@@ -158,19 +160,19 @@ else $table_end = ($page * $max_page_entries);
if (sizeof($info) > 0) {
// print host list
for ($i = $table_begin; $i < $table_end; $i++) {
- echo("");
+ echo("
\n");
if (isset($_GET['selectall'])) {
- echo " | ";
+ echo " | \n";
}
else {
- echo " | ";
+ echo " | \n";
}
- echo (" " . _("Edit") . " | ");
+ echo (" " . _("Edit") . " | \n");
for ($k = 0; $k < sizeof($attr_array); $k++) {
echo ("");
// print all attribute entries seperated by "; "
@@ -184,7 +186,7 @@ if (sizeof($info) > 0) {
}
else echo $info[$i][strtolower($attr_array[$k])];
}
- echo (" | ");
+ echo ("\n");
}
echo("
\n");
}
diff --git a/lam/templates/lists/listusers.php b/lam/templates/lists/listusers.php
index 59341560..9a35359b 100644
--- a/lam/templates/lists/listusers.php
+++ b/lam/templates/lists/listusers.php
@@ -135,6 +135,8 @@ if ($refresh) {
ldap_free_result ($sr);
// delete first array entry which is "count"
unset($info['count']);
+ // save position in original $info
+ for ($i = 0; $i < sizeof($info); $i++) $info[$i]['LAM_ID'] = $i;
// save results
$_SESSION[$scope . 'info'] = $info;
}
@@ -202,18 +204,18 @@ if (sizeof($info) != 0) {
}
// print user list
for ($i = $table_begin; $i < $table_end; $i++) {
- echo("\n");
// checkboxes if selectall = "yes"
if (isset($_GET['selectall'])) {
- echo "\n\n | \n";
+ echo "\n\n | \n";
}
else {
- echo "\n\n | \n";
+ echo "\n\n | \n";
}
echo ("\n" .
_("Edit") . "\n | \n");