<?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_edit = new agenda_edit();

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

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

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

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

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

// Validate form
fagendaedit.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 ($agenda_edit->AgendaID->Required) { ?>
			elm = this.getElements("x" + infix + "_AgendaID");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $agenda->AgendaID->caption(), $agenda->AgendaID->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($agenda_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", $agenda->CaseNumber->caption(), $agenda->CaseNumber->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($agenda_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", $agenda->FileNumber->caption(), $agenda->FileNumber->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($agenda_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", $agenda->EnvelopeNumber->caption(), $agenda->EnvelopeNumber->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($agenda_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", $agenda->FileLocation->caption(), $agenda->FileLocation->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($agenda_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", $agenda->_Case->caption(), $agenda->_Case->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($agenda_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", $agenda->CaseEn->caption(), $agenda->CaseEn->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($agenda_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", $agenda->CaseType->caption(), $agenda->CaseType->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($agenda_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", $agenda->ClientName->caption(), $agenda->ClientName->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($agenda_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", $agenda->LitigantName->caption(), $agenda->LitigantName->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($agenda_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", $agenda->Notes->caption(), $agenda->Notes->RequiredErrorMessage)) ?>");
		<?php } ?>

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

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

// Form_CustomValidate event
fagendaedit.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
fagendaedit.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_edit->showPageHeader(); ?>
<?php
$agenda_edit->showMessage();
?>
<?php if (!$agenda_edit->IsModal) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($agenda_edit->Pager)) $agenda_edit->Pager = new PrevNextPager($agenda_edit->StartRec, $agenda_edit->DisplayRecs, $agenda_edit->TotalRecs, $agenda_edit->AutoHidePager) ?>
<?php if ($agenda_edit->Pager->RecordCount > 0 && $agenda_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 ($agenda_edit->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $agenda_edit->pageUrl() ?>start=<?php echo $agenda_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 ($agenda_edit->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $agenda_edit->pageUrl() ?>start=<?php echo $agenda_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 $agenda_edit->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($agenda_edit->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $agenda_edit->pageUrl() ?>start=<?php echo $agenda_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 ($agenda_edit->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $agenda_edit->pageUrl() ?>start=<?php echo $agenda_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 $agenda_edit->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<form name="fagendaedit" id="fagendaedit" class="<?php echo $agenda_edit->FormClassName ?>" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($agenda_edit->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $agenda_edit->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_edit->IsModal ?>">
<?php if (!$agenda_edit->IsMobileOrModal) { ?>
<div class="ew-desktop"><!-- desktop -->
<?php } ?>
<?php if ($agenda_edit->IsMobileOrModal) { ?>
<div class="ew-edit-div"><!-- page* -->
<?php } else { ?>
<table id="tbl_agendaedit" class="table table-striped table-sm ew-desktop-table"><!-- table* -->
<?php } ?>
<?php if ($agenda->AgendaID->Visible) { // AgendaID ?>
<?php if ($agenda_edit->IsMobileOrModal) { ?>
	<div id="r_AgendaID" class="form-group row">
		<label id="elh_agenda_AgendaID" class="<?php echo $agenda_edit->LeftColumnClass ?>"><?php echo $agenda->AgendaID->caption() ?><?php echo ($agenda->AgendaID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $agenda_edit->RightColumnClass ?>"><div<?php echo $agenda->AgendaID->cellAttributes() ?>>
<span id="el_agenda_AgendaID">
<span<?php echo $agenda->AgendaID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($agenda->AgendaID->EditValue) ?>"></span>
</span>
<input type="hidden" data-table="agenda" data-field="x_AgendaID" name="x_AgendaID" id="x_AgendaID" value="<?php echo HtmlEncode($agenda->AgendaID->CurrentValue) ?>">
<?php echo $agenda->AgendaID->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_AgendaID">
		<td class="<?php echo $agenda_edit->TableLeftColumnClass ?>"><span id="elh_agenda_AgendaID"><?php echo $agenda->AgendaID->caption() ?><?php echo ($agenda->AgendaID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $agenda->AgendaID->cellAttributes() ?>>
<span id="el_agenda_AgendaID">
<span<?php echo $agenda->AgendaID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($agenda->AgendaID->EditValue) ?>"></span>
</span>
<input type="hidden" data-table="agenda" data-field="x_AgendaID" name="x_AgendaID" id="x_AgendaID" value="<?php echo HtmlEncode($agenda->AgendaID->CurrentValue) ?>">
<?php echo $agenda->AgendaID->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($agenda->CaseNumber->Visible) { // CaseNumber ?>
<?php if ($agenda_edit->IsMobileOrModal) { ?>
	<div id="r_CaseNumber" class="form-group row">
		<label id="elh_agenda_CaseNumber" for="x_CaseNumber" class="<?php echo $agenda_edit->LeftColumnClass ?>"><?php echo $agenda->CaseNumber->caption() ?><?php echo ($agenda->CaseNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $agenda_edit->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_edit->TableLeftColumnClass ?>"><span id="elh_agenda_CaseNumber"><?php echo $agenda->CaseNumber->caption() ?><?php echo ($agenda->CaseNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></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_edit->IsMobileOrModal) { ?>
	<div id="r_FileNumber" class="form-group row">
		<label id="elh_agenda_FileNumber" for="x_FileNumber" class="<?php echo $agenda_edit->LeftColumnClass ?>"><?php echo $agenda->FileNumber->caption() ?><?php echo ($agenda->FileNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $agenda_edit->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_edit->TableLeftColumnClass ?>"><span id="elh_agenda_FileNumber"><?php echo $agenda->FileNumber->caption() ?><?php echo ($agenda->FileNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></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_edit->IsMobileOrModal) { ?>
	<div id="r_EnvelopeNumber" class="form-group row">
		<label id="elh_agenda_EnvelopeNumber" for="x_EnvelopeNumber" class="<?php echo $agenda_edit->LeftColumnClass ?>"><?php echo $agenda->EnvelopeNumber->caption() ?><?php echo ($agenda->EnvelopeNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $agenda_edit->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_edit->TableLeftColumnClass ?>"><span id="elh_agenda_EnvelopeNumber"><?php echo $agenda->EnvelopeNumber->caption() ?><?php echo ($agenda->EnvelopeNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></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_edit->IsMobileOrModal) { ?>
	<div id="r_FileLocation" class="form-group row">
		<label id="elh_agenda_FileLocation" for="x_FileLocation" class="<?php echo $agenda_edit->LeftColumnClass ?>"><?php echo $agenda->FileLocation->caption() ?><?php echo ($agenda->FileLocation->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $agenda_edit->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_edit->TableLeftColumnClass ?>"><span id="elh_agenda_FileLocation"><?php echo $agenda->FileLocation->caption() ?><?php echo ($agenda->FileLocation->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></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_edit->IsMobileOrModal) { ?>
	<div id="r__Case" class="form-group row">
		<label id="elh_agenda__Case" for="x__Case" class="<?php echo $agenda_edit->LeftColumnClass ?>"><?php echo $agenda->_Case->caption() ?><?php echo ($agenda->_Case->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $agenda_edit->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_edit->TableLeftColumnClass ?>"><span id="elh_agenda__Case"><?php echo $agenda->_Case->caption() ?><?php echo ($agenda->_Case->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></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_edit->IsMobileOrModal) { ?>
	<div id="r_CaseEn" class="form-group row">
		<label id="elh_agenda_CaseEn" for="x_CaseEn" class="<?php echo $agenda_edit->LeftColumnClass ?>"><?php echo $agenda->CaseEn->caption() ?><?php echo ($agenda->CaseEn->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $agenda_edit->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_edit->TableLeftColumnClass ?>"><span id="elh_agenda_CaseEn"><?php echo $agenda->CaseEn->caption() ?><?php echo ($agenda->CaseEn->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></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_edit->IsMobileOrModal) { ?>
	<div id="r_CaseType" class="form-group row">
		<label id="elh_agenda_CaseType" for="x_CaseType" class="<?php echo $agenda_edit->LeftColumnClass ?>"><?php echo $agenda->CaseType->caption() ?><?php echo ($agenda->CaseType->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $agenda_edit->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_edit->TableLeftColumnClass ?>"><span id="elh_agenda_CaseType"><?php echo $agenda->CaseType->caption() ?><?php echo ($agenda->CaseType->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></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_edit->IsMobileOrModal) { ?>
	<div id="r_ClientName" class="form-group row">
		<label id="elh_agenda_ClientName" for="x_ClientName" class="<?php echo $agenda_edit->LeftColumnClass ?>"><?php echo $agenda->ClientName->caption() ?><?php echo ($agenda->ClientName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $agenda_edit->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_edit->TableLeftColumnClass ?>"><span id="elh_agenda_ClientName"><?php echo $agenda->ClientName->caption() ?><?php echo ($agenda->ClientName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></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_edit->IsMobileOrModal) { ?>
	<div id="r_LitigantName" class="form-group row">
		<label id="elh_agenda_LitigantName" for="x_LitigantName" class="<?php echo $agenda_edit->LeftColumnClass ?>"><?php echo $agenda->LitigantName->caption() ?><?php echo ($agenda->LitigantName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $agenda_edit->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_edit->TableLeftColumnClass ?>"><span id="elh_agenda_LitigantName"><?php echo $agenda->LitigantName->caption() ?><?php echo ($agenda->LitigantName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></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_edit->IsMobileOrModal) { ?>
	<div id="r_Notes" class="form-group row">
		<label id="elh_agenda_Notes" for="x_Notes" class="<?php echo $agenda_edit->LeftColumnClass ?>"><?php echo $agenda->Notes->caption() ?><?php echo ($agenda->Notes->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $agenda_edit->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_edit->TableLeftColumnClass ?>"><span id="elh_agenda_Notes"><?php echo $agenda->Notes->caption() ?><?php echo ($agenda->Notes->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></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_edit->IsMobileOrModal) { ?>
</div><!-- /page* -->
<?php } else { ?>
</table><!-- /table* -->
<?php } ?>
<?php if (!$agenda_edit->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $agenda_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 $agenda_edit->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
<?php if (!$agenda_edit->IsMobileOrModal) { ?>
</div><!-- /desktop -->
<?php } ?>
<?php if (!$agenda_edit->IsModal) { ?>
<?php if (!isset($agenda_edit->Pager)) $agenda_edit->Pager = new PrevNextPager($agenda_edit->StartRec, $agenda_edit->DisplayRecs, $agenda_edit->TotalRecs, $agenda_edit->AutoHidePager) ?>
<?php if ($agenda_edit->Pager->RecordCount > 0 && $agenda_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 ($agenda_edit->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $agenda_edit->pageUrl() ?>start=<?php echo $agenda_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 ($agenda_edit->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $agenda_edit->pageUrl() ?>start=<?php echo $agenda_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 $agenda_edit->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($agenda_edit->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $agenda_edit->pageUrl() ?>start=<?php echo $agenda_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 ($agenda_edit->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $agenda_edit->pageUrl() ?>start=<?php echo $agenda_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 $agenda_edit->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
</form>
<?php
$agenda_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
$agenda_edit->terminate();
?>
