[Fusionforge-commits] r8872 - trunk/gforge/www/project/admin

Roland Mas lolando at libremir.placard.fr.eu.org
Thu Feb 25 18:28:26 CET 2010


Author: lolando
Date: 2010-02-25 18:28:26 +0100 (Thu, 25 Feb 2010)
New Revision: 8872

Modified:
   trunk/gforge/www/project/admin/index.php
Log:
Removed from the project admin's main page some code that's been moved to users.php

Modified: trunk/gforge/www/project/admin/index.php
===================================================================
--- trunk/gforge/www/project/admin/index.php	2010-02-25 16:49:58 UTC (rev 8871)
+++ trunk/gforge/www/project/admin/index.php	2010-02-25 17:28:26 UTC (rev 8872)
@@ -266,129 +266,8 @@
 </form>
 
 <?php
-echo $HTML->boxBottom(); 
-?>
-		</td>
-		<td>&nbsp;</td>
-		<td>
-
-<?php
-
-		echo $HTML->boxTop(_('Project Members'));
-
-		/*
-
-			Show the members of this project
-
-		*/
-
-		$res_memb = db_query_params ('SELECT users.realname,users.user_id,users.status,
-			users.user_name,user_group.admin_flags,user_group.role_id
-			FROM users,user_group 
-			WHERE users.user_id=user_group.user_id 
-			AND user_group.group_id=$1 ORDER BY users.lastname,users.firstname',
-					     array ($group_id));
-
-		echo '
-		<table class="width-100p100">
-			<tr><td><strong>'._('Unix name').'</strong></td>
-			<td><strong>'._('Role').'</strong></td>
-			<td><strong>'._('Update').'</strong></td>
-			<td><strong>'._('Remove').'</strong></td></tr>';
-
-while ($row_memb=db_fetch_array($res_memb)) {
-
-		if ($row_memb['status']=='P') {
-			$status = "<span class=\"pending\">"._("Pending (P)")."</span>";
-		} else if ($row_memb['status']=='S') {
-			$status = "<span class=\"suspended\">"._("Suspended (S)")."</span>";
-		} else {
-			$status = "";
-		}
-
-		echo '
-			<form action="'.getStringFromServer('PHP_SELF').'" method="post">
-			<input type="hidden" name="submit" value="y" />
-			<input type="hidden" name="user_id" value="'.$row_memb['user_id'].'" />
-			<input type="hidden" name="group_id" value="'. $group_id .'" />
-			<td>'.$row_memb['realname'].' ('.$row_memb['user_name'].') '.$status.'</td>
-			<td>'.role_box($group_id,'role_id',$row_memb['role_id']).'</td>
-			<td><input type="submit" name="updateuser" value="'._('Update').'"></td>
-			<td><input type="submit" name="rmuser" value="'._('Remove').'"></td>
-			</tr></form>';
-}
-		echo '
-			<tr><td>'._('Observer').'</td>
-			<td></td>
-			<form action="roleedit.php?group_id='. $group_id .'&amp;role_id=observer" method="POST">
-			<td colspan="2"><input type="submit" name="edit" value="'._('Edit Observer').'"></td></form></tr>';
-
-/*
-	Add member form
-*/
-
-?>
-			<form action="<?php echo getStringFromServer('PHP_SELF').'?group_id='.$group_id; ?>" method="post">
-			<input type="hidden" name="submit" value="y" />
-			<tr><td><input type="text" name="form_unix_name" size="10" value="" /></td>
-			<td><?php echo role_box($group_id,'role_id',$row_memb['role_id']); ?></td>
-			<td colspan="2"><input type="submit" name="adduser" value="<?php echo _('Add user') ?>" /></td>
-			</tr></form>
-
-			<tr><td colspan="4"><a href="massadd.php?group_id=<?php echo $group_id; ?>"><?php echo _('Add Users From List'); ?></a></td></tr>
-		</table>
-<!--	</td></tr>
-</td>
-<td width="50%">
-&nbsp;
-</td>-->
-<?php 
-//
-//	Pending requests
-//
-echo $HTML->boxMiddle(_('Pending Requests'));
-$reqs =& get_group_join_requests($group);
-if (count($reqs) < 1) {
-	echo _('No Pending Requests');
-} else {
-	for ($i=0; $i<count($reqs); $i++) {
-		$user =& user_get_object($reqs[$i]->getUserId());
-		if (!$user || !is_object($user)) {
-			echo "Invalid User";
-		}
-		?>
-		<table class="width-100p100">
-		<form action="<?php echo getStringFromServer('PHP_SELF').'?group_id='.$group_id; ?>" method="post">
-		<input type="hidden" name="submit" value="y" />
-		<input type="hidden" name="form_userid" value="<?php echo $user->getId(); ?>" />
-		<tr><td><input type="hidden" name="form_unix_name" value="<?php echo $user->getUnixName(); ?>" /><?php echo util_make_link_u ($user->getUnixName(),$user->getId(),$user->getRealName()); ?></td>
-		<td><?php echo role_box($group_id,'role_id',$row_memb['role_id']); ?>
-			<input type="submit" name="acceptpending" value="<?php echo _('Accept') ?>" />
-			<input type="submit" name="rejectpending" value="<?php echo _('Reject') ?>" /></td>
-			</tr></form>
-		</table>
-		
-		<?php
-	}
-}
-
-
-//
-//	RBAC Editing Functions
-//
-echo $HTML->boxMiddle(_('Edit Roles'));
-echo '<form action="roleedit.php?group_id='. $group_id .'" method="POST">';
-echo role_box($group_id,'role_id','');
-echo '<input type="submit" name="edit" value="'._('Edit Role').'"></form>';
-
-echo '<p><a href="roleedit.php?group_id='.$group_id.'">'._('Add Role').'</a>';
-
-//
-//	Project hierarchy functions
-
 plugin_hook('admin_project_link',$group_id) ;
 
-
 echo $HTML->boxBottom();?>
 
 		</td>




More information about the Fusionforge-commits mailing list