コード例 #1
0
	<tr>
		<td>Group Permissions: </td>
		<td>
			<?php 
if ($group->permissions == 0) {
    $checked = 'checked';
}
?>
			<input type="checkbox" name="permissions[]" value="0" <?php 
echo $checked;
?>
 />No admin access<br />
		<?php 
foreach ($permission_set as $p_name => $p_value) {
    # Does group have this permission?
    if (PilotGroups::check_permission($group->permissions, $p_value)) {
        $checked = 'checked';
    } else {
        $checked = '';
    }
    echo '<input type="checkbox" name="permissions[]" value="' . $p_value . '" ' . $checked . ' />' . $p_name . '<br />';
}
?>
		
		</td>
	</tr>
	<tr>
		<td></td>
		<td><input type="hidden" name="action" value="<?php 
echo $action;
?>