adding link to group permissions for user's group

git-svn-id: http://piwigo.org/svn/trunk@49 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
z0rglub
2003-07-28 21:28:55 +00:00
parent e507ac4bad
commit 6026869ae3
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -137,6 +137,8 @@ while ( $row = mysql_fetch_array( $result ) )
foreach ( $usergroups as $i => $usergroup ) {
$vtp->addSession( $sub, 'usergroup' );
$vtp->setVar( $sub, 'usergroup.name', $groups[$usergroup] );
$url = './admin.php?page=group_perm&group_id='.$usergroup;
$vtp->setVar( $sub, 'usergroup.url', add_session_id( $url ) );
if ( in_array( $usergroup, $authorized_groups ) )
{
$vtp->setVar( $sub, 'usergroup.color', 'green' );
+1 -1
View File
@@ -10,7 +10,7 @@
<!--VTP_usergroups-->
[
<!--VTP_usergroup-->
<span style="color:{#color};">{#name}</span>{#separation}
<a href="{#url}" style="color:{#color};">{#name}</a>{#separation}
<!--/VTP_usergroup-->
]
<!--/VTP_usergroups-->