*/ $ID = $stac->lastInsertId(); $sacd = $app->db->stu_acad_cred()->setTableAlias('stac')->select('stac.*,nae.uname,nae.fname,nae.lname,nae.email')->_join('person', 'stac.stuID = nae.personID', 'nae')->where('stac.stuAcadCredID = ?', $ID)->findOne(); /** * Fires after a student has been registered into * a course by a staff member. * * @since 6.1.07 * @param array $sacd Student Academic Credit detail data object. */ $app->hook->do_action('post_rgn_stu_crse_reg', $sacd); if (function_exists('financial_module')) { /** * Generate bill and/or add fees. */ generate_stu_bill($sect->termCode, $_POST['stuID'], $sect->courseSecID); } $app->flash('success_message', $flashNow->notice(200)); etsis_logger_activity_log_write('New Record', 'Course Registration Via Staff', get_name($_POST['stuID']) . ' - ' . $sect->secShortTitle, get_persondata('uname')); } else { $app->flash('error_message', $flashNow->notice(409)); } redirect(get_base_url() . 'sect/rgn' . '/'); } $app->view->display('section/register', ['title' => 'Course Registration', 'cssArray' => $css, 'jsArray' => $js]); }); /** * Before route check. */ $app->before('GET|POST', '/sros.*', function () { if (!hasPermission('access_stu_roster_screen')) {
* is added to the database. * * @since 6.1.05 * @param array $sacd Student Academic Credit detail data object. */ $app->hook->do_action('post_save_myet_reg', $sacd); /** * Delete the record from the shopping cart after * registration is complete. */ $app->db->stu_rgn_cart()->where('stuID = ?', get_persondata('personID'))->_and_()->where('courseSecID = ?', $_POST['courseSecID'][$r])->delete(); if (function_exists('financial_module')) { /** * Generate bill and/or add fees. */ generate_stu_bill($sql[0]['termCode'], get_persondata('personID'), $_POST['courseSecID'][$r]); } } } ++$r; } /** * Fires when a student registers for a course. * * @since 6.1.00 * @return mixed */ $app->hook->do_action('myet_student_course_registration'); // Flash messages for success or error if ($ID > 0) { $st = $app->db->stu_acad_cred()->select('courseSection')->where('stuID = ?', get_persondata('personID'))->_and_()->where('LastUpdate = ?', $now);