<?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_add = new files_add();

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

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

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

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

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

// Validate form
ffilesadd.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_add->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_add->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_add->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_add->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_add->_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_add->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_add->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_add->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_add->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_add->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_add->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
ffilesadd.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
ffilesadd.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_add->showPageHeader(); ?>
<?php
$files_add->showMessage();
?>
<form name="ffilesadd" id="ffilesadd" class="<?php echo $files_add->FormClassName ?>" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($files_add->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $files_add->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="files">
<input type="hidden" name="action" id="action" value="insert">
<input type="hidden" name="modal" value="<?php echo (int)$files_add->IsModal ?>">
<?php if (!$files_add->IsMobileOrModal) { ?>
<div class="ew-desktop"><!-- desktop -->
<?php } ?>
<?php if ($files_add->IsMobileOrModal) { ?>
<div class="ew-add-div"><!-- page* -->
<?php } else { ?>
<table id="tbl_filesadd" class="table table-striped table-sm ew-desktop-table"><!-- table* -->
<?php } ?>
<?php if ($files->CaseNumber->Visible) { // CaseNumber ?>
<?php if ($files_add->IsMobileOrModal) { ?>
	<div id="r_CaseNumber" class="form-group row">
		<label id="elh_files_CaseNumber" for="x_CaseNumber" class="<?php echo $files_add->LeftColumnClass ?>"><?php echo $files->CaseNumber->caption() ?><?php echo ($files->CaseNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_add->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_add->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_add->IsMobileOrModal) { ?>
	<div id="r_FileNumber" class="form-group row">
		<label id="elh_files_FileNumber" for="x_FileNumber" class="<?php echo $files_add->LeftColumnClass ?>"><?php echo $files->FileNumber->caption() ?><?php echo ($files->FileNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_add->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_add->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_add->IsMobileOrModal) { ?>
	<div id="r_EnvelopeNumber" class="form-group row">
		<label id="elh_files_EnvelopeNumber" for="x_EnvelopeNumber" class="<?php echo $files_add->LeftColumnClass ?>"><?php echo $files->EnvelopeNumber->caption() ?><?php echo ($files->EnvelopeNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_add->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_add->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_add->IsMobileOrModal) { ?>
	<div id="r_FileLocation" class="form-group row">
		<label id="elh_files_FileLocation" for="x_FileLocation" class="<?php echo $files_add->LeftColumnClass ?>"><?php echo $files->FileLocation->caption() ?><?php echo ($files->FileLocation->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_add->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_add->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_add->IsMobileOrModal) { ?>
	<div id="r__Case" class="form-group row">
		<label id="elh_files__Case" for="x__Case" class="<?php echo $files_add->LeftColumnClass ?>"><?php echo $files->_Case->caption() ?><?php echo ($files->_Case->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_add->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_add->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_add->IsMobileOrModal) { ?>
	<div id="r_CaseType" class="form-group row">
		<label id="elh_files_CaseType" for="x_CaseType" class="<?php echo $files_add->LeftColumnClass ?>"><?php echo $files->CaseType->caption() ?><?php echo ($files->CaseType->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_add->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_add->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_add->IsMobileOrModal) { ?>
	<div id="r_ClientName" class="form-group row">
		<label id="elh_files_ClientName" for="x_ClientName" class="<?php echo $files_add->LeftColumnClass ?>"><?php echo $files->ClientName->caption() ?><?php echo ($files->ClientName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_add->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_add->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_add->IsMobileOrModal) { ?>
	<div id="r_LitigantName" class="form-group row">
		<label id="elh_files_LitigantName" for="x_LitigantName" class="<?php echo $files_add->LeftColumnClass ?>"><?php echo $files->LitigantName->caption() ?><?php echo ($files->LitigantName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_add->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_add->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_add->IsMobileOrModal) { ?>
	<div id="r_CourtName" class="form-group row">
		<label id="elh_files_CourtName" for="x_CourtName" class="<?php echo $files_add->LeftColumnClass ?>"><?php echo $files->CourtName->caption() ?><?php echo ($files->CourtName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_add->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_add->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->JudgeName->Visible) { // JudgeName ?>
<?php if ($files_add->IsMobileOrModal) { ?>
	<div id="r_JudgeName" class="form-group row">
		<label id="elh_files_JudgeName" for="x_JudgeName" class="<?php echo $files_add->LeftColumnClass ?>"><?php echo $files->JudgeName->caption() ?><?php echo ($files->JudgeName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_add->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_add->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_add->IsMobileOrModal) { ?>
	<div id="r_Notes" class="form-group row">
		<label id="elh_files_Notes" for="x_Notes" class="<?php echo $files_add->LeftColumnClass ?>"><?php echo $files->Notes->caption() ?><?php echo ($files->Notes->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $files_add->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_add->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_add->IsMobileOrModal) { ?>
</div><!-- /page* -->
<?php } else { ?>
</table><!-- /table* -->
<?php } ?>
<?php if (!$files_add->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $files_add->OffsetColumnClass ?>"><!-- buttons offset -->
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?php echo $Language->phrase("AddBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?php echo $files_add->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
<?php if (!$files_add->IsMobileOrModal) { ?>
</div><!-- /desktop -->
<?php } ?>
</form>
<?php
$files_add->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_add->terminate();
?>
