From 3e54f60521d8d540968b714890129d33909e74e4 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 10 Feb 2004 20:08:47 +0000 Subject: [PATCH] updated to new edit.php --- lam/templates/lists/listgroups.php | 6 +++--- lam/templates/lists/listhosts.php | 6 +++--- lam/templates/lists/listusers.php | 6 +++--- lam/templates/lists/userlink.php | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lam/templates/lists/listgroups.php b/lam/templates/lists/listgroups.php index fb161a01..ba97ed70 100644 --- a/lam/templates/lists/listgroups.php +++ b/lam/templates/lists/listgroups.php @@ -47,7 +47,7 @@ $grp_units = $_SESSION['grp_units']; if ($_POST['new_group'] || $_POST['del_group'] || $_POST['pdf_group'] || $_POST['pdf_all']){ // add new group if ($_POST['new_group']){ - metaRefresh("../account/groupedit.php"); + metaRefresh("../account/edit.php?type=group"); exit; } // delete group(s) @@ -227,7 +227,7 @@ if (sizeof($grp_info) > 0) { echo(""); + " onDblClick=\"parent.frames[1].location.href='../account/edit.php?type=group&DN=" . $grp_info[$i]["dn"] . "'\">"); if ($_GET['selectall'] == "yes") { echo " "; @@ -236,7 +236,7 @@ if (sizeof($grp_info) > 0) { echo " "; } - echo (" " . _("Edit") . ""); + echo (" " . _("Edit") . ""); for ($k = 0; $k < sizeof($attr_array); $k++) { echo (""); // print all attribute entries seperated by "; " diff --git a/lam/templates/lists/listhosts.php b/lam/templates/lists/listhosts.php index 9258444b..44268358 100644 --- a/lam/templates/lists/listhosts.php +++ b/lam/templates/lists/listhosts.php @@ -47,7 +47,7 @@ $hst_units = $_SESSION['hst_units']; if ($_POST['new_host'] || $_POST['del_host'] || $_POST['pdf_host'] || $_POST['pdf_all']){ // add new host if ($_POST['new_host']){ - metaRefresh("../account/hostedit.php"); + metaRefresh("../account/edit.php?type=host"); exit; } // delete host(s) @@ -231,7 +231,7 @@ if (sizeof($hst_info) > 0) { echo(""); + " onDblClick=\"parent.frames[1].location.href='../account/edit.php?type=host&DN=" . $hst_info[$i]["dn"] . "'\">"); if ($_GET['selectall'] == "yes") { echo " "; @@ -240,7 +240,7 @@ if (sizeof($hst_info) > 0) { echo " "; } - echo (" " . _("Edit") . ""); + echo (" " . _("Edit") . ""); for ($k = 0; $k < sizeof($attr_array); $k++) { echo (""); // print all attribute entries seperated by "; " diff --git a/lam/templates/lists/listusers.php b/lam/templates/lists/listusers.php index 7bfc0674..421a12d5 100644 --- a/lam/templates/lists/listusers.php +++ b/lam/templates/lists/listusers.php @@ -67,7 +67,7 @@ $usr_units = $_SESSION['usr_units']; if ($_POST['new_user'] || $_POST['del_user'] || $_POST['pdf_user'] || $_POST['pdf_all']){ // add new user if ($_POST['new_user']){ - metaRefresh("../account/useredit.php?type=user"); + metaRefresh("../account/edit.php?type=user"); exit; } // delete user(s) @@ -283,7 +283,7 @@ if ($user_count != 0) { echo("\n"); + "onDblClick=\"parent.frames[1].location.href='../account/edit.php?type=user&DN=" . $userinfo[$i]["dn"] . "'\">\n"); // checkboxes if selectall = "yes" if ($_GET['selectall'] == "yes") { echo "\n\n\n\n"; } - echo ("\n" . + echo ("\n" . _("Edit") . "\n\n"); for ($k = 0; $k < sizeof($attr_array); $k++) { echo ("\n"); diff --git a/lam/templates/lists/userlink.php b/lam/templates/lists/userlink.php index cb83ca1a..106d37cb 100644 --- a/lam/templates/lists/userlink.php +++ b/lam/templates/lists/userlink.php @@ -19,7 +19,7 @@ $Id$ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - This page will redirect to account/useredit.php if the given user is valid. + This page will redirect to account/edit.php if the given user is valid. It is called from listgroups.php via the memberUID links. */ @@ -40,8 +40,8 @@ $user = str_replace("\'", '',$user); $dn = $_SESSION['ldap']->search_username($user); if ($dn) { - // redirect to account/useredit.php - metaRefresh("../account/useredit.php?type=user&DN='$dn'"); + // redirect to account/edit.php + metaRefresh("../account/edit.php?type=user&DN='$dn'"); } else {