You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$count_RET = DBGet(DBQuery("SELECT cs.TITLE as SUBJECT_TITLE,c.TITLE as COURSE_TITLE,sr.COURSE_ID,COUNT(*) AS COUNT,(SELECT sum(TOTAL_SEATS) FROM COURSE_PERIODS cp WHERE cp.COURSE_ID=sr.COURSE_ID) AS SEATS FROM SCHEDULE_REQUESTS sr,COURSES c,COURSE_SUBJECTS cs WHERE cs.SUBJECT_ID=c.SUBJECT_ID AND sr.COURSE_ID=c.COURSE_ID AND sr.SYEAR='".UserSyear()."' AND sr.SCHOOL_ID='".UserSchool()."' GROUP BY sr.COURSE_ID,cs.TITLE,c.TITLE"),array(),array('SUBJECT_TITLE'));
$columns = array('SUBJECT_TITLE'=>_('Subject'),'COURSE_TITLE'=>_('Course'),'COUNT'=>_('Number of Requests'),'SEATS'=>_('Seats'));