ispman/ispman-web/cgi-bin/tmpl/users search.tmpl,1.10,1.11
Atif Ghaffar <[email protected]>
| Newsgroups | gmane.comp.isp.ispman.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/users
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8697
Modified Files:
search.tmpl
Log Message:
Fixing the link to user edit page
Index: search.tmpl
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/users/search.tmpl,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- search.tmpl 12 Apr 2005 12:03:28 -0000 1.10
+++ search.tmpl 13 Apr 2005 22:33:02 -0000 1.11
@@ -67,21 +67,13 @@
$text.="<td>";
# handle either sigle or multiple uid
- if (ref $users->{$user}->{"uid"} eq "ARRAY"){
- my @uidList = @{$users->{$user}->{"uid"}};
- my $SEPARATOR = "";
- for ( @uidList ){
- $text .= $SEPARATOR . $_;
- $SEPARATOR = "<br>";
- }
- } else {
- $text .= $users->{$user}->{"uid"};
- }
+ my @uidList = $ispman->as_array($users->{$user}->{"uid"});
+ $text .= join "<br>", @uidList;
$text.="</td>";
$text.=join "\n", map {"<td> @{[$users->{$user}{$_}||' ']}</td>"} qw (givenName sn mailLocalAddress);
- $text.="<td><a href=@{[$r->url]}?mode=editUser&dn=@{[CGI::escape($user)]}>Edit</a></td>";
+ $text.="<td><a href=@{[$r->url]}?mode=editUser&ispmanDomain=@{[$r->param('ispmanDomain')]}&uid=@{[$users->{$user}->{'uid'}[0]]}>Edit</a></td>";
$text.="</tr>";
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click