Example #1
0
                                $checkPrerequisitesDAO->Create($_GET['cid'], $pre_check_id);
                            }
                        }
                        if ($_GET['list'] == 'next') {
                            foreach ($_GET['id'] as $next_check_id) {
                                $testPassDAO->Create($_GET['cid'], $next_check_id);
                            }
                        }
                        if ($_GET['list'] == 'guideline') {
                            $guidelinesDAO->addChecks($_GET['gid'], $_GET['id']);
                        }
                        if ($_GET['list'] == 'group') {
                            $guidelineGroupsDAO->addChecks($_GET['ggid'], $_GET['id']);
                        }
                        if ($_GET['list'] == 'subgroup') {
                            $guidelineSubgroupsDAO->addChecks($_GET['gsgid'], $_GET['id']);
                        }
                        $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
                        // force refresh parent window
                        $javascript_run_now = '<script language="JavaScript">
<!--
window.opener.location.href = window.opener.location.href;
//-->
</script>';
                    }
                } else {
                    if (isset($_GET['edit']) || isset($_GET['delete']) || isset($_GET['edit_function']) || isset($_GET['add'])) {
                        $msg->addError('NO_ITEM_SELECTED');
                    }
                }
            }