<?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_update = new envelopes_update();

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

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

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

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

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

// Validate form
fenvelopesupdate.validate = function() {
	if (!this.validateRequired)
		return true; // Ignore validation
	var $ = jQuery, fobj = this.getForm(), $fobj = $(fobj);
	if ($fobj.find("#confirm").val() == "F")
		return true;
	if (!ew.updateSelected(fobj)) {
		ew.alert(ew.language.phrase("NoFieldSelected"));
		return false;
	}
	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_update->CaseNumber->Required) { ?>
			elm = this.getElements("x" + infix + "_CaseNumber");
			uelm = this.getElements("u" + infix + "_CaseNumber");
			if (uelm && uelm.checked) {
				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_update->FileNumber->Required) { ?>
			elm = this.getElements("x" + infix + "_FileNumber");
			uelm = this.getElements("u" + infix + "_FileNumber");
			if (uelm && uelm.checked) {
				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_update->EnvelopeNumber->Required) { ?>
			elm = this.getElements("x" + infix + "_EnvelopeNumber");
			uelm = this.getElements("u" + infix + "_EnvelopeNumber");
			if (uelm && uelm.checked) {
				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_update->FileLocation->Required) { ?>
			elm = this.getElements("x" + infix + "_FileLocation");
			uelm = this.getElements("u" + infix + "_FileLocation");
			if (uelm && uelm.checked) {
				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_update->_Case->Required) { ?>
			elm = this.getElements("x" + infix + "__Case");
			uelm = this.getElements("u" + infix + "__Case");
			if (uelm && uelm.checked) {
				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_update->CaseEn->Required) { ?>
			elm = this.getElements("x" + infix + "_CaseEn");
			uelm = this.getElements("u" + infix + "_CaseEn");
			if (uelm && uelm.checked) {
				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_update->CaseType->Required) { ?>
			elm = this.getElements("x" + infix + "_CaseType");
			uelm = this.getElements("u" + infix + "_CaseType");
			if (uelm && uelm.checked) {
				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_update->ClientName->Required) { ?>
			elm = this.getElements("x" + infix + "_ClientName");
			uelm = this.getElements("u" + infix + "_ClientName");
			if (uelm && uelm.checked) {
				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_update->LitigantName->Required) { ?>
			elm = this.getElements("x" + infix + "_LitigantName");
			uelm = this.getElements("u" + infix + "_LitigantName");
			if (uelm && uelm.checked) {
				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_update->CourtName->Required) { ?>
			elm = this.getElements("x" + infix + "_CourtName");
			uelm = this.getElements("u" + infix + "_CourtName");
			if (uelm && uelm.checked) {
				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_update->CourtID->Required) { ?>
			elm = this.getElements("x" + infix + "_CourtID");
			uelm = this.getElements("u" + infix + "_CourtID");
			if (uelm && uelm.checked) {
				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");
			uelm = this.getElements("u" + infix + "_CourtID");
			if (uelm && uelm.checked && elm && !ew.checkInteger(elm.value))
				return this.onError(elm, "<?php echo JsEncode($envelopes->CourtID->errorMessage()) ?>");
		<?php if ($envelopes_update->CourtTypeName->Required) { ?>
			elm = this.getElements("x" + infix + "_CourtTypeName");
			uelm = this.getElements("u" + infix + "_CourtTypeName");
			if (uelm && uelm.checked) {
				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_update->CourtGenderName->Required) { ?>
			elm = this.getElements("x" + infix + "_CourtGenderName");
			uelm = this.getElements("u" + infix + "_CourtGenderName");
			if (uelm && uelm.checked) {
				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_update->JudgeName->Required) { ?>
			elm = this.getElements("x" + infix + "_JudgeName");
			uelm = this.getElements("u" + infix + "_JudgeName");
			if (uelm && uelm.checked) {
				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_update->Notes->Required) { ?>
			elm = this.getElements("x" + infix + "_Notes");
			uelm = this.getElements("u" + infix + "_Notes");
			if (uelm && uelm.checked) {
				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_update->ClientID->Required) { ?>
			elm = this.getElements("x" + infix + "_ClientID");
			uelm = this.getElements("u" + infix + "_ClientID");
			if (uelm && uelm.checked) {
				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");
			uelm = this.getElements("u" + infix + "_ClientID");
			if (uelm && uelm.checked && elm && !ew.checkInteger(elm.value))
				return this.onError(elm, "<?php echo JsEncode($envelopes->ClientID->errorMessage()) ?>");
		<?php if ($envelopes_update->LitigantID->Required) { ?>
			elm = this.getElements("x" + infix + "_LitigantID");
			uelm = this.getElements("u" + infix + "_LitigantID");
			if (uelm && uelm.checked) {
				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");
			uelm = this.getElements("u" + infix + "_LitigantID");
			if (uelm && uelm.checked && 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;
	}
	return true;
}

// Form_CustomValidate event
fenvelopesupdate.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
fenvelopesupdate.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_update->showPageHeader(); ?>
<?php
$envelopes_update->showMessage();
?>
<form name="fenvelopesupdate" id="fenvelopesupdate" class="<?php echo $envelopes_update->FormClassName ?>" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($envelopes_update->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $envelopes_update->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_update->IsModal ?>">
<?php foreach ($envelopes_update->RecKeys as $key) { ?>
<?php $keyvalue = is_array($key) ? implode($COMPOSITE_KEY_SEPARATOR, $key) : $key; ?>
<input type="hidden" name="key_m[]" value="<?php echo HtmlEncode($keyvalue) ?>">
<?php } ?>
<?php if (!$envelopes_update->IsMobileOrModal) { ?>
<div class="ew-desktop"><!-- desktop -->
<?php } ?>
<?php if ($envelopes_update->IsMobileOrModal) { ?>
<div id="tbl_envelopesupdate" class="ew-update-div"><!-- page -->
	<div class="form-check">
		<input type="checkbox" class="form-check-input" name="u" id="u" onclick="ew.selectAll(this);"><label class="form-check-label" for="u"><?php echo $Language->Phrase("UpdateSelectAll") ?></label>
	</div>
<?php } else { ?>
<table id="tbl_envelopesupdate" class="table table-striped table-sm ew-desktop-table"><!-- desktop table -->
	<thead>
	<tr>
		<th colspan="2"><div class="form-check"><input type="checkbox" class="form-check-input" name="u" id="u" onclick="ew.selectAll(this);"><label class="form-check-label" for="u"><?php echo $Language->Phrase("UpdateSelectAll") ?></label></div></th>
	</tr>
	</thead>
	<tbody>
<?php } ?>
<?php if ($envelopes->CaseNumber->Visible) { // CaseNumber ?>
<?php if ($envelopes_update->IsMobileOrModal) { ?>
	<div id="r_CaseNumber" class="form-group row">
		<label for="x_CaseNumber" class="<?php echo $envelopes_update->LeftColumnClass ?>"><div class="form-check">
<input type="checkbox" name="u_CaseNumber" id="u_CaseNumber" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->CaseNumber->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_CaseNumber"><?php echo $envelopes->CaseNumber->caption() ?></label></div></label>
		<div class="<?php echo $envelopes_update->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_update->TableLeftColumnClass ?>"<?php echo $envelopes->CaseNumber->cellAttributes() ?>><span id="elh_envelopes_CaseNumber"><div class="form-check">
<input type="checkbox" name="u_CaseNumber" id="u_CaseNumber" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->CaseNumber->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_CaseNumber"><?php echo $envelopes->CaseNumber->caption() ?></label></div></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_update->IsMobileOrModal) { ?>
	<div id="r_FileNumber" class="form-group row">
		<label for="x_FileNumber" class="<?php echo $envelopes_update->LeftColumnClass ?>"><div class="form-check">
<input type="checkbox" name="u_FileNumber" id="u_FileNumber" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->FileNumber->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_FileNumber"><?php echo $envelopes->FileNumber->caption() ?></label></div></label>
		<div class="<?php echo $envelopes_update->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_update->TableLeftColumnClass ?>"<?php echo $envelopes->FileNumber->cellAttributes() ?>><span id="elh_envelopes_FileNumber"><div class="form-check">
<input type="checkbox" name="u_FileNumber" id="u_FileNumber" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->FileNumber->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_FileNumber"><?php echo $envelopes->FileNumber->caption() ?></label></div></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_update->IsMobileOrModal) { ?>
	<div id="r_EnvelopeNumber" class="form-group row">
		<label for="x_EnvelopeNumber" class="<?php echo $envelopes_update->LeftColumnClass ?>"><div class="form-check">
<input type="checkbox" name="u_EnvelopeNumber" id="u_EnvelopeNumber" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->EnvelopeNumber->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_EnvelopeNumber"><?php echo $envelopes->EnvelopeNumber->caption() ?></label></div></label>
		<div class="<?php echo $envelopes_update->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_update->TableLeftColumnClass ?>"<?php echo $envelopes->EnvelopeNumber->cellAttributes() ?>><span id="elh_envelopes_EnvelopeNumber"><div class="form-check">
<input type="checkbox" name="u_EnvelopeNumber" id="u_EnvelopeNumber" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->EnvelopeNumber->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_EnvelopeNumber"><?php echo $envelopes->EnvelopeNumber->caption() ?></label></div></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_update->IsMobileOrModal) { ?>
	<div id="r_FileLocation" class="form-group row">
		<label for="x_FileLocation" class="<?php echo $envelopes_update->LeftColumnClass ?>"><div class="form-check">
<input type="checkbox" name="u_FileLocation" id="u_FileLocation" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->FileLocation->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_FileLocation"><?php echo $envelopes->FileLocation->caption() ?></label></div></label>
		<div class="<?php echo $envelopes_update->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_update->TableLeftColumnClass ?>"<?php echo $envelopes->FileLocation->cellAttributes() ?>><span id="elh_envelopes_FileLocation"><div class="form-check">
<input type="checkbox" name="u_FileLocation" id="u_FileLocation" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->FileLocation->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_FileLocation"><?php echo $envelopes->FileLocation->caption() ?></label></div></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_update->IsMobileOrModal) { ?>
	<div id="r__Case" class="form-group row">
		<label for="x__Case" class="<?php echo $envelopes_update->LeftColumnClass ?>"><div class="form-check">
<input type="checkbox" name="u__Case" id="u__Case" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->_Case->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u__Case"><?php echo $envelopes->_Case->caption() ?></label></div></label>
		<div class="<?php echo $envelopes_update->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_update->TableLeftColumnClass ?>"<?php echo $envelopes->_Case->cellAttributes() ?>><span id="elh_envelopes__Case"><div class="form-check">
<input type="checkbox" name="u__Case" id="u__Case" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->_Case->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u__Case"><?php echo $envelopes->_Case->caption() ?></label></div></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_update->IsMobileOrModal) { ?>
	<div id="r_CaseEn" class="form-group row">
		<label for="x_CaseEn" class="<?php echo $envelopes_update->LeftColumnClass ?>"><div class="form-check">
<input type="checkbox" name="u_CaseEn" id="u_CaseEn" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->CaseEn->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_CaseEn"><?php echo $envelopes->CaseEn->caption() ?></label></div></label>
		<div class="<?php echo $envelopes_update->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_update->TableLeftColumnClass ?>"<?php echo $envelopes->CaseEn->cellAttributes() ?>><span id="elh_envelopes_CaseEn"><div class="form-check">
<input type="checkbox" name="u_CaseEn" id="u_CaseEn" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->CaseEn->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_CaseEn"><?php echo $envelopes->CaseEn->caption() ?></label></div></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_update->IsMobileOrModal) { ?>
	<div id="r_CaseType" class="form-group row">
		<label for="x_CaseType" class="<?php echo $envelopes_update->LeftColumnClass ?>"><div class="form-check">
<input type="checkbox" name="u_CaseType" id="u_CaseType" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->CaseType->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_CaseType"><?php echo $envelopes->CaseType->caption() ?></label></div></label>
		<div class="<?php echo $envelopes_update->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_update->TableLeftColumnClass ?>"<?php echo $envelopes->CaseType->cellAttributes() ?>><span id="elh_envelopes_CaseType"><div class="form-check">
<input type="checkbox" name="u_CaseType" id="u_CaseType" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->CaseType->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_CaseType"><?php echo $envelopes->CaseType->caption() ?></label></div></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_update->IsMobileOrModal) { ?>
	<div id="r_ClientName" class="form-group row">
		<label for="x_ClientName" class="<?php echo $envelopes_update->LeftColumnClass ?>"><div class="form-check">
<input type="checkbox" name="u_ClientName" id="u_ClientName" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->ClientName->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_ClientName"><?php echo $envelopes->ClientName->caption() ?></label></div></label>
		<div class="<?php echo $envelopes_update->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_update->TableLeftColumnClass ?>"<?php echo $envelopes->ClientName->cellAttributes() ?>><span id="elh_envelopes_ClientName"><div class="form-check">
<input type="checkbox" name="u_ClientName" id="u_ClientName" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->ClientName->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_ClientName"><?php echo $envelopes->ClientName->caption() ?></label></div></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_update->IsMobileOrModal) { ?>
	<div id="r_LitigantName" class="form-group row">
		<label for="x_LitigantName" class="<?php echo $envelopes_update->LeftColumnClass ?>"><div class="form-check">
<input type="checkbox" name="u_LitigantName" id="u_LitigantName" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->LitigantName->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_LitigantName"><?php echo $envelopes->LitigantName->caption() ?></label></div></label>
		<div class="<?php echo $envelopes_update->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_update->TableLeftColumnClass ?>"<?php echo $envelopes->LitigantName->cellAttributes() ?>><span id="elh_envelopes_LitigantName"><div class="form-check">
<input type="checkbox" name="u_LitigantName" id="u_LitigantName" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->LitigantName->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_LitigantName"><?php echo $envelopes->LitigantName->caption() ?></label></div></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_update->IsMobileOrModal) { ?>
	<div id="r_CourtName" class="form-group row">
		<label for="x_CourtName" class="<?php echo $envelopes_update->LeftColumnClass ?>"><div class="form-check">
<input type="checkbox" name="u_CourtName" id="u_CourtName" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->CourtName->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_CourtName"><?php echo $envelopes->CourtName->caption() ?></label></div></label>
		<div class="<?php echo $envelopes_update->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_update->TableLeftColumnClass ?>"<?php echo $envelopes->CourtName->cellAttributes() ?>><span id="elh_envelopes_CourtName"><div class="form-check">
<input type="checkbox" name="u_CourtName" id="u_CourtName" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->CourtName->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_CourtName"><?php echo $envelopes->CourtName->caption() ?></label></div></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_update->IsMobileOrModal) { ?>
	<div id="r_CourtID" class="form-group row">
		<label for="x_CourtID" class="<?php echo $envelopes_update->LeftColumnClass ?>"><div class="form-check">
<input type="checkbox" name="u_CourtID" id="u_CourtID" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->CourtID->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_CourtID"><?php echo $envelopes->CourtID->caption() ?></label></div></label>
		<div class="<?php echo $envelopes_update->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_update->TableLeftColumnClass ?>"<?php echo $envelopes->CourtID->cellAttributes() ?>><span id="elh_envelopes_CourtID"><div class="form-check">
<input type="checkbox" name="u_CourtID" id="u_CourtID" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->CourtID->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_CourtID"><?php echo $envelopes->CourtID->caption() ?></label></div></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_update->IsMobileOrModal) { ?>
	<div id="r_CourtTypeName" class="form-group row">
		<label for="x_CourtTypeName" class="<?php echo $envelopes_update->LeftColumnClass ?>"><div class="form-check">
<input type="checkbox" name="u_CourtTypeName" id="u_CourtTypeName" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->CourtTypeName->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_CourtTypeName"><?php echo $envelopes->CourtTypeName->caption() ?></label></div></label>
		<div class="<?php echo $envelopes_update->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_update->TableLeftColumnClass ?>"<?php echo $envelopes->CourtTypeName->cellAttributes() ?>><span id="elh_envelopes_CourtTypeName"><div class="form-check">
<input type="checkbox" name="u_CourtTypeName" id="u_CourtTypeName" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->CourtTypeName->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_CourtTypeName"><?php echo $envelopes->CourtTypeName->caption() ?></label></div></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_update->IsMobileOrModal) { ?>
	<div id="r_CourtGenderName" class="form-group row">
		<label for="x_CourtGenderName" class="<?php echo $envelopes_update->LeftColumnClass ?>"><div class="form-check">
<input type="checkbox" name="u_CourtGenderName" id="u_CourtGenderName" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->CourtGenderName->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_CourtGenderName"><?php echo $envelopes->CourtGenderName->caption() ?></label></div></label>
		<div class="<?php echo $envelopes_update->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_update->TableLeftColumnClass ?>"<?php echo $envelopes->CourtGenderName->cellAttributes() ?>><span id="elh_envelopes_CourtGenderName"><div class="form-check">
<input type="checkbox" name="u_CourtGenderName" id="u_CourtGenderName" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->CourtGenderName->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_CourtGenderName"><?php echo $envelopes->CourtGenderName->caption() ?></label></div></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_update->IsMobileOrModal) { ?>
	<div id="r_JudgeName" class="form-group row">
		<label for="x_JudgeName" class="<?php echo $envelopes_update->LeftColumnClass ?>"><div class="form-check">
<input type="checkbox" name="u_JudgeName" id="u_JudgeName" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->JudgeName->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_JudgeName"><?php echo $envelopes->JudgeName->caption() ?></label></div></label>
		<div class="<?php echo $envelopes_update->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_update->TableLeftColumnClass ?>"<?php echo $envelopes->JudgeName->cellAttributes() ?>><span id="elh_envelopes_JudgeName"><div class="form-check">
<input type="checkbox" name="u_JudgeName" id="u_JudgeName" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->JudgeName->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_JudgeName"><?php echo $envelopes->JudgeName->caption() ?></label></div></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_update->IsMobileOrModal) { ?>
	<div id="r_Notes" class="form-group row">
		<label for="x_Notes" class="<?php echo $envelopes_update->LeftColumnClass ?>"><div class="form-check">
<input type="checkbox" name="u_Notes" id="u_Notes" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->Notes->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_Notes"><?php echo $envelopes->Notes->caption() ?></label></div></label>
		<div class="<?php echo $envelopes_update->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_update->TableLeftColumnClass ?>"<?php echo $envelopes->Notes->cellAttributes() ?>><span id="elh_envelopes_Notes"><div class="form-check">
<input type="checkbox" name="u_Notes" id="u_Notes" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->Notes->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_Notes"><?php echo $envelopes->Notes->caption() ?></label></div></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_update->IsMobileOrModal) { ?>
	<div id="r_ClientID" class="form-group row">
		<label for="x_ClientID" class="<?php echo $envelopes_update->LeftColumnClass ?>"><div class="form-check">
<input type="checkbox" name="u_ClientID" id="u_ClientID" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->ClientID->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_ClientID"><?php echo $envelopes->ClientID->caption() ?></label></div></label>
		<div class="<?php echo $envelopes_update->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_update->TableLeftColumnClass ?>"<?php echo $envelopes->ClientID->cellAttributes() ?>><span id="elh_envelopes_ClientID"><div class="form-check">
<input type="checkbox" name="u_ClientID" id="u_ClientID" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->ClientID->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_ClientID"><?php echo $envelopes->ClientID->caption() ?></label></div></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_update->IsMobileOrModal) { ?>
	<div id="r_LitigantID" class="form-group row">
		<label for="x_LitigantID" class="<?php echo $envelopes_update->LeftColumnClass ?>"><div class="form-check">
<input type="checkbox" name="u_LitigantID" id="u_LitigantID" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->LitigantID->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_LitigantID"><?php echo $envelopes->LitigantID->caption() ?></label></div></label>
		<div class="<?php echo $envelopes_update->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_update->TableLeftColumnClass ?>"<?php echo $envelopes->LitigantID->cellAttributes() ?>><span id="elh_envelopes_LitigantID"><div class="form-check">
<input type="checkbox" name="u_LitigantID" id="u_LitigantID" class="form-check-input ew-multi-select" value="1"<?php echo ($envelopes->LitigantID->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_LitigantID"><?php echo $envelopes->LitigantID->caption() ?></label></div></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_update->IsMobileOrModal) { ?>
	</div><!-- /page -->
<?php } else { ?>
	</tbody>
</table><!-- /desktop table -->
<?php } ?>
<?php if (!$envelopes_update->IsModal) { ?>
	<div class="form-group row"><!-- buttons .form-group -->
		<div class="<?php echo $envelopes_update->OffsetColumnClass ?>"><!-- buttons offset -->
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?php echo $Language->phrase("UpdateBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?php echo $envelopes_update->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
		</div><!-- /buttons offset -->
	</div><!-- /buttons .form-group -->
<?php } ?>
<?php if (!$envelopes_update->IsMobileOrModal) { ?>
</div><!-- /desktop -->
<?php } ?>
</form>
<?php
$envelopes_update->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_update->terminate();
?>
