예제 #1
0
function build_priv_table()
{
    global $a_group, $id;
    $privhtml = '<div class="table-responsive">';
    $privhtml .= '<table class="table table-striped table-hover table-condensed">';
    $privhtml .= '<thead>';
    $privhtml .= '<th>' . gettext('Name') . '</th>';
    $privhtml .= '<th>' . gettext('Description') . '</th>';
    $privhtml .= '</thead>';
    $privhtml .= '<tbody>';
    foreach (get_user_privdesc($a_group[$id]) as $i => $priv) {
        $privhtml .= '<tr>';
        $privhtml .= '<td>' . htmlspecialchars($priv['name']) . '</td>';
        $privhtml .= '<td>' . htmlspecialchars($priv['descr']) . '</td>';
        $privhtml .= '<td><a class="fa fa-trash" title="' . gettext('Delete Privilege') . '"	href="system_groupmanager.php?act=delpriv&amp;groupid=' . $id . '&amp;privid=' . $i . '"></a></td>';
        $privhtml .= '</tr>';
    }
    $privhtml .= '</tbody>';
    $privhtml .= '</table>';
    $privhtml .= '</div>';
    $privhtml .= '<nav class="action-buttons">';
    $privhtml .= '<a href="system_groupmanager_addprivs.php?groupid=' . $id . '" class="btn btn-success">' . gettext("Add") . '</a>';
    $privhtml .= '</nav>';
    return $privhtml;
}
예제 #2
0
function build_priv_table()
{
    global $a_user, $id;
    $privhtml = '<div class="table-responsive">';
    $privhtml .= '<table class="table table-striped table-hover table-condensed">';
    $privhtml .= '<thead>';
    $privhtml .= '<tr>';
    $privhtml .= '<th>' . gettext('Inherited from') . '</th>';
    $privhtml .= '<th>' . gettext('Name') . '</th>';
    $privhtml .= '<th>' . gettext('Description') . '</th>';
    $privhtml .= '</tr>';
    $privhtml .= '</thead>';
    $privhtml .= '<tbody>';
    $i = 0;
    foreach (get_user_privdesc($a_user[$id]) as $priv) {
        $group = false;
        if ($priv['group']) {
            $group = $priv['group'];
        }
        $privhtml .= '<tr>';
        $privhtml .= '<td>' . htmlspecialchars($priv['group']) . '</td>';
        $privhtml .= '<td>' . htmlspecialchars($priv['name']) . '</td>';
        $privhtml .= '<td>' . htmlspecialchars($priv['descr']) . '</td>';
        $privhtml .= '<td>';
        if (!$group) {
            $privhtml .= '<a class="fa fa-trash no-confirm icon-pointer" title="' . gettext('Delete Privilege') . '" id="delprivid' . $i . '"></a></td>';
        }
        $privhtml .= '</td>';
        $privhtml .= '</tr>';
        if (!$group) {
            $i++;
        }
    }
    $privhtml .= '</tbody>';
    $privhtml .= '</table>';
    $privhtml .= '</div>';
    $privhtml .= '<nav class="action-buttons">';
    $privhtml .= '<a href="system_usermanager_addprivs.php?userid=' . $id . '" class="btn btn-success">' . gettext("Add") . '</a>';
    $privhtml .= '</nav>';
    return $privhtml;
}
예제 #3
0
                          <td width="20%"><b><?php 
        echo gettext("Inherited From");
        ?>
</b></td>
                          <td width="30%"><b><?php 
        echo gettext("Name");
        ?>
</b></td>
                          <td width="40%"><b><?php 
        echo gettext("Description");
        ?>
</b></td>
                          <td></td>
                        </tr>
<?php 
        foreach (get_user_privdesc($a_user[$id]) as $priv) {
            ?>
                        <tr>
                            <td><?php 
            echo !empty($priv['group']) ? $priv['group'] : "";
            ?>
</td>
                            <td><?php 
            echo $priv['name'];
            ?>
</td>
                            <td><?php 
            echo !empty($priv['descr']) ? $priv['descr'] : "";
            ?>
</td>
                            <td class="text-center">
예제 #4
0
                                    <td width="20%" class="listhdrr"><b><?php 
        echo gettext("Inherited From");
        ?>
</b></td>
                                    <td width="30%" class="listhdrr"><b><?php 
        echo gettext("Name");
        ?>
</b></td>
                                    <td width="40%" class="listhdrr"><b><?php 
        echo gettext("Description");
        ?>
</b></td>
                                    <td class="list"></td>
                                </tr>
				<?php 
        $privdesc = get_user_privdesc($a_user[$id]);
        if (is_array($privdesc)) {
            $i = 0;
            foreach ($privdesc as $priv) {
                $group = false;
                if ($priv['group']) {
                    $group = $priv['group'];
                }
                ?>
                        <tr>
                            <td class="listlr"><?php 
                echo $group;
                ?>
</td>
                            <td class="listr">
                                <?php 
예제 #5
0
function build_priv_table()
{
    global $a_user, $id;
    $privhtml = '<div class="table-responsive">';
    $privhtml .= '<table class="table table-striped table-hover table-condensed">';
    $privhtml .= '<thead>';
    $privhtml .= '<tr>';
    $privhtml .= '<th>' . gettext('Inherited from') . '</th>';
    $privhtml .= '<th>' . gettext('Name') . '</th>';
    $privhtml .= '<th>' . gettext('Description') . '</th>';
    $privhtml .= '</tr>';
    $privhtml .= '</thead>';
    $privhtml .= '<tbody>';
    foreach (get_user_privdesc($a_user[$id]) as $i => $priv) {
        $privhtml .= '<tr>';
        $privhtml .= '<td>' . htmlspecialchars($priv['group']) . '</td>';
        $privhtml .= '<td>' . htmlspecialchars($priv['name']) . '</td>';
        $privhtml .= '<td>' . htmlspecialchars($priv['descr']) . '</td>';
        $privhtml .= '</tr>';
    }
    $privhtml .= '</tbody>';
    $privhtml .= '</table>';
    $privhtml .= '</div>';
    $privhtml .= '<nav class="action-buttons">';
    $privhtml .= '<a href="system_usermanager_addprivs.php?userid=' . $id . '" class="btn btn-success">' . gettext("Add") . '</a>';
    $privhtml .= '</nav>';
    return $privhtml;
}