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

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

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

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

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

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

// Validate form
fagendaupdate.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 ($agenda_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", $agenda->CaseNumber->caption(), $agenda->CaseNumber->RequiredErrorMessage)) ?>");
			}
		<?php } ?>
		<?php if ($agenda_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", $agenda->FileNumber->caption(), $agenda->FileNumber->RequiredErrorMessage)) ?>");
			}
		<?php } ?>
		<?php if ($agenda_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", $agenda->EnvelopeNumber->caption(), $agenda->EnvelopeNumber->RequiredErrorMessage)) ?>");
			}
		<?php } ?>
		<?php if ($agenda_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", $agenda->FileLocation->caption(), $agenda->FileLocation->RequiredErrorMessage)) ?>");
			}
		<?php } ?>
		<?php if ($agenda_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", $agenda->_Case->caption(), $agenda->_Case->RequiredErrorMessage)) ?>");
			}
		<?php } ?>
		<?php if ($agenda_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", $agenda->CaseEn->caption(), $agenda->CaseEn->RequiredErrorMessage)) ?>");
			}
		<?php } ?>
		<?php if ($agenda_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", $agenda->CaseType->caption(), $agenda->CaseType->RequiredErrorMessage)) ?>");
			}
		<?php } ?>
		<?php if ($agenda_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", $agenda->ClientName->caption(), $agenda->ClientName->RequiredErrorMessage)) ?>");
			}
		<?php } ?>
		<?php if ($agenda_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", $agenda->LitigantName->caption(), $agenda->LitigantName->RequiredErrorMessage)) ?>");
			}
		<?php } ?>
		<?php if ($agenda_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", $agenda->Notes->caption(), $agenda->Notes->RequiredErrorMessage)) ?>");
			}
		<?php } ?>

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

// Form_CustomValidate event
fagendaupdate.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
fagendaupdate.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 $agenda_update->showPageHeader(); ?>
<?php
$agenda_update->showMessage();
?>
<form name="fagendaupdate" id="fagendaupdate" class="<?php echo $agenda_update->FormClassName ?>" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($agenda_update->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $agenda_update->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="agenda">
<input type="hidden" name="action" id="action" value="update">
<input type="hidden" name="modal" value="<?php echo (int)$agenda_update->IsModal ?>">
<?php foreach ($agenda_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 (!$agenda_update->IsMobileOrModal) { ?>
<div class="ew-desktop"><!-- desktop -->
<?php } ?>
<?php if ($agenda_update->IsMobileOrModal) { ?>
<div id="tbl_agendaupdate" 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_agendaupdate" 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 ($agenda->CaseNumber->Visible) { // CaseNumber ?>
<?php if ($agenda_update->IsMobileOrModal) { ?>
	<div id="r_CaseNumber" class="form-group row">
		<label for="x_CaseNumber" class="<?php echo $agenda_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 ($agenda->CaseNumber->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_CaseNumber"><?php echo $agenda->CaseNumber->caption() ?></label></div></label>
		<div class="<?php echo $agenda_update->RightColumnClass ?>"><div<?php echo $agenda->CaseNumber->cellAttributes() ?>>
<span id="el_agenda_CaseNumber">
<input type="text" data-table="agenda" data-field="x_CaseNumber" name="x_CaseNumber" id="x_CaseNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($agenda->CaseNumber->getPlaceHolder()) ?>" value="<?php echo $agenda->CaseNumber->EditValue ?>"<?php echo $agenda->CaseNumber->editAttributes() ?>>
</span>
<?php echo $agenda->CaseNumber->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_CaseNumber">
		<td class="<?php echo $agenda_update->TableLeftColumnClass ?>"<?php echo $agenda->CaseNumber->cellAttributes() ?>><span id="elh_agenda_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 ($agenda->CaseNumber->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_CaseNumber"><?php echo $agenda->CaseNumber->caption() ?></label></div></span></td>
		<td<?php echo $agenda->CaseNumber->cellAttributes() ?>>
<span id="el_agenda_CaseNumber">
<input type="text" data-table="agenda" data-field="x_CaseNumber" name="x_CaseNumber" id="x_CaseNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($agenda->CaseNumber->getPlaceHolder()) ?>" value="<?php echo $agenda->CaseNumber->EditValue ?>"<?php echo $agenda->CaseNumber->editAttributes() ?>>
</span>
<?php echo $agenda->CaseNumber->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($agenda->FileNumber->Visible) { // FileNumber ?>
<?php if ($agenda_update->IsMobileOrModal) { ?>
	<div id="r_FileNumber" class="form-group row">
		<label for="x_FileNumber" class="<?php echo $agenda_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 ($agenda->FileNumber->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_FileNumber"><?php echo $agenda->FileNumber->caption() ?></label></div></label>
		<div class="<?php echo $agenda_update->RightColumnClass ?>"><div<?php echo $agenda->FileNumber->cellAttributes() ?>>
<span id="el_agenda_FileNumber">
<input type="text" data-table="agenda" data-field="x_FileNumber" name="x_FileNumber" id="x_FileNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($agenda->FileNumber->getPlaceHolder()) ?>" value="<?php echo $agenda->FileNumber->EditValue ?>"<?php echo $agenda->FileNumber->editAttributes() ?>>
</span>
<?php echo $agenda->FileNumber->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_FileNumber">
		<td class="<?php echo $agenda_update->TableLeftColumnClass ?>"<?php echo $agenda->FileNumber->cellAttributes() ?>><span id="elh_agenda_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 ($agenda->FileNumber->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_FileNumber"><?php echo $agenda->FileNumber->caption() ?></label></div></span></td>
		<td<?php echo $agenda->FileNumber->cellAttributes() ?>>
<span id="el_agenda_FileNumber">
<input type="text" data-table="agenda" data-field="x_FileNumber" name="x_FileNumber" id="x_FileNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($agenda->FileNumber->getPlaceHolder()) ?>" value="<?php echo $agenda->FileNumber->EditValue ?>"<?php echo $agenda->FileNumber->editAttributes() ?>>
</span>
<?php echo $agenda->FileNumber->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($agenda->EnvelopeNumber->Visible) { // EnvelopeNumber ?>
<?php if ($agenda_update->IsMobileOrModal) { ?>
	<div id="r_EnvelopeNumber" class="form-group row">
		<label for="x_EnvelopeNumber" class="<?php echo $agenda_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 ($agenda->EnvelopeNumber->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_EnvelopeNumber"><?php echo $agenda->EnvelopeNumber->caption() ?></label></div></label>
		<div class="<?php echo $agenda_update->RightColumnClass ?>"><div<?php echo $agenda->EnvelopeNumber->cellAttributes() ?>>
<span id="el_agenda_EnvelopeNumber">
<input type="text" data-table="agenda" data-field="x_EnvelopeNumber" name="x_EnvelopeNumber" id="x_EnvelopeNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($agenda->EnvelopeNumber->getPlaceHolder()) ?>" value="<?php echo $agenda->EnvelopeNumber->EditValue ?>"<?php echo $agenda->EnvelopeNumber->editAttributes() ?>>
</span>
<?php echo $agenda->EnvelopeNumber->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_EnvelopeNumber">
		<td class="<?php echo $agenda_update->TableLeftColumnClass ?>"<?php echo $agenda->EnvelopeNumber->cellAttributes() ?>><span id="elh_agenda_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 ($agenda->EnvelopeNumber->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_EnvelopeNumber"><?php echo $agenda->EnvelopeNumber->caption() ?></label></div></span></td>
		<td<?php echo $agenda->EnvelopeNumber->cellAttributes() ?>>
<span id="el_agenda_EnvelopeNumber">
<input type="text" data-table="agenda" data-field="x_EnvelopeNumber" name="x_EnvelopeNumber" id="x_EnvelopeNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($agenda->EnvelopeNumber->getPlaceHolder()) ?>" value="<?php echo $agenda->EnvelopeNumber->EditValue ?>"<?php echo $agenda->EnvelopeNumber->editAttributes() ?>>
</span>
<?php echo $agenda->EnvelopeNumber->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($agenda->FileLocation->Visible) { // FileLocation ?>
<?php if ($agenda_update->IsMobileOrModal) { ?>
	<div id="r_FileLocation" class="form-group row">
		<label for="x_FileLocation" class="<?php echo $agenda_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 ($agenda->FileLocation->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_FileLocation"><?php echo $agenda->FileLocation->caption() ?></label></div></label>
		<div class="<?php echo $agenda_update->RightColumnClass ?>"><div<?php echo $agenda->FileLocation->cellAttributes() ?>>
<span id="el_agenda_FileLocation">
<input type="text" data-table="agenda" data-field="x_FileLocation" name="x_FileLocation" id="x_FileLocation" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($agenda->FileLocation->getPlaceHolder()) ?>" value="<?php echo $agenda->FileLocation->EditValue ?>"<?php echo $agenda->FileLocation->editAttributes() ?>>
</span>
<?php echo $agenda->FileLocation->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_FileLocation">
		<td class="<?php echo $agenda_update->TableLeftColumnClass ?>"<?php echo $agenda->FileLocation->cellAttributes() ?>><span id="elh_agenda_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 ($agenda->FileLocation->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_FileLocation"><?php echo $agenda->FileLocation->caption() ?></label></div></span></td>
		<td<?php echo $agenda->FileLocation->cellAttributes() ?>>
<span id="el_agenda_FileLocation">
<input type="text" data-table="agenda" data-field="x_FileLocation" name="x_FileLocation" id="x_FileLocation" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($agenda->FileLocation->getPlaceHolder()) ?>" value="<?php echo $agenda->FileLocation->EditValue ?>"<?php echo $agenda->FileLocation->editAttributes() ?>>
</span>
<?php echo $agenda->FileLocation->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($agenda->_Case->Visible) { // Case ?>
<?php if ($agenda_update->IsMobileOrModal) { ?>
	<div id="r__Case" class="form-group row">
		<label for="x__Case" class="<?php echo $agenda_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 ($agenda->_Case->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u__Case"><?php echo $agenda->_Case->caption() ?></label></div></label>
		<div class="<?php echo $agenda_update->RightColumnClass ?>"><div<?php echo $agenda->_Case->cellAttributes() ?>>
<span id="el_agenda__Case">
<input type="text" data-table="agenda" data-field="x__Case" name="x__Case" id="x__Case" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($agenda->_Case->getPlaceHolder()) ?>" value="<?php echo $agenda->_Case->EditValue ?>"<?php echo $agenda->_Case->editAttributes() ?>>
</span>
<?php echo $agenda->_Case->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r__Case">
		<td class="<?php echo $agenda_update->TableLeftColumnClass ?>"<?php echo $agenda->_Case->cellAttributes() ?>><span id="elh_agenda__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 ($agenda->_Case->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u__Case"><?php echo $agenda->_Case->caption() ?></label></div></span></td>
		<td<?php echo $agenda->_Case->cellAttributes() ?>>
<span id="el_agenda__Case">
<input type="text" data-table="agenda" data-field="x__Case" name="x__Case" id="x__Case" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($agenda->_Case->getPlaceHolder()) ?>" value="<?php echo $agenda->_Case->EditValue ?>"<?php echo $agenda->_Case->editAttributes() ?>>
</span>
<?php echo $agenda->_Case->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($agenda->CaseEn->Visible) { // CaseEn ?>
<?php if ($agenda_update->IsMobileOrModal) { ?>
	<div id="r_CaseEn" class="form-group row">
		<label for="x_CaseEn" class="<?php echo $agenda_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 ($agenda->CaseEn->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_CaseEn"><?php echo $agenda->CaseEn->caption() ?></label></div></label>
		<div class="<?php echo $agenda_update->RightColumnClass ?>"><div<?php echo $agenda->CaseEn->cellAttributes() ?>>
<span id="el_agenda_CaseEn">
<input type="text" data-table="agenda" data-field="x_CaseEn" name="x_CaseEn" id="x_CaseEn" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($agenda->CaseEn->getPlaceHolder()) ?>" value="<?php echo $agenda->CaseEn->EditValue ?>"<?php echo $agenda->CaseEn->editAttributes() ?>>
</span>
<?php echo $agenda->CaseEn->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_CaseEn">
		<td class="<?php echo $agenda_update->TableLeftColumnClass ?>"<?php echo $agenda->CaseEn->cellAttributes() ?>><span id="elh_agenda_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 ($agenda->CaseEn->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_CaseEn"><?php echo $agenda->CaseEn->caption() ?></label></div></span></td>
		<td<?php echo $agenda->CaseEn->cellAttributes() ?>>
<span id="el_agenda_CaseEn">
<input type="text" data-table="agenda" data-field="x_CaseEn" name="x_CaseEn" id="x_CaseEn" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($agenda->CaseEn->getPlaceHolder()) ?>" value="<?php echo $agenda->CaseEn->EditValue ?>"<?php echo $agenda->CaseEn->editAttributes() ?>>
</span>
<?php echo $agenda->CaseEn->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($agenda->CaseType->Visible) { // CaseType ?>
<?php if ($agenda_update->IsMobileOrModal) { ?>
	<div id="r_CaseType" class="form-group row">
		<label for="x_CaseType" class="<?php echo $agenda_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 ($agenda->CaseType->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_CaseType"><?php echo $agenda->CaseType->caption() ?></label></div></label>
		<div class="<?php echo $agenda_update->RightColumnClass ?>"><div<?php echo $agenda->CaseType->cellAttributes() ?>>
<span id="el_agenda_CaseType">
<input type="text" data-table="agenda" data-field="x_CaseType" name="x_CaseType" id="x_CaseType" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($agenda->CaseType->getPlaceHolder()) ?>" value="<?php echo $agenda->CaseType->EditValue ?>"<?php echo $agenda->CaseType->editAttributes() ?>>
</span>
<?php echo $agenda->CaseType->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_CaseType">
		<td class="<?php echo $agenda_update->TableLeftColumnClass ?>"<?php echo $agenda->CaseType->cellAttributes() ?>><span id="elh_agenda_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 ($agenda->CaseType->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_CaseType"><?php echo $agenda->CaseType->caption() ?></label></div></span></td>
		<td<?php echo $agenda->CaseType->cellAttributes() ?>>
<span id="el_agenda_CaseType">
<input type="text" data-table="agenda" data-field="x_CaseType" name="x_CaseType" id="x_CaseType" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($agenda->CaseType->getPlaceHolder()) ?>" value="<?php echo $agenda->CaseType->EditValue ?>"<?php echo $agenda->CaseType->editAttributes() ?>>
</span>
<?php echo $agenda->CaseType->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($agenda->ClientName->Visible) { // ClientName ?>
<?php if ($agenda_update->IsMobileOrModal) { ?>
	<div id="r_ClientName" class="form-group row">
		<label for="x_ClientName" class="<?php echo $agenda_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 ($agenda->ClientName->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_ClientName"><?php echo $agenda->ClientName->caption() ?></label></div></label>
		<div class="<?php echo $agenda_update->RightColumnClass ?>"><div<?php echo $agenda->ClientName->cellAttributes() ?>>
<span id="el_agenda_ClientName">
<input type="text" data-table="agenda" data-field="x_ClientName" name="x_ClientName" id="x_ClientName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($agenda->ClientName->getPlaceHolder()) ?>" value="<?php echo $agenda->ClientName->EditValue ?>"<?php echo $agenda->ClientName->editAttributes() ?>>
</span>
<?php echo $agenda->ClientName->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_ClientName">
		<td class="<?php echo $agenda_update->TableLeftColumnClass ?>"<?php echo $agenda->ClientName->cellAttributes() ?>><span id="elh_agenda_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 ($agenda->ClientName->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_ClientName"><?php echo $agenda->ClientName->caption() ?></label></div></span></td>
		<td<?php echo $agenda->ClientName->cellAttributes() ?>>
<span id="el_agenda_ClientName">
<input type="text" data-table="agenda" data-field="x_ClientName" name="x_ClientName" id="x_ClientName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($agenda->ClientName->getPlaceHolder()) ?>" value="<?php echo $agenda->ClientName->EditValue ?>"<?php echo $agenda->ClientName->editAttributes() ?>>
</span>
<?php echo $agenda->ClientName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($agenda->LitigantName->Visible) { // LitigantName ?>
<?php if ($agenda_update->IsMobileOrModal) { ?>
	<div id="r_LitigantName" class="form-group row">
		<label for="x_LitigantName" class="<?php echo $agenda_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 ($agenda->LitigantName->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_LitigantName"><?php echo $agenda->LitigantName->caption() ?></label></div></label>
		<div class="<?php echo $agenda_update->RightColumnClass ?>"><div<?php echo $agenda->LitigantName->cellAttributes() ?>>
<span id="el_agenda_LitigantName">
<input type="text" data-table="agenda" data-field="x_LitigantName" name="x_LitigantName" id="x_LitigantName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($agenda->LitigantName->getPlaceHolder()) ?>" value="<?php echo $agenda->LitigantName->EditValue ?>"<?php echo $agenda->LitigantName->editAttributes() ?>>
</span>
<?php echo $agenda->LitigantName->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_LitigantName">
		<td class="<?php echo $agenda_update->TableLeftColumnClass ?>"<?php echo $agenda->LitigantName->cellAttributes() ?>><span id="elh_agenda_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 ($agenda->LitigantName->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_LitigantName"><?php echo $agenda->LitigantName->caption() ?></label></div></span></td>
		<td<?php echo $agenda->LitigantName->cellAttributes() ?>>
<span id="el_agenda_LitigantName">
<input type="text" data-table="agenda" data-field="x_LitigantName" name="x_LitigantName" id="x_LitigantName" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($agenda->LitigantName->getPlaceHolder()) ?>" value="<?php echo $agenda->LitigantName->EditValue ?>"<?php echo $agenda->LitigantName->editAttributes() ?>>
</span>
<?php echo $agenda->LitigantName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($agenda->Notes->Visible) { // Notes ?>
<?php if ($agenda_update->IsMobileOrModal) { ?>
	<div id="r_Notes" class="form-group row">
		<label for="x_Notes" class="<?php echo $agenda_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 ($agenda->Notes->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_Notes"><?php echo $agenda->Notes->caption() ?></label></div></label>
		<div class="<?php echo $agenda_update->RightColumnClass ?>"><div<?php echo $agenda->Notes->cellAttributes() ?>>
<span id="el_agenda_Notes">
<textarea data-table="agenda" data-field="x_Notes" name="x_Notes" id="x_Notes" cols="35" rows="4" placeholder="<?php echo HtmlEncode($agenda->Notes->getPlaceHolder()) ?>"<?php echo $agenda->Notes->editAttributes() ?>><?php echo $agenda->Notes->EditValue ?></textarea>
</span>
<?php echo $agenda->Notes->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_Notes">
		<td class="<?php echo $agenda_update->TableLeftColumnClass ?>"<?php echo $agenda->Notes->cellAttributes() ?>><span id="elh_agenda_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 ($agenda->Notes->MultiUpdate == "1") ? " checked" : "" ?>>
<label class="form-check-label" for="u_Notes"><?php echo $agenda->Notes->caption() ?></label></div></span></td>
		<td<?php echo $agenda->Notes->cellAttributes() ?>>
<span id="el_agenda_Notes">
<textarea data-table="agenda" data-field="x_Notes" name="x_Notes" id="x_Notes" cols="35" rows="4" placeholder="<?php echo HtmlEncode($agenda->Notes->getPlaceHolder()) ?>"<?php echo $agenda->Notes->editAttributes() ?>><?php echo $agenda->Notes->EditValue ?></textarea>
</span>
<?php echo $agenda->Notes->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($agenda_update->IsMobileOrModal) { ?>
	</div><!-- /page -->
<?php } else { ?>
	</tbody>
</table><!-- /desktop table -->
<?php } ?>
<?php if (!$agenda_update->IsModal) { ?>
	<div class="form-group row"><!-- buttons .form-group -->
		<div class="<?php echo $agenda_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 $agenda_update->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
		</div><!-- /buttons offset -->
	</div><!-- /buttons .form-group -->
<?php } ?>
<?php if (!$agenda_update->IsMobileOrModal) { ?>
</div><!-- /desktop -->
<?php } ?>
</form>
<?php
$agenda_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
$agenda_update->terminate();
?>
