Your IP : 216.73.217.79


Current Path : /var/www/cesa.co.za/cceconvenors/
Upload File :
Current File : /var/www/cesa.co.za/cceconvenors/CCEStudentAssignmentssrch.php

<?php
session_start(); // Initialize Session data
ob_start(); // Turn on output buffering
?>
<?php include "ewcfg7.php" ?>
<?php include "ewmysql7.php" ?>
<?php include "phpfn7.php" ?>
<?php include "CCEStudentAssignmentsinfo.php" ?>
<?php include "CCEAssignmentsinfo.php" ?>
<?php include "CCEFacilitatorUsersinfo.php" ?>
<?php include "CCEStudentsinfo.php" ?>
<?php include "userfn7.php" ?>
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Always modified
header("Cache-Control: private, no-store, no-cache, must-revalidate"); // HTTP/1.1 
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
?>
<?php

// Create page object
$CCEStudentAssignments_search = new cCCEStudentAssignments_search();
$Page =& $CCEStudentAssignments_search;

// Page init
$CCEStudentAssignments_search->Page_Init();

// Page main
$CCEStudentAssignments_search->Page_Main();
?>
<?php include "header.php" ?>
<script type="text/javascript">
<!--

// Create page object
var CCEStudentAssignments_search = new ew_Page("CCEStudentAssignments_search");

// page properties
CCEStudentAssignments_search.PageID = "search"; // page ID
CCEStudentAssignments_search.FormID = "fCCEStudentAssignmentssearch"; // form ID
var EW_PAGE_ID = CCEStudentAssignments_search.PageID; // for backward compatibility

// extend page with validate function for search
CCEStudentAssignments_search.ValidateSearch = function(fobj) {
	ew_PostAutoSuggest(fobj);
	if (this.ValidateRequired) {
		var infix = "";
		elm = fobj.elements["x" + infix + "_DateSubmitted"];
		if (elm && !ew_CheckDate(elm.value))
			return ew_OnError(this, elm, "<?php echo ew_JsEncode2($CCEStudentAssignments->DateSubmitted->FldErrMsg()) ?>");
		elm = fobj.elements["x" + infix + "_AssignmentScore"];
		if (elm && !ew_CheckNumber(elm.value))
			return ew_OnError(this, elm, "<?php echo ew_JsEncode2($CCEStudentAssignments->AssignmentScore->FldErrMsg()) ?>");
		elm = fobj.elements["x" + infix + "_FeedbackMessageID"];
		if (elm && !ew_CheckInteger(elm.value))
			return ew_OnError(this, elm, "<?php echo ew_JsEncode2($CCEStudentAssignments->FeedbackMessageID->FldErrMsg()) ?>");
		elm = fobj.elements["x" + infix + "_ResubmitDateOverride"];
		if (elm && !ew_CheckDate(elm.value))
			return ew_OnError(this, elm, "<?php echo ew_JsEncode2($CCEStudentAssignments->ResubmitDateOverride->FldErrMsg()) ?>");

		// Call Form Custom Validate event
		if (!this.Form_CustomValidate(fobj))
			return false;
	}
	for (var i=0; i<fobj.elements.length; i++) {
		var elem = fobj.elements[i];
		if (elem.name.substring(0,2) == "s_" || elem.name.substring(0,3) == "sv_")
			elem.value = "";
	}
	return true;
}

// extend page with Form_CustomValidate function
CCEStudentAssignments_search.Form_CustomValidate =  
 function(fobj) { // DO NOT CHANGE THIS LINE!

 	// Your custom validation code here, return false if invalid. 
 	return true;
 }
<?php if (EW_CLIENT_VALIDATE) { ?>
CCEStudentAssignments_search.ValidateRequired = true; // uses JavaScript validation
<?php } else { ?>
CCEStudentAssignments_search.ValidateRequired = false; // no JavaScript validation
<?php } ?>

//-->
</script>
<link rel="stylesheet" type="text/css" media="all" href="calendar/calendar-win2k-cold-1.css" title="win2k-1">
<script type="text/javascript" src="calendar/calendar.js"></script>
<script type="text/javascript" src="calendar/lang/calendar-en.js"></script>
<script type="text/javascript" src="calendar/calendar-setup.js"></script>
<script type="text/javascript">
<!--
var ew_DHTMLEditors = [];

//-->
</script>
<script language="JavaScript" type="text/javascript">
<!--

// Write your client script here, no need to add script tags.
// To include another .js script, use:
// ew_ClientScriptInclude("my_javascript.js"); 
//-->

</script>
<p><span class="phpmaker"><?php echo $Language->Phrase("Search") ?>&nbsp;<?php echo $Language->Phrase("TblTypeTABLE") ?><?php echo $CCEStudentAssignments->TableCaption() ?><br><br>
<a href="<?php echo $CCEStudentAssignments->getReturnUrl() ?>"><?php echo $Language->Phrase("BackToList") ?></a></span></p>
<?php
if (EW_DEBUG_ENABLED)
	echo ew_DebugMsg();
$CCEStudentAssignments_search->ShowMessage();
?>
<form name="fCCEStudentAssignmentssearch" id="fCCEStudentAssignmentssearch" action="<?php echo ew_CurrentPage() ?>" method="post" onsubmit="return CCEStudentAssignments_search.ValidateSearch(this);">
<p>
<input type="hidden" name="t" id="t" value="CCEStudentAssignments">
<input type="hidden" name="a_search" id="a_search" value="S">
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<div class="ewGridMiddlePanel">
<table cellspacing="0" class="ewTable">
	<tr<?php echo $CCEStudentAssignments->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $CCEStudentAssignments->CCEStudentAssigID->FldCaption() ?></td>
		<td<?php echo $CCEStudentAssignments->CCEStudentAssigID->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("=") ?><input type="hidden" name="z_CCEStudentAssigID" id="z_CCEStudentAssigID" value="="></span></td>
		<td<?php echo $CCEStudentAssignments->CCEStudentAssigID->CellAttributes() ?>>
			<div style="white-space: nowrap;">
				<span class="phpmaker" style="float: left;">
<input type="text" name="x_CCEStudentAssigID" id="x_CCEStudentAssigID" title="<?php echo $CCEStudentAssignments->CCEStudentAssigID->FldTitle() ?>" value="<?php echo $CCEStudentAssignments->CCEStudentAssigID->EditValue ?>"<?php echo $CCEStudentAssignments->CCEStudentAssigID->EditAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
	<tr<?php echo $CCEStudentAssignments->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $CCEStudentAssignments->CCEStudentID->FldCaption() ?></td>
		<td<?php echo $CCEStudentAssignments->CCEStudentID->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("=") ?><input type="hidden" name="z_CCEStudentID" id="z_CCEStudentID" value="="></span></td>
		<td<?php echo $CCEStudentAssignments->CCEStudentID->CellAttributes() ?>>
			<div style="white-space: nowrap;">
				<span class="phpmaker" style="float: left;">
<select id="x_CCEStudentID" name="x_CCEStudentID" title="<?php echo $CCEStudentAssignments->CCEStudentID->FldTitle() ?>"<?php echo $CCEStudentAssignments->CCEStudentID->EditAttributes() ?>>
<?php
if (is_array($CCEStudentAssignments->CCEStudentID->EditValue)) {
	$arwrk = $CCEStudentAssignments->CCEStudentID->EditValue;
	$rowswrk = count($arwrk);
	$emptywrk = TRUE;
	for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
		$selwrk = (strval($CCEStudentAssignments->CCEStudentID->AdvancedSearch->SearchValue) == strval($arwrk[$rowcntwrk][0])) ? " selected=\"selected\"" : "";
		if ($selwrk <> "") $emptywrk = FALSE;
?>
<option value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?>>
<?php echo $arwrk[$rowcntwrk][1] ?>
<?php if ($arwrk[$rowcntwrk][2] <> "") { ?>
<?php echo ew_ValueSeparator($rowcntwrk) ?><?php echo $arwrk[$rowcntwrk][2] ?>
<?php } ?>
</option>
<?php
	}
}
?>
</select>
</span>
			</div>
		</td>
	</tr>
	<tr<?php echo $CCEStudentAssignments->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $CCEStudentAssignments->CCEAssignmentID->FldCaption() ?></td>
		<td<?php echo $CCEStudentAssignments->CCEAssignmentID->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("=") ?><input type="hidden" name="z_CCEAssignmentID" id="z_CCEAssignmentID" value="="></span></td>
		<td<?php echo $CCEStudentAssignments->CCEAssignmentID->CellAttributes() ?>>
			<div style="white-space: nowrap;">
				<span class="phpmaker" style="float: left;">
<select id="x_CCEAssignmentID" name="x_CCEAssignmentID" title="<?php echo $CCEStudentAssignments->CCEAssignmentID->FldTitle() ?>"<?php echo $CCEStudentAssignments->CCEAssignmentID->EditAttributes() ?>>
<?php
if (is_array($CCEStudentAssignments->CCEAssignmentID->EditValue)) {
	$arwrk = $CCEStudentAssignments->CCEAssignmentID->EditValue;
	$rowswrk = count($arwrk);
	$emptywrk = TRUE;
	for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
		$selwrk = (strval($CCEStudentAssignments->CCEAssignmentID->AdvancedSearch->SearchValue) == strval($arwrk[$rowcntwrk][0])) ? " selected=\"selected\"" : "";
		if ($selwrk <> "") $emptywrk = FALSE;
?>
<option value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?>>
<?php echo $arwrk[$rowcntwrk][1] ?>
<?php if ($arwrk[$rowcntwrk][2] <> "") { ?>
<?php echo ew_ValueSeparator($rowcntwrk) ?><?php echo $arwrk[$rowcntwrk][2] ?>
<?php } ?>
</option>
<?php
	}
}
?>
</select>
</span>
			</div>
		</td>
	</tr>
	<tr<?php echo $CCEStudentAssignments->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $CCEStudentAssignments->Comments->FldCaption() ?></td>
		<td<?php echo $CCEStudentAssignments->Comments->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_Comments" id="z_Comments" value="LIKE"></span></td>
		<td<?php echo $CCEStudentAssignments->Comments->CellAttributes() ?>>
			<div style="white-space: nowrap;">
				<span class="phpmaker" style="float: left;">
<textarea name="x_Comments" id="x_Comments" title="<?php echo $CCEStudentAssignments->Comments->FldTitle() ?>" cols="80" rows="4"<?php echo $CCEStudentAssignments->Comments->EditAttributes() ?>><?php echo $CCEStudentAssignments->Comments->EditValue ?></textarea>
</span>
			</div>
		</td>
	</tr>
	<tr<?php echo $CCEStudentAssignments->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $CCEStudentAssignments->DateSubmitted->FldCaption() ?></td>
		<td<?php echo $CCEStudentAssignments->DateSubmitted->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("BETWEEN") ?><input type="hidden" name="z_DateSubmitted" id="z_DateSubmitted" value="BETWEEN"></span></td>
		<td<?php echo $CCEStudentAssignments->DateSubmitted->CellAttributes() ?>>
			<div style="white-space: nowrap;">
				<span class="phpmaker" style="float: left;">
<input type="text" name="x_DateSubmitted" id="x_DateSubmitted" title="<?php echo $CCEStudentAssignments->DateSubmitted->FldTitle() ?>" value="<?php echo $CCEStudentAssignments->DateSubmitted->EditValue ?>"<?php echo $CCEStudentAssignments->DateSubmitted->EditAttributes() ?>>
&nbsp;<img src="images/calendar.png" id="cal_x_DateSubmitted" name="cal_x_DateSubmitted" alt="<?php echo $Language->Phrase("PickDate") ?>" title="<?php echo $Language->Phrase("PickDate") ?>" style="cursor:pointer;cursor:hand;">
<script type="text/javascript">
Calendar.setup({
	inputField: "x_DateSubmitted", // input field id
	showsTime: true, // show time
	ifFormat: "%Y/%m/%d %H:%M:%S", // date format
	button: "cal_x_DateSubmitted" // button id
});
</script>
</span>
				<span class="ewSearchOpr" id="btw1_DateSubmitted" name="btw1_DateSubmitted">&nbsp;<?php echo $Language->Phrase("AND") ?>&nbsp;</span>
				<span class="phpmaker" style="float: left;" id="btw1_DateSubmitted" name="btw1_DateSubmitted">
<input type="text" name="y_DateSubmitted" id="y_DateSubmitted" title="<?php echo $CCEStudentAssignments->DateSubmitted->FldTitle() ?>" value="<?php echo $CCEStudentAssignments->DateSubmitted->EditValue2 ?>"<?php echo $CCEStudentAssignments->DateSubmitted->EditAttributes() ?>>
&nbsp;<img src="images/calendar.png" id="cal_y_DateSubmitted" name="cal_y_DateSubmitted" alt="<?php echo $Language->Phrase("PickDate") ?>" title="<?php echo $Language->Phrase("PickDate") ?>" style="cursor:pointer;cursor:hand;">
<script type="text/javascript">
Calendar.setup({
	inputField: "y_DateSubmitted", // input field id
	showsTime: true, // show time
	ifFormat: "%Y/%m/%d %H:%M:%S", // date format
	button: "cal_y_DateSubmitted" // button id
});
</script>
</span>
			</div>
		</td>
	</tr>
	<tr<?php echo $CCEStudentAssignments->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $CCEStudentAssignments->Passed->FldCaption() ?></td>
		<td<?php echo $CCEStudentAssignments->Passed->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("=") ?><input type="hidden" name="z_Passed" id="z_Passed" value="="></span></td>
		<td<?php echo $CCEStudentAssignments->Passed->CellAttributes() ?>>
			<div style="white-space: nowrap;">
				<span class="phpmaker" style="float: left;">
<div id="tp_x_Passed" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_Passed" id="x_Passed" title="<?php echo $CCEStudentAssignments->Passed->FldTitle() ?>" value="{value}"<?php echo $CCEStudentAssignments->Passed->EditAttributes() ?>></label></div>
<div id="dsl_x_Passed" repeatcolumn="5">
<?php
$arwrk = $CCEStudentAssignments->Passed->EditValue;
if (is_array($arwrk)) {
	$rowswrk = count($arwrk);
	$emptywrk = TRUE;
	for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
		$selwrk = (strval($CCEStudentAssignments->Passed->AdvancedSearch->SearchValue) == strval($arwrk[$rowcntwrk][0])) ? " checked=\"checked\"" : "";
		if ($selwrk <> "") $emptywrk = FALSE;

		// Note: No spacing within the LABEL tag
?>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 1) ?>
<label><input type="radio" name="x_Passed" id="x_Passed" title="<?php echo $CCEStudentAssignments->Passed->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudentAssignments->Passed->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
	}
}
?>
</div>
</span>
			</div>
		</td>
	</tr>
	<tr<?php echo $CCEStudentAssignments->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $CCEStudentAssignments->RulingCode->FldCaption() ?></td>
		<td<?php echo $CCEStudentAssignments->RulingCode->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_RulingCode" id="z_RulingCode" value="LIKE"></span></td>
		<td<?php echo $CCEStudentAssignments->RulingCode->CellAttributes() ?>>
			<div style="white-space: nowrap;">
				<span class="phpmaker" style="float: left;">
<div id="tp_x_RulingCode" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_RulingCode" id="x_RulingCode" title="<?php echo $CCEStudentAssignments->RulingCode->FldTitle() ?>" value="{value}"<?php echo $CCEStudentAssignments->RulingCode->EditAttributes() ?>></label></div>
<div id="dsl_x_RulingCode" repeatcolumn="5">
<?php
$arwrk = $CCEStudentAssignments->RulingCode->EditValue;
if (is_array($arwrk)) {
	$rowswrk = count($arwrk);
	$emptywrk = TRUE;
	for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
		$selwrk = (strval($CCEStudentAssignments->RulingCode->AdvancedSearch->SearchValue) == strval($arwrk[$rowcntwrk][0])) ? " checked=\"checked\"" : "";
		if ($selwrk <> "") $emptywrk = FALSE;

		// Note: No spacing within the LABEL tag
?>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 1) ?>
<label><input type="radio" name="x_RulingCode" id="x_RulingCode" title="<?php echo $CCEStudentAssignments->RulingCode->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudentAssignments->RulingCode->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
	}
}
?>
</div>
</span>
			</div>
		</td>
	</tr>
	<tr<?php echo $CCEStudentAssignments->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $CCEStudentAssignments->AssignmentScore->FldCaption() ?></td>
		<td<?php echo $CCEStudentAssignments->AssignmentScore->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("=") ?><input type="hidden" name="z_AssignmentScore" id="z_AssignmentScore" value="="></span></td>
		<td<?php echo $CCEStudentAssignments->AssignmentScore->CellAttributes() ?>>
			<div style="white-space: nowrap;">
				<span class="phpmaker" style="float: left;">
<input type="text" name="x_AssignmentScore" id="x_AssignmentScore" title="<?php echo $CCEStudentAssignments->AssignmentScore->FldTitle() ?>" size="30" value="<?php echo $CCEStudentAssignments->AssignmentScore->EditValue ?>"<?php echo $CCEStudentAssignments->AssignmentScore->EditAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
	<tr<?php echo $CCEStudentAssignments->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $CCEStudentAssignments->ScoredBy->FldCaption() ?></td>
		<td<?php echo $CCEStudentAssignments->ScoredBy->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("=") ?><input type="hidden" name="z_ScoredBy" id="z_ScoredBy" value="="></span></td>
		<td<?php echo $CCEStudentAssignments->ScoredBy->CellAttributes() ?>>
			<div style="white-space: nowrap;">
				<span class="phpmaker" style="float: left;">
<select id="x_ScoredBy" name="x_ScoredBy" title="<?php echo $CCEStudentAssignments->ScoredBy->FldTitle() ?>"<?php echo $CCEStudentAssignments->ScoredBy->EditAttributes() ?>>
<?php
if (is_array($CCEStudentAssignments->ScoredBy->EditValue)) {
	$arwrk = $CCEStudentAssignments->ScoredBy->EditValue;
	$rowswrk = count($arwrk);
	$emptywrk = TRUE;
	for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
		$selwrk = (strval($CCEStudentAssignments->ScoredBy->AdvancedSearch->SearchValue) == strval($arwrk[$rowcntwrk][0])) ? " selected=\"selected\"" : "";
		if ($selwrk <> "") $emptywrk = FALSE;
?>
<option value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?>>
<?php echo $arwrk[$rowcntwrk][1] ?>
</option>
<?php
	}
}
?>
</select>
</span>
			</div>
		</td>
	</tr>
	<tr<?php echo $CCEStudentAssignments->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $CCEStudentAssignments->Remarks->FldCaption() ?></td>
		<td<?php echo $CCEStudentAssignments->Remarks->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_Remarks" id="z_Remarks" value="LIKE"></span></td>
		<td<?php echo $CCEStudentAssignments->Remarks->CellAttributes() ?>>
			<div style="white-space: nowrap;">
				<span class="phpmaker" style="float: left;">
<textarea name="x_Remarks" id="x_Remarks" title="<?php echo $CCEStudentAssignments->Remarks->FldTitle() ?>" cols="80" rows="4"<?php echo $CCEStudentAssignments->Remarks->EditAttributes() ?>><?php echo $CCEStudentAssignments->Remarks->EditValue ?></textarea>
</span>
			</div>
		</td>
	</tr>
	<tr<?php echo $CCEStudentAssignments->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $CCEStudentAssignments->FeedbackMessageID->FldCaption() ?></td>
		<td<?php echo $CCEStudentAssignments->FeedbackMessageID->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("=") ?><input type="hidden" name="z_FeedbackMessageID" id="z_FeedbackMessageID" value="="></span></td>
		<td<?php echo $CCEStudentAssignments->FeedbackMessageID->CellAttributes() ?>>
			<div style="white-space: nowrap;">
				<span class="phpmaker" style="float: left;">
<input type="text" name="x_FeedbackMessageID" id="x_FeedbackMessageID" title="<?php echo $CCEStudentAssignments->FeedbackMessageID->FldTitle() ?>" size="30" value="<?php echo $CCEStudentAssignments->FeedbackMessageID->EditValue ?>"<?php echo $CCEStudentAssignments->FeedbackMessageID->EditAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
	<tr<?php echo $CCEStudentAssignments->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $CCEStudentAssignments->LastFeedback->FldCaption() ?></td>
		<td<?php echo $CCEStudentAssignments->LastFeedback->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_LastFeedback" id="z_LastFeedback" value="LIKE"></span></td>
		<td<?php echo $CCEStudentAssignments->LastFeedback->CellAttributes() ?>>
			<div style="white-space: nowrap;">
				<span class="phpmaker" style="float: left;">
<textarea name="x_LastFeedback" id="x_LastFeedback" title="<?php echo $CCEStudentAssignments->LastFeedback->FldTitle() ?>" cols="80" rows="4"<?php echo $CCEStudentAssignments->LastFeedback->EditAttributes() ?>><?php echo $CCEStudentAssignments->LastFeedback->EditValue ?></textarea>
</span>
			</div>
		</td>
	</tr>
	<tr<?php echo $CCEStudentAssignments->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $CCEStudentAssignments->Extended->FldCaption() ?></td>
		<td<?php echo $CCEStudentAssignments->Extended->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("=") ?><input type="hidden" name="z_Extended" id="z_Extended" value="="></span></td>
		<td<?php echo $CCEStudentAssignments->Extended->CellAttributes() ?>>
			<div style="white-space: nowrap;">
				<span class="phpmaker" style="float: left;">
<div id="tp_x_Extended" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_Extended" id="x_Extended" title="<?php echo $CCEStudentAssignments->Extended->FldTitle() ?>" value="{value}"<?php echo $CCEStudentAssignments->Extended->EditAttributes() ?>></label></div>
<div id="dsl_x_Extended" repeatcolumn="5">
<?php
$arwrk = $CCEStudentAssignments->Extended->EditValue;
if (is_array($arwrk)) {
	$rowswrk = count($arwrk);
	$emptywrk = TRUE;
	for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
		$selwrk = (strval($CCEStudentAssignments->Extended->AdvancedSearch->SearchValue) == strval($arwrk[$rowcntwrk][0])) ? " checked=\"checked\"" : "";
		if ($selwrk <> "") $emptywrk = FALSE;

		// Note: No spacing within the LABEL tag
?>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 1) ?>
<label><input type="radio" name="x_Extended" id="x_Extended" title="<?php echo $CCEStudentAssignments->Extended->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudentAssignments->Extended->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
	}
}
?>
</div>
</span>
			</div>
		</td>
	</tr>
	<tr<?php echo $CCEStudentAssignments->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $CCEStudentAssignments->References->FldCaption() ?></td>
		<td<?php echo $CCEStudentAssignments->References->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_References" id="z_References" value="LIKE"></span></td>
		<td<?php echo $CCEStudentAssignments->References->CellAttributes() ?>>
			<div style="white-space: nowrap;">
				<span class="phpmaker" style="float: left;">
<textarea name="x_References" id="x_References" title="<?php echo $CCEStudentAssignments->References->FldTitle() ?>" cols="35" rows="4"<?php echo $CCEStudentAssignments->References->EditAttributes() ?>><?php echo $CCEStudentAssignments->References->EditValue ?></textarea>
</span>
			</div>
		</td>
	</tr>
	<tr<?php echo $CCEStudentAssignments->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $CCEStudentAssignments->TempR->FldCaption() ?></td>
		<td<?php echo $CCEStudentAssignments->TempR->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_TempR" id="z_TempR" value="LIKE"></span></td>
		<td<?php echo $CCEStudentAssignments->TempR->CellAttributes() ?>>
			<div style="white-space: nowrap;">
				<span class="phpmaker" style="float: left;">
<textarea name="x_TempR" id="x_TempR" title="<?php echo $CCEStudentAssignments->TempR->FldTitle() ?>" cols="35" rows="4"<?php echo $CCEStudentAssignments->TempR->EditAttributes() ?>><?php echo $CCEStudentAssignments->TempR->EditValue ?></textarea>
</span>
			</div>
		</td>
	</tr>
	<tr<?php echo $CCEStudentAssignments->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $CCEStudentAssignments->ResubmitDateOverride->FldCaption() ?></td>
		<td<?php echo $CCEStudentAssignments->ResubmitDateOverride->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("BETWEEN") ?><input type="hidden" name="z_ResubmitDateOverride" id="z_ResubmitDateOverride" value="BETWEEN"></span></td>
		<td<?php echo $CCEStudentAssignments->ResubmitDateOverride->CellAttributes() ?>>
			<div style="white-space: nowrap;">
				<span class="phpmaker" style="float: left;">
<input type="text" name="x_ResubmitDateOverride" id="x_ResubmitDateOverride" title="<?php echo $CCEStudentAssignments->ResubmitDateOverride->FldTitle() ?>" value="<?php echo $CCEStudentAssignments->ResubmitDateOverride->EditValue ?>"<?php echo $CCEStudentAssignments->ResubmitDateOverride->EditAttributes() ?>>
</span>
				<span class="ewSearchOpr" id="btw1_ResubmitDateOverride" name="btw1_ResubmitDateOverride">&nbsp;<?php echo $Language->Phrase("AND") ?>&nbsp;</span>
				<span class="phpmaker" style="float: left;" id="btw1_ResubmitDateOverride" name="btw1_ResubmitDateOverride">
<input type="text" name="y_ResubmitDateOverride" id="y_ResubmitDateOverride" title="<?php echo $CCEStudentAssignments->ResubmitDateOverride->FldTitle() ?>" value="<?php echo $CCEStudentAssignments->ResubmitDateOverride->EditValue2 ?>"<?php echo $CCEStudentAssignments->ResubmitDateOverride->EditAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
</table>
</div>
</td></tr></table>
<p>
<input type="submit" name="Action" id="Action" value="<?php echo ew_BtnCaption($Language->Phrase("Search")) ?>">
<input type="button" name="Reset" id="Reset" value="<?php echo ew_BtnCaption($Language->Phrase("Reset")) ?>" onclick="ew_ClearForm(this.form);">
</form>
<script language="JavaScript" type="text/javascript">
<!--

// Write your table-specific startup script here
// document.write("page loaded");
//-->

</script>
<?php include "footer.php" ?>
<?php
$CCEStudentAssignments_search->Page_Terminate();
?>
<?php

//
// Page class
//
class cCCEStudentAssignments_search {

	// Page ID
	var $PageID = 'search';

	// Table name
	var $TableName = 'CCEStudentAssignments';

	// Page object name
	var $PageObjName = 'CCEStudentAssignments_search';

	// Page name
	function PageName() {
		return ew_CurrentPage();
	}

	// Page URL
	function PageUrl() {
		$PageUrl = ew_CurrentPage() . "?";
		global $CCEStudentAssignments;
		if ($CCEStudentAssignments->UseTokenInUrl) $PageUrl .= "t=" . $CCEStudentAssignments->TableVar . "&"; // Add page token
		return $PageUrl;
	}

	// Page URLs
	var $AddUrl;
	var $EditUrl;
	var $CopyUrl;
	var $DeleteUrl;
	var $ViewUrl;
	var $ListUrl;

	// Export URLs
	var $ExportPrintUrl;
	var $ExportHtmlUrl;
	var $ExportExcelUrl;
	var $ExportWordUrl;
	var $ExportXmlUrl;
	var $ExportCsvUrl;

	// Update URLs
	var $InlineAddUrl;
	var $InlineCopyUrl;
	var $InlineEditUrl;
	var $GridAddUrl;
	var $GridEditUrl;
	var $MultiDeleteUrl;
	var $MultiUpdateUrl;

	// Message
	function getMessage() {
		return @$_SESSION[EW_SESSION_MESSAGE];
	}

	function setMessage($v) {
		if (@$_SESSION[EW_SESSION_MESSAGE] <> "") { // Append
			$_SESSION[EW_SESSION_MESSAGE] .= "<br>" . $v;
		} else {
			$_SESSION[EW_SESSION_MESSAGE] = $v;
		}
	}

	// Show message
	function ShowMessage() {
		$sMessage = $this->getMessage();
		$this->Message_Showing($sMessage);
		if ($sMessage <> "") { // Message in Session, display
			echo "<p><span class=\"ewMessage\">" . $sMessage . "</span></p>";
			$_SESSION[EW_SESSION_MESSAGE] = ""; // Clear message in Session
		}
	}

	// Validate page request
	function IsPageRequest() {
		global $objForm, $CCEStudentAssignments;
		if ($CCEStudentAssignments->UseTokenInUrl) {
			if ($objForm)
				return ($CCEStudentAssignments->TableVar == $objForm->GetValue("t"));
			if (@$_GET["t"] <> "")
				return ($CCEStudentAssignments->TableVar == $_GET["t"]);
		} else {
			return TRUE;
		}
	}

	//
	// Page class constructor
	//
	function __construct() {
		global $conn, $Language;

		// Language object
		$Language = new cLanguage();

		// Table object (CCEStudentAssignments)
		$GLOBALS["CCEStudentAssignments"] = new cCCEStudentAssignments();

		// Table object (CCEAssignments)
		$GLOBALS['CCEAssignments'] = new cCCEAssignments();

		// Table object (CCEFacilitatorUsers)
		$GLOBALS['CCEFacilitatorUsers'] = new cCCEFacilitatorUsers();

		// Table object (CCEStudents)
		$GLOBALS['CCEStudents'] = new cCCEStudents();

		// Page ID
		if (!defined("EW_PAGE_ID"))
			define("EW_PAGE_ID", 'search', TRUE);

		// Table name (for backward compatibility)
		if (!defined("EW_TABLE_NAME"))
			define("EW_TABLE_NAME", 'CCEStudentAssignments', TRUE);

		// Start timer
		$GLOBALS["gsTimer"] = new cTimer();

		// Open connection
		$conn = ew_Connect();
	}

	// 
	//  Page_Init
	//
	function Page_Init() {
		global $gsExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
		global $CCEStudentAssignments;

		// Security
		$Security = new cAdvancedSecurity();
		if (!$Security->IsLoggedIn()) $Security->AutoLogin();
		if (!$Security->IsLoggedIn()) {
			$Security->SaveLastUrl();
			$this->Page_Terminate("login.php");
		}

		// Create form object
		$objForm = new cFormObj();

		// Global Page Loading event (in userfn*.php)
		Page_Loading();

		// Page Load event
		$this->Page_Load();
	}

	//
	// Page_Terminate
	//
	function Page_Terminate($url = "") {
		global $conn;

		// Page Unload event
		$this->Page_Unload();

		// Global Page Unloaded event (in userfn*.php)
		Page_Unloaded();

		 // Close connection
		$conn->Close();

		// Go to URL if specified
		$this->Page_Redirecting($url);
		if ($url <> "") {
			if (!EW_DEBUG_ENABLED && ob_get_length())
				ob_end_clean();
			header("Location: " . $url);
		}
		exit();
	}

	//
	// Page main
	//
	function Page_Main() {
		global $objForm, $Language, $gsSearchError, $CCEStudentAssignments;
		if ($this->IsPageRequest()) { // Validate request

			// Get action
			$CCEStudentAssignments->CurrentAction = $objForm->GetValue("a_search");
			switch ($CCEStudentAssignments->CurrentAction) {
				case "S": // Get search criteria

					// Build search string for advanced search, remove blank field
					$this->LoadSearchValues(); // Get search values
					if ($this->ValidateSearch()) {
						$sSrchStr = $this->BuildAdvancedSearch();
					} else {
						$sSrchStr = "";
						$this->setMessage($gsSearchError);
					}
					if ($sSrchStr <> "") {
						$sSrchStr = $CCEStudentAssignments->UrlParm($sSrchStr);
						$this->Page_Terminate("CCEStudentAssignmentslist.php" . "?" . $sSrchStr); // Go to list page
					}
			}
		}

		// Restore search settings from Session
		if ($gsSearchError == "")
			$this->LoadAdvancedSearch();

		// Render row for search
		$CCEStudentAssignments->RowType = EW_ROWTYPE_SEARCH;
		$this->RenderRow();
	}

// Build advanced search
function BuildAdvancedSearch() {
	global $CCEStudentAssignments;
	$sSrchUrl = "";
	$this->BuildSearchUrl($sSrchUrl, $CCEStudentAssignments->CCEStudentAssigID); // CCEStudentAssigID
	$this->BuildSearchUrl($sSrchUrl, $CCEStudentAssignments->CCEStudentID); // CCEStudentID
	$this->BuildSearchUrl($sSrchUrl, $CCEStudentAssignments->CCEAssignmentID); // CCEAssignmentID
	$this->BuildSearchUrl($sSrchUrl, $CCEStudentAssignments->Comments); // Comments
	$this->BuildSearchUrl($sSrchUrl, $CCEStudentAssignments->DateSubmitted); // DateSubmitted
	$this->BuildSearchUrl($sSrchUrl, $CCEStudentAssignments->Passed); // Passed
	$this->BuildSearchUrl($sSrchUrl, $CCEStudentAssignments->RulingCode); // RulingCode
	$this->BuildSearchUrl($sSrchUrl, $CCEStudentAssignments->AssignmentScore); // AssignmentScore
	$this->BuildSearchUrl($sSrchUrl, $CCEStudentAssignments->ScoredBy); // ScoredBy
	$this->BuildSearchUrl($sSrchUrl, $CCEStudentAssignments->Remarks); // Remarks
	$this->BuildSearchUrl($sSrchUrl, $CCEStudentAssignments->FeedbackMessageID); // FeedbackMessageID
	$this->BuildSearchUrl($sSrchUrl, $CCEStudentAssignments->LastFeedback); // LastFeedback
	$this->BuildSearchUrl($sSrchUrl, $CCEStudentAssignments->Extended); // Extended
	$this->BuildSearchUrl($sSrchUrl, $CCEStudentAssignments->References); // References
	$this->BuildSearchUrl($sSrchUrl, $CCEStudentAssignments->TempR); // TempR
	$this->BuildSearchUrl($sSrchUrl, $CCEStudentAssignments->ResubmitDateOverride); // ResubmitDateOverride
	return $sSrchUrl;
}

// Build search URL
function BuildSearchUrl(&$Url, &$Fld) {
	global $objForm;
	$sWrk = "";
	$FldParm = substr($Fld->FldVar, 2);
	$FldVal = $objForm->GetValue("x_$FldParm");
	$FldOpr = $objForm->GetValue("z_$FldParm");
	$FldCond = $objForm->GetValue("v_$FldParm");
	$FldVal2 = $objForm->GetValue("y_$FldParm");
	$FldOpr2 = $objForm->GetValue("w_$FldParm");
	$FldVal = ew_StripSlashes($FldVal);
	if (is_array($FldVal)) $FldVal = implode(",", $FldVal);
	$FldVal2 = ew_StripSlashes($FldVal2);
	if (is_array($FldVal2)) $FldVal2 = implode(",", $FldVal2);
	$FldOpr = strtoupper(trim($FldOpr));
	$lFldDataType = ($Fld->FldIsVirtual) ? EW_DATATYPE_STRING : $Fld->FldDataType;
	if ($FldOpr == "BETWEEN") {
		$IsValidValue = ($lFldDataType <> EW_DATATYPE_NUMBER) ||
			($lFldDataType == EW_DATATYPE_NUMBER && is_numeric($FldVal) && is_numeric($FldVal2));
		if ($FldVal <> "" && $FldVal2 <> "" && $IsValidValue) {
			$sWrk = "x_" . $FldParm . "=" . urlencode($FldVal) .
				"&y_" . $FldParm . "=" . urlencode($FldVal2) .
				"&z_" . $FldParm . "=" . urlencode($FldOpr);
		}
	} elseif ($FldOpr == "IS NULL" || $FldOpr == "IS NOT NULL") {
		$sWrk = "x_" . $FldParm . "=" . urlencode($FldVal) .
			"&z_" . $FldParm . "=" . urlencode($FldOpr);
	} else {
		$IsValidValue = ($lFldDataType <> EW_DATATYPE_NUMBER) ||
			($lFldDataType == EW_DATATYPE_NUMBER && is_numeric($FldVal));
		if ($FldVal <> "" && $IsValidValue && ew_IsValidOpr($FldOpr, $lFldDataType)) {

			//$FldVal = $this->ConvertSearchValue($Fld, $FldVal);
			$sWrk = "x_" . $FldParm . "=" . urlencode($FldVal) .
				"&z_" . $FldParm . "=" . urlencode($FldOpr);
		}
		$IsValidValue = ($lFldDataType <> EW_DATATYPE_NUMBER) ||
			($lFldDataType == EW_DATATYPE_NUMBER && is_numeric($FldVal2));
		if ($FldVal2 <> "" && $IsValidValue && ew_IsValidOpr($FldOpr2, $lFldDataType)) {

			//$FldVal2 = $this->ConvertSearchValue($Fld, $FldVal2);
			if ($sWrk <> "") $sWrk .= "&v_" . $FldParm . "=" . urlencode($FldCond) . "&";
			$sWrk .= "&y_" . $FldParm . "=" . urlencode($FldVal2) .
				"&w_" . $FldParm . "=" . urlencode($FldOpr2);
		}
	}
	if ($sWrk <> "") {
		if ($Url <> "") $Url .= "&";
		$Url .= $sWrk;
	}
}

// Convert search value for date
function ConvertSearchValue(&$Fld, $FldVal) {
	$Value = $FldVal;
	if ($Fld->FldDataType == EW_DATATYPE_DATE && $FldVal <> "")
		$Value = ew_UnFormatDateTime($FldVal, $Fld->FldDateTimeFormat);
	return $Value;
}

	//  Load search values for validation
	function LoadSearchValues() {
		global $objForm, $CCEStudentAssignments;

		// Load search values
		// CCEStudentAssigID

		$CCEStudentAssignments->CCEStudentAssigID->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_CCEStudentAssigID"));
		$CCEStudentAssignments->CCEStudentAssigID->AdvancedSearch->SearchOperator = $objForm->GetValue("z_CCEStudentAssigID");

		// CCEStudentID
		$CCEStudentAssignments->CCEStudentID->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_CCEStudentID"));
		$CCEStudentAssignments->CCEStudentID->AdvancedSearch->SearchOperator = $objForm->GetValue("z_CCEStudentID");

		// CCEAssignmentID
		$CCEStudentAssignments->CCEAssignmentID->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_CCEAssignmentID"));
		$CCEStudentAssignments->CCEAssignmentID->AdvancedSearch->SearchOperator = $objForm->GetValue("z_CCEAssignmentID");

		// Comments
		$CCEStudentAssignments->Comments->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_Comments"));
		$CCEStudentAssignments->Comments->AdvancedSearch->SearchOperator = $objForm->GetValue("z_Comments");

		// DateSubmitted
		$CCEStudentAssignments->DateSubmitted->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_DateSubmitted"));
		$CCEStudentAssignments->DateSubmitted->AdvancedSearch->SearchOperator = $objForm->GetValue("z_DateSubmitted");
		$CCEStudentAssignments->DateSubmitted->AdvancedSearch->SearchCondition = $objForm->GetValue("v_DateSubmitted");
		$CCEStudentAssignments->DateSubmitted->AdvancedSearch->SearchValue2 = ew_StripSlashes($objForm->GetValue("y_DateSubmitted"));
		$CCEStudentAssignments->DateSubmitted->AdvancedSearch->SearchOperator2 = $objForm->GetValue("w_DateSubmitted");

		// Passed
		$CCEStudentAssignments->Passed->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_Passed"));
		$CCEStudentAssignments->Passed->AdvancedSearch->SearchOperator = $objForm->GetValue("z_Passed");

		// RulingCode
		$CCEStudentAssignments->RulingCode->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_RulingCode"));
		$CCEStudentAssignments->RulingCode->AdvancedSearch->SearchOperator = $objForm->GetValue("z_RulingCode");

		// AssignmentScore
		$CCEStudentAssignments->AssignmentScore->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_AssignmentScore"));
		$CCEStudentAssignments->AssignmentScore->AdvancedSearch->SearchOperator = $objForm->GetValue("z_AssignmentScore");

		// ScoredBy
		$CCEStudentAssignments->ScoredBy->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_ScoredBy"));
		$CCEStudentAssignments->ScoredBy->AdvancedSearch->SearchOperator = $objForm->GetValue("z_ScoredBy");

		// Remarks
		$CCEStudentAssignments->Remarks->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_Remarks"));
		$CCEStudentAssignments->Remarks->AdvancedSearch->SearchOperator = $objForm->GetValue("z_Remarks");

		// FeedbackMessageID
		$CCEStudentAssignments->FeedbackMessageID->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_FeedbackMessageID"));
		$CCEStudentAssignments->FeedbackMessageID->AdvancedSearch->SearchOperator = $objForm->GetValue("z_FeedbackMessageID");

		// LastFeedback
		$CCEStudentAssignments->LastFeedback->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_LastFeedback"));
		$CCEStudentAssignments->LastFeedback->AdvancedSearch->SearchOperator = $objForm->GetValue("z_LastFeedback");

		// Extended
		$CCEStudentAssignments->Extended->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_Extended"));
		$CCEStudentAssignments->Extended->AdvancedSearch->SearchOperator = $objForm->GetValue("z_Extended");

		// References
		$CCEStudentAssignments->References->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_References"));
		$CCEStudentAssignments->References->AdvancedSearch->SearchOperator = $objForm->GetValue("z_References");

		// TempR
		$CCEStudentAssignments->TempR->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_TempR"));
		$CCEStudentAssignments->TempR->AdvancedSearch->SearchOperator = $objForm->GetValue("z_TempR");

		// ResubmitDateOverride
		$CCEStudentAssignments->ResubmitDateOverride->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_ResubmitDateOverride"));
		$CCEStudentAssignments->ResubmitDateOverride->AdvancedSearch->SearchOperator = $objForm->GetValue("z_ResubmitDateOverride");
		$CCEStudentAssignments->ResubmitDateOverride->AdvancedSearch->SearchCondition = $objForm->GetValue("v_ResubmitDateOverride");
		$CCEStudentAssignments->ResubmitDateOverride->AdvancedSearch->SearchValue2 = ew_StripSlashes($objForm->GetValue("y_ResubmitDateOverride"));
		$CCEStudentAssignments->ResubmitDateOverride->AdvancedSearch->SearchOperator2 = $objForm->GetValue("w_ResubmitDateOverride");
	}

	// Render row values based on field settings
	function RenderRow() {
		global $conn, $Security, $Language, $CCEStudentAssignments;

		// Initialize URLs
		// Call Row_Rendering event

		$CCEStudentAssignments->Row_Rendering();

		// Common render codes for all row types
		// CCEStudentAssigID

		$CCEStudentAssignments->CCEStudentAssigID->CellCssStyle = ""; $CCEStudentAssignments->CCEStudentAssigID->CellCssClass = "";
		$CCEStudentAssignments->CCEStudentAssigID->CellAttrs = array(); $CCEStudentAssignments->CCEStudentAssigID->ViewAttrs = array(); $CCEStudentAssignments->CCEStudentAssigID->EditAttrs = array();

		// CCEStudentID
		$CCEStudentAssignments->CCEStudentID->CellCssStyle = ""; $CCEStudentAssignments->CCEStudentID->CellCssClass = "";
		$CCEStudentAssignments->CCEStudentID->CellAttrs = array(); $CCEStudentAssignments->CCEStudentID->ViewAttrs = array(); $CCEStudentAssignments->CCEStudentID->EditAttrs = array();

		// CCEAssignmentID
		$CCEStudentAssignments->CCEAssignmentID->CellCssStyle = ""; $CCEStudentAssignments->CCEAssignmentID->CellCssClass = "";
		$CCEStudentAssignments->CCEAssignmentID->CellAttrs = array(); $CCEStudentAssignments->CCEAssignmentID->ViewAttrs = array(); $CCEStudentAssignments->CCEAssignmentID->EditAttrs = array();

		// AssignmentFile1
		$CCEStudentAssignments->AssignmentFile1->CellCssStyle = ""; $CCEStudentAssignments->AssignmentFile1->CellCssClass = "";
		$CCEStudentAssignments->AssignmentFile1->CellAttrs = array(); $CCEStudentAssignments->AssignmentFile1->ViewAttrs = array(); $CCEStudentAssignments->AssignmentFile1->EditAttrs = array();

		// AssignmentFile2
		$CCEStudentAssignments->AssignmentFile2->CellCssStyle = ""; $CCEStudentAssignments->AssignmentFile2->CellCssClass = "";
		$CCEStudentAssignments->AssignmentFile2->CellAttrs = array(); $CCEStudentAssignments->AssignmentFile2->ViewAttrs = array(); $CCEStudentAssignments->AssignmentFile2->EditAttrs = array();

		// AssignmentFile3
		$CCEStudentAssignments->AssignmentFile3->CellCssStyle = ""; $CCEStudentAssignments->AssignmentFile3->CellCssClass = "";
		$CCEStudentAssignments->AssignmentFile3->CellAttrs = array(); $CCEStudentAssignments->AssignmentFile3->ViewAttrs = array(); $CCEStudentAssignments->AssignmentFile3->EditAttrs = array();

		// AssignmentFile4
		$CCEStudentAssignments->AssignmentFile4->CellCssStyle = ""; $CCEStudentAssignments->AssignmentFile4->CellCssClass = "";
		$CCEStudentAssignments->AssignmentFile4->CellAttrs = array(); $CCEStudentAssignments->AssignmentFile4->ViewAttrs = array(); $CCEStudentAssignments->AssignmentFile4->EditAttrs = array();

		// AssignmentFile5
		$CCEStudentAssignments->AssignmentFile5->CellCssStyle = ""; $CCEStudentAssignments->AssignmentFile5->CellCssClass = "";
		$CCEStudentAssignments->AssignmentFile5->CellAttrs = array(); $CCEStudentAssignments->AssignmentFile5->ViewAttrs = array(); $CCEStudentAssignments->AssignmentFile5->EditAttrs = array();

		// Comments
		$CCEStudentAssignments->Comments->CellCssStyle = ""; $CCEStudentAssignments->Comments->CellCssClass = "";
		$CCEStudentAssignments->Comments->CellAttrs = array(); $CCEStudentAssignments->Comments->ViewAttrs = array(); $CCEStudentAssignments->Comments->EditAttrs = array();

		// DateSubmitted
		$CCEStudentAssignments->DateSubmitted->CellCssStyle = ""; $CCEStudentAssignments->DateSubmitted->CellCssClass = "";
		$CCEStudentAssignments->DateSubmitted->CellAttrs = array(); $CCEStudentAssignments->DateSubmitted->ViewAttrs = array(); $CCEStudentAssignments->DateSubmitted->EditAttrs = array();

		// Passed
		$CCEStudentAssignments->Passed->CellCssStyle = ""; $CCEStudentAssignments->Passed->CellCssClass = "";
		$CCEStudentAssignments->Passed->CellAttrs = array(); $CCEStudentAssignments->Passed->ViewAttrs = array(); $CCEStudentAssignments->Passed->EditAttrs = array();

		// RulingCode
		$CCEStudentAssignments->RulingCode->CellCssStyle = ""; $CCEStudentAssignments->RulingCode->CellCssClass = "";
		$CCEStudentAssignments->RulingCode->CellAttrs = array(); $CCEStudentAssignments->RulingCode->ViewAttrs = array(); $CCEStudentAssignments->RulingCode->EditAttrs = array();

		// AssignmentScore
		$CCEStudentAssignments->AssignmentScore->CellCssStyle = ""; $CCEStudentAssignments->AssignmentScore->CellCssClass = "";
		$CCEStudentAssignments->AssignmentScore->CellAttrs = array(); $CCEStudentAssignments->AssignmentScore->ViewAttrs = array(); $CCEStudentAssignments->AssignmentScore->EditAttrs = array();

		// ScoredBy
		$CCEStudentAssignments->ScoredBy->CellCssStyle = ""; $CCEStudentAssignments->ScoredBy->CellCssClass = "";
		$CCEStudentAssignments->ScoredBy->CellAttrs = array(); $CCEStudentAssignments->ScoredBy->ViewAttrs = array(); $CCEStudentAssignments->ScoredBy->EditAttrs = array();

		// Remarks
		$CCEStudentAssignments->Remarks->CellCssStyle = ""; $CCEStudentAssignments->Remarks->CellCssClass = "";
		$CCEStudentAssignments->Remarks->CellAttrs = array(); $CCEStudentAssignments->Remarks->ViewAttrs = array(); $CCEStudentAssignments->Remarks->EditAttrs = array();

		// FeedbackMessageID
		$CCEStudentAssignments->FeedbackMessageID->CellCssStyle = ""; $CCEStudentAssignments->FeedbackMessageID->CellCssClass = "";
		$CCEStudentAssignments->FeedbackMessageID->CellAttrs = array(); $CCEStudentAssignments->FeedbackMessageID->ViewAttrs = array(); $CCEStudentAssignments->FeedbackMessageID->EditAttrs = array();

		// LastFeedback
		$CCEStudentAssignments->LastFeedback->CellCssStyle = ""; $CCEStudentAssignments->LastFeedback->CellCssClass = "";
		$CCEStudentAssignments->LastFeedback->CellAttrs = array(); $CCEStudentAssignments->LastFeedback->ViewAttrs = array(); $CCEStudentAssignments->LastFeedback->EditAttrs = array();

		// MsgAttachment
		$CCEStudentAssignments->MsgAttachment->CellCssStyle = ""; $CCEStudentAssignments->MsgAttachment->CellCssClass = "";
		$CCEStudentAssignments->MsgAttachment->CellAttrs = array(); $CCEStudentAssignments->MsgAttachment->ViewAttrs = array(); $CCEStudentAssignments->MsgAttachment->EditAttrs = array();

		// Extended
		$CCEStudentAssignments->Extended->CellCssStyle = ""; $CCEStudentAssignments->Extended->CellCssClass = "";
		$CCEStudentAssignments->Extended->CellAttrs = array(); $CCEStudentAssignments->Extended->ViewAttrs = array(); $CCEStudentAssignments->Extended->EditAttrs = array();

		// References
		$CCEStudentAssignments->References->CellCssStyle = ""; $CCEStudentAssignments->References->CellCssClass = "";
		$CCEStudentAssignments->References->CellAttrs = array(); $CCEStudentAssignments->References->ViewAttrs = array(); $CCEStudentAssignments->References->EditAttrs = array();

		// TempR
		$CCEStudentAssignments->TempR->CellCssStyle = ""; $CCEStudentAssignments->TempR->CellCssClass = "";
		$CCEStudentAssignments->TempR->CellAttrs = array(); $CCEStudentAssignments->TempR->ViewAttrs = array(); $CCEStudentAssignments->TempR->EditAttrs = array();

		// ResubmitDateOverride
		$CCEStudentAssignments->ResubmitDateOverride->CellCssStyle = ""; $CCEStudentAssignments->ResubmitDateOverride->CellCssClass = "";
		$CCEStudentAssignments->ResubmitDateOverride->CellAttrs = array(); $CCEStudentAssignments->ResubmitDateOverride->ViewAttrs = array(); $CCEStudentAssignments->ResubmitDateOverride->EditAttrs = array();
		if ($CCEStudentAssignments->RowType == EW_ROWTYPE_VIEW) { // View row

			// CCEStudentAssigID
			$CCEStudentAssignments->CCEStudentAssigID->ViewValue = $CCEStudentAssignments->CCEStudentAssigID->CurrentValue;
			$CCEStudentAssignments->CCEStudentAssigID->CssStyle = "";
			$CCEStudentAssignments->CCEStudentAssigID->CssClass = "";
			$CCEStudentAssignments->CCEStudentAssigID->ViewCustomAttributes = "";

			// CCEStudentID
			if (strval($CCEStudentAssignments->CCEStudentID->CurrentValue) <> "") {
				$sFilterWrk = "`CCEStudentID` = " . ew_AdjustSql($CCEStudentAssignments->CCEStudentID->CurrentValue) . "";
			$sSqlWrk = "SELECT `FirstName`, `Surname` FROM `CCEStudents`";
			$sWhereWrk = "";
			if ($sFilterWrk <> "") {
				if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
				$sWhereWrk .= "(" . $sFilterWrk . ")";
			}
			if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
			$sSqlWrk .= " ORDER BY `Surname` Asc";
				$rswrk = $conn->Execute($sSqlWrk);
				if ($rswrk && !$rswrk->EOF) { // Lookup values found
					$CCEStudentAssignments->CCEStudentID->ViewValue = $rswrk->fields('FirstName');
					$CCEStudentAssignments->CCEStudentID->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('Surname');
					$rswrk->Close();
				} else {
					$CCEStudentAssignments->CCEStudentID->ViewValue = $CCEStudentAssignments->CCEStudentID->CurrentValue;
				}
			} else {
				$CCEStudentAssignments->CCEStudentID->ViewValue = NULL;
			}
			$CCEStudentAssignments->CCEStudentID->CssStyle = "";
			$CCEStudentAssignments->CCEStudentID->CssClass = "";
			$CCEStudentAssignments->CCEStudentID->ViewCustomAttributes = "";

			// CCEAssignmentID
			if (strval($CCEStudentAssignments->CCEAssignmentID->CurrentValue) <> "") {
				$sFilterWrk = "`CCEAssignmentID` = " . ew_AdjustSql($CCEStudentAssignments->CCEAssignmentID->CurrentValue) . "";
			$sSqlWrk = "SELECT `RefNum`, `AssignmentName` FROM `CCEAssignments`";
			$sWhereWrk = "";
			if ($sFilterWrk <> "") {
				if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
				$sWhereWrk .= "(" . $sFilterWrk . ")";
			}
			if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
			$sSqlWrk .= " ORDER BY `DueDate` Desc";
				$rswrk = $conn->Execute($sSqlWrk);
				if ($rswrk && !$rswrk->EOF) { // Lookup values found
					$CCEStudentAssignments->CCEAssignmentID->ViewValue = $rswrk->fields('RefNum');
					$CCEStudentAssignments->CCEAssignmentID->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('AssignmentName');
					$rswrk->Close();
				} else {
					$CCEStudentAssignments->CCEAssignmentID->ViewValue = $CCEStudentAssignments->CCEAssignmentID->CurrentValue;
				}
			} else {
				$CCEStudentAssignments->CCEAssignmentID->ViewValue = NULL;
			}
			$CCEStudentAssignments->CCEAssignmentID->CssStyle = "";
			$CCEStudentAssignments->CCEAssignmentID->CssClass = "";
			$CCEStudentAssignments->CCEAssignmentID->ViewCustomAttributes = "";

			// AssignmentFile1
			if (!ew_Empty($CCEStudentAssignments->AssignmentFile1->Upload->DbValue)) {
				$CCEStudentAssignments->AssignmentFile1->ViewValue = $CCEStudentAssignments->AssignmentFile1->Upload->DbValue;
			} else {
				$CCEStudentAssignments->AssignmentFile1->ViewValue = "";
			}
			$CCEStudentAssignments->AssignmentFile1->CssStyle = "";
			$CCEStudentAssignments->AssignmentFile1->CssClass = "";
			$CCEStudentAssignments->AssignmentFile1->ViewCustomAttributes = "";

			// AssignmentFile2
			if (!ew_Empty($CCEStudentAssignments->AssignmentFile2->Upload->DbValue)) {
				$CCEStudentAssignments->AssignmentFile2->ViewValue = $CCEStudentAssignments->AssignmentFile2->Upload->DbValue;
			} else {
				$CCEStudentAssignments->AssignmentFile2->ViewValue = "";
			}
			$CCEStudentAssignments->AssignmentFile2->CssStyle = "";
			$CCEStudentAssignments->AssignmentFile2->CssClass = "";
			$CCEStudentAssignments->AssignmentFile2->ViewCustomAttributes = "";

			// AssignmentFile3
			if (!ew_Empty($CCEStudentAssignments->AssignmentFile3->Upload->DbValue)) {
				$CCEStudentAssignments->AssignmentFile3->ViewValue = $CCEStudentAssignments->AssignmentFile3->Upload->DbValue;
			} else {
				$CCEStudentAssignments->AssignmentFile3->ViewValue = "";
			}
			$CCEStudentAssignments->AssignmentFile3->CssStyle = "";
			$CCEStudentAssignments->AssignmentFile3->CssClass = "";
			$CCEStudentAssignments->AssignmentFile3->ViewCustomAttributes = "";

			// AssignmentFile4
			if (!ew_Empty($CCEStudentAssignments->AssignmentFile4->Upload->DbValue)) {
				$CCEStudentAssignments->AssignmentFile4->ViewValue = $CCEStudentAssignments->AssignmentFile4->Upload->DbValue;
			} else {
				$CCEStudentAssignments->AssignmentFile4->ViewValue = "";
			}
			$CCEStudentAssignments->AssignmentFile4->CssStyle = "";
			$CCEStudentAssignments->AssignmentFile4->CssClass = "";
			$CCEStudentAssignments->AssignmentFile4->ViewCustomAttributes = "";

			// AssignmentFile5
			if (!ew_Empty($CCEStudentAssignments->AssignmentFile5->Upload->DbValue)) {
				$CCEStudentAssignments->AssignmentFile5->ViewValue = $CCEStudentAssignments->AssignmentFile5->Upload->DbValue;
			} else {
				$CCEStudentAssignments->AssignmentFile5->ViewValue = "";
			}
			$CCEStudentAssignments->AssignmentFile5->CssStyle = "";
			$CCEStudentAssignments->AssignmentFile5->CssClass = "";
			$CCEStudentAssignments->AssignmentFile5->ViewCustomAttributes = "";

			// Comments
			$CCEStudentAssignments->Comments->ViewValue = $CCEStudentAssignments->Comments->CurrentValue;
			$CCEStudentAssignments->Comments->CssStyle = "";
			$CCEStudentAssignments->Comments->CssClass = "";
			$CCEStudentAssignments->Comments->ViewCustomAttributes = "";

			// DateSubmitted
			$CCEStudentAssignments->DateSubmitted->ViewValue = $CCEStudentAssignments->DateSubmitted->CurrentValue;
			$CCEStudentAssignments->DateSubmitted->ViewValue = ew_FormatDateTime($CCEStudentAssignments->DateSubmitted->ViewValue, 9);
			$CCEStudentAssignments->DateSubmitted->CssStyle = "";
			$CCEStudentAssignments->DateSubmitted->CssClass = "";
			$CCEStudentAssignments->DateSubmitted->ViewCustomAttributes = "";

			// Completed
			if (strval($CCEStudentAssignments->Completed->CurrentValue) <> "") {
				switch ($CCEStudentAssignments->Completed->CurrentValue) {
					case "1":
						$CCEStudentAssignments->Completed->ViewValue = "Yes";
						break;
					case "0":
						$CCEStudentAssignments->Completed->ViewValue = "No";
						break;
					default:
						$CCEStudentAssignments->Completed->ViewValue = $CCEStudentAssignments->Completed->CurrentValue;
				}
			} else {
				$CCEStudentAssignments->Completed->ViewValue = NULL;
			}
			$CCEStudentAssignments->Completed->CssStyle = "";
			$CCEStudentAssignments->Completed->CssClass = "";
			$CCEStudentAssignments->Completed->ViewCustomAttributes = "";

			// Passed
			if (strval($CCEStudentAssignments->Passed->CurrentValue) <> "") {
				switch ($CCEStudentAssignments->Passed->CurrentValue) {
					case "1":
						$CCEStudentAssignments->Passed->ViewValue = "Achieved";
						break;
					case "2":
						$CCEStudentAssignments->Passed->ViewValue = "Not Yet Achieved";
						break;
					case "0":
						$CCEStudentAssignments->Passed->ViewValue = "Not Yet Evaluated";
						break;
					case "3":
						$CCEStudentAssignments->Passed->ViewValue = "Added to PoE";
						break;
					default:
						$CCEStudentAssignments->Passed->ViewValue = $CCEStudentAssignments->Passed->CurrentValue;
				}
			} else {
				$CCEStudentAssignments->Passed->ViewValue = NULL;
			}
			$CCEStudentAssignments->Passed->CssStyle = "";
			$CCEStudentAssignments->Passed->CssClass = "";
			$CCEStudentAssignments->Passed->ViewCustomAttributes = "";

			// RulingCode
			if (strval($CCEStudentAssignments->RulingCode->CurrentValue) <> "") {
				$sFilterWrk = "`RulingCode` = '" . ew_AdjustSql($CCEStudentAssignments->RulingCode->CurrentValue) . "'";
			$sSqlWrk = "SELECT `Ruling` FROM `CCERulingCodes`";
			$sWhereWrk = "";
			if ($sFilterWrk <> "") {
				if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
				$sWhereWrk .= "(" . $sFilterWrk . ")";
			}
			if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
				$rswrk = $conn->Execute($sSqlWrk);
				if ($rswrk && !$rswrk->EOF) { // Lookup values found
					$CCEStudentAssignments->RulingCode->ViewValue = $rswrk->fields('Ruling');
					$rswrk->Close();
				} else {
					$CCEStudentAssignments->RulingCode->ViewValue = $CCEStudentAssignments->RulingCode->CurrentValue;
				}
			} else {
				$CCEStudentAssignments->RulingCode->ViewValue = NULL;
			}
			$CCEStudentAssignments->RulingCode->CssStyle = "";
			$CCEStudentAssignments->RulingCode->CssClass = "";
			$CCEStudentAssignments->RulingCode->ViewCustomAttributes = "";

			// AssignmentScore
			$CCEStudentAssignments->AssignmentScore->ViewValue = $CCEStudentAssignments->AssignmentScore->CurrentValue;
			$CCEStudentAssignments->AssignmentScore->CssStyle = "";
			$CCEStudentAssignments->AssignmentScore->CssClass = "";
			$CCEStudentAssignments->AssignmentScore->ViewCustomAttributes = "";

			// ScoredBy
			if (strval($CCEStudentAssignments->ScoredBy->CurrentValue) <> "") {
				$sFilterWrk = "`CCEFacilitatorUserID` = " . ew_AdjustSql($CCEStudentAssignments->ScoredBy->CurrentValue) . "";
			$sSqlWrk = "SELECT `FullName` FROM `CCEFacilitatorUsers`";
			$sWhereWrk = "";
			if ($sFilterWrk <> "") {
				if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
				$sWhereWrk .= "(" . $sFilterWrk . ")";
			}
			if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
			$sSqlWrk .= " ORDER BY `FullName`";
				$rswrk = $conn->Execute($sSqlWrk);
				if ($rswrk && !$rswrk->EOF) { // Lookup values found
					$CCEStudentAssignments->ScoredBy->ViewValue = $rswrk->fields('FullName');
					$rswrk->Close();
				} else {
					$CCEStudentAssignments->ScoredBy->ViewValue = $CCEStudentAssignments->ScoredBy->CurrentValue;
				}
			} else {
				$CCEStudentAssignments->ScoredBy->ViewValue = NULL;
			}
			$CCEStudentAssignments->ScoredBy->CssStyle = "";
			$CCEStudentAssignments->ScoredBy->CssClass = "";
			$CCEStudentAssignments->ScoredBy->ViewCustomAttributes = "";

			// Remarks
			$CCEStudentAssignments->Remarks->ViewValue = $CCEStudentAssignments->Remarks->CurrentValue;
			$CCEStudentAssignments->Remarks->CssStyle = "";
			$CCEStudentAssignments->Remarks->CssClass = "";
			$CCEStudentAssignments->Remarks->ViewCustomAttributes = "";

			// FeedbackMessageID
			$CCEStudentAssignments->FeedbackMessageID->ViewValue = $CCEStudentAssignments->FeedbackMessageID->CurrentValue;
			$CCEStudentAssignments->FeedbackMessageID->CssStyle = "";
			$CCEStudentAssignments->FeedbackMessageID->CssClass = "";
			$CCEStudentAssignments->FeedbackMessageID->ViewCustomAttributes = "";

			// LastFeedback
			$CCEStudentAssignments->LastFeedback->ViewValue = $CCEStudentAssignments->LastFeedback->CurrentValue;
			$CCEStudentAssignments->LastFeedback->CssStyle = "";
			$CCEStudentAssignments->LastFeedback->CssClass = "";
			$CCEStudentAssignments->LastFeedback->ViewCustomAttributes = "";

			// MsgAttachment
			if (!ew_Empty($CCEStudentAssignments->MsgAttachment->Upload->DbValue)) {
				$CCEStudentAssignments->MsgAttachment->ViewValue = $CCEStudentAssignments->MsgAttachment->Upload->DbValue;
			} else {
				$CCEStudentAssignments->MsgAttachment->ViewValue = "";
			}
			$CCEStudentAssignments->MsgAttachment->CssStyle = "";
			$CCEStudentAssignments->MsgAttachment->CssClass = "";
			$CCEStudentAssignments->MsgAttachment->ViewCustomAttributes = "";

			// Extended
			if (strval($CCEStudentAssignments->Extended->CurrentValue) <> "") {
				switch ($CCEStudentAssignments->Extended->CurrentValue) {
					case "1":
						$CCEStudentAssignments->Extended->ViewValue = "Yes";
						break;
					case "0":
						$CCEStudentAssignments->Extended->ViewValue = "No";
						break;
					default:
						$CCEStudentAssignments->Extended->ViewValue = $CCEStudentAssignments->Extended->CurrentValue;
				}
			} else {
				$CCEStudentAssignments->Extended->ViewValue = NULL;
			}
			$CCEStudentAssignments->Extended->CssStyle = "";
			$CCEStudentAssignments->Extended->CssClass = "";
			$CCEStudentAssignments->Extended->ViewCustomAttributes = "";

			// References
			$CCEStudentAssignments->References->ViewValue = $CCEStudentAssignments->References->CurrentValue;
			$CCEStudentAssignments->References->CssStyle = "";
			$CCEStudentAssignments->References->CssClass = "";
			$CCEStudentAssignments->References->ViewCustomAttributes = "";

			// TempR
			$CCEStudentAssignments->TempR->ViewValue = $CCEStudentAssignments->TempR->CurrentValue;
			$CCEStudentAssignments->TempR->CssStyle = "";
			$CCEStudentAssignments->TempR->CssClass = "";
			$CCEStudentAssignments->TempR->ViewCustomAttributes = "";

			// ResubmitDateOverride
			$CCEStudentAssignments->ResubmitDateOverride->ViewValue = $CCEStudentAssignments->ResubmitDateOverride->CurrentValue;
			$CCEStudentAssignments->ResubmitDateOverride->ViewValue = ew_FormatDateTime($CCEStudentAssignments->ResubmitDateOverride->ViewValue, 5);
			$CCEStudentAssignments->ResubmitDateOverride->CssStyle = "";
			$CCEStudentAssignments->ResubmitDateOverride->CssClass = "";
			$CCEStudentAssignments->ResubmitDateOverride->ViewCustomAttributes = "";

			// CCEStudentAssigID
			$CCEStudentAssignments->CCEStudentAssigID->HrefValue = "";
			$CCEStudentAssignments->CCEStudentAssigID->TooltipValue = "";

			// CCEStudentID
			$CCEStudentAssignments->CCEStudentID->HrefValue = "";
			$CCEStudentAssignments->CCEStudentID->TooltipValue = "";

			// CCEAssignmentID
			$CCEStudentAssignments->CCEAssignmentID->HrefValue = "";
			$CCEStudentAssignments->CCEAssignmentID->TooltipValue = "";

			// AssignmentFile1
			if (!ew_Empty($CCEStudentAssignments->AssignmentFile1->Upload->DbValue)) {
				$CCEStudentAssignments->AssignmentFile1->HrefValue = ew_UploadPathEx(FALSE, $CCEStudentAssignments->AssignmentFile1->UploadPath) . ((!empty($CCEStudentAssignments->AssignmentFile1->ViewValue)) ? $CCEStudentAssignments->AssignmentFile1->ViewValue : $CCEStudentAssignments->AssignmentFile1->CurrentValue);
				if ($CCEStudentAssignments->Export <> "") $CCEStudentAssignments->AssignmentFile1->HrefValue = ew_ConvertFullUrl($CCEStudentAssignments->AssignmentFile1->HrefValue);
			} else {
				$CCEStudentAssignments->AssignmentFile1->HrefValue = "";
			}
			$CCEStudentAssignments->AssignmentFile1->TooltipValue = "";

			// AssignmentFile2
			if (!ew_Empty($CCEStudentAssignments->AssignmentFile2->Upload->DbValue)) {
				$CCEStudentAssignments->AssignmentFile2->HrefValue = ew_UploadPathEx(FALSE, $CCEStudentAssignments->AssignmentFile2->UploadPath) . ((!empty($CCEStudentAssignments->AssignmentFile2->ViewValue)) ? $CCEStudentAssignments->AssignmentFile2->ViewValue : $CCEStudentAssignments->AssignmentFile2->CurrentValue);
				if ($CCEStudentAssignments->Export <> "") $CCEStudentAssignments->AssignmentFile2->HrefValue = ew_ConvertFullUrl($CCEStudentAssignments->AssignmentFile2->HrefValue);
			} else {
				$CCEStudentAssignments->AssignmentFile2->HrefValue = "";
			}
			$CCEStudentAssignments->AssignmentFile2->TooltipValue = "";

			// AssignmentFile3
			if (!ew_Empty($CCEStudentAssignments->AssignmentFile3->Upload->DbValue)) {
				$CCEStudentAssignments->AssignmentFile3->HrefValue = ew_UploadPathEx(FALSE, $CCEStudentAssignments->AssignmentFile3->UploadPath) . ((!empty($CCEStudentAssignments->AssignmentFile3->ViewValue)) ? $CCEStudentAssignments->AssignmentFile3->ViewValue : $CCEStudentAssignments->AssignmentFile3->CurrentValue);
				if ($CCEStudentAssignments->Export <> "") $CCEStudentAssignments->AssignmentFile3->HrefValue = ew_ConvertFullUrl($CCEStudentAssignments->AssignmentFile3->HrefValue);
			} else {
				$CCEStudentAssignments->AssignmentFile3->HrefValue = "";
			}
			$CCEStudentAssignments->AssignmentFile3->TooltipValue = "";

			// AssignmentFile4
			if (!ew_Empty($CCEStudentAssignments->AssignmentFile4->Upload->DbValue)) {
				$CCEStudentAssignments->AssignmentFile4->HrefValue = ew_UploadPathEx(FALSE, $CCEStudentAssignments->AssignmentFile4->UploadPath) . ((!empty($CCEStudentAssignments->AssignmentFile4->ViewValue)) ? $CCEStudentAssignments->AssignmentFile4->ViewValue : $CCEStudentAssignments->AssignmentFile4->CurrentValue);
				if ($CCEStudentAssignments->Export <> "") $CCEStudentAssignments->AssignmentFile4->HrefValue = ew_ConvertFullUrl($CCEStudentAssignments->AssignmentFile4->HrefValue);
			} else {
				$CCEStudentAssignments->AssignmentFile4->HrefValue = "";
			}
			$CCEStudentAssignments->AssignmentFile4->TooltipValue = "";

			// AssignmentFile5
			if (!ew_Empty($CCEStudentAssignments->AssignmentFile5->Upload->DbValue)) {
				$CCEStudentAssignments->AssignmentFile5->HrefValue = ew_UploadPathEx(FALSE, $CCEStudentAssignments->AssignmentFile5->UploadPath) . ((!empty($CCEStudentAssignments->AssignmentFile5->ViewValue)) ? $CCEStudentAssignments->AssignmentFile5->ViewValue : $CCEStudentAssignments->AssignmentFile5->CurrentValue);
				if ($CCEStudentAssignments->Export <> "") $CCEStudentAssignments->AssignmentFile5->HrefValue = ew_ConvertFullUrl($CCEStudentAssignments->AssignmentFile5->HrefValue);
			} else {
				$CCEStudentAssignments->AssignmentFile5->HrefValue = "";
			}
			$CCEStudentAssignments->AssignmentFile5->TooltipValue = "";

			// Comments
			$CCEStudentAssignments->Comments->HrefValue = "";
			$CCEStudentAssignments->Comments->TooltipValue = "";

			// DateSubmitted
			$CCEStudentAssignments->DateSubmitted->HrefValue = "";
			$CCEStudentAssignments->DateSubmitted->TooltipValue = "";

			// Passed
			$CCEStudentAssignments->Passed->HrefValue = "";
			$CCEStudentAssignments->Passed->TooltipValue = "";

			// RulingCode
			$CCEStudentAssignments->RulingCode->HrefValue = "";
			$CCEStudentAssignments->RulingCode->TooltipValue = "";

			// AssignmentScore
			$CCEStudentAssignments->AssignmentScore->HrefValue = "";
			$CCEStudentAssignments->AssignmentScore->TooltipValue = "";

			// ScoredBy
			$CCEStudentAssignments->ScoredBy->HrefValue = "";
			$CCEStudentAssignments->ScoredBy->TooltipValue = "";

			// Remarks
			$CCEStudentAssignments->Remarks->HrefValue = "";
			$CCEStudentAssignments->Remarks->TooltipValue = "";

			// FeedbackMessageID
			$CCEStudentAssignments->FeedbackMessageID->HrefValue = "";
			$CCEStudentAssignments->FeedbackMessageID->TooltipValue = "";

			// LastFeedback
			$CCEStudentAssignments->LastFeedback->HrefValue = "";
			$CCEStudentAssignments->LastFeedback->TooltipValue = "";

			// MsgAttachment
			if (!ew_Empty($CCEStudentAssignments->MsgAttachment->Upload->DbValue)) {
				$CCEStudentAssignments->MsgAttachment->HrefValue = ew_UploadPathEx(FALSE, $CCEStudentAssignments->MsgAttachment->UploadPath) . ((!empty($CCEStudentAssignments->MsgAttachment->ViewValue)) ? $CCEStudentAssignments->MsgAttachment->ViewValue : $CCEStudentAssignments->MsgAttachment->CurrentValue);
				if ($CCEStudentAssignments->Export <> "") $CCEStudentAssignments->MsgAttachment->HrefValue = ew_ConvertFullUrl($CCEStudentAssignments->MsgAttachment->HrefValue);
			} else {
				$CCEStudentAssignments->MsgAttachment->HrefValue = "";
			}
			$CCEStudentAssignments->MsgAttachment->TooltipValue = "";

			// Extended
			$CCEStudentAssignments->Extended->HrefValue = "";
			$CCEStudentAssignments->Extended->TooltipValue = "";

			// References
			$CCEStudentAssignments->References->HrefValue = "";
			$CCEStudentAssignments->References->TooltipValue = "";

			// TempR
			$CCEStudentAssignments->TempR->HrefValue = "";
			$CCEStudentAssignments->TempR->TooltipValue = "";

			// ResubmitDateOverride
			$CCEStudentAssignments->ResubmitDateOverride->HrefValue = "";
			$CCEStudentAssignments->ResubmitDateOverride->TooltipValue = "";
		} elseif ($CCEStudentAssignments->RowType == EW_ROWTYPE_SEARCH) { // Search row

			// CCEStudentAssigID
			$CCEStudentAssignments->CCEStudentAssigID->EditCustomAttributes = "";
			$CCEStudentAssignments->CCEStudentAssigID->EditValue = ew_HtmlEncode($CCEStudentAssignments->CCEStudentAssigID->AdvancedSearch->SearchValue);

			// CCEStudentID
			$CCEStudentAssignments->CCEStudentID->EditCustomAttributes = "";
				$sFilterWrk = "";
			$sSqlWrk = "SELECT `CCEStudentID`, `FirstName`, `Surname`, '' AS SelectFilterFld FROM `CCEStudents`";
			$sWhereWrk = "";
			if ($sFilterWrk <> "") {
				if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
				$sWhereWrk .= "(" . $sFilterWrk . ")";
			}
			if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
			$sSqlWrk .= " ORDER BY `Surname` Asc";
			$rswrk = $conn->Execute($sSqlWrk);
			$arwrk = ($rswrk) ? $rswrk->GetRows() : array();
			if ($rswrk) $rswrk->Close();
			array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect"), ""));
			$CCEStudentAssignments->CCEStudentID->EditValue = $arwrk;

			// CCEAssignmentID
			$CCEStudentAssignments->CCEAssignmentID->EditCustomAttributes = "";
				$sFilterWrk = "";
			$sSqlWrk = "SELECT `CCEAssignmentID`, `RefNum`, `AssignmentName`, '' AS SelectFilterFld FROM `CCEAssignments`";
			$sWhereWrk = "";
			if ($sFilterWrk <> "") {
				if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
				$sWhereWrk .= "(" . $sFilterWrk . ")";
			}
			if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
			$sSqlWrk .= " ORDER BY `DueDate` Desc";
			$rswrk = $conn->Execute($sSqlWrk);
			$arwrk = ($rswrk) ? $rswrk->GetRows() : array();
			if ($rswrk) $rswrk->Close();
			array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect"), ""));
			$CCEStudentAssignments->CCEAssignmentID->EditValue = $arwrk;

			// AssignmentFile1
			$CCEStudentAssignments->AssignmentFile1->EditCustomAttributes = "";
			if (!ew_Empty($CCEStudentAssignments->AssignmentFile1->Upload->DbValue)) {
				$CCEStudentAssignments->AssignmentFile1->EditValue = $CCEStudentAssignments->AssignmentFile1->Upload->DbValue;
			} else {
				$CCEStudentAssignments->AssignmentFile1->EditValue = "";
			}

			// AssignmentFile2
			$CCEStudentAssignments->AssignmentFile2->EditCustomAttributes = "";
			if (!ew_Empty($CCEStudentAssignments->AssignmentFile2->Upload->DbValue)) {
				$CCEStudentAssignments->AssignmentFile2->EditValue = $CCEStudentAssignments->AssignmentFile2->Upload->DbValue;
			} else {
				$CCEStudentAssignments->AssignmentFile2->EditValue = "";
			}

			// AssignmentFile3
			$CCEStudentAssignments->AssignmentFile3->EditCustomAttributes = "";
			if (!ew_Empty($CCEStudentAssignments->AssignmentFile3->Upload->DbValue)) {
				$CCEStudentAssignments->AssignmentFile3->EditValue = $CCEStudentAssignments->AssignmentFile3->Upload->DbValue;
			} else {
				$CCEStudentAssignments->AssignmentFile3->EditValue = "";
			}

			// AssignmentFile4
			$CCEStudentAssignments->AssignmentFile4->EditCustomAttributes = "";
			if (!ew_Empty($CCEStudentAssignments->AssignmentFile4->Upload->DbValue)) {
				$CCEStudentAssignments->AssignmentFile4->EditValue = $CCEStudentAssignments->AssignmentFile4->Upload->DbValue;
			} else {
				$CCEStudentAssignments->AssignmentFile4->EditValue = "";
			}

			// AssignmentFile5
			$CCEStudentAssignments->AssignmentFile5->EditCustomAttributes = "";
			if (!ew_Empty($CCEStudentAssignments->AssignmentFile5->Upload->DbValue)) {
				$CCEStudentAssignments->AssignmentFile5->EditValue = $CCEStudentAssignments->AssignmentFile5->Upload->DbValue;
			} else {
				$CCEStudentAssignments->AssignmentFile5->EditValue = "";
			}

			// Comments
			$CCEStudentAssignments->Comments->EditCustomAttributes = "";
			$CCEStudentAssignments->Comments->EditValue = ew_HtmlEncode($CCEStudentAssignments->Comments->AdvancedSearch->SearchValue);

			// DateSubmitted
			$CCEStudentAssignments->DateSubmitted->EditCustomAttributes = "";
			$CCEStudentAssignments->DateSubmitted->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($CCEStudentAssignments->DateSubmitted->AdvancedSearch->SearchValue, 9), 9));
			$CCEStudentAssignments->DateSubmitted->EditCustomAttributes = "";
			$CCEStudentAssignments->DateSubmitted->EditValue2 = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($CCEStudentAssignments->DateSubmitted->AdvancedSearch->SearchValue2, 9), 9));

			// Passed
			$CCEStudentAssignments->Passed->EditCustomAttributes = "";
			$arwrk = array();
			$arwrk[] = array("1", "Achieved");
			$arwrk[] = array("2", "Not Yet Achieved");
			$arwrk[] = array("0", "Not Yet Evaluated");
			$arwrk[] = array("3", "Added to PoE");
			$CCEStudentAssignments->Passed->EditValue = $arwrk;

			// RulingCode
			$CCEStudentAssignments->RulingCode->EditCustomAttributes = "";
				$sFilterWrk = "";
			$sSqlWrk = "SELECT `RulingCode`, `Ruling`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `CCERulingCodes`";
			$sWhereWrk = "";
			if ($sFilterWrk <> "") {
				if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
				$sWhereWrk .= "(" . $sFilterWrk . ")";
			}
			if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
			$rswrk = $conn->Execute($sSqlWrk);
			$arwrk = ($rswrk) ? $rswrk->GetRows() : array();
			if ($rswrk) $rswrk->Close();
			$CCEStudentAssignments->RulingCode->EditValue = $arwrk;

			// AssignmentScore
			$CCEStudentAssignments->AssignmentScore->EditCustomAttributes = "";
			$CCEStudentAssignments->AssignmentScore->EditValue = ew_HtmlEncode($CCEStudentAssignments->AssignmentScore->AdvancedSearch->SearchValue);

			// ScoredBy
			$CCEStudentAssignments->ScoredBy->EditCustomAttributes = "";
				$sFilterWrk = "";
			$sSqlWrk = "SELECT `CCEFacilitatorUserID`, `FullName`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `CCEFacilitatorUsers`";
			$sWhereWrk = "";
			if ($sFilterWrk <> "") {
				if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
				$sWhereWrk .= "(" . $sFilterWrk . ")";
			}
			if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
			$sSqlWrk .= " ORDER BY `FullName`";
			$rswrk = $conn->Execute($sSqlWrk);
			$arwrk = ($rswrk) ? $rswrk->GetRows() : array();
			if ($rswrk) $rswrk->Close();
			array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect")));
			$CCEStudentAssignments->ScoredBy->EditValue = $arwrk;

			// Remarks
			$CCEStudentAssignments->Remarks->EditCustomAttributes = "";
			$CCEStudentAssignments->Remarks->EditValue = ew_HtmlEncode($CCEStudentAssignments->Remarks->AdvancedSearch->SearchValue);

			// FeedbackMessageID
			$CCEStudentAssignments->FeedbackMessageID->EditCustomAttributes = "";
			$CCEStudentAssignments->FeedbackMessageID->EditValue = ew_HtmlEncode($CCEStudentAssignments->FeedbackMessageID->AdvancedSearch->SearchValue);

			// LastFeedback
			$CCEStudentAssignments->LastFeedback->EditCustomAttributes = "";
			$CCEStudentAssignments->LastFeedback->EditValue = ew_HtmlEncode($CCEStudentAssignments->LastFeedback->AdvancedSearch->SearchValue);

			// MsgAttachment
			$CCEStudentAssignments->MsgAttachment->EditCustomAttributes = "";
			if (!ew_Empty($CCEStudentAssignments->MsgAttachment->Upload->DbValue)) {
				$CCEStudentAssignments->MsgAttachment->EditValue = $CCEStudentAssignments->MsgAttachment->Upload->DbValue;
			} else {
				$CCEStudentAssignments->MsgAttachment->EditValue = "";
			}

			// Extended
			$CCEStudentAssignments->Extended->EditCustomAttributes = "";
			$arwrk = array();
			$arwrk[] = array("1", "Yes");
			$arwrk[] = array("0", "No");
			$CCEStudentAssignments->Extended->EditValue = $arwrk;

			// References
			$CCEStudentAssignments->References->EditCustomAttributes = "";
			$CCEStudentAssignments->References->EditValue = ew_HtmlEncode($CCEStudentAssignments->References->AdvancedSearch->SearchValue);

			// TempR
			$CCEStudentAssignments->TempR->EditCustomAttributes = "";
			$CCEStudentAssignments->TempR->EditValue = ew_HtmlEncode($CCEStudentAssignments->TempR->AdvancedSearch->SearchValue);

			// ResubmitDateOverride
			$CCEStudentAssignments->ResubmitDateOverride->EditCustomAttributes = "";
			$CCEStudentAssignments->ResubmitDateOverride->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($CCEStudentAssignments->ResubmitDateOverride->AdvancedSearch->SearchValue, 5), 5));
			$CCEStudentAssignments->ResubmitDateOverride->EditCustomAttributes = "";
			$CCEStudentAssignments->ResubmitDateOverride->EditValue2 = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($CCEStudentAssignments->ResubmitDateOverride->AdvancedSearch->SearchValue2, 5), 5));
		}

		// Call Row Rendered event
		if ($CCEStudentAssignments->RowType <> EW_ROWTYPE_AGGREGATEINIT)
			$CCEStudentAssignments->Row_Rendered();
	}

	// Validate search
	function ValidateSearch() {
		global $gsSearchError, $CCEStudentAssignments;

		// Initialize
		$gsSearchError = "";

		// Check if validation required
		if (!EW_SERVER_VALIDATE)
			return TRUE;
		if (!ew_CheckDate($CCEStudentAssignments->DateSubmitted->AdvancedSearch->SearchValue)) {
			if ($gsSearchError <> "") $gsSearchError .= "<br>";
			$gsSearchError .= $CCEStudentAssignments->DateSubmitted->FldErrMsg();
		}
		if (!ew_CheckDate($CCEStudentAssignments->DateSubmitted->AdvancedSearch->SearchValue2)) {
			if ($gsSearchError <> "") $gsSearchError .= "<br>";
			$gsSearchError .= $CCEStudentAssignments->DateSubmitted->FldErrMsg();
		}
		if (!ew_CheckNumber($CCEStudentAssignments->AssignmentScore->AdvancedSearch->SearchValue)) {
			if ($gsSearchError <> "") $gsSearchError .= "<br>";
			$gsSearchError .= $CCEStudentAssignments->AssignmentScore->FldErrMsg();
		}
		if (!ew_CheckInteger($CCEStudentAssignments->FeedbackMessageID->AdvancedSearch->SearchValue)) {
			if ($gsSearchError <> "") $gsSearchError .= "<br>";
			$gsSearchError .= $CCEStudentAssignments->FeedbackMessageID->FldErrMsg();
		}
		if (!ew_CheckDate($CCEStudentAssignments->ResubmitDateOverride->AdvancedSearch->SearchValue)) {
			if ($gsSearchError <> "") $gsSearchError .= "<br>";
			$gsSearchError .= $CCEStudentAssignments->ResubmitDateOverride->FldErrMsg();
		}
		if (!ew_CheckDate($CCEStudentAssignments->ResubmitDateOverride->AdvancedSearch->SearchValue2)) {
			if ($gsSearchError <> "") $gsSearchError .= "<br>";
			$gsSearchError .= $CCEStudentAssignments->ResubmitDateOverride->FldErrMsg();
		}

		// Return validate result
		$ValidateSearch = ($gsSearchError == "");

		// Call Form_CustomValidate event
		$sFormCustomError = "";
		$ValidateSearch = $ValidateSearch && $this->Form_CustomValidate($sFormCustomError);
		if ($sFormCustomError <> "") {
			if ($gsSearchError <> "") $gsSearchError .= "<br>";
			$gsSearchError .= $sFormCustomError;
		}
		return $ValidateSearch;
	}

	// Load advanced search
	function LoadAdvancedSearch() {
		global $CCEStudentAssignments;
		$CCEStudentAssignments->CCEStudentAssigID->AdvancedSearch->SearchValue = $CCEStudentAssignments->getAdvancedSearch("x_CCEStudentAssigID");
		$CCEStudentAssignments->CCEStudentID->AdvancedSearch->SearchValue = $CCEStudentAssignments->getAdvancedSearch("x_CCEStudentID");
		$CCEStudentAssignments->CCEAssignmentID->AdvancedSearch->SearchValue = $CCEStudentAssignments->getAdvancedSearch("x_CCEAssignmentID");
		$CCEStudentAssignments->Comments->AdvancedSearch->SearchValue = $CCEStudentAssignments->getAdvancedSearch("x_Comments");
		$CCEStudentAssignments->DateSubmitted->AdvancedSearch->SearchValue = $CCEStudentAssignments->getAdvancedSearch("x_DateSubmitted");
		$CCEStudentAssignments->DateSubmitted->AdvancedSearch->SearchValue2 = $CCEStudentAssignments->getAdvancedSearch("y_DateSubmitted");
		$CCEStudentAssignments->Passed->AdvancedSearch->SearchValue = $CCEStudentAssignments->getAdvancedSearch("x_Passed");
		$CCEStudentAssignments->RulingCode->AdvancedSearch->SearchValue = $CCEStudentAssignments->getAdvancedSearch("x_RulingCode");
		$CCEStudentAssignments->AssignmentScore->AdvancedSearch->SearchValue = $CCEStudentAssignments->getAdvancedSearch("x_AssignmentScore");
		$CCEStudentAssignments->ScoredBy->AdvancedSearch->SearchValue = $CCEStudentAssignments->getAdvancedSearch("x_ScoredBy");
		$CCEStudentAssignments->Remarks->AdvancedSearch->SearchValue = $CCEStudentAssignments->getAdvancedSearch("x_Remarks");
		$CCEStudentAssignments->FeedbackMessageID->AdvancedSearch->SearchValue = $CCEStudentAssignments->getAdvancedSearch("x_FeedbackMessageID");
		$CCEStudentAssignments->LastFeedback->AdvancedSearch->SearchValue = $CCEStudentAssignments->getAdvancedSearch("x_LastFeedback");
		$CCEStudentAssignments->Extended->AdvancedSearch->SearchValue = $CCEStudentAssignments->getAdvancedSearch("x_Extended");
		$CCEStudentAssignments->References->AdvancedSearch->SearchValue = $CCEStudentAssignments->getAdvancedSearch("x_References");
		$CCEStudentAssignments->TempR->AdvancedSearch->SearchValue = $CCEStudentAssignments->getAdvancedSearch("x_TempR");
		$CCEStudentAssignments->ResubmitDateOverride->AdvancedSearch->SearchValue = $CCEStudentAssignments->getAdvancedSearch("x_ResubmitDateOverride");
		$CCEStudentAssignments->ResubmitDateOverride->AdvancedSearch->SearchValue2 = $CCEStudentAssignments->getAdvancedSearch("y_ResubmitDateOverride");
	}

		// Page Load event
	function Page_Load() {

	    //echo "Page Load";
	    studentAssignmentSearchPageLoad();  
	}                        

	// Page Unload event
	function Page_Unload() {

		//echo "Page Unload";
	}

	// Page Redirecting event
	function Page_Redirecting(&$url) {

		// Example:
		//$url = "your URL";

	}

	// Message Showing event
	function Message_Showing(&$msg) {

		// Example:
		//$msg = "your new message";

	}

	// Form Custom Validate event
	function Form_CustomValidate(&$CustomError) {

		// Return error message in CustomError
		return TRUE;
	}
}
?>