Exemplo n.º 1
0
" />
			<input type="submit" name="rejectpending" value="<?php 
        echo _('Reject');
        ?>
" /></td>
			</tr></form>
		
		<?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>
	</tr>

</table>

<?php 
project_admin_footer(array());
Exemplo n.º 2
0
echo '
<h2>' . _('Add Users From List') . '</h2>
<p>
' . _('Choose the role for each user and then press &quot;Add All&quot;.') . '
<p>
<form action="' . getStringFromServer('PHP_SELF') . '?group_id=' . $group_id . '" method="post">';
if (!$res || db_numrows($res) < 1) {
    echo "No Matching Users Found";
} else {
    $titles[] = _('Real name');
    $titles[] = _('Unix name');
    $titles[] = _('Role');
    echo $HTML->listTableTop($titles);
    //
    //	Everything is built on the multi-dimensial arrays in the Role object
    //
    for ($i = 0; $i < db_numrows($res); $i++) {
        echo '<tr ' . $HTML->boxGetAltRowStyle($i) . '>
			<td>' . db_result($res, $i, 'realname') . '</td>
			<td>' . db_result($res, $i, 'user_name') . '</td>
			<td>' . role_box($group_id, 'addrole[' . db_result($res, $i, 'user_id') . ']', '') . '</td></tr>';
    }
    echo $HTML->listTableBottom();
}
echo '<input type="submit" name="finished" value="Add All">
</form>';
project_admin_footer(array());
// Local Variables:
// mode: php
// c-file-style: "bsd"
// End: