</td> </tr> <tr> <td align="right">Active?</td> <td> <input name="group_state" type="checkbox" value="Active" ' . ($group['state'] ? 'checked' : '') . '/> </td> <td align="right"> <button name="operation" value="group_update" type="submit">Save</button> </td> </tr> </table> <input name="nonce" value=' . $nonce . ' type="hidden" /> </form>'; $element_column[] = $element; $lab_table = ace_group_get_lab_table($group_id); $element = ' <p align="center"><strong>Labs</strong></p> <form name="group_list_labs_form" action="' . _MANAGER_URL_ . '" method="post"> <input name="display" value="group_update_form" type="hidden" /> <input name="group_id" value="' . $group_id . '" type="hidden" /> <table> <tr> <th></th> <th></th> <th></th> </tr>'; foreach ($lab_table as $row) { $lab_active = $row['state'] == 1 ? true : false; $element .= ' <tr class="' . ($lab_active ? 'active' : 'inactive') . '">
$html_select_lab_buttons .= ' <div class="row_element"> <form name="select_lab_form" action="' . _LAB_URL_ . '" method="post"> <input name="action" value="lab_load" type="hidden" /> <button name="lab_id" value="' . $lab['id'] . '" class="' . $selected . '" type="submit">' . $lab['display_name'] . '</button> <input name="nonce" value=' . $nonce . ' type="hidden" /> </form> <div class="lab_active_button_indicator' . $active . '"></div> </div>'; } $user_group_table = ace_user_get_groups($_SESSION['user_id']); $html_select_users_group_labs = '<option value="none">select lab...</option>'; foreach ($user_group_table as $group) { $group_active = $group['state'] == 1 ? TRUE : FALSE; if ($group_active) { $group_lab_table = ace_group_get_lab_table($group['group_id']); foreach ($group_lab_table as $lab) { $html_select_users_group_labs .= '<option value="' . $lab['id'] . '">' . $group['name'] . ':' . $lab['display_name'] . '</option>'; } } } $create_lab_button_disabled = $num_user_labs >= $user_quota_array['labs'] ? 'disabled' : ''; $select_student_lab_count = 0; $select_class_table = ace_user_get_owned_academic_groups($user_id); $html_select_class_labs_none = ' <option value="none">select lab...</option>'; $html_selected_option_class = ''; $html_select_class_labs_options = ''; foreach ($select_class_table as $select_class) { $select_student_table = ace_group_get_members_table($select_class['id']); foreach ($select_student_table as $select_student) {