Exemplo n.º 1
0
</a> </td>
                        <td class="dataHeader">Description</td>
                        <td class="dataHeader">Member of these Groups </td>
                        <td class="dataHeader">Assigned these Roles </td>
                    </tr>

                    <?php 
$initOkToDeleteVal = OkToDeleteUser($selectedUser);
foreach ($userTable as $key => $val) {
    if ($key == $selectedUser) {
        $checkedStr = " checked ";
    } else {
        $checkedStr = "";
    }
    $userSelectionOnClickStr = "SetElementValue( '" . $okToDeleteID . "', '" . OkToDeleteUser($key) . "' );SetElementValue( '" . $selectedUserID . "', '" . $key . "');";
    CreateListOfGroupHyperlinksForTable($val->groups, $numGroups, $groupsStr);
    CreateListOfRoleHyperlinksForTable($userRolesTable[$key], $roleStr, true, $key);
    ?>
                            <tr>
                                <td class="dataCell"><input name="userSelector" type="radio" value="<?php 
    echo $key;
    ?>
" <?php 
    echo $checkedStr;
    ?>
 onClick="<?php 
    echo $userSelectionOnClickStr;
    ?>
" ></td>
                                <td class="dataCell"><a href="edituser.php?<?php 
    echo $selectedUserID;
Exemplo n.º 2
0
                                    <td class="dataHeader" align="center" colspan="2">Administrator Role</td>
                                    <td class="dataHeader" align="center" colspan="2">Map Author Role</td>
                                </tr>
                                <tr>
                                    <td class="TableSubHeading">&nbsp;</td>
                                    <td class="TableSubHeading">&nbsp;</td>
                                    <td class="TableSubHeading">User Level</td>
                                    <td class="TableSubHeading">Group Level</td>
                                    <td class="TableSubHeading">User Level</td>
                                    <td class="TableSubHeading">Group Level</td>
                                </tr>

                                <?php 
foreach ($userRolesTable as $key => $val) {
    CreateListOfGroupHyperlinksForTable($val->adminFromGroups, $numAdminGroups, $adminGroupList);
    CreateListOfGroupHyperlinksForTable($val->authorFromGroups, $numAuthorGroups, $authorGroupList);
    $tdClass = $key === $highlightedUser ? 'highlightedDataCell' : 'dataCell';
    ?>
                                        <tr>
                                            <td class="<?php 
    echo $tdClass;
    ?>
"><a href="edituser.php?<?php 
    echo $selectedUserID;
    ?>
=<?php 
    echo $key;
    ?>
"><?php 
    echo $val->name;
    ?>