コード例 #1
0
                                    <thead>
                                    <tr>
                                        <th>&nbsp;</th>
                                        <th><?php 
    echo Translate::get('User group name');
    ?>
</th>
                                        <th><?php 
    echo Translate::get('Level');
    ?>
</th>
                                    </tr>
                                    </thead>
                                    <?php 
    $user_groups = new UserGroups();
    $groups = $user_groups->getAll(UserGroups::SORT_ORDER_LEVEL);
    $selected_groups = $var->aclUserGroups->getArrayCopy();
    if (is_array($groups) && count($groups) > 0) {
        foreach ($groups as $group) {
            ?>
                                            <tr>
                                                <td><input id="user-groups[<?php 
            echo $group['id'];
            ?>
]"
                                                           name="user-groups[<?php 
            echo $group['id'];
            ?>
]"
                                                           type="checkbox"
                                                           value="<?php