<?php
namespace PHPMaker2019\project_germanos;

// Session
if (session_status() !== PHP_SESSION_ACTIVE)
	session_start(); // Init session data

// Output buffering
ob_start(); 

// Autoload
include_once "autoload.php";
?>
<?php

// Write header
WriteHeader(FALSE);

// Create page object
$files_edit = new files_edit();

// Run the page
$files_edit->run();

// Setup login status
SetupLoginStatus();
SetClientVar("login", LoginStatus());

// Global Page Rendering event (in userfn*.php)
Page_Rendering();

// Page Rendering event
$files_edit->Page_Render();
?>
<?php include_once "header.php" ?>
<script>

// Form object
currentPageID = ew.PAGE_ID = "edit";
var ffilesedit = currentForm = new ew.Form("ffilesedit", "edit");

// Validate form
ffilesedit.validate = function() {
	if (!this.validateRequired)
		return true; // Ignore validation
	var $ = jQuery, fobj = this.getForm(), $fobj = $(fobj);
	if ($fobj.find("#confirm").val() == "F")
		return true;
	var elm, felm, uelm, addcnt = 0;
	var $k = $fobj.find("#" + this.formKeyCountName); // Get key_count
	var rowcnt = ($k[0]) ? parseInt($k.val(), 10) : 1;
	var startcnt = (rowcnt == 0) ? 0 : 1; // Check rowcnt == 0 => Inline-Add
	var gridinsert = ["insert", "gridinsert"].includes($fobj.find("#action").val()) && $k[0];
	for (var i = startcnt; i <= rowcnt; i++) {
		var infix = ($k[0]) ? String(i) : "";
		$fobj.data("rowindex", infix);
		<?php if ($files_edit->FileID->Required) { ?>
			elm = this.getElements("x" + infix + "_FileID");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $files->FileID->caption(), $files->FileID->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($files_edit->CaseNumber->Required) { ?>
			elm = this.getElements("x" + infix + "_CaseNumber");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $files->CaseNumber->caption(), $files->CaseNumber->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($files_edit->FileNumber->Required) { ?>
			elm = this.getElements("x" + infix + "_FileNumber");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $files->FileNumber->caption(), $files->FileNumber->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($files_edit->EnvelopeNumber->Required) { ?>
			elm = this.getElements("x" + infix + "_EnvelopeNumber");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $files->EnvelopeNumber->caption(), $files->EnvelopeNumber->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($files_edit->FileLocation->Required) { ?>
			elm = this.getElements("x" + infix + "_FileLocation");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $files->FileLocation->caption(), $files->FileLocation->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($files_edit->_Case->Required) { ?>
			elm = this.getElements("x" + infix + "__Case");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $files->_Case->caption(), $files->_Case->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($files_edit->CaseType->Required) { ?>
			elm = this.getElements("x" + infix + "_CaseType");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $files->CaseType->caption(), $files->CaseType->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($files_edit->ClientName->Required) { ?>
			elm = this.getElements("x" + infix + "_ClientName");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $files->ClientName->caption(), $files->ClientName->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($files_edit->LitigantName->Required) { ?>
			elm = this.getElements("x" + infix + "_LitigantName");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $files->LitigantName->caption(), $files->LitigantName->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($files_edit->CourtName->Required) { ?>
			elm = this.getElements("x" + infix + "_CourtName");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $files->CourtName->caption(), $files->CourtName->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($files_edit->CourtTypeName->Required) { ?>
			elm = this.getElements("x" + infix + "_CourtTypeName");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $files->CourtTypeName->caption(), $files->CourtTypeName->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($files_edit->CourtGenderName->Required) { ?>
			elm = this.getElements("x" + infix + "_CourtGenderName");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $files->CourtGenderName->caption(), $files->CourtGenderName->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($files_edit->JudgeName->Required) { ?>
			elm = this.getElements("x" + infix + "_JudgeName");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $files->JudgeName->caption(), $files->JudgeName->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($files_edit->Notes->Required) { ?>
			elm = this.getElements("x" + infix + "_Notes");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $files->Notes->caption(), $files->Notes->RequiredErrorMessage)) ?>");
		<?php } ?>

			// Fire Form_CustomValidate event
			if (!this.Form_CustomValidate(fobj))
				return false;
	}

	// Process detail forms
	var dfs = $fobj.find("input[name='detailpage']").get();
	for (var i = 0; i < dfs.length; i++) {
		var df = dfs[i], val = df.value;
		if (val && ew.forms[val])
			if (!ew.forms[val].validate())
				return false;
	}
	return true;
}

// Form_CustomValidate event
ffilesedit.Form_CustomValidate = function(fobj) { // DO NOT CHANGE THIS LINE!

	// Your custom validation code here, return false if invalid.
	return true;
}

// Use JavaScript validation or not
ffilesedit.validateRequired = <?php echo json_encode(CLIENT_VALIDATE) ?>;

// Dynamic selection lists
// Form object for search

</script>
<script>

// Write your client script here, no need to add script tags.
</script>
<?php $files_edit->showPageHeader(); ?>
<?php
$files_edit->showMessage();
?>
<?php if (!$files_edit->IsModal) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($files_edit->Pager)) $files_edit->Pager = new PrevNextPager($files_edit->StartRec, $files_edit->DisplayRecs, $files_edit->TotalRecs, $files_edit->AutoHidePager) ?>
<?php if ($files_edit->Pager->RecordCount > 0 && $files_edit->Pager->Visible) { ?>
<div class="ew-pager">
<span><?php echo $Language->Phrase("Page") ?>&nbsp;</span>
<div class="ew-prev-next"><div class="input-group input-group-sm">
<div class="input-group-prepend">
<!-- first page button -->
	<?php if ($files_edit->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $files_edit->pageUrl() ?>start=<?php echo $files_edit->Pager->FirstButton->Start ?>"><i class="icon-first ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerFirst") ?>"><i class="icon-first ew-icon"></i></a>
	<?php } ?>
<!-- previous page button -->
	<?php if ($files_edit->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $files_edit->pageUrl() ?>start=<?php echo $files_edit->Pager->PrevButton->Start ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerPrevious") ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } ?>
</div>
<!-- current page number -->
	<input class="form-control" type="text" name="<?php echo TABLE_PAGE_NO ?>" value="<?php echo $files_edit->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($files_edit->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $files_edit->pageUrl() ?>start=<?php echo $files_edit->Pager->NextButton->Start ?>"><i class="icon-next ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerNext") ?>"><i class="icon-next ew-icon"></i></a>
	<?php } ?>
<!-- last page button -->
	<?php if ($files_edit->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $files_edit->pageUrl() ?>start=<?php echo $files_edit->Pager->LastButton->Start ?>"><i class="icon-last ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerLast") ?>"><i class="icon-last ew-icon"></i></a>
	<?php } ?>
</div>
</div>
</div>
<span>&nbsp;<?php echo $Language->Phrase("of") ?>&nbsp;<?php echo $files_edit->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<form name="ffilesedit" id="ffilesedit" class="<?php echo $files_edit->FormClassName ?>" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($files_edit->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $files_edit->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="files">
<input type="hidden" name="action" id="action" value="update">
<input type="hidden" name="modal" value="<?php echo (int)$files_edit->IsModal ?>">
<?php if (!$files_edit->IsMobileOrModal) { ?>
<div class="ew-desktop"><!-- desktop -->
<?php } ?>
<?php if ($files_edit->IsMobileOrModal) { ?>
<div class="ew-edit-div"><!-- page* -->
<?php } else { ?>
<table id="tbl_filesedit" class="table table-striped table-sm ew-desktop-table"><!-- table* -->
<?php } ?>
<?php if ($files->FileID->Visible) { // FileID ?>
<?php if ($files_edit->IsMobileOrModal) { ?>
	<div id="r_FileID" class="form-group row">
		<label id="elh_files_FileID" class="<?php echo $files_edit->LeftColumnClass ?>"><?php echo $files->FileID->caption() ?><?php echo ($files->FileID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_edit->RightColumnClass ?>"><div<?php echo $files->FileID->cellAttributes() ?>>
<span id="el_files_FileID">
<span<?php echo $files->FileID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($files->FileID->EditValue) ?>"></span>
</span>
<input type="hidden" data-table="files" data-field="x_FileID" name="x_FileID" id="x_FileID" value="<?php echo HtmlEncode($files->FileID->CurrentValue) ?>">
<?php echo $files->FileID->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_FileID">
		<td class="<?php echo $files_edit->TableLeftColumnClass ?>"><span id="elh_files_FileID"><?php echo $files->FileID->caption() ?><?php echo ($files->FileID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $files->FileID->cellAttributes() ?>>
<span id="el_files_FileID">
<span<?php echo $files->FileID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($files->FileID->EditValue) ?>"></span>
</span>
<input type="hidden" data-table="files" data-field="x_FileID" name="x_FileID" id="x_FileID" value="<?php echo HtmlEncode($files->FileID->CurrentValue) ?>">
<?php echo $files->FileID->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($files->CaseNumber->Visible) { // CaseNumber ?>
<?php if ($files_edit->IsMobileOrModal) { ?>
	<div id="r_CaseNumber" class="form-group row">
		<label id="elh_files_CaseNumber" for="x_CaseNumber" class="<?php echo $files_edit->LeftColumnClass ?>"><?php echo $files->CaseNumber->caption() ?><?php echo ($files->CaseNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_edit->RightColumnClass ?>"><div<?php echo $files->CaseNumber->cellAttributes() ?>>
<span id="el_files_CaseNumber">
<input type="text" data-table="files" data-field="x_CaseNumber" name="x_CaseNumber" id="x_CaseNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($files->CaseNumber->getPlaceHolder()) ?>" value="<?php echo $files->CaseNumber->EditValue ?>"<?php echo $files->CaseNumber->editAttributes() ?>>
</span>
<?php echo $files->CaseNumber->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_CaseNumber">
		<td class="<?php echo $files_edit->TableLeftColumnClass ?>"><span id="elh_files_CaseNumber"><?php echo $files->CaseNumber->caption() ?><?php echo ($files->CaseNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $files->CaseNumber->cellAttributes() ?>>
<span id="el_files_CaseNumber">
<input type="text" data-table="files" data-field="x_CaseNumber" name="x_CaseNumber" id="x_CaseNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($files->CaseNumber->getPlaceHolder()) ?>" value="<?php echo $files->CaseNumber->EditValue ?>"<?php echo $files->CaseNumber->editAttributes() ?>>
</span>
<?php echo $files->CaseNumber->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($files->FileNumber->Visible) { // FileNumber ?>
<?php if ($files_edit->IsMobileOrModal) { ?>
	<div id="r_FileNumber" class="form-group row">
		<label id="elh_files_FileNumber" for="x_FileNumber" class="<?php echo $files_edit->LeftColumnClass ?>"><?php echo $files->FileNumber->caption() ?><?php echo ($files->FileNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_edit->RightColumnClass ?>"><div<?php echo $files->FileNumber->cellAttributes() ?>>
<span id="el_files_FileNumber">
<input type="text" data-table="files" data-field="x_FileNumber" name="x_FileNumber" id="x_FileNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($files->FileNumber->getPlaceHolder()) ?>" value="<?php echo $files->FileNumber->EditValue ?>"<?php echo $files->FileNumber->editAttributes() ?>>
</span>
<?php echo $files->FileNumber->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_FileNumber">
		<td class="<?php echo $files_edit->TableLeftColumnClass ?>"><span id="elh_files_FileNumber"><?php echo $files->FileNumber->caption() ?><?php echo ($files->FileNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $files->FileNumber->cellAttributes() ?>>
<span id="el_files_FileNumber">
<input type="text" data-table="files" data-field="x_FileNumber" name="x_FileNumber" id="x_FileNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($files->FileNumber->getPlaceHolder()) ?>" value="<?php echo $files->FileNumber->EditValue ?>"<?php echo $files->FileNumber->editAttributes() ?>>
</span>
<?php echo $files->FileNumber->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($files->EnvelopeNumber->Visible) { // EnvelopeNumber ?>
<?php if ($files_edit->IsMobileOrModal) { ?>
	<div id="r_EnvelopeNumber" class="form-group row">
		<label id="elh_files_EnvelopeNumber" for="x_EnvelopeNumber" class="<?php echo $files_edit->LeftColumnClass ?>"><?php echo $files->EnvelopeNumber->caption() ?><?php echo ($files->EnvelopeNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_edit->RightColumnClass ?>"><div<?php echo $files->EnvelopeNumber->cellAttributes() ?>>
<span id="el_files_EnvelopeNumber">
<input type="text" data-table="files" data-field="x_EnvelopeNumber" name="x_EnvelopeNumber" id="x_EnvelopeNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($files->EnvelopeNumber->getPlaceHolder()) ?>" value="<?php echo $files->EnvelopeNumber->EditValue ?>"<?php echo $files->EnvelopeNumber->editAttributes() ?>>
</span>
<?php echo $files->EnvelopeNumber->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_EnvelopeNumber">
		<td class="<?php echo $files_edit->TableLeftColumnClass ?>"><span id="elh_files_EnvelopeNumber"><?php echo $files->EnvelopeNumber->caption() ?><?php echo ($files->EnvelopeNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $files->EnvelopeNumber->cellAttributes() ?>>
<span id="el_files_EnvelopeNumber">
<input type="text" data-table="files" data-field="x_EnvelopeNumber" name="x_EnvelopeNumber" id="x_EnvelopeNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($files->EnvelopeNumber->getPlaceHolder()) ?>" value="<?php echo $files->EnvelopeNumber->EditValue ?>"<?php echo $files->EnvelopeNumber->editAttributes() ?>>
</span>
<?php echo $files->EnvelopeNumber->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($files->FileLocation->Visible) { // FileLocation ?>
<?php if ($files_edit->IsMobileOrModal) { ?>
	<div id="r_FileLocation" class="form-group row">
		<label id="elh_files_FileLocation" for="x_FileLocation" class="<?php echo $files_edit->LeftColumnClass ?>"><?php echo $files->FileLocation->caption() ?><?php echo ($files->FileLocation->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_edit->RightColumnClass ?>"><div<?php echo $files->FileLocation->cellAttributes() ?>>
<span id="el_files_FileLocation">
<input type="text" data-table="files" data-field="x_FileLocation" name="x_FileLocation" id="x_FileLocation" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($files->FileLocation->getPlaceHolder()) ?>" value="<?php echo $files->FileLocation->EditValue ?>"<?php echo $files->FileLocation->editAttributes() ?>>
</span>
<?php echo $files->FileLocation->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_FileLocation">
		<td class="<?php echo $files_edit->TableLeftColumnClass ?>"><span id="elh_files_FileLocation"><?php echo $files->FileLocation->caption() ?><?php echo ($files->FileLocation->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $files->FileLocation->cellAttributes() ?>>
<span id="el_files_FileLocation">
<input type="text" data-table="files" data-field="x_FileLocation" name="x_FileLocation" id="x_FileLocation" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($files->FileLocation->getPlaceHolder()) ?>" value="<?php echo $files->FileLocation->EditValue ?>"<?php echo $files->FileLocation->editAttributes() ?>>
</span>
<?php echo $files->FileLocation->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($files->_Case->Visible) { // Case ?>
<?php if ($files_edit->IsMobileOrModal) { ?>
	<div id="r__Case" class="form-group row">
		<label id="elh_files__Case" for="x__Case" class="<?php echo $files_edit->LeftColumnClass ?>"><?php echo $files->_Case->caption() ?><?php echo ($files->_Case->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_edit->RightColumnClass ?>"><div<?php echo $files->_Case->cellAttributes() ?>>
<span id="el_files__Case">
<input type="text" data-table="files" data-field="x__Case" name="x__Case" id="x__Case" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($files->_Case->getPlaceHolder()) ?>" value="<?php echo $files->_Case->EditValue ?>"<?php echo $files->_Case->editAttributes() ?>>
</span>
<?php echo $files->_Case->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r__Case">
		<td class="<?php echo $files_edit->TableLeftColumnClass ?>"><span id="elh_files__Case"><?php echo $files->_Case->caption() ?><?php echo ($files->_Case->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $files->_Case->cellAttributes() ?>>
<span id="el_files__Case">
<input type="text" data-table="files" data-field="x__Case" name="x__Case" id="x__Case" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($files->_Case->getPlaceHolder()) ?>" value="<?php echo $files->_Case->EditValue ?>"<?php echo $files->_Case->editAttributes() ?>>
</span>
<?php echo $files->_Case->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($files->CaseType->Visible) { // CaseType ?>
<?php if ($files_edit->IsMobileOrModal) { ?>
	<div id="r_CaseType" class="form-group row">
		<label id="elh_files_CaseType" for="x_CaseType" class="<?php echo $files_edit->LeftColumnClass ?>"><?php echo $files->CaseType->caption() ?><?php echo ($files->CaseType->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_edit->RightColumnClass ?>"><div<?php echo $files->CaseType->cellAttributes() ?>>
<span id="el_files_CaseType">
<input type="text" data-table="files" data-field="x_CaseType" name="x_CaseType" id="x_CaseType" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($files->CaseType->getPlaceHolder()) ?>" value="<?php echo $files->CaseType->EditValue ?>"<?php echo $files->CaseType->editAttributes() ?>>
</span>
<?php echo $files->CaseType->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_CaseType">
		<td class="<?php echo $files_edit->TableLeftColumnClass ?>"><span id="elh_files_CaseType"><?php echo $files->CaseType->caption() ?><?php echo ($files->CaseType->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $files->CaseType->cellAttributes() ?>>
<span id="el_files_CaseType">
<input type="text" data-table="files" data-field="x_CaseType" name="x_CaseType" id="x_CaseType" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($files->CaseType->getPlaceHolder()) ?>" value="<?php echo $files->CaseType->EditValue ?>"<?php echo $files->CaseType->editAttributes() ?>>
</span>
<?php echo $files->CaseType->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($files->ClientName->Visible) { // ClientName ?>
<?php if ($files_edit->IsMobileOrModal) { ?>
	<div id="r_ClientName" class="form-group row">
		<label id="elh_files_ClientName" for="x_ClientName" class="<?php echo $files_edit->LeftColumnClass ?>"><?php echo $files->ClientName->caption() ?><?php echo ($files->ClientName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_edit->RightColumnClass ?>"><div<?php echo $files->ClientName->cellAttributes() ?>>
<span id="el_files_ClientName">
<input type="text" data-table="files" data-field="x_ClientName" name="x_ClientName" id="x_ClientName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($files->ClientName->getPlaceHolder()) ?>" value="<?php echo $files->ClientName->EditValue ?>"<?php echo $files->ClientName->editAttributes() ?>>
</span>
<?php echo $files->ClientName->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_ClientName">
		<td class="<?php echo $files_edit->TableLeftColumnClass ?>"><span id="elh_files_ClientName"><?php echo $files->ClientName->caption() ?><?php echo ($files->ClientName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $files->ClientName->cellAttributes() ?>>
<span id="el_files_ClientName">
<input type="text" data-table="files" data-field="x_ClientName" name="x_ClientName" id="x_ClientName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($files->ClientName->getPlaceHolder()) ?>" value="<?php echo $files->ClientName->EditValue ?>"<?php echo $files->ClientName->editAttributes() ?>>
</span>
<?php echo $files->ClientName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($files->LitigantName->Visible) { // LitigantName ?>
<?php if ($files_edit->IsMobileOrModal) { ?>
	<div id="r_LitigantName" class="form-group row">
		<label id="elh_files_LitigantName" for="x_LitigantName" class="<?php echo $files_edit->LeftColumnClass ?>"><?php echo $files->LitigantName->caption() ?><?php echo ($files->LitigantName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_edit->RightColumnClass ?>"><div<?php echo $files->LitigantName->cellAttributes() ?>>
<span id="el_files_LitigantName">
<input type="text" data-table="files" data-field="x_LitigantName" name="x_LitigantName" id="x_LitigantName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($files->LitigantName->getPlaceHolder()) ?>" value="<?php echo $files->LitigantName->EditValue ?>"<?php echo $files->LitigantName->editAttributes() ?>>
</span>
<?php echo $files->LitigantName->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_LitigantName">
		<td class="<?php echo $files_edit->TableLeftColumnClass ?>"><span id="elh_files_LitigantName"><?php echo $files->LitigantName->caption() ?><?php echo ($files->LitigantName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $files->LitigantName->cellAttributes() ?>>
<span id="el_files_LitigantName">
<input type="text" data-table="files" data-field="x_LitigantName" name="x_LitigantName" id="x_LitigantName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($files->LitigantName->getPlaceHolder()) ?>" value="<?php echo $files->LitigantName->EditValue ?>"<?php echo $files->LitigantName->editAttributes() ?>>
</span>
<?php echo $files->LitigantName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($files->CourtName->Visible) { // CourtName ?>
<?php if ($files_edit->IsMobileOrModal) { ?>
	<div id="r_CourtName" class="form-group row">
		<label id="elh_files_CourtName" for="x_CourtName" class="<?php echo $files_edit->LeftColumnClass ?>"><?php echo $files->CourtName->caption() ?><?php echo ($files->CourtName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_edit->RightColumnClass ?>"><div<?php echo $files->CourtName->cellAttributes() ?>>
<span id="el_files_CourtName">
<input type="text" data-table="files" data-field="x_CourtName" name="x_CourtName" id="x_CourtName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($files->CourtName->getPlaceHolder()) ?>" value="<?php echo $files->CourtName->EditValue ?>"<?php echo $files->CourtName->editAttributes() ?>>
</span>
<?php echo $files->CourtName->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_CourtName">
		<td class="<?php echo $files_edit->TableLeftColumnClass ?>"><span id="elh_files_CourtName"><?php echo $files->CourtName->caption() ?><?php echo ($files->CourtName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $files->CourtName->cellAttributes() ?>>
<span id="el_files_CourtName">
<input type="text" data-table="files" data-field="x_CourtName" name="x_CourtName" id="x_CourtName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($files->CourtName->getPlaceHolder()) ?>" value="<?php echo $files->CourtName->EditValue ?>"<?php echo $files->CourtName->editAttributes() ?>>
</span>
<?php echo $files->CourtName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($files->CourtTypeName->Visible) { // CourtTypeName ?>
<?php if ($files_edit->IsMobileOrModal) { ?>
	<div id="r_CourtTypeName" class="form-group row">
		<label id="elh_files_CourtTypeName" for="x_CourtTypeName" class="<?php echo $files_edit->LeftColumnClass ?>"><?php echo $files->CourtTypeName->caption() ?><?php echo ($files->CourtTypeName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_edit->RightColumnClass ?>"><div<?php echo $files->CourtTypeName->cellAttributes() ?>>
<span id="el_files_CourtTypeName">
<input type="text" data-table="files" data-field="x_CourtTypeName" name="x_CourtTypeName" id="x_CourtTypeName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($files->CourtTypeName->getPlaceHolder()) ?>" value="<?php echo $files->CourtTypeName->EditValue ?>"<?php echo $files->CourtTypeName->editAttributes() ?>>
</span>
<?php echo $files->CourtTypeName->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_CourtTypeName">
		<td class="<?php echo $files_edit->TableLeftColumnClass ?>"><span id="elh_files_CourtTypeName"><?php echo $files->CourtTypeName->caption() ?><?php echo ($files->CourtTypeName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $files->CourtTypeName->cellAttributes() ?>>
<span id="el_files_CourtTypeName">
<input type="text" data-table="files" data-field="x_CourtTypeName" name="x_CourtTypeName" id="x_CourtTypeName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($files->CourtTypeName->getPlaceHolder()) ?>" value="<?php echo $files->CourtTypeName->EditValue ?>"<?php echo $files->CourtTypeName->editAttributes() ?>>
</span>
<?php echo $files->CourtTypeName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($files->CourtGenderName->Visible) { // CourtGenderName ?>
<?php if ($files_edit->IsMobileOrModal) { ?>
	<div id="r_CourtGenderName" class="form-group row">
		<label id="elh_files_CourtGenderName" for="x_CourtGenderName" class="<?php echo $files_edit->LeftColumnClass ?>"><?php echo $files->CourtGenderName->caption() ?><?php echo ($files->CourtGenderName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_edit->RightColumnClass ?>"><div<?php echo $files->CourtGenderName->cellAttributes() ?>>
<span id="el_files_CourtGenderName">
<input type="text" data-table="files" data-field="x_CourtGenderName" name="x_CourtGenderName" id="x_CourtGenderName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($files->CourtGenderName->getPlaceHolder()) ?>" value="<?php echo $files->CourtGenderName->EditValue ?>"<?php echo $files->CourtGenderName->editAttributes() ?>>
</span>
<?php echo $files->CourtGenderName->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_CourtGenderName">
		<td class="<?php echo $files_edit->TableLeftColumnClass ?>"><span id="elh_files_CourtGenderName"><?php echo $files->CourtGenderName->caption() ?><?php echo ($files->CourtGenderName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $files->CourtGenderName->cellAttributes() ?>>
<span id="el_files_CourtGenderName">
<input type="text" data-table="files" data-field="x_CourtGenderName" name="x_CourtGenderName" id="x_CourtGenderName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($files->CourtGenderName->getPlaceHolder()) ?>" value="<?php echo $files->CourtGenderName->EditValue ?>"<?php echo $files->CourtGenderName->editAttributes() ?>>
</span>
<?php echo $files->CourtGenderName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($files->JudgeName->Visible) { // JudgeName ?>
<?php if ($files_edit->IsMobileOrModal) { ?>
	<div id="r_JudgeName" class="form-group row">
		<label id="elh_files_JudgeName" for="x_JudgeName" class="<?php echo $files_edit->LeftColumnClass ?>"><?php echo $files->JudgeName->caption() ?><?php echo ($files->JudgeName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_edit->RightColumnClass ?>"><div<?php echo $files->JudgeName->cellAttributes() ?>>
<span id="el_files_JudgeName">
<input type="text" data-table="files" data-field="x_JudgeName" name="x_JudgeName" id="x_JudgeName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($files->JudgeName->getPlaceHolder()) ?>" value="<?php echo $files->JudgeName->EditValue ?>"<?php echo $files->JudgeName->editAttributes() ?>>
</span>
<?php echo $files->JudgeName->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_JudgeName">
		<td class="<?php echo $files_edit->TableLeftColumnClass ?>"><span id="elh_files_JudgeName"><?php echo $files->JudgeName->caption() ?><?php echo ($files->JudgeName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $files->JudgeName->cellAttributes() ?>>
<span id="el_files_JudgeName">
<input type="text" data-table="files" data-field="x_JudgeName" name="x_JudgeName" id="x_JudgeName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($files->JudgeName->getPlaceHolder()) ?>" value="<?php echo $files->JudgeName->EditValue ?>"<?php echo $files->JudgeName->editAttributes() ?>>
</span>
<?php echo $files->JudgeName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($files->Notes->Visible) { // Notes ?>
<?php if ($files_edit->IsMobileOrModal) { ?>
	<div id="r_Notes" class="form-group row">
		<label id="elh_files_Notes" for="x_Notes" class="<?php echo $files_edit->LeftColumnClass ?>"><?php echo $files->Notes->caption() ?><?php echo ($files->Notes->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_edit->RightColumnClass ?>"><div<?php echo $files->Notes->cellAttributes() ?>>
<span id="el_files_Notes">
<textarea data-table="files" data-field="x_Notes" name="x_Notes" id="x_Notes" cols="35" rows="4" placeholder="<?php echo HtmlEncode($files->Notes->getPlaceHolder()) ?>"<?php echo $files->Notes->editAttributes() ?>><?php echo $files->Notes->EditValue ?></textarea>
</span>
<?php echo $files->Notes->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_Notes">
		<td class="<?php echo $files_edit->TableLeftColumnClass ?>"><span id="elh_files_Notes"><?php echo $files->Notes->caption() ?><?php echo ($files->Notes->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $files->Notes->cellAttributes() ?>>
<span id="el_files_Notes">
<textarea data-table="files" data-field="x_Notes" name="x_Notes" id="x_Notes" cols="35" rows="4" placeholder="<?php echo HtmlEncode($files->Notes->getPlaceHolder()) ?>"<?php echo $files->Notes->editAttributes() ?>><?php echo $files->Notes->EditValue ?></textarea>
</span>
<?php echo $files->Notes->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($files_edit->IsMobileOrModal) { ?>
</div><!-- /page* -->
<?php } else { ?>
</table><!-- /table* -->
<?php } ?>
<?php if (!$files_edit->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $files_edit->OffsetColumnClass ?>"><!-- buttons offset -->
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?php echo $Language->phrase("SaveBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?php echo $files_edit->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
<?php if (!$files_edit->IsMobileOrModal) { ?>
</div><!-- /desktop -->
<?php } ?>
<?php if (!$files_edit->IsModal) { ?>
<?php if (!isset($files_edit->Pager)) $files_edit->Pager = new PrevNextPager($files_edit->StartRec, $files_edit->DisplayRecs, $files_edit->TotalRecs, $files_edit->AutoHidePager) ?>
<?php if ($files_edit->Pager->RecordCount > 0 && $files_edit->Pager->Visible) { ?>
<div class="ew-pager">
<span><?php echo $Language->Phrase("Page") ?>&nbsp;</span>
<div class="ew-prev-next"><div class="input-group input-group-sm">
<div class="input-group-prepend">
<!-- first page button -->
	<?php if ($files_edit->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $files_edit->pageUrl() ?>start=<?php echo $files_edit->Pager->FirstButton->Start ?>"><i class="icon-first ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerFirst") ?>"><i class="icon-first ew-icon"></i></a>
	<?php } ?>
<!-- previous page button -->
	<?php if ($files_edit->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $files_edit->pageUrl() ?>start=<?php echo $files_edit->Pager->PrevButton->Start ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerPrevious") ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } ?>
</div>
<!-- current page number -->
	<input class="form-control" type="text" name="<?php echo TABLE_PAGE_NO ?>" value="<?php echo $files_edit->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($files_edit->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $files_edit->pageUrl() ?>start=<?php echo $files_edit->Pager->NextButton->Start ?>"><i class="icon-next ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerNext") ?>"><i class="icon-next ew-icon"></i></a>
	<?php } ?>
<!-- last page button -->
	<?php if ($files_edit->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $files_edit->pageUrl() ?>start=<?php echo $files_edit->Pager->LastButton->Start ?>"><i class="icon-last ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerLast") ?>"><i class="icon-last ew-icon"></i></a>
	<?php } ?>
</div>
</div>
</div>
<span>&nbsp;<?php echo $Language->Phrase("of") ?>&nbsp;<?php echo $files_edit->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
</form>
<?php
$files_edit->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<script>

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

</script>
<?php include_once "footer.php" ?>
<?php
$files_edit->terminate();
?>
