GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/nginx/html/Admin/Advising/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/Admin/Advising/Advising_Class_Display_Classes.phpinc
<?
// Admin/Advising/Advising_Class_Display_Classes.phpinc
// phpinc_filename_purpose.

$d_O = d_O(); #d_On(); // Uncomment to DEBUG.
d_Line(basename(__FILE__));

// Display classes.
?>
<style type="text/css">
.days { font-family:"Courier New", Courier, monospace; white-space:pre; }

.checkedHutchinson { background-color:#ff6; }
.checkedOnline { background-color:#f9f; }
.checkedWillmar { background-color:#aff; }

.uncheckedHutchinson { background-color:#ffc; }
.uncheckedOnline { background-color:#fdf; }
.uncheckedWillmar { background-color:#eff; }

.nomeeting { border:2px solid #c00; }

.classMeeting { border:1px solid #000; box-sizing:border-box; overflow:auto; padding:4px; }
.overlap { border-color:#c00 !important; border-width:2px !important; }
.duplicate  { border-style:dashed; !important; border-width:2px !important; }

.close { color:#00F; }
.full { color:#c00; }
.nmb { padding-top:0px; padding-bottom:0px; }
.nmtb { margin-top:0; margin-bottom:0; padding-top:0px; padding-bottom:0px; }
.open { }
.pointer { cursor:default; }

input[type="checkbox"].sm { font-size:0.75em; margin-right:4px; vertical-align:middle; }

input[type="checkbox"]:checked.filterHutchinson+label { background-color:#ffc; }
input[type="checkbox"]:checked.filterOnline+label { background-color:#fdf; }
input[type="checkbox"]:checked.filterWillmar+label { background-color:#eff; }

tbody {
    line-height: 0;
    font-size: 0;
}
tbody td, tbody th {
    line-height: 20px;
    font-size: 16px;
}
tbody td.sm, tbody th.sm {
    line-height: 14px;
    font-size: 12px;
}
</style>
Filter:
<?
foreach ( $Campuses as $campus ) { // Loop thru campuses.
	$campusVariable = 'campus'.$campus;
	$$campusVariable = formValue($campusVariable);
?>
<input type="checkbox" class="filter<?=$campus?>" name="<?=$campusVariable?>" id="cam_<?=$campus?>" value="<?=$campus?>" checked onClick="filterCampus(this,'<?=$campus?>');"><label id="lab_<?=$campus?>" for="cam_<?=$campus?>"><?=ttMake($campus,'Hide/Show '.$campus.' classes. WARNING: Hiding classes will also uncheck them.')?></label>
<?
} // Loop thru campuses.
?>
<br>
Check classes you would like to take:
<br>
<table>
	<tr>
		<th></th><th colspan="2">Class</th><th class="center"><?=ttMake('#','Number of seats left in the class.')?></th>
	</tr>
<?
$closeClasses = false;
$fullClasses = false;
foreach ( $PCLASS as $class ) { // Loop thru classes.
	$spaceInClass = $class['MMAX'] - $class['TENR'];
	if ( $spaceInClass ) {
		if ( $spaceInClass > $class['MMAX']/5 ) {
			$cC = ' open';
		} else {
			$cC = ' close';
			$closeClasses = true;
		}
	} else {
		$cC = ' full';
		$fullClasses = true;
	}
	//if ( isset($class['meeting'][0]) && $class['meeting'][0]['BEGIN'] == '' ) $cC .= ' nomeeting';
?>
	<tr id="tr_<?=$class['COU_ID']?>" class="bottom pointer <?=$class['campus']?>" onClick="checkClass('<?=$class['COU_ID']?>');">
		<td id="td_<?=$class['COU_ID']?>_chk" class="nmb sm unchecked<?=$class['campus']?><?=$cC?>" colspan="2"><input type="checkbox" id="chk_<?=$class['COU_ID']?>" class="pointer sm" onClick="checkClass('<?=$class['COU_ID']?>');"></td>
		<td id="td_<?=$class['COU_ID']?>_class" class="nmb sm unchecked<?=$class['campus']?><?=$cC?>" style="width:99%;"><?=$class['SUBJ']?><?=$class['NBR']?>-<?=$class['SECT']+0?> <?=$class['TITLE']?></td>
		<td id="td_<?=$class['COU_ID']?>_space" class="nmb sm unchecked<?=$class['campus']?> right<?=$cC?>"><?=$spaceInClass?></td>
	</tr>
<?
	foreach ( $class['meeting'] as $mIndex => $meeting ) {
?>
	<tr id="tr_<?=$class['COU_ID']?>_meeting_<?=$mIndex?>" class="bottom pointer <?=$class['campus']?>" onClick="checkClass('<?=$class['COU_ID']?>');">
		<td id="td_<?=$class['COU_ID']?>_meeting_front_<?=$mIndex?>" class="nmtb sm unchecked<?=$class['campus']?> <?=$cC?>"></td>
		<td id="td_<?=$class['COU_ID']?>_meeting_<?=$mIndex?>" class="nmtb sm unchecked<?=$class['campus']?> <?=$cC?>" colspan="2"><span class="days"><?=fixDays($meeting['DAYS'])?></span> <?=fixTime($meeting['BEGIN'],$meeting['END'])?></td>
		<td id="td_<?=$class['COU_ID']?>_meeting_back_<?=$mIndex?>" class="nmtb sm unchecked<?=$class['campus']?> <?=$cC?>"></td>
	</tr>		
<?
	}
}
if ( $closeClasses ) {
?>
	<tr><td class="close" colspan="4">Classes with blue text are close to full.</td></tr>
<?
}
if ( $fullClasses ) {
?>
	<tr><td class="full" colspan="4">Classes with red text are full.</td></tr>
<?
}
?>
</table>
<?

function fixDays($days) {
	global $D;
	$fixDays = '';
	foreach ( $D as $d ) {
		if ( stripos($days,$d) === false ) { $fixDays .= ' '; } else { $fixDays .= $d; }
	}
	return $fixDays;
}

function fixTime($begin,$end) {
	if ( $begin != '' ) {
		$bh = substr($begin,0,2)+0;
		if ( $bh < 12 ) { $bhour = $bh; $bmeridian = 'am'; } else { $bhour = $bh - ( $bh != 12 ? 12 : 0 ); $bmeridian = 'pm'; }
		#d_Line("$bh != 12 ? 12 : 0",$bh != 12 ? 12 : 0,'d');
		$eh = substr($end,0,2)+0;
		if ( $eh < 12 ) { $ehour = $eh; $emeridian = 'am'; } else { $ehour = $eh - ( $eh != 12 ? 12 : 0 ); $emeridian = 'pm'; }
		$fixTime = $bhour.':'.substr($begin,3,2).$bmeridian.'-'.$ehour.':'.substr($end,3,2).$emeridian;
	} else {
		$fixTime = '<span class="incorrect">No meeting times</span>';
	}
	return $fixTime;
}

if ( isset($d_O) && !$d_O ) d_Off();
?>

Anon7 - 2022
AnonSec Team