<?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
$envelopes_edit = new envelopes_edit();

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

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

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

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

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

// Validate form
fenvelopesedit.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 ($envelopes_edit->EnvelopeID->Required) { ?>
			elm = this.getElements("x" + infix + "_EnvelopeID");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $envelopes->EnvelopeID->caption(), $envelopes->EnvelopeID->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($envelopes_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", $envelopes->CaseNumber->caption(), $envelopes->CaseNumber->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($envelopes_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", $envelopes->FileNumber->caption(), $envelopes->FileNumber->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($envelopes_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", $envelopes->EnvelopeNumber->caption(), $envelopes->EnvelopeNumber->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($envelopes_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", $envelopes->FileLocation->caption(), $envelopes->FileLocation->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($envelopes_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", $envelopes->_Case->caption(), $envelopes->_Case->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($envelopes_edit->CaseEn->Required) { ?>
			elm = this.getElements("x" + infix + "_CaseEn");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $envelopes->CaseEn->caption(), $envelopes->CaseEn->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($envelopes_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", $envelopes->CaseType->caption(), $envelopes->CaseType->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($envelopes_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", $envelopes->ClientName->caption(), $envelopes->ClientName->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($envelopes_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", $envelopes->LitigantName->caption(), $envelopes->LitigantName->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($envelopes_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", $envelopes->CourtName->caption(), $envelopes->CourtName->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($envelopes_edit->CourtID->Required) { ?>
			elm = this.getElements("x" + infix + "_CourtID");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $envelopes->CourtID->caption(), $envelopes->CourtID->RequiredErrorMessage)) ?>");
		<?php } ?>
			elm = this.getElements("x" + infix + "_CourtID");
			if (elm && !ew.checkInteger(elm.value))
				return this.onError(elm, "<?php echo JsEncode($envelopes->CourtID->errorMessage()) ?>");
		<?php if ($envelopes_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", $envelopes->CourtTypeName->caption(), $envelopes->CourtTypeName->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($envelopes_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", $envelopes->CourtGenderName->caption(), $envelopes->CourtGenderName->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($envelopes_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", $envelopes->JudgeName->caption(), $envelopes->JudgeName->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($envelopes_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", $envelopes->Notes->caption(), $envelopes->Notes->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($envelopes_edit->ClientID->Required) { ?>
			elm = this.getElements("x" + infix + "_ClientID");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $envelopes->ClientID->caption(), $envelopes->ClientID->RequiredErrorMessage)) ?>");
		<?php } ?>
			elm = this.getElements("x" + infix + "_ClientID");
			if (elm && !ew.checkInteger(elm.value))
				return this.onError(elm, "<?php echo JsEncode($envelopes->ClientID->errorMessage()) ?>");
		<?php if ($envelopes_edit->LitigantID->Required) { ?>
			elm = this.getElements("x" + infix + "_LitigantID");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $envelopes->LitigantID->caption(), $envelopes->LitigantID->RequiredErrorMessage)) ?>");
		<?php } ?>
			elm = this.getElements("x" + infix + "_LitigantID");
			if (elm && !ew.checkInteger(elm.value))
				return this.onError(elm, "<?php echo JsEncode($envelopes->LitigantID->errorMessage()) ?>");

			// 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
fenvelopesedit.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
fenvelopesedit.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 $envelopes_edit->showPageHeader(); ?>
<?php
$envelopes_edit->showMessage();
?>
<?php if (!$envelopes_edit->IsModal) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($envelopes_edit->Pager)) $envelopes_edit->Pager = new PrevNextPager($envelopes_edit->StartRec, $envelopes_edit->DisplayRecs, $envelopes_edit->TotalRecs, $envelopes_edit->AutoHidePager) ?>
<?php if ($envelopes_edit->Pager->RecordCount > 0 && $envelopes_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 ($envelopes_edit->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $envelopes_edit->pageUrl() ?>start=<?php echo $envelopes_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 ($envelopes_edit->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $envelopes_edit->pageUrl() ?>start=<?php echo $envelopes_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 $envelopes_edit->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($envelopes_edit->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $envelopes_edit->pageUrl() ?>start=<?php echo $envelopes_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 ($envelopes_edit->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $envelopes_edit->pageUrl() ?>start=<?php echo $envelopes_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 $envelopes_edit->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<form name="fenvelopesedit" id="fenvelopesedit" class="<?php echo $envelopes_edit->FormClassName ?>" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($envelopes_edit->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $envelopes_edit->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="envelopes">
<input type="hidden" name="action" id="action" value="update">
<input type="hidden" name="modal" value="<?php echo (int)$envelopes_edit->IsModal ?>">
<?php if (!$envelopes_edit->IsMobileOrModal) { ?>
<div class="ew-desktop"><!-- desktop -->
<?php } ?>
<?php if ($envelopes_edit->IsMobileOrModal) { ?>
<div class="ew-edit-div"><!-- page* -->
<?php } else { ?>
<table id="tbl_envelopesedit" class="table table-striped table-sm ew-desktop-table"><!-- table* -->
<?php } ?>
<?php if ($envelopes->EnvelopeID->Visible) { // EnvelopeID ?>
<?php if ($envelopes_edit->IsMobileOrModal) { ?>
	<div id="r_EnvelopeID" class="form-group row">
		<label id="elh_envelopes_EnvelopeID" class="<?php echo $envelopes_edit->LeftColumnClass ?>"><?php echo $envelopes->EnvelopeID->caption() ?><?php echo ($envelopes->EnvelopeID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $envelopes_edit->RightColumnClass ?>"><div<?php echo $envelopes->EnvelopeID->cellAttributes() ?>>
<span id="el_envelopes_EnvelopeID">
<span<?php echo $envelopes->EnvelopeID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($envelopes->EnvelopeID->EditValue) ?>"></span>
</span>
<input type="hidden" data-table="envelopes" data-field="x_EnvelopeID" name="x_EnvelopeID" id="x_EnvelopeID" value="<?php echo HtmlEncode($envelopes->EnvelopeID->CurrentValue) ?>">
<?php echo $envelopes->EnvelopeID->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_EnvelopeID">
		<td class="<?php echo $envelopes_edit->TableLeftColumnClass ?>"><span id="elh_envelopes_EnvelopeID"><?php echo $envelopes->EnvelopeID->caption() ?><?php echo ($envelopes->EnvelopeID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $envelopes->EnvelopeID->cellAttributes() ?>>
<span id="el_envelopes_EnvelopeID">
<span<?php echo $envelopes->EnvelopeID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($envelopes->EnvelopeID->EditValue) ?>"></span>
</span>
<input type="hidden" data-table="envelopes" data-field="x_EnvelopeID" name="x_EnvelopeID" id="x_EnvelopeID" value="<?php echo HtmlEncode($envelopes->EnvelopeID->CurrentValue) ?>">
<?php echo $envelopes->EnvelopeID->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($envelopes->CaseNumber->Visible) { // CaseNumber ?>
<?php if ($envelopes_edit->IsMobileOrModal) { ?>
	<div id="r_CaseNumber" class="form-group row">
		<label id="elh_envelopes_CaseNumber" for="x_CaseNumber" class="<?php echo $envelopes_edit->LeftColumnClass ?>"><?php echo $envelopes->CaseNumber->caption() ?><?php echo ($envelopes->CaseNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $envelopes_edit->RightColumnClass ?>"><div<?php echo $envelopes->CaseNumber->cellAttributes() ?>>
<span id="el_envelopes_CaseNumber">
<input type="text" data-table="envelopes" data-field="x_CaseNumber" name="x_CaseNumber" id="x_CaseNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($envelopes->CaseNumber->getPlaceHolder()) ?>" value="<?php echo $envelopes->CaseNumber->EditValue ?>"<?php echo $envelopes->CaseNumber->editAttributes() ?>>
</span>
<?php echo $envelopes->CaseNumber->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_CaseNumber">
		<td class="<?php echo $envelopes_edit->TableLeftColumnClass ?>"><span id="elh_envelopes_CaseNumber"><?php echo $envelopes->CaseNumber->caption() ?><?php echo ($envelopes->CaseNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $envelopes->CaseNumber->cellAttributes() ?>>
<span id="el_envelopes_CaseNumber">
<input type="text" data-table="envelopes" data-field="x_CaseNumber" name="x_CaseNumber" id="x_CaseNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($envelopes->CaseNumber->getPlaceHolder()) ?>" value="<?php echo $envelopes->CaseNumber->EditValue ?>"<?php echo $envelopes->CaseNumber->editAttributes() ?>>
</span>
<?php echo $envelopes->CaseNumber->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($envelopes->FileNumber->Visible) { // FileNumber ?>
<?php if ($envelopes_edit->IsMobileOrModal) { ?>
	<div id="r_FileNumber" class="form-group row">
		<label id="elh_envelopes_FileNumber" for="x_FileNumber" class="<?php echo $envelopes_edit->LeftColumnClass ?>"><?php echo $envelopes->FileNumber->caption() ?><?php echo ($envelopes->FileNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $envelopes_edit->RightColumnClass ?>"><div<?php echo $envelopes->FileNumber->cellAttributes() ?>>
<span id="el_envelopes_FileNumber">
<input type="text" data-table="envelopes" data-field="x_FileNumber" name="x_FileNumber" id="x_FileNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($envelopes->FileNumber->getPlaceHolder()) ?>" value="<?php echo $envelopes->FileNumber->EditValue ?>"<?php echo $envelopes->FileNumber->editAttributes() ?>>
</span>
<?php echo $envelopes->FileNumber->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_FileNumber">
		<td class="<?php echo $envelopes_edit->TableLeftColumnClass ?>"><span id="elh_envelopes_FileNumber"><?php echo $envelopes->FileNumber->caption() ?><?php echo ($envelopes->FileNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $envelopes->FileNumber->cellAttributes() ?>>
<span id="el_envelopes_FileNumber">
<input type="text" data-table="envelopes" data-field="x_FileNumber" name="x_FileNumber" id="x_FileNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($envelopes->FileNumber->getPlaceHolder()) ?>" value="<?php echo $envelopes->FileNumber->EditValue ?>"<?php echo $envelopes->FileNumber->editAttributes() ?>>
</span>
<?php echo $envelopes->FileNumber->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($envelopes->EnvelopeNumber->Visible) { // EnvelopeNumber ?>
<?php if ($envelopes_edit->IsMobileOrModal) { ?>
	<div id="r_EnvelopeNumber" class="form-group row">
		<label id="elh_envelopes_EnvelopeNumber" for="x_EnvelopeNumber" class="<?php echo $envelopes_edit->LeftColumnClass ?>"><?php echo $envelopes->EnvelopeNumber->caption() ?><?php echo ($envelopes->EnvelopeNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $envelopes_edit->RightColumnClass ?>"><div<?php echo $envelopes->EnvelopeNumber->cellAttributes() ?>>
<span id="el_envelopes_EnvelopeNumber">
<input type="text" data-table="envelopes" data-field="x_EnvelopeNumber" name="x_EnvelopeNumber" id="x_EnvelopeNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($envelopes->EnvelopeNumber->getPlaceHolder()) ?>" value="<?php echo $envelopes->EnvelopeNumber->EditValue ?>"<?php echo $envelopes->EnvelopeNumber->editAttributes() ?>>
</span>
<?php echo $envelopes->EnvelopeNumber->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_EnvelopeNumber">
		<td class="<?php echo $envelopes_edit->TableLeftColumnClass ?>"><span id="elh_envelopes_EnvelopeNumber"><?php echo $envelopes->EnvelopeNumber->caption() ?><?php echo ($envelopes->EnvelopeNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $envelopes->EnvelopeNumber->cellAttributes() ?>>
<span id="el_envelopes_EnvelopeNumber">
<input type="text" data-table="envelopes" data-field="x_EnvelopeNumber" name="x_EnvelopeNumber" id="x_EnvelopeNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($envelopes->EnvelopeNumber->getPlaceHolder()) ?>" value="<?php echo $envelopes->EnvelopeNumber->EditValue ?>"<?php echo $envelopes->EnvelopeNumber->editAttributes() ?>>
</span>
<?php echo $envelopes->EnvelopeNumber->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($envelopes->FileLocation->Visible) { // FileLocation ?>
<?php if ($envelopes_edit->IsMobileOrModal) { ?>
	<div id="r_FileLocation" class="form-group row">
		<label id="elh_envelopes_FileLocation" for="x_FileLocation" class="<?php echo $envelopes_edit->LeftColumnClass ?>"><?php echo $envelopes->FileLocation->caption() ?><?php echo ($envelopes->FileLocation->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $envelopes_edit->RightColumnClass ?>"><div<?php echo $envelopes->FileLocation->cellAttributes() ?>>
<span id="el_envelopes_FileLocation">
<input type="text" data-table="envelopes" data-field="x_FileLocation" name="x_FileLocation" id="x_FileLocation" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($envelopes->FileLocation->getPlaceHolder()) ?>" value="<?php echo $envelopes->FileLocation->EditValue ?>"<?php echo $envelopes->FileLocation->editAttributes() ?>>
</span>
<?php echo $envelopes->FileLocation->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_FileLocation">
		<td class="<?php echo $envelopes_edit->TableLeftColumnClass ?>"><span id="elh_envelopes_FileLocation"><?php echo $envelopes->FileLocation->caption() ?><?php echo ($envelopes->FileLocation->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $envelopes->FileLocation->cellAttributes() ?>>
<span id="el_envelopes_FileLocation">
<input type="text" data-table="envelopes" data-field="x_FileLocation" name="x_FileLocation" id="x_FileLocation" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($envelopes->FileLocation->getPlaceHolder()) ?>" value="<?php echo $envelopes->FileLocation->EditValue ?>"<?php echo $envelopes->FileLocation->editAttributes() ?>>
</span>
<?php echo $envelopes->FileLocation->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($envelopes->_Case->Visible) { // Case ?>
<?php if ($envelopes_edit->IsMobileOrModal) { ?>
	<div id="r__Case" class="form-group row">
		<label id="elh_envelopes__Case" for="x__Case" class="<?php echo $envelopes_edit->LeftColumnClass ?>"><?php echo $envelopes->_Case->caption() ?><?php echo ($envelopes->_Case->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $envelopes_edit->RightColumnClass ?>"><div<?php echo $envelopes->_Case->cellAttributes() ?>>
<span id="el_envelopes__Case">
<input type="text" data-table="envelopes" data-field="x__Case" name="x__Case" id="x__Case" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($envelopes->_Case->getPlaceHolder()) ?>" value="<?php echo $envelopes->_Case->EditValue ?>"<?php echo $envelopes->_Case->editAttributes() ?>>
</span>
<?php echo $envelopes->_Case->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r__Case">
		<td class="<?php echo $envelopes_edit->TableLeftColumnClass ?>"><span id="elh_envelopes__Case"><?php echo $envelopes->_Case->caption() ?><?php echo ($envelopes->_Case->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $envelopes->_Case->cellAttributes() ?>>
<span id="el_envelopes__Case">
<input type="text" data-table="envelopes" data-field="x__Case" name="x__Case" id="x__Case" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($envelopes->_Case->getPlaceHolder()) ?>" value="<?php echo $envelopes->_Case->EditValue ?>"<?php echo $envelopes->_Case->editAttributes() ?>>
</span>
<?php echo $envelopes->_Case->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($envelopes->CaseEn->Visible) { // CaseEn ?>
<?php if ($envelopes_edit->IsMobileOrModal) { ?>
	<div id="r_CaseEn" class="form-group row">
		<label id="elh_envelopes_CaseEn" for="x_CaseEn" class="<?php echo $envelopes_edit->LeftColumnClass ?>"><?php echo $envelopes->CaseEn->caption() ?><?php echo ($envelopes->CaseEn->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $envelopes_edit->RightColumnClass ?>"><div<?php echo $envelopes->CaseEn->cellAttributes() ?>>
<span id="el_envelopes_CaseEn">
<input type="text" data-table="envelopes" data-field="x_CaseEn" name="x_CaseEn" id="x_CaseEn" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($envelopes->CaseEn->getPlaceHolder()) ?>" value="<?php echo $envelopes->CaseEn->EditValue ?>"<?php echo $envelopes->CaseEn->editAttributes() ?>>
</span>
<?php echo $envelopes->CaseEn->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_CaseEn">
		<td class="<?php echo $envelopes_edit->TableLeftColumnClass ?>"><span id="elh_envelopes_CaseEn"><?php echo $envelopes->CaseEn->caption() ?><?php echo ($envelopes->CaseEn->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $envelopes->CaseEn->cellAttributes() ?>>
<span id="el_envelopes_CaseEn">
<input type="text" data-table="envelopes" data-field="x_CaseEn" name="x_CaseEn" id="x_CaseEn" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($envelopes->CaseEn->getPlaceHolder()) ?>" value="<?php echo $envelopes->CaseEn->EditValue ?>"<?php echo $envelopes->CaseEn->editAttributes() ?>>
</span>
<?php echo $envelopes->CaseEn->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($envelopes->CaseType->Visible) { // CaseType ?>
<?php if ($envelopes_edit->IsMobileOrModal) { ?>
	<div id="r_CaseType" class="form-group row">
		<label id="elh_envelopes_CaseType" for="x_CaseType" class="<?php echo $envelopes_edit->LeftColumnClass ?>"><?php echo $envelopes->CaseType->caption() ?><?php echo ($envelopes->CaseType->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $envelopes_edit->RightColumnClass ?>"><div<?php echo $envelopes->CaseType->cellAttributes() ?>>
<span id="el_envelopes_CaseType">
<input type="text" data-table="envelopes" data-field="x_CaseType" name="x_CaseType" id="x_CaseType" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($envelopes->CaseType->getPlaceHolder()) ?>" value="<?php echo $envelopes->CaseType->EditValue ?>"<?php echo $envelopes->CaseType->editAttributes() ?>>
</span>
<?php echo $envelopes->CaseType->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_CaseType">
		<td class="<?php echo $envelopes_edit->TableLeftColumnClass ?>"><span id="elh_envelopes_CaseType"><?php echo $envelopes->CaseType->caption() ?><?php echo ($envelopes->CaseType->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $envelopes->CaseType->cellAttributes() ?>>
<span id="el_envelopes_CaseType">
<input type="text" data-table="envelopes" data-field="x_CaseType" name="x_CaseType" id="x_CaseType" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($envelopes->CaseType->getPlaceHolder()) ?>" value="<?php echo $envelopes->CaseType->EditValue ?>"<?php echo $envelopes->CaseType->editAttributes() ?>>
</span>
<?php echo $envelopes->CaseType->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($envelopes->ClientName->Visible) { // ClientName ?>
<?php if ($envelopes_edit->IsMobileOrModal) { ?>
	<div id="r_ClientName" class="form-group row">
		<label id="elh_envelopes_ClientName" for="x_ClientName" class="<?php echo $envelopes_edit->LeftColumnClass ?>"><?php echo $envelopes->ClientName->caption() ?><?php echo ($envelopes->ClientName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $envelopes_edit->RightColumnClass ?>"><div<?php echo $envelopes->ClientName->cellAttributes() ?>>
<span id="el_envelopes_ClientName">
<input type="text" data-table="envelopes" data-field="x_ClientName" name="x_ClientName" id="x_ClientName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($envelopes->ClientName->getPlaceHolder()) ?>" value="<?php echo $envelopes->ClientName->EditValue ?>"<?php echo $envelopes->ClientName->editAttributes() ?>>
</span>
<?php echo $envelopes->ClientName->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_ClientName">
		<td class="<?php echo $envelopes_edit->TableLeftColumnClass ?>"><span id="elh_envelopes_ClientName"><?php echo $envelopes->ClientName->caption() ?><?php echo ($envelopes->ClientName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $envelopes->ClientName->cellAttributes() ?>>
<span id="el_envelopes_ClientName">
<input type="text" data-table="envelopes" data-field="x_ClientName" name="x_ClientName" id="x_ClientName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($envelopes->ClientName->getPlaceHolder()) ?>" value="<?php echo $envelopes->ClientName->EditValue ?>"<?php echo $envelopes->ClientName->editAttributes() ?>>
</span>
<?php echo $envelopes->ClientName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($envelopes->LitigantName->Visible) { // LitigantName ?>
<?php if ($envelopes_edit->IsMobileOrModal) { ?>
	<div id="r_LitigantName" class="form-group row">
		<label id="elh_envelopes_LitigantName" for="x_LitigantName" class="<?php echo $envelopes_edit->LeftColumnClass ?>"><?php echo $envelopes->LitigantName->caption() ?><?php echo ($envelopes->LitigantName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $envelopes_edit->RightColumnClass ?>"><div<?php echo $envelopes->LitigantName->cellAttributes() ?>>
<span id="el_envelopes_LitigantName">
<input type="text" data-table="envelopes" data-field="x_LitigantName" name="x_LitigantName" id="x_LitigantName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($envelopes->LitigantName->getPlaceHolder()) ?>" value="<?php echo $envelopes->LitigantName->EditValue ?>"<?php echo $envelopes->LitigantName->editAttributes() ?>>
</span>
<?php echo $envelopes->LitigantName->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_LitigantName">
		<td class="<?php echo $envelopes_edit->TableLeftColumnClass ?>"><span id="elh_envelopes_LitigantName"><?php echo $envelopes->LitigantName->caption() ?><?php echo ($envelopes->LitigantName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $envelopes->LitigantName->cellAttributes() ?>>
<span id="el_envelopes_LitigantName">
<input type="text" data-table="envelopes" data-field="x_LitigantName" name="x_LitigantName" id="x_LitigantName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($envelopes->LitigantName->getPlaceHolder()) ?>" value="<?php echo $envelopes->LitigantName->EditValue ?>"<?php echo $envelopes->LitigantName->editAttributes() ?>>
</span>
<?php echo $envelopes->LitigantName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($envelopes->CourtName->Visible) { // CourtName ?>
<?php if ($envelopes_edit->IsMobileOrModal) { ?>
	<div id="r_CourtName" class="form-group row">
		<label id="elh_envelopes_CourtName" for="x_CourtName" class="<?php echo $envelopes_edit->LeftColumnClass ?>"><?php echo $envelopes->CourtName->caption() ?><?php echo ($envelopes->CourtName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $envelopes_edit->RightColumnClass ?>"><div<?php echo $envelopes->CourtName->cellAttributes() ?>>
<span id="el_envelopes_CourtName">
<input type="text" data-table="envelopes" data-field="x_CourtName" name="x_CourtName" id="x_CourtName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($envelopes->CourtName->getPlaceHolder()) ?>" value="<?php echo $envelopes->CourtName->EditValue ?>"<?php echo $envelopes->CourtName->editAttributes() ?>>
</span>
<?php echo $envelopes->CourtName->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_CourtName">
		<td class="<?php echo $envelopes_edit->TableLeftColumnClass ?>"><span id="elh_envelopes_CourtName"><?php echo $envelopes->CourtName->caption() ?><?php echo ($envelopes->CourtName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $envelopes->CourtName->cellAttributes() ?>>
<span id="el_envelopes_CourtName">
<input type="text" data-table="envelopes" data-field="x_CourtName" name="x_CourtName" id="x_CourtName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($envelopes->CourtName->getPlaceHolder()) ?>" value="<?php echo $envelopes->CourtName->EditValue ?>"<?php echo $envelopes->CourtName->editAttributes() ?>>
</span>
<?php echo $envelopes->CourtName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($envelopes->CourtID->Visible) { // CourtID ?>
<?php if ($envelopes_edit->IsMobileOrModal) { ?>
	<div id="r_CourtID" class="form-group row">
		<label id="elh_envelopes_CourtID" for="x_CourtID" class="<?php echo $envelopes_edit->LeftColumnClass ?>"><?php echo $envelopes->CourtID->caption() ?><?php echo ($envelopes->CourtID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $envelopes_edit->RightColumnClass ?>"><div<?php echo $envelopes->CourtID->cellAttributes() ?>>
<span id="el_envelopes_CourtID">
<input type="text" data-table="envelopes" data-field="x_CourtID" name="x_CourtID" id="x_CourtID" size="30" placeholder="<?php echo HtmlEncode($envelopes->CourtID->getPlaceHolder()) ?>" value="<?php echo $envelopes->CourtID->EditValue ?>"<?php echo $envelopes->CourtID->editAttributes() ?>>
</span>
<?php echo $envelopes->CourtID->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_CourtID">
		<td class="<?php echo $envelopes_edit->TableLeftColumnClass ?>"><span id="elh_envelopes_CourtID"><?php echo $envelopes->CourtID->caption() ?><?php echo ($envelopes->CourtID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $envelopes->CourtID->cellAttributes() ?>>
<span id="el_envelopes_CourtID">
<input type="text" data-table="envelopes" data-field="x_CourtID" name="x_CourtID" id="x_CourtID" size="30" placeholder="<?php echo HtmlEncode($envelopes->CourtID->getPlaceHolder()) ?>" value="<?php echo $envelopes->CourtID->EditValue ?>"<?php echo $envelopes->CourtID->editAttributes() ?>>
</span>
<?php echo $envelopes->CourtID->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($envelopes->CourtTypeName->Visible) { // CourtTypeName ?>
<?php if ($envelopes_edit->IsMobileOrModal) { ?>
	<div id="r_CourtTypeName" class="form-group row">
		<label id="elh_envelopes_CourtTypeName" for="x_CourtTypeName" class="<?php echo $envelopes_edit->LeftColumnClass ?>"><?php echo $envelopes->CourtTypeName->caption() ?><?php echo ($envelopes->CourtTypeName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $envelopes_edit->RightColumnClass ?>"><div<?php echo $envelopes->CourtTypeName->cellAttributes() ?>>
<span id="el_envelopes_CourtTypeName">
<input type="text" data-table="envelopes" data-field="x_CourtTypeName" name="x_CourtTypeName" id="x_CourtTypeName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($envelopes->CourtTypeName->getPlaceHolder()) ?>" value="<?php echo $envelopes->CourtTypeName->EditValue ?>"<?php echo $envelopes->CourtTypeName->editAttributes() ?>>
</span>
<?php echo $envelopes->CourtTypeName->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_CourtTypeName">
		<td class="<?php echo $envelopes_edit->TableLeftColumnClass ?>"><span id="elh_envelopes_CourtTypeName"><?php echo $envelopes->CourtTypeName->caption() ?><?php echo ($envelopes->CourtTypeName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $envelopes->CourtTypeName->cellAttributes() ?>>
<span id="el_envelopes_CourtTypeName">
<input type="text" data-table="envelopes" data-field="x_CourtTypeName" name="x_CourtTypeName" id="x_CourtTypeName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($envelopes->CourtTypeName->getPlaceHolder()) ?>" value="<?php echo $envelopes->CourtTypeName->EditValue ?>"<?php echo $envelopes->CourtTypeName->editAttributes() ?>>
</span>
<?php echo $envelopes->CourtTypeName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($envelopes->CourtGenderName->Visible) { // CourtGenderName ?>
<?php if ($envelopes_edit->IsMobileOrModal) { ?>
	<div id="r_CourtGenderName" class="form-group row">
		<label id="elh_envelopes_CourtGenderName" for="x_CourtGenderName" class="<?php echo $envelopes_edit->LeftColumnClass ?>"><?php echo $envelopes->CourtGenderName->caption() ?><?php echo ($envelopes->CourtGenderName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $envelopes_edit->RightColumnClass ?>"><div<?php echo $envelopes->CourtGenderName->cellAttributes() ?>>
<span id="el_envelopes_CourtGenderName">
<input type="text" data-table="envelopes" data-field="x_CourtGenderName" name="x_CourtGenderName" id="x_CourtGenderName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($envelopes->CourtGenderName->getPlaceHolder()) ?>" value="<?php echo $envelopes->CourtGenderName->EditValue ?>"<?php echo $envelopes->CourtGenderName->editAttributes() ?>>
</span>
<?php echo $envelopes->CourtGenderName->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_CourtGenderName">
		<td class="<?php echo $envelopes_edit->TableLeftColumnClass ?>"><span id="elh_envelopes_CourtGenderName"><?php echo $envelopes->CourtGenderName->caption() ?><?php echo ($envelopes->CourtGenderName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $envelopes->CourtGenderName->cellAttributes() ?>>
<span id="el_envelopes_CourtGenderName">
<input type="text" data-table="envelopes" data-field="x_CourtGenderName" name="x_CourtGenderName" id="x_CourtGenderName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($envelopes->CourtGenderName->getPlaceHolder()) ?>" value="<?php echo $envelopes->CourtGenderName->EditValue ?>"<?php echo $envelopes->CourtGenderName->editAttributes() ?>>
</span>
<?php echo $envelopes->CourtGenderName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($envelopes->JudgeName->Visible) { // JudgeName ?>
<?php if ($envelopes_edit->IsMobileOrModal) { ?>
	<div id="r_JudgeName" class="form-group row">
		<label id="elh_envelopes_JudgeName" for="x_JudgeName" class="<?php echo $envelopes_edit->LeftColumnClass ?>"><?php echo $envelopes->JudgeName->caption() ?><?php echo ($envelopes->JudgeName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $envelopes_edit->RightColumnClass ?>"><div<?php echo $envelopes->JudgeName->cellAttributes() ?>>
<span id="el_envelopes_JudgeName">
<input type="text" data-table="envelopes" data-field="x_JudgeName" name="x_JudgeName" id="x_JudgeName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($envelopes->JudgeName->getPlaceHolder()) ?>" value="<?php echo $envelopes->JudgeName->EditValue ?>"<?php echo $envelopes->JudgeName->editAttributes() ?>>
</span>
<?php echo $envelopes->JudgeName->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_JudgeName">
		<td class="<?php echo $envelopes_edit->TableLeftColumnClass ?>"><span id="elh_envelopes_JudgeName"><?php echo $envelopes->JudgeName->caption() ?><?php echo ($envelopes->JudgeName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $envelopes->JudgeName->cellAttributes() ?>>
<span id="el_envelopes_JudgeName">
<input type="text" data-table="envelopes" data-field="x_JudgeName" name="x_JudgeName" id="x_JudgeName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($envelopes->JudgeName->getPlaceHolder()) ?>" value="<?php echo $envelopes->JudgeName->EditValue ?>"<?php echo $envelopes->JudgeName->editAttributes() ?>>
</span>
<?php echo $envelopes->JudgeName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($envelopes->Notes->Visible) { // Notes ?>
<?php if ($envelopes_edit->IsMobileOrModal) { ?>
	<div id="r_Notes" class="form-group row">
		<label id="elh_envelopes_Notes" for="x_Notes" class="<?php echo $envelopes_edit->LeftColumnClass ?>"><?php echo $envelopes->Notes->caption() ?><?php echo ($envelopes->Notes->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $envelopes_edit->RightColumnClass ?>"><div<?php echo $envelopes->Notes->cellAttributes() ?>>
<span id="el_envelopes_Notes">
<textarea data-table="envelopes" data-field="x_Notes" name="x_Notes" id="x_Notes" cols="35" rows="4" placeholder="<?php echo HtmlEncode($envelopes->Notes->getPlaceHolder()) ?>"<?php echo $envelopes->Notes->editAttributes() ?>><?php echo $envelopes->Notes->EditValue ?></textarea>
</span>
<?php echo $envelopes->Notes->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_Notes">
		<td class="<?php echo $envelopes_edit->TableLeftColumnClass ?>"><span id="elh_envelopes_Notes"><?php echo $envelopes->Notes->caption() ?><?php echo ($envelopes->Notes->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $envelopes->Notes->cellAttributes() ?>>
<span id="el_envelopes_Notes">
<textarea data-table="envelopes" data-field="x_Notes" name="x_Notes" id="x_Notes" cols="35" rows="4" placeholder="<?php echo HtmlEncode($envelopes->Notes->getPlaceHolder()) ?>"<?php echo $envelopes->Notes->editAttributes() ?>><?php echo $envelopes->Notes->EditValue ?></textarea>
</span>
<?php echo $envelopes->Notes->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($envelopes->ClientID->Visible) { // ClientID ?>
<?php if ($envelopes_edit->IsMobileOrModal) { ?>
	<div id="r_ClientID" class="form-group row">
		<label id="elh_envelopes_ClientID" for="x_ClientID" class="<?php echo $envelopes_edit->LeftColumnClass ?>"><?php echo $envelopes->ClientID->caption() ?><?php echo ($envelopes->ClientID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $envelopes_edit->RightColumnClass ?>"><div<?php echo $envelopes->ClientID->cellAttributes() ?>>
<span id="el_envelopes_ClientID">
<input type="text" data-table="envelopes" data-field="x_ClientID" name="x_ClientID" id="x_ClientID" size="30" placeholder="<?php echo HtmlEncode($envelopes->ClientID->getPlaceHolder()) ?>" value="<?php echo $envelopes->ClientID->EditValue ?>"<?php echo $envelopes->ClientID->editAttributes() ?>>
</span>
<?php echo $envelopes->ClientID->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_ClientID">
		<td class="<?php echo $envelopes_edit->TableLeftColumnClass ?>"><span id="elh_envelopes_ClientID"><?php echo $envelopes->ClientID->caption() ?><?php echo ($envelopes->ClientID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $envelopes->ClientID->cellAttributes() ?>>
<span id="el_envelopes_ClientID">
<input type="text" data-table="envelopes" data-field="x_ClientID" name="x_ClientID" id="x_ClientID" size="30" placeholder="<?php echo HtmlEncode($envelopes->ClientID->getPlaceHolder()) ?>" value="<?php echo $envelopes->ClientID->EditValue ?>"<?php echo $envelopes->ClientID->editAttributes() ?>>
</span>
<?php echo $envelopes->ClientID->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($envelopes->LitigantID->Visible) { // LitigantID ?>
<?php if ($envelopes_edit->IsMobileOrModal) { ?>
	<div id="r_LitigantID" class="form-group row">
		<label id="elh_envelopes_LitigantID" for="x_LitigantID" class="<?php echo $envelopes_edit->LeftColumnClass ?>"><?php echo $envelopes->LitigantID->caption() ?><?php echo ($envelopes->LitigantID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $envelopes_edit->RightColumnClass ?>"><div<?php echo $envelopes->LitigantID->cellAttributes() ?>>
<span id="el_envelopes_LitigantID">
<input type="text" data-table="envelopes" data-field="x_LitigantID" name="x_LitigantID" id="x_LitigantID" size="30" placeholder="<?php echo HtmlEncode($envelopes->LitigantID->getPlaceHolder()) ?>" value="<?php echo $envelopes->LitigantID->EditValue ?>"<?php echo $envelopes->LitigantID->editAttributes() ?>>
</span>
<?php echo $envelopes->LitigantID->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_LitigantID">
		<td class="<?php echo $envelopes_edit->TableLeftColumnClass ?>"><span id="elh_envelopes_LitigantID"><?php echo $envelopes->LitigantID->caption() ?><?php echo ($envelopes->LitigantID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $envelopes->LitigantID->cellAttributes() ?>>
<span id="el_envelopes_LitigantID">
<input type="text" data-table="envelopes" data-field="x_LitigantID" name="x_LitigantID" id="x_LitigantID" size="30" placeholder="<?php echo HtmlEncode($envelopes->LitigantID->getPlaceHolder()) ?>" value="<?php echo $envelopes->LitigantID->EditValue ?>"<?php echo $envelopes->LitigantID->editAttributes() ?>>
</span>
<?php echo $envelopes->LitigantID->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($envelopes_edit->IsMobileOrModal) { ?>
</div><!-- /page* -->
<?php } else { ?>
</table><!-- /table* -->
<?php } ?>
<?php if (!$envelopes_edit->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $envelopes_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 $envelopes_edit->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
<?php if (!$envelopes_edit->IsMobileOrModal) { ?>
</div><!-- /desktop -->
<?php } ?>
<?php if (!$envelopes_edit->IsModal) { ?>
<?php if (!isset($envelopes_edit->Pager)) $envelopes_edit->Pager = new PrevNextPager($envelopes_edit->StartRec, $envelopes_edit->DisplayRecs, $envelopes_edit->TotalRecs, $envelopes_edit->AutoHidePager) ?>
<?php if ($envelopes_edit->Pager->RecordCount > 0 && $envelopes_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 ($envelopes_edit->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $envelopes_edit->pageUrl() ?>start=<?php echo $envelopes_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 ($envelopes_edit->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $envelopes_edit->pageUrl() ?>start=<?php echo $envelopes_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 $envelopes_edit->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($envelopes_edit->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $envelopes_edit->pageUrl() ?>start=<?php echo $envelopes_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 ($envelopes_edit->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $envelopes_edit->pageUrl() ?>start=<?php echo $envelopes_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 $envelopes_edit->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
</form>
<?php
$envelopes_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
$envelopes_edit->terminate();
?>
