-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
55 changed files
with
4,135 additions
and
532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
|
||
#************************************************************************** | ||
# openSIS is a free student information system for public and non-public | ||
# schools from Open Solutions for Education, Inc. web: www.os4ed.com | ||
# | ||
# openSIS is web-based, open source, and comes packed with features that | ||
# include student demographic info, scheduling, grade book, attendance, | ||
# report cards, eligibility, transcripts, parent portal, | ||
# student portal and more. | ||
# | ||
# Visit the openSIS web site at http://www.opensis.com to learn more. | ||
# If you have question regarding this system or the license, please send | ||
# an email to [email protected]. | ||
# | ||
# This program is released under the terms of the GNU General Public License as | ||
# published by the Free Software Foundation, version 2 of the License. | ||
# See license.txt. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
#*************************************************************************************** | ||
include('RedirectRootInc.php'); | ||
include'ConfigInc.php'; | ||
include 'Warehouse.php'; | ||
$sql = 'SELECT | ||
s.COURSE_ID,s.COURSE_PERIOD_ID, | ||
s.MARKING_PERIOD_ID,s.START_DATE,s.END_DATE,s.MODIFIED_DATE,s.MODIFIED_BY, | ||
UNIX_TIMESTAMP(s.START_DATE) AS START_EPOCH,UNIX_TIMESTAMP(s.END_DATE) AS END_EPOCH,sp.PERIOD_ID, | ||
cpv.PERIOD_ID,s.MARKING_PERIOD_ID as COURSE_MARKING_PERIOD_ID,cp.MARKING_PERIOD_ID as mpa_id,cp.MP,sp.SORT_ORDER, | ||
c.TITLE,cp.COURSE_PERIOD_ID AS PERIOD_PULLDOWN, | ||
s.STUDENT_ID,r.TITLE AS ROOM,(SELECT GROUP_CONCAT(cpv.DAYS) FROM course_period_var cpv WHERE cpv.COURSE_PERIOD_ID=cp.COURSE_PERIOD_ID) as DAYS,SCHEDULER_LOCK,CONCAT(st.LAST_NAME, \'' . ' ' . '\' ,st.FIRST_NAME) AS MODIFIED_NAME | ||
FROM courses c,course_periods cp,course_period_var cpv,rooms r,school_periods sp,schedule s | ||
LEFT JOIN staff st ON s.MODIFIED_BY = st.STAFF_ID | ||
WHERE | ||
s.COURSE_ID = c.COURSE_ID AND s.COURSE_ID = cp.COURSE_ID | ||
AND cp.COURSE_PERIOD_ID=cpv.COURSE_PERIOD_ID | ||
AND r.ROOM_ID=cpv.ROOM_ID | ||
AND s.COURSE_PERIOD_ID = cp.COURSE_PERIOD_ID | ||
AND s.SCHOOL_ID = sp.SCHOOL_ID AND s.SYEAR = c.SYEAR AND sp.PERIOD_ID = cpv.PERIOD_ID | ||
AND s.ID=' . $_REQUEST[id] . ' GROUP BY cp.COURSE_PERIOD_ID'; | ||
|
||
$QI = DBQuery($sql); | ||
$schedule_RET = DBGet($QI, array('TITLE' => '_makeTitle', 'PERIOD_PULLDOWN' => '_makePeriodSelect', 'COURSE_MARKING_PERIOD_ID' => '_makeMPA', 'DAYS' => '_makeDays', 'SCHEDULER_LOCK' => '_makeViewLock', 'START_DATE' => '_makeViewDate', 'END_DATE' => '_makeViewDate', 'MODIFIED_DATE' => '_makeViewDate')); | ||
$columns = array('TITLE' => 'Course ', 'PERIOD_PULLDOWN' => 'Period - Teacher', 'ROOM' => 'Room', 'DAYS' => 'Days of Week', 'COURSE_MARKING_PERIOD_ID' => 'Term', 'SCHEDULER_LOCK' => '<IMG SRC=assets/locked.gif border=0>', 'START_DATE' => 'Enrolled', 'END_DATE' => 'End Date/Drop Date', 'MODIFIED_NAME' => 'Modified By', 'MODIFIED_DATE' => 'Modified Date'); | ||
$options = array('search' => false, 'count' => false, 'save' => false, 'sort' => false); | ||
ListOutput($schedule_RET, $columns, 'Course', 'Courses', $link, '', $options); | ||
|
||
// echo '<br /><div align="center"><input type="button" class="btn btn-primary" value="Close" onclick="window.close();"></div>'; | ||
?> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.