summaryrefslogtreecommitdiffstats
path: root/php/Attic/examples/sample-idp/admin_user.php
diff options
context:
space:
mode:
Diffstat (limited to 'php/Attic/examples/sample-idp/admin_user.php')
-rw-r--r--php/Attic/examples/sample-idp/admin_user.php23
1 files changed, 12 insertions, 11 deletions
diff --git a/php/Attic/examples/sample-idp/admin_user.php b/php/Attic/examples/sample-idp/admin_user.php
index ca5f14ba..0f0c31c3 100644
--- a/php/Attic/examples/sample-idp/admin_user.php
+++ b/php/Attic/examples/sample-idp/admin_user.php
@@ -81,7 +81,8 @@
$res =& $db->query($query);
if (DB::isError($res))
die($res->getMessage());
-
+
+ $logger->log("Delete User '".$_GET['del']."'", PEAR_LOG_NOTICE);
}
lasso_init();
@@ -164,21 +165,21 @@
if ((($count - $startUser) > $number_of_users) && !isset($_GET['show_all']))
echo "<a href=$PHP_SELF?startUser=" . ($startUser + $number_of_users) . ">Next</a>";
else
- echo "Next"
- ?>
- <?php
+ echo "Next";
+
+ if (isset($_GET['show_all']))
+ echo "| <a href=\"" . $PHP_SELF ."?startUser=0\">Paginate</a>";
+ else
+ {
for ($i = 0; $i < $count; $i += $number_of_users)
if ($i == $startUser)
echo "| " . ( $i / $number_of_users);
else
echo "| <a href=\"$PHP_SELF?startUser=$i\">" . ( $i / $number_of_users) . "</a>";
+ if ($count > $number_of_users)
+ echo "| <a href=\"$PHP_SELF?show_all=1\">Show All</a>";
+ }
?>
- |
- <?php if (isset($_GET['show_all'])) { ?>
- <a href="<?php echo $PHP_SELF."?startUser=0"; ?>">Paginate</a>
- <?php } else { ?>
- <a href="<?php echo $PHP_SELF."?show_all=1"; ?>">Show All</a>
- <?php } ?>
| <a href="javascript:void(0)" onClick="ToggleAll();">Toggle All</a></td>
<td align='right'><a href="javascript:openpopup('user_add.php')">add user</a></td>
</tr>
@@ -237,7 +238,7 @@
</td>
</tr>
<tr>
- <td colspan="<?php echo $num_col; ?>" align='center'>
+ <td colspan="<?php echo $num_col; ?>" align='center'>
<?php
// get all federations for this user
if (!empty($session_dump) && !empty($identity_dump))