<?php
namespace PHPMaker2019\project_germanos;

// Write header
WriteHeader(FALSE);

// Create page object
if (!isset($employeeperson_grid))
	$employeeperson_grid = new employeeperson_grid();

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

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

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

// Page Rendering event
$employeeperson_grid->Page_Render();
?>
<?php if (!$employeeperson->isExport()) { ?>
<script>

// Form object
var femployeepersongrid = new ew.Form("femployeepersongrid", "grid");
femployeepersongrid.formKeyCountName = '<?php echo $employeeperson_grid->FormKeyCountName ?>';

// Validate form
femployeepersongrid.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);
		var checkrow = (gridinsert) ? !this.emptyRow(infix) : true;
		if (checkrow) {
			addcnt++;
		<?php if ($employeeperson_grid->EmployeeID->Required) { ?>
			elm = this.getElements("x" + infix + "_EmployeeID");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $employeeperson->EmployeeID->caption(), $employeeperson->EmployeeID->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($employeeperson_grid->MaritalStatusID->Required) { ?>
			elm = this.getElements("x" + infix + "_MaritalStatusID");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $employeeperson->MaritalStatusID->caption(), $employeeperson->MaritalStatusID->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($employeeperson_grid->CivilStatus23->Required) { ?>
			elm = this.getElements("x" + infix + "_CivilStatus23");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $employeeperson->CivilStatus23->caption(), $employeeperson->CivilStatus23->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($employeeperson_grid->CivilStatusPlace->Required) { ?>
			elm = this.getElements("x" + infix + "_CivilStatusPlace");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $employeeperson->CivilStatusPlace->caption(), $employeeperson->CivilStatusPlace->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($employeeperson_grid->IdCard23->Required) { ?>
			elm = this.getElements("x" + infix + "_IdCard23");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $employeeperson->IdCard23->caption(), $employeeperson->IdCard23->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($employeeperson_grid->PracticingProfessionLicense23->Required) { ?>
			elm = this.getElements("x" + infix + "_PracticingProfessionLicense23");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $employeeperson->PracticingProfessionLicense23->caption(), $employeeperson->PracticingProfessionLicense23->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($employeeperson_grid->NationalId23->Required) { ?>
			elm = this.getElements("x" + infix + "_NationalId23");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $employeeperson->NationalId23->caption(), $employeeperson->NationalId23->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($employeeperson_grid->Nationality1->Required) { ?>
			elm = this.getElements("x" + infix + "_Nationality1");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $employeeperson->Nationality1->caption(), $employeeperson->Nationality1->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($employeeperson_grid->Nationality2->Required) { ?>
			elm = this.getElements("x" + infix + "_Nationality2");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $employeeperson->Nationality2->caption(), $employeeperson->Nationality2->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($employeeperson_grid->Nationality3->Required) { ?>
			elm = this.getElements("x" + infix + "_Nationality3");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $employeeperson->Nationality3->caption(), $employeeperson->Nationality3->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($employeeperson_grid->DriverLicense23->Required) { ?>
			elm = this.getElements("x" + infix + "_DriverLicense23");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $employeeperson->DriverLicense23->caption(), $employeeperson->DriverLicense23->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($employeeperson_grid->Extra23->Required) { ?>
			elm = this.getElements("x" + infix + "_Extra23");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $employeeperson->Extra23->caption(), $employeeperson->Extra23->RequiredErrorMessage)) ?>");
		<?php } ?>

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

// Check empty row
femployeepersongrid.emptyRow = function(infix) {
	var fobj = this._form;
	if (ew.valueChanged(fobj, infix, "EmployeeID", false)) return false;
	if (ew.valueChanged(fobj, infix, "MaritalStatusID", false)) return false;
	if (ew.valueChanged(fobj, infix, "CivilStatus23", false)) return false;
	if (ew.valueChanged(fobj, infix, "CivilStatusPlace", false)) return false;
	if (ew.valueChanged(fobj, infix, "IdCard23", false)) return false;
	if (ew.valueChanged(fobj, infix, "PracticingProfessionLicense23", false)) return false;
	if (ew.valueChanged(fobj, infix, "NationalId23", false)) return false;
	if (ew.valueChanged(fobj, infix, "Nationality1", false)) return false;
	if (ew.valueChanged(fobj, infix, "Nationality2", false)) return false;
	if (ew.valueChanged(fobj, infix, "Nationality3", false)) return false;
	if (ew.valueChanged(fobj, infix, "DriverLicense23", false)) return false;
	if (ew.valueChanged(fobj, infix, "Extra23", false)) return false;
	return true;
}

// Form_CustomValidate event
femployeepersongrid.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
femployeepersongrid.validateRequired = <?php echo json_encode(CLIENT_VALIDATE) ?>;

// Dynamic selection lists
femployeepersongrid.lists["x_EmployeeID"] = <?php echo $employeeperson_grid->EmployeeID->Lookup->toClientList() ?>;
femployeepersongrid.lists["x_EmployeeID"].options = <?php echo JsonEncode($employeeperson_grid->EmployeeID->lookupOptions()) ?>;
femployeepersongrid.lists["x_MaritalStatusID"] = <?php echo $employeeperson_grid->MaritalStatusID->Lookup->toClientList() ?>;
femployeepersongrid.lists["x_MaritalStatusID"].options = <?php echo JsonEncode($employeeperson_grid->MaritalStatusID->lookupOptions()) ?>;

// Form object for search
</script>
<script src="phpjs/ewscrolltable.js"></script>
<?php } ?>
<?php
$employeeperson_grid->renderOtherOptions();
?>
<?php $employeeperson_grid->showPageHeader(); ?>
<?php
$employeeperson_grid->showMessage();
?>
<?php if ($employeeperson_grid->TotalRecs > 0 || $employeeperson->CurrentAction) { ?>
<div class="card ew-card ew-grid<?php if ($employeeperson_grid->isAddOrEdit()) { ?> ew-grid-add-edit<?php } ?> employeeperson">
<?php if ($employeeperson_grid->ShowOtherOptions) { ?>
<div class="card-header ew-grid-upper-panel">
<?php $employeeperson_grid->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
<?php } ?>
<div id="femployeepersongrid" class="ew-form ew-list-form form-inline">
<div id="gmp_employeeperson" class="<?php if (IsResponsiveLayout()) { ?>table-responsive <?php } ?>card-body ew-grid-middle-panel">
<table id="tbl_employeepersongrid" class="table ew-table"><!-- .ew-table ##-->
<thead>
	<tr class="ew-table-header">
<?php

// Header row
$employeeperson_grid->RowType = ROWTYPE_HEADER;

// Render list options
$employeeperson_grid->renderListOptions();

// Render list options (header, left)
$employeeperson_grid->ListOptions->render("header", "left");
?>
<?php if ($employeeperson->EmployeeID->Visible) { // EmployeeID ?>
	<?php if ($employeeperson->sortUrl($employeeperson->EmployeeID) == "") { ?>
		<th data-name="EmployeeID" class="<?php echo $employeeperson->EmployeeID->headerCellClass() ?>"><div id="elh_employeeperson_EmployeeID" class="employeeperson_EmployeeID"><div class="ew-table-header-caption"><?php echo $employeeperson->EmployeeID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="EmployeeID" class="<?php echo $employeeperson->EmployeeID->headerCellClass() ?>"><div><div id="elh_employeeperson_EmployeeID" class="employeeperson_EmployeeID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeeperson->EmployeeID->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeeperson->EmployeeID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeeperson->EmployeeID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeeperson->MaritalStatusID->Visible) { // MaritalStatusID ?>
	<?php if ($employeeperson->sortUrl($employeeperson->MaritalStatusID) == "") { ?>
		<th data-name="MaritalStatusID" class="<?php echo $employeeperson->MaritalStatusID->headerCellClass() ?>"><div id="elh_employeeperson_MaritalStatusID" class="employeeperson_MaritalStatusID"><div class="ew-table-header-caption"><?php echo $employeeperson->MaritalStatusID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="MaritalStatusID" class="<?php echo $employeeperson->MaritalStatusID->headerCellClass() ?>"><div><div id="elh_employeeperson_MaritalStatusID" class="employeeperson_MaritalStatusID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeeperson->MaritalStatusID->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeeperson->MaritalStatusID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeeperson->MaritalStatusID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeeperson->CivilStatus23->Visible) { // CivilStatus# ?>
	<?php if ($employeeperson->sortUrl($employeeperson->CivilStatus23) == "") { ?>
		<th data-name="CivilStatus23" class="<?php echo $employeeperson->CivilStatus23->headerCellClass() ?>"><div id="elh_employeeperson_CivilStatus23" class="employeeperson_CivilStatus23"><div class="ew-table-header-caption"><?php echo $employeeperson->CivilStatus23->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="CivilStatus23" class="<?php echo $employeeperson->CivilStatus23->headerCellClass() ?>"><div><div id="elh_employeeperson_CivilStatus23" class="employeeperson_CivilStatus23">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeeperson->CivilStatus23->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeeperson->CivilStatus23->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeeperson->CivilStatus23->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeeperson->CivilStatusPlace->Visible) { // CivilStatusPlace ?>
	<?php if ($employeeperson->sortUrl($employeeperson->CivilStatusPlace) == "") { ?>
		<th data-name="CivilStatusPlace" class="<?php echo $employeeperson->CivilStatusPlace->headerCellClass() ?>"><div id="elh_employeeperson_CivilStatusPlace" class="employeeperson_CivilStatusPlace"><div class="ew-table-header-caption"><?php echo $employeeperson->CivilStatusPlace->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="CivilStatusPlace" class="<?php echo $employeeperson->CivilStatusPlace->headerCellClass() ?>"><div><div id="elh_employeeperson_CivilStatusPlace" class="employeeperson_CivilStatusPlace">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeeperson->CivilStatusPlace->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeeperson->CivilStatusPlace->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeeperson->CivilStatusPlace->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeeperson->IdCard23->Visible) { // IdCard# ?>
	<?php if ($employeeperson->sortUrl($employeeperson->IdCard23) == "") { ?>
		<th data-name="IdCard23" class="<?php echo $employeeperson->IdCard23->headerCellClass() ?>"><div id="elh_employeeperson_IdCard23" class="employeeperson_IdCard23"><div class="ew-table-header-caption"><?php echo $employeeperson->IdCard23->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="IdCard23" class="<?php echo $employeeperson->IdCard23->headerCellClass() ?>"><div><div id="elh_employeeperson_IdCard23" class="employeeperson_IdCard23">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeeperson->IdCard23->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeeperson->IdCard23->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeeperson->IdCard23->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeeperson->PracticingProfessionLicense23->Visible) { // PracticingProfessionLicense# ?>
	<?php if ($employeeperson->sortUrl($employeeperson->PracticingProfessionLicense23) == "") { ?>
		<th data-name="PracticingProfessionLicense23" class="<?php echo $employeeperson->PracticingProfessionLicense23->headerCellClass() ?>"><div id="elh_employeeperson_PracticingProfessionLicense23" class="employeeperson_PracticingProfessionLicense23"><div class="ew-table-header-caption"><?php echo $employeeperson->PracticingProfessionLicense23->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="PracticingProfessionLicense23" class="<?php echo $employeeperson->PracticingProfessionLicense23->headerCellClass() ?>"><div><div id="elh_employeeperson_PracticingProfessionLicense23" class="employeeperson_PracticingProfessionLicense23">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeeperson->PracticingProfessionLicense23->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeeperson->PracticingProfessionLicense23->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeeperson->PracticingProfessionLicense23->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeeperson->NationalId23->Visible) { // NationalId# ?>
	<?php if ($employeeperson->sortUrl($employeeperson->NationalId23) == "") { ?>
		<th data-name="NationalId23" class="<?php echo $employeeperson->NationalId23->headerCellClass() ?>"><div id="elh_employeeperson_NationalId23" class="employeeperson_NationalId23"><div class="ew-table-header-caption"><?php echo $employeeperson->NationalId23->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="NationalId23" class="<?php echo $employeeperson->NationalId23->headerCellClass() ?>"><div><div id="elh_employeeperson_NationalId23" class="employeeperson_NationalId23">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeeperson->NationalId23->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeeperson->NationalId23->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeeperson->NationalId23->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeeperson->Nationality1->Visible) { // Nationality1 ?>
	<?php if ($employeeperson->sortUrl($employeeperson->Nationality1) == "") { ?>
		<th data-name="Nationality1" class="<?php echo $employeeperson->Nationality1->headerCellClass() ?>"><div id="elh_employeeperson_Nationality1" class="employeeperson_Nationality1"><div class="ew-table-header-caption"><?php echo $employeeperson->Nationality1->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Nationality1" class="<?php echo $employeeperson->Nationality1->headerCellClass() ?>"><div><div id="elh_employeeperson_Nationality1" class="employeeperson_Nationality1">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeeperson->Nationality1->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeeperson->Nationality1->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeeperson->Nationality1->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeeperson->Nationality2->Visible) { // Nationality2 ?>
	<?php if ($employeeperson->sortUrl($employeeperson->Nationality2) == "") { ?>
		<th data-name="Nationality2" class="<?php echo $employeeperson->Nationality2->headerCellClass() ?>"><div id="elh_employeeperson_Nationality2" class="employeeperson_Nationality2"><div class="ew-table-header-caption"><?php echo $employeeperson->Nationality2->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Nationality2" class="<?php echo $employeeperson->Nationality2->headerCellClass() ?>"><div><div id="elh_employeeperson_Nationality2" class="employeeperson_Nationality2">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeeperson->Nationality2->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeeperson->Nationality2->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeeperson->Nationality2->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeeperson->Nationality3->Visible) { // Nationality3 ?>
	<?php if ($employeeperson->sortUrl($employeeperson->Nationality3) == "") { ?>
		<th data-name="Nationality3" class="<?php echo $employeeperson->Nationality3->headerCellClass() ?>"><div id="elh_employeeperson_Nationality3" class="employeeperson_Nationality3"><div class="ew-table-header-caption"><?php echo $employeeperson->Nationality3->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Nationality3" class="<?php echo $employeeperson->Nationality3->headerCellClass() ?>"><div><div id="elh_employeeperson_Nationality3" class="employeeperson_Nationality3">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeeperson->Nationality3->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeeperson->Nationality3->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeeperson->Nationality3->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeeperson->DriverLicense23->Visible) { // DriverLicense# ?>
	<?php if ($employeeperson->sortUrl($employeeperson->DriverLicense23) == "") { ?>
		<th data-name="DriverLicense23" class="<?php echo $employeeperson->DriverLicense23->headerCellClass() ?>"><div id="elh_employeeperson_DriverLicense23" class="employeeperson_DriverLicense23"><div class="ew-table-header-caption"><?php echo $employeeperson->DriverLicense23->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="DriverLicense23" class="<?php echo $employeeperson->DriverLicense23->headerCellClass() ?>"><div><div id="elh_employeeperson_DriverLicense23" class="employeeperson_DriverLicense23">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeeperson->DriverLicense23->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeeperson->DriverLicense23->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeeperson->DriverLicense23->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeeperson->Extra23->Visible) { // Extra# ?>
	<?php if ($employeeperson->sortUrl($employeeperson->Extra23) == "") { ?>
		<th data-name="Extra23" class="<?php echo $employeeperson->Extra23->headerCellClass() ?>"><div id="elh_employeeperson_Extra23" class="employeeperson_Extra23"><div class="ew-table-header-caption"><?php echo $employeeperson->Extra23->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Extra23" class="<?php echo $employeeperson->Extra23->headerCellClass() ?>"><div><div id="elh_employeeperson_Extra23" class="employeeperson_Extra23">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeeperson->Extra23->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeeperson->Extra23->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeeperson->Extra23->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php

// Render list options (header, right)
$employeeperson_grid->ListOptions->render("header", "right");
?>
	</tr>
</thead>
<tbody>
<?php
$employeeperson_grid->StartRec = 1;
$employeeperson_grid->StopRec = $employeeperson_grid->TotalRecs; // Show all records

// Restore number of post back records
if ($CurrentForm && $employeeperson_grid->EventCancelled) {
	$CurrentForm->Index = -1;
	if ($CurrentForm->hasValue($employeeperson_grid->FormKeyCountName) && ($employeeperson->isGridAdd() || $employeeperson->isGridEdit() || $employeeperson->isConfirm())) {
		$employeeperson_grid->KeyCount = $CurrentForm->getValue($employeeperson_grid->FormKeyCountName);
		$employeeperson_grid->StopRec = $employeeperson_grid->StartRec + $employeeperson_grid->KeyCount - 1;
	}
}
$employeeperson_grid->RecCnt = $employeeperson_grid->StartRec - 1;
if ($employeeperson_grid->Recordset && !$employeeperson_grid->Recordset->EOF) {
	$employeeperson_grid->Recordset->moveFirst();
	$selectLimit = $employeeperson_grid->UseSelectLimit;
	if (!$selectLimit && $employeeperson_grid->StartRec > 1)
		$employeeperson_grid->Recordset->move($employeeperson_grid->StartRec - 1);
} elseif (!$employeeperson->AllowAddDeleteRow && $employeeperson_grid->StopRec == 0) {
	$employeeperson_grid->StopRec = $employeeperson->GridAddRowCount;
}

// Initialize aggregate
$employeeperson->RowType = ROWTYPE_AGGREGATEINIT;
$employeeperson->resetAttributes();
$employeeperson_grid->renderRow();
if ($employeeperson->isGridAdd())
	$employeeperson_grid->RowIndex = 0;
if ($employeeperson->isGridEdit())
	$employeeperson_grid->RowIndex = 0;
while ($employeeperson_grid->RecCnt < $employeeperson_grid->StopRec) {
	$employeeperson_grid->RecCnt++;
	if ($employeeperson_grid->RecCnt >= $employeeperson_grid->StartRec) {
		$employeeperson_grid->RowCnt++;
		if ($employeeperson->isGridAdd() || $employeeperson->isGridEdit() || $employeeperson->isConfirm()) {
			$employeeperson_grid->RowIndex++;
			$CurrentForm->Index = $employeeperson_grid->RowIndex;
			if ($CurrentForm->hasValue($employeeperson_grid->FormActionName) && $employeeperson_grid->EventCancelled)
				$employeeperson_grid->RowAction = strval($CurrentForm->getValue($employeeperson_grid->FormActionName));
			elseif ($employeeperson->isGridAdd())
				$employeeperson_grid->RowAction = "insert";
			else
				$employeeperson_grid->RowAction = "";
		}

		// Set up key count
		$employeeperson_grid->KeyCount = $employeeperson_grid->RowIndex;

		// Init row class and style
		$employeeperson->resetAttributes();
		$employeeperson->CssClass = "";
		if ($employeeperson->isGridAdd()) {
			if ($employeeperson->CurrentMode == "copy") {
				$employeeperson_grid->loadRowValues($employeeperson_grid->Recordset); // Load row values
				$employeeperson_grid->setRecordKey($employeeperson_grid->RowOldKey, $employeeperson_grid->Recordset); // Set old record key
			} else {
				$employeeperson_grid->loadRowValues(); // Load default values
				$employeeperson_grid->RowOldKey = ""; // Clear old key value
			}
		} else {
			$employeeperson_grid->loadRowValues($employeeperson_grid->Recordset); // Load row values
		}
		$employeeperson->RowType = ROWTYPE_VIEW; // Render view
		if ($employeeperson->isGridAdd()) // Grid add
			$employeeperson->RowType = ROWTYPE_ADD; // Render add
		if ($employeeperson->isGridAdd() && $employeeperson->EventCancelled && !$CurrentForm->hasValue("k_blankrow")) // Insert failed
			$employeeperson_grid->restoreCurrentRowFormValues($employeeperson_grid->RowIndex); // Restore form values
		if ($employeeperson->isGridEdit()) { // Grid edit
			if ($employeeperson->EventCancelled)
				$employeeperson_grid->restoreCurrentRowFormValues($employeeperson_grid->RowIndex); // Restore form values
			if ($employeeperson_grid->RowAction == "insert")
				$employeeperson->RowType = ROWTYPE_ADD; // Render add
			else
				$employeeperson->RowType = ROWTYPE_EDIT; // Render edit
		}
		if ($employeeperson->isGridEdit() && ($employeeperson->RowType == ROWTYPE_EDIT || $employeeperson->RowType == ROWTYPE_ADD) && $employeeperson->EventCancelled) // Update failed
			$employeeperson_grid->restoreCurrentRowFormValues($employeeperson_grid->RowIndex); // Restore form values
		if ($employeeperson->RowType == ROWTYPE_EDIT) // Edit row
			$employeeperson_grid->EditRowCnt++;
		if ($employeeperson->isConfirm()) // Confirm row
			$employeeperson_grid->restoreCurrentRowFormValues($employeeperson_grid->RowIndex); // Restore form values

		// Set up row id / data-rowindex
		$employeeperson->RowAttrs = array_merge($employeeperson->RowAttrs, array('data-rowindex'=>$employeeperson_grid->RowCnt, 'id'=>'r' . $employeeperson_grid->RowCnt . '_employeeperson', 'data-rowtype'=>$employeeperson->RowType));

		// Render row
		$employeeperson_grid->renderRow();

		// Render list options
		$employeeperson_grid->renderListOptions();

		// Skip delete row / empty row for confirm page
		if ($employeeperson_grid->RowAction <> "delete" && $employeeperson_grid->RowAction <> "insertdelete" && !($employeeperson_grid->RowAction == "insert" && $employeeperson->isConfirm() && $employeeperson_grid->emptyRow())) {
?>
	<tr<?php echo $employeeperson->rowAttributes() ?>>
<?php

// Render list options (body, left)
$employeeperson_grid->ListOptions->render("body", "left", $employeeperson_grid->RowCnt);
?>
	<?php if ($employeeperson->EmployeeID->Visible) { // EmployeeID ?>
		<td data-name="EmployeeID"<?php echo $employeeperson->EmployeeID->cellAttributes() ?>>
<?php if ($employeeperson->RowType == ROWTYPE_ADD) { // Add record ?>
<?php if ($employeeperson->EmployeeID->getSessionValue() <> "") { ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_EmployeeID" class="form-group employeeperson_EmployeeID">
<span<?php echo $employeeperson->EmployeeID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeeperson->EmployeeID->ViewValue) ?>"></span>
</span>
<input type="hidden" id="x<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" name="x<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" value="<?php echo HtmlEncode($employeeperson->EmployeeID->CurrentValue) ?>">
<?php } else { ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_EmployeeID" class="form-group employeeperson_EmployeeID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="employeeperson" data-field="x_EmployeeID" data-value-separator="<?php echo $employeeperson->EmployeeID->displayValueSeparatorAttribute() ?>" id="x<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" name="x<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID"<?php echo $employeeperson->EmployeeID->editAttributes() ?>>
		<?php echo $employeeperson->EmployeeID->selectOptionListHtml("x<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID") ?>
	</select>
</div>
<?php echo $employeeperson->EmployeeID->Lookup->getParamTag("p_x" . $employeeperson_grid->RowIndex . "_EmployeeID") ?>
</span>
<?php } ?>
<input type="hidden" data-table="employeeperson" data-field="x_EmployeeID" name="o<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" id="o<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" value="<?php echo HtmlEncode($employeeperson->EmployeeID->OldValue) ?>">
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_EDIT) { // Edit record ?>
<?php if ($employeeperson->EmployeeID->getSessionValue() <> "") { ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_EmployeeID" class="form-group employeeperson_EmployeeID">
<span<?php echo $employeeperson->EmployeeID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeeperson->EmployeeID->ViewValue) ?>"></span>
</span>
<input type="hidden" id="x<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" name="x<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" value="<?php echo HtmlEncode($employeeperson->EmployeeID->CurrentValue) ?>">
<?php } else { ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_EmployeeID" class="form-group employeeperson_EmployeeID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="employeeperson" data-field="x_EmployeeID" data-value-separator="<?php echo $employeeperson->EmployeeID->displayValueSeparatorAttribute() ?>" id="x<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" name="x<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID"<?php echo $employeeperson->EmployeeID->editAttributes() ?>>
		<?php echo $employeeperson->EmployeeID->selectOptionListHtml("x<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID") ?>
	</select>
</div>
<?php echo $employeeperson->EmployeeID->Lookup->getParamTag("p_x" . $employeeperson_grid->RowIndex . "_EmployeeID") ?>
</span>
<?php } ?>
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_EmployeeID" class="employeeperson_EmployeeID">
<span<?php echo $employeeperson->EmployeeID->viewAttributes() ?>>
<?php echo $employeeperson->EmployeeID->getViewValue() ?></span>
</span>
<?php if (!$employeeperson->isConfirm()) { ?>
<input type="hidden" data-table="employeeperson" data-field="x_EmployeeID" name="x<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" id="x<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" value="<?php echo HtmlEncode($employeeperson->EmployeeID->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_EmployeeID" name="o<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" id="o<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" value="<?php echo HtmlEncode($employeeperson->EmployeeID->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeeperson" data-field="x_EmployeeID" name="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" id="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" value="<?php echo HtmlEncode($employeeperson->EmployeeID->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_EmployeeID" name="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" id="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" value="<?php echo HtmlEncode($employeeperson->EmployeeID->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_ADD) { // Add record ?>
<input type="hidden" data-table="employeeperson" data-field="x_EmployeePersonID" name="x<?php echo $employeeperson_grid->RowIndex ?>_EmployeePersonID" id="x<?php echo $employeeperson_grid->RowIndex ?>_EmployeePersonID" value="<?php echo HtmlEncode($employeeperson->EmployeePersonID->CurrentValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_EmployeePersonID" name="o<?php echo $employeeperson_grid->RowIndex ?>_EmployeePersonID" id="o<?php echo $employeeperson_grid->RowIndex ?>_EmployeePersonID" value="<?php echo HtmlEncode($employeeperson->EmployeePersonID->OldValue) ?>">
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_EDIT || $employeeperson->CurrentMode == "edit") { ?>
<input type="hidden" data-table="employeeperson" data-field="x_EmployeePersonID" name="x<?php echo $employeeperson_grid->RowIndex ?>_EmployeePersonID" id="x<?php echo $employeeperson_grid->RowIndex ?>_EmployeePersonID" value="<?php echo HtmlEncode($employeeperson->EmployeePersonID->CurrentValue) ?>">
<?php } ?>
	<?php if ($employeeperson->MaritalStatusID->Visible) { // MaritalStatusID ?>
		<td data-name="MaritalStatusID"<?php echo $employeeperson->MaritalStatusID->cellAttributes() ?>>
<?php if ($employeeperson->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_MaritalStatusID" class="form-group employeeperson_MaritalStatusID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="employeeperson" data-field="x_MaritalStatusID" data-value-separator="<?php echo $employeeperson->MaritalStatusID->displayValueSeparatorAttribute() ?>" id="x<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID" name="x<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID"<?php echo $employeeperson->MaritalStatusID->editAttributes() ?>>
		<?php echo $employeeperson->MaritalStatusID->selectOptionListHtml("x<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID") ?>
	</select>
</div>
<?php echo $employeeperson->MaritalStatusID->Lookup->getParamTag("p_x" . $employeeperson_grid->RowIndex . "_MaritalStatusID") ?>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_MaritalStatusID" name="o<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID" id="o<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID" value="<?php echo HtmlEncode($employeeperson->MaritalStatusID->OldValue) ?>">
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_MaritalStatusID" class="form-group employeeperson_MaritalStatusID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="employeeperson" data-field="x_MaritalStatusID" data-value-separator="<?php echo $employeeperson->MaritalStatusID->displayValueSeparatorAttribute() ?>" id="x<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID" name="x<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID"<?php echo $employeeperson->MaritalStatusID->editAttributes() ?>>
		<?php echo $employeeperson->MaritalStatusID->selectOptionListHtml("x<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID") ?>
	</select>
</div>
<?php echo $employeeperson->MaritalStatusID->Lookup->getParamTag("p_x" . $employeeperson_grid->RowIndex . "_MaritalStatusID") ?>
</span>
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_MaritalStatusID" class="employeeperson_MaritalStatusID">
<span<?php echo $employeeperson->MaritalStatusID->viewAttributes() ?>>
<?php echo $employeeperson->MaritalStatusID->getViewValue() ?></span>
</span>
<?php if (!$employeeperson->isConfirm()) { ?>
<input type="hidden" data-table="employeeperson" data-field="x_MaritalStatusID" name="x<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID" id="x<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID" value="<?php echo HtmlEncode($employeeperson->MaritalStatusID->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_MaritalStatusID" name="o<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID" id="o<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID" value="<?php echo HtmlEncode($employeeperson->MaritalStatusID->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeeperson" data-field="x_MaritalStatusID" name="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID" id="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID" value="<?php echo HtmlEncode($employeeperson->MaritalStatusID->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_MaritalStatusID" name="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID" id="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID" value="<?php echo HtmlEncode($employeeperson->MaritalStatusID->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($employeeperson->CivilStatus23->Visible) { // CivilStatus# ?>
		<td data-name="CivilStatus23"<?php echo $employeeperson->CivilStatus23->cellAttributes() ?>>
<?php if ($employeeperson->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_CivilStatus23" class="form-group employeeperson_CivilStatus23">
<input type="text" data-table="employeeperson" data-field="x_CivilStatus23" name="x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatus23" id="x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatus23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->CivilStatus23->getPlaceHolder()) ?>" value="<?php echo $employeeperson->CivilStatus23->EditValue ?>"<?php echo $employeeperson->CivilStatus23->editAttributes() ?>>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_CivilStatus23" name="o<?php echo $employeeperson_grid->RowIndex ?>_CivilStatus23" id="o<?php echo $employeeperson_grid->RowIndex ?>_CivilStatus23" value="<?php echo HtmlEncode($employeeperson->CivilStatus23->OldValue) ?>">
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_CivilStatus23" class="form-group employeeperson_CivilStatus23">
<input type="text" data-table="employeeperson" data-field="x_CivilStatus23" name="x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatus23" id="x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatus23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->CivilStatus23->getPlaceHolder()) ?>" value="<?php echo $employeeperson->CivilStatus23->EditValue ?>"<?php echo $employeeperson->CivilStatus23->editAttributes() ?>>
</span>
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_CivilStatus23" class="employeeperson_CivilStatus23">
<span<?php echo $employeeperson->CivilStatus23->viewAttributes() ?>>
<?php echo $employeeperson->CivilStatus23->getViewValue() ?></span>
</span>
<?php if (!$employeeperson->isConfirm()) { ?>
<input type="hidden" data-table="employeeperson" data-field="x_CivilStatus23" name="x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatus23" id="x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatus23" value="<?php echo HtmlEncode($employeeperson->CivilStatus23->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_CivilStatus23" name="o<?php echo $employeeperson_grid->RowIndex ?>_CivilStatus23" id="o<?php echo $employeeperson_grid->RowIndex ?>_CivilStatus23" value="<?php echo HtmlEncode($employeeperson->CivilStatus23->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeeperson" data-field="x_CivilStatus23" name="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatus23" id="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatus23" value="<?php echo HtmlEncode($employeeperson->CivilStatus23->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_CivilStatus23" name="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_CivilStatus23" id="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_CivilStatus23" value="<?php echo HtmlEncode($employeeperson->CivilStatus23->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($employeeperson->CivilStatusPlace->Visible) { // CivilStatusPlace ?>
		<td data-name="CivilStatusPlace"<?php echo $employeeperson->CivilStatusPlace->cellAttributes() ?>>
<?php if ($employeeperson->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_CivilStatusPlace" class="form-group employeeperson_CivilStatusPlace">
<input type="text" data-table="employeeperson" data-field="x_CivilStatusPlace" name="x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatusPlace" id="x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatusPlace" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->CivilStatusPlace->getPlaceHolder()) ?>" value="<?php echo $employeeperson->CivilStatusPlace->EditValue ?>"<?php echo $employeeperson->CivilStatusPlace->editAttributes() ?>>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_CivilStatusPlace" name="o<?php echo $employeeperson_grid->RowIndex ?>_CivilStatusPlace" id="o<?php echo $employeeperson_grid->RowIndex ?>_CivilStatusPlace" value="<?php echo HtmlEncode($employeeperson->CivilStatusPlace->OldValue) ?>">
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_CivilStatusPlace" class="form-group employeeperson_CivilStatusPlace">
<input type="text" data-table="employeeperson" data-field="x_CivilStatusPlace" name="x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatusPlace" id="x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatusPlace" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->CivilStatusPlace->getPlaceHolder()) ?>" value="<?php echo $employeeperson->CivilStatusPlace->EditValue ?>"<?php echo $employeeperson->CivilStatusPlace->editAttributes() ?>>
</span>
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_CivilStatusPlace" class="employeeperson_CivilStatusPlace">
<span<?php echo $employeeperson->CivilStatusPlace->viewAttributes() ?>>
<?php echo $employeeperson->CivilStatusPlace->getViewValue() ?></span>
</span>
<?php if (!$employeeperson->isConfirm()) { ?>
<input type="hidden" data-table="employeeperson" data-field="x_CivilStatusPlace" name="x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatusPlace" id="x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatusPlace" value="<?php echo HtmlEncode($employeeperson->CivilStatusPlace->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_CivilStatusPlace" name="o<?php echo $employeeperson_grid->RowIndex ?>_CivilStatusPlace" id="o<?php echo $employeeperson_grid->RowIndex ?>_CivilStatusPlace" value="<?php echo HtmlEncode($employeeperson->CivilStatusPlace->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeeperson" data-field="x_CivilStatusPlace" name="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatusPlace" id="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatusPlace" value="<?php echo HtmlEncode($employeeperson->CivilStatusPlace->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_CivilStatusPlace" name="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_CivilStatusPlace" id="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_CivilStatusPlace" value="<?php echo HtmlEncode($employeeperson->CivilStatusPlace->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($employeeperson->IdCard23->Visible) { // IdCard# ?>
		<td data-name="IdCard23"<?php echo $employeeperson->IdCard23->cellAttributes() ?>>
<?php if ($employeeperson->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_IdCard23" class="form-group employeeperson_IdCard23">
<input type="text" data-table="employeeperson" data-field="x_IdCard23" name="x<?php echo $employeeperson_grid->RowIndex ?>_IdCard23" id="x<?php echo $employeeperson_grid->RowIndex ?>_IdCard23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->IdCard23->getPlaceHolder()) ?>" value="<?php echo $employeeperson->IdCard23->EditValue ?>"<?php echo $employeeperson->IdCard23->editAttributes() ?>>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_IdCard23" name="o<?php echo $employeeperson_grid->RowIndex ?>_IdCard23" id="o<?php echo $employeeperson_grid->RowIndex ?>_IdCard23" value="<?php echo HtmlEncode($employeeperson->IdCard23->OldValue) ?>">
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_IdCard23" class="form-group employeeperson_IdCard23">
<input type="text" data-table="employeeperson" data-field="x_IdCard23" name="x<?php echo $employeeperson_grid->RowIndex ?>_IdCard23" id="x<?php echo $employeeperson_grid->RowIndex ?>_IdCard23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->IdCard23->getPlaceHolder()) ?>" value="<?php echo $employeeperson->IdCard23->EditValue ?>"<?php echo $employeeperson->IdCard23->editAttributes() ?>>
</span>
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_IdCard23" class="employeeperson_IdCard23">
<span<?php echo $employeeperson->IdCard23->viewAttributes() ?>>
<?php echo $employeeperson->IdCard23->getViewValue() ?></span>
</span>
<?php if (!$employeeperson->isConfirm()) { ?>
<input type="hidden" data-table="employeeperson" data-field="x_IdCard23" name="x<?php echo $employeeperson_grid->RowIndex ?>_IdCard23" id="x<?php echo $employeeperson_grid->RowIndex ?>_IdCard23" value="<?php echo HtmlEncode($employeeperson->IdCard23->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_IdCard23" name="o<?php echo $employeeperson_grid->RowIndex ?>_IdCard23" id="o<?php echo $employeeperson_grid->RowIndex ?>_IdCard23" value="<?php echo HtmlEncode($employeeperson->IdCard23->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeeperson" data-field="x_IdCard23" name="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_IdCard23" id="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_IdCard23" value="<?php echo HtmlEncode($employeeperson->IdCard23->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_IdCard23" name="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_IdCard23" id="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_IdCard23" value="<?php echo HtmlEncode($employeeperson->IdCard23->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($employeeperson->PracticingProfessionLicense23->Visible) { // PracticingProfessionLicense# ?>
		<td data-name="PracticingProfessionLicense23"<?php echo $employeeperson->PracticingProfessionLicense23->cellAttributes() ?>>
<?php if ($employeeperson->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_PracticingProfessionLicense23" class="form-group employeeperson_PracticingProfessionLicense23">
<input type="text" data-table="employeeperson" data-field="x_PracticingProfessionLicense23" name="x<?php echo $employeeperson_grid->RowIndex ?>_PracticingProfessionLicense23" id="x<?php echo $employeeperson_grid->RowIndex ?>_PracticingProfessionLicense23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->PracticingProfessionLicense23->getPlaceHolder()) ?>" value="<?php echo $employeeperson->PracticingProfessionLicense23->EditValue ?>"<?php echo $employeeperson->PracticingProfessionLicense23->editAttributes() ?>>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_PracticingProfessionLicense23" name="o<?php echo $employeeperson_grid->RowIndex ?>_PracticingProfessionLicense23" id="o<?php echo $employeeperson_grid->RowIndex ?>_PracticingProfessionLicense23" value="<?php echo HtmlEncode($employeeperson->PracticingProfessionLicense23->OldValue) ?>">
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_PracticingProfessionLicense23" class="form-group employeeperson_PracticingProfessionLicense23">
<input type="text" data-table="employeeperson" data-field="x_PracticingProfessionLicense23" name="x<?php echo $employeeperson_grid->RowIndex ?>_PracticingProfessionLicense23" id="x<?php echo $employeeperson_grid->RowIndex ?>_PracticingProfessionLicense23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->PracticingProfessionLicense23->getPlaceHolder()) ?>" value="<?php echo $employeeperson->PracticingProfessionLicense23->EditValue ?>"<?php echo $employeeperson->PracticingProfessionLicense23->editAttributes() ?>>
</span>
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_PracticingProfessionLicense23" class="employeeperson_PracticingProfessionLicense23">
<span<?php echo $employeeperson->PracticingProfessionLicense23->viewAttributes() ?>>
<?php echo $employeeperson->PracticingProfessionLicense23->getViewValue() ?></span>
</span>
<?php if (!$employeeperson->isConfirm()) { ?>
<input type="hidden" data-table="employeeperson" data-field="x_PracticingProfessionLicense23" name="x<?php echo $employeeperson_grid->RowIndex ?>_PracticingProfessionLicense23" id="x<?php echo $employeeperson_grid->RowIndex ?>_PracticingProfessionLicense23" value="<?php echo HtmlEncode($employeeperson->PracticingProfessionLicense23->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_PracticingProfessionLicense23" name="o<?php echo $employeeperson_grid->RowIndex ?>_PracticingProfessionLicense23" id="o<?php echo $employeeperson_grid->RowIndex ?>_PracticingProfessionLicense23" value="<?php echo HtmlEncode($employeeperson->PracticingProfessionLicense23->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeeperson" data-field="x_PracticingProfessionLicense23" name="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_PracticingProfessionLicense23" id="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_PracticingProfessionLicense23" value="<?php echo HtmlEncode($employeeperson->PracticingProfessionLicense23->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_PracticingProfessionLicense23" name="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_PracticingProfessionLicense23" id="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_PracticingProfessionLicense23" value="<?php echo HtmlEncode($employeeperson->PracticingProfessionLicense23->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($employeeperson->NationalId23->Visible) { // NationalId# ?>
		<td data-name="NationalId23"<?php echo $employeeperson->NationalId23->cellAttributes() ?>>
<?php if ($employeeperson->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_NationalId23" class="form-group employeeperson_NationalId23">
<input type="text" data-table="employeeperson" data-field="x_NationalId23" name="x<?php echo $employeeperson_grid->RowIndex ?>_NationalId23" id="x<?php echo $employeeperson_grid->RowIndex ?>_NationalId23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->NationalId23->getPlaceHolder()) ?>" value="<?php echo $employeeperson->NationalId23->EditValue ?>"<?php echo $employeeperson->NationalId23->editAttributes() ?>>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_NationalId23" name="o<?php echo $employeeperson_grid->RowIndex ?>_NationalId23" id="o<?php echo $employeeperson_grid->RowIndex ?>_NationalId23" value="<?php echo HtmlEncode($employeeperson->NationalId23->OldValue) ?>">
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_NationalId23" class="form-group employeeperson_NationalId23">
<input type="text" data-table="employeeperson" data-field="x_NationalId23" name="x<?php echo $employeeperson_grid->RowIndex ?>_NationalId23" id="x<?php echo $employeeperson_grid->RowIndex ?>_NationalId23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->NationalId23->getPlaceHolder()) ?>" value="<?php echo $employeeperson->NationalId23->EditValue ?>"<?php echo $employeeperson->NationalId23->editAttributes() ?>>
</span>
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_NationalId23" class="employeeperson_NationalId23">
<span<?php echo $employeeperson->NationalId23->viewAttributes() ?>>
<?php echo $employeeperson->NationalId23->getViewValue() ?></span>
</span>
<?php if (!$employeeperson->isConfirm()) { ?>
<input type="hidden" data-table="employeeperson" data-field="x_NationalId23" name="x<?php echo $employeeperson_grid->RowIndex ?>_NationalId23" id="x<?php echo $employeeperson_grid->RowIndex ?>_NationalId23" value="<?php echo HtmlEncode($employeeperson->NationalId23->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_NationalId23" name="o<?php echo $employeeperson_grid->RowIndex ?>_NationalId23" id="o<?php echo $employeeperson_grid->RowIndex ?>_NationalId23" value="<?php echo HtmlEncode($employeeperson->NationalId23->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeeperson" data-field="x_NationalId23" name="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_NationalId23" id="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_NationalId23" value="<?php echo HtmlEncode($employeeperson->NationalId23->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_NationalId23" name="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_NationalId23" id="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_NationalId23" value="<?php echo HtmlEncode($employeeperson->NationalId23->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($employeeperson->Nationality1->Visible) { // Nationality1 ?>
		<td data-name="Nationality1"<?php echo $employeeperson->Nationality1->cellAttributes() ?>>
<?php if ($employeeperson->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_Nationality1" class="form-group employeeperson_Nationality1">
<input type="text" data-table="employeeperson" data-field="x_Nationality1" name="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality1" id="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality1" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->Nationality1->getPlaceHolder()) ?>" value="<?php echo $employeeperson->Nationality1->EditValue ?>"<?php echo $employeeperson->Nationality1->editAttributes() ?>>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_Nationality1" name="o<?php echo $employeeperson_grid->RowIndex ?>_Nationality1" id="o<?php echo $employeeperson_grid->RowIndex ?>_Nationality1" value="<?php echo HtmlEncode($employeeperson->Nationality1->OldValue) ?>">
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_Nationality1" class="form-group employeeperson_Nationality1">
<input type="text" data-table="employeeperson" data-field="x_Nationality1" name="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality1" id="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality1" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->Nationality1->getPlaceHolder()) ?>" value="<?php echo $employeeperson->Nationality1->EditValue ?>"<?php echo $employeeperson->Nationality1->editAttributes() ?>>
</span>
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_Nationality1" class="employeeperson_Nationality1">
<span<?php echo $employeeperson->Nationality1->viewAttributes() ?>>
<?php echo $employeeperson->Nationality1->getViewValue() ?></span>
</span>
<?php if (!$employeeperson->isConfirm()) { ?>
<input type="hidden" data-table="employeeperson" data-field="x_Nationality1" name="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality1" id="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality1" value="<?php echo HtmlEncode($employeeperson->Nationality1->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_Nationality1" name="o<?php echo $employeeperson_grid->RowIndex ?>_Nationality1" id="o<?php echo $employeeperson_grid->RowIndex ?>_Nationality1" value="<?php echo HtmlEncode($employeeperson->Nationality1->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeeperson" data-field="x_Nationality1" name="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_Nationality1" id="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_Nationality1" value="<?php echo HtmlEncode($employeeperson->Nationality1->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_Nationality1" name="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_Nationality1" id="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_Nationality1" value="<?php echo HtmlEncode($employeeperson->Nationality1->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($employeeperson->Nationality2->Visible) { // Nationality2 ?>
		<td data-name="Nationality2"<?php echo $employeeperson->Nationality2->cellAttributes() ?>>
<?php if ($employeeperson->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_Nationality2" class="form-group employeeperson_Nationality2">
<input type="text" data-table="employeeperson" data-field="x_Nationality2" name="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality2" id="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality2" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->Nationality2->getPlaceHolder()) ?>" value="<?php echo $employeeperson->Nationality2->EditValue ?>"<?php echo $employeeperson->Nationality2->editAttributes() ?>>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_Nationality2" name="o<?php echo $employeeperson_grid->RowIndex ?>_Nationality2" id="o<?php echo $employeeperson_grid->RowIndex ?>_Nationality2" value="<?php echo HtmlEncode($employeeperson->Nationality2->OldValue) ?>">
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_Nationality2" class="form-group employeeperson_Nationality2">
<input type="text" data-table="employeeperson" data-field="x_Nationality2" name="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality2" id="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality2" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->Nationality2->getPlaceHolder()) ?>" value="<?php echo $employeeperson->Nationality2->EditValue ?>"<?php echo $employeeperson->Nationality2->editAttributes() ?>>
</span>
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_Nationality2" class="employeeperson_Nationality2">
<span<?php echo $employeeperson->Nationality2->viewAttributes() ?>>
<?php echo $employeeperson->Nationality2->getViewValue() ?></span>
</span>
<?php if (!$employeeperson->isConfirm()) { ?>
<input type="hidden" data-table="employeeperson" data-field="x_Nationality2" name="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality2" id="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality2" value="<?php echo HtmlEncode($employeeperson->Nationality2->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_Nationality2" name="o<?php echo $employeeperson_grid->RowIndex ?>_Nationality2" id="o<?php echo $employeeperson_grid->RowIndex ?>_Nationality2" value="<?php echo HtmlEncode($employeeperson->Nationality2->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeeperson" data-field="x_Nationality2" name="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_Nationality2" id="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_Nationality2" value="<?php echo HtmlEncode($employeeperson->Nationality2->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_Nationality2" name="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_Nationality2" id="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_Nationality2" value="<?php echo HtmlEncode($employeeperson->Nationality2->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($employeeperson->Nationality3->Visible) { // Nationality3 ?>
		<td data-name="Nationality3"<?php echo $employeeperson->Nationality3->cellAttributes() ?>>
<?php if ($employeeperson->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_Nationality3" class="form-group employeeperson_Nationality3">
<input type="text" data-table="employeeperson" data-field="x_Nationality3" name="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality3" id="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality3" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->Nationality3->getPlaceHolder()) ?>" value="<?php echo $employeeperson->Nationality3->EditValue ?>"<?php echo $employeeperson->Nationality3->editAttributes() ?>>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_Nationality3" name="o<?php echo $employeeperson_grid->RowIndex ?>_Nationality3" id="o<?php echo $employeeperson_grid->RowIndex ?>_Nationality3" value="<?php echo HtmlEncode($employeeperson->Nationality3->OldValue) ?>">
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_Nationality3" class="form-group employeeperson_Nationality3">
<input type="text" data-table="employeeperson" data-field="x_Nationality3" name="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality3" id="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality3" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->Nationality3->getPlaceHolder()) ?>" value="<?php echo $employeeperson->Nationality3->EditValue ?>"<?php echo $employeeperson->Nationality3->editAttributes() ?>>
</span>
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_Nationality3" class="employeeperson_Nationality3">
<span<?php echo $employeeperson->Nationality3->viewAttributes() ?>>
<?php echo $employeeperson->Nationality3->getViewValue() ?></span>
</span>
<?php if (!$employeeperson->isConfirm()) { ?>
<input type="hidden" data-table="employeeperson" data-field="x_Nationality3" name="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality3" id="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality3" value="<?php echo HtmlEncode($employeeperson->Nationality3->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_Nationality3" name="o<?php echo $employeeperson_grid->RowIndex ?>_Nationality3" id="o<?php echo $employeeperson_grid->RowIndex ?>_Nationality3" value="<?php echo HtmlEncode($employeeperson->Nationality3->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeeperson" data-field="x_Nationality3" name="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_Nationality3" id="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_Nationality3" value="<?php echo HtmlEncode($employeeperson->Nationality3->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_Nationality3" name="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_Nationality3" id="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_Nationality3" value="<?php echo HtmlEncode($employeeperson->Nationality3->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($employeeperson->DriverLicense23->Visible) { // DriverLicense# ?>
		<td data-name="DriverLicense23"<?php echo $employeeperson->DriverLicense23->cellAttributes() ?>>
<?php if ($employeeperson->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_DriverLicense23" class="form-group employeeperson_DriverLicense23">
<input type="text" data-table="employeeperson" data-field="x_DriverLicense23" name="x<?php echo $employeeperson_grid->RowIndex ?>_DriverLicense23" id="x<?php echo $employeeperson_grid->RowIndex ?>_DriverLicense23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->DriverLicense23->getPlaceHolder()) ?>" value="<?php echo $employeeperson->DriverLicense23->EditValue ?>"<?php echo $employeeperson->DriverLicense23->editAttributes() ?>>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_DriverLicense23" name="o<?php echo $employeeperson_grid->RowIndex ?>_DriverLicense23" id="o<?php echo $employeeperson_grid->RowIndex ?>_DriverLicense23" value="<?php echo HtmlEncode($employeeperson->DriverLicense23->OldValue) ?>">
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_DriverLicense23" class="form-group employeeperson_DriverLicense23">
<input type="text" data-table="employeeperson" data-field="x_DriverLicense23" name="x<?php echo $employeeperson_grid->RowIndex ?>_DriverLicense23" id="x<?php echo $employeeperson_grid->RowIndex ?>_DriverLicense23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->DriverLicense23->getPlaceHolder()) ?>" value="<?php echo $employeeperson->DriverLicense23->EditValue ?>"<?php echo $employeeperson->DriverLicense23->editAttributes() ?>>
</span>
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_DriverLicense23" class="employeeperson_DriverLicense23">
<span<?php echo $employeeperson->DriverLicense23->viewAttributes() ?>>
<?php echo $employeeperson->DriverLicense23->getViewValue() ?></span>
</span>
<?php if (!$employeeperson->isConfirm()) { ?>
<input type="hidden" data-table="employeeperson" data-field="x_DriverLicense23" name="x<?php echo $employeeperson_grid->RowIndex ?>_DriverLicense23" id="x<?php echo $employeeperson_grid->RowIndex ?>_DriverLicense23" value="<?php echo HtmlEncode($employeeperson->DriverLicense23->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_DriverLicense23" name="o<?php echo $employeeperson_grid->RowIndex ?>_DriverLicense23" id="o<?php echo $employeeperson_grid->RowIndex ?>_DriverLicense23" value="<?php echo HtmlEncode($employeeperson->DriverLicense23->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeeperson" data-field="x_DriverLicense23" name="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_DriverLicense23" id="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_DriverLicense23" value="<?php echo HtmlEncode($employeeperson->DriverLicense23->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_DriverLicense23" name="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_DriverLicense23" id="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_DriverLicense23" value="<?php echo HtmlEncode($employeeperson->DriverLicense23->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($employeeperson->Extra23->Visible) { // Extra# ?>
		<td data-name="Extra23"<?php echo $employeeperson->Extra23->cellAttributes() ?>>
<?php if ($employeeperson->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_Extra23" class="form-group employeeperson_Extra23">
<input type="text" data-table="employeeperson" data-field="x_Extra23" name="x<?php echo $employeeperson_grid->RowIndex ?>_Extra23" id="x<?php echo $employeeperson_grid->RowIndex ?>_Extra23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->Extra23->getPlaceHolder()) ?>" value="<?php echo $employeeperson->Extra23->EditValue ?>"<?php echo $employeeperson->Extra23->editAttributes() ?>>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_Extra23" name="o<?php echo $employeeperson_grid->RowIndex ?>_Extra23" id="o<?php echo $employeeperson_grid->RowIndex ?>_Extra23" value="<?php echo HtmlEncode($employeeperson->Extra23->OldValue) ?>">
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_Extra23" class="form-group employeeperson_Extra23">
<input type="text" data-table="employeeperson" data-field="x_Extra23" name="x<?php echo $employeeperson_grid->RowIndex ?>_Extra23" id="x<?php echo $employeeperson_grid->RowIndex ?>_Extra23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->Extra23->getPlaceHolder()) ?>" value="<?php echo $employeeperson->Extra23->EditValue ?>"<?php echo $employeeperson->Extra23->editAttributes() ?>>
</span>
<?php } ?>
<?php if ($employeeperson->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeeperson_grid->RowCnt ?>_employeeperson_Extra23" class="employeeperson_Extra23">
<span<?php echo $employeeperson->Extra23->viewAttributes() ?>>
<?php echo $employeeperson->Extra23->getViewValue() ?></span>
</span>
<?php if (!$employeeperson->isConfirm()) { ?>
<input type="hidden" data-table="employeeperson" data-field="x_Extra23" name="x<?php echo $employeeperson_grid->RowIndex ?>_Extra23" id="x<?php echo $employeeperson_grid->RowIndex ?>_Extra23" value="<?php echo HtmlEncode($employeeperson->Extra23->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_Extra23" name="o<?php echo $employeeperson_grid->RowIndex ?>_Extra23" id="o<?php echo $employeeperson_grid->RowIndex ?>_Extra23" value="<?php echo HtmlEncode($employeeperson->Extra23->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeeperson" data-field="x_Extra23" name="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_Extra23" id="femployeepersongrid$x<?php echo $employeeperson_grid->RowIndex ?>_Extra23" value="<?php echo HtmlEncode($employeeperson->Extra23->FormValue) ?>">
<input type="hidden" data-table="employeeperson" data-field="x_Extra23" name="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_Extra23" id="femployeepersongrid$o<?php echo $employeeperson_grid->RowIndex ?>_Extra23" value="<?php echo HtmlEncode($employeeperson->Extra23->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
<?php

// Render list options (body, right)
$employeeperson_grid->ListOptions->render("body", "right", $employeeperson_grid->RowCnt);
?>
	</tr>
<?php if ($employeeperson->RowType == ROWTYPE_ADD || $employeeperson->RowType == ROWTYPE_EDIT) { ?>
<script>
femployeepersongrid.updateLists(<?php echo $employeeperson_grid->RowIndex ?>);
</script>
<?php } ?>
<?php
	}
	} // End delete row checking
	if (!$employeeperson->isGridAdd() || $employeeperson->CurrentMode == "copy")
		if (!$employeeperson_grid->Recordset->EOF)
			$employeeperson_grid->Recordset->moveNext();
}
?>
<?php
	if ($employeeperson->CurrentMode == "add" || $employeeperson->CurrentMode == "copy" || $employeeperson->CurrentMode == "edit") {
		$employeeperson_grid->RowIndex = '$rowindex$';
		$employeeperson_grid->loadRowValues();

		// Set row properties
		$employeeperson->resetAttributes();
		$employeeperson->RowAttrs = array_merge($employeeperson->RowAttrs, array('data-rowindex'=>$employeeperson_grid->RowIndex, 'id'=>'r0_employeeperson', 'data-rowtype'=>ROWTYPE_ADD));
		AppendClass($employeeperson->RowAttrs["class"], "ew-template");
		$employeeperson->RowType = ROWTYPE_ADD;

		// Render row
		$employeeperson_grid->renderRow();

		// Render list options
		$employeeperson_grid->renderListOptions();
		$employeeperson_grid->StartRowCnt = 0;
?>
	<tr<?php echo $employeeperson->rowAttributes() ?>>
<?php

// Render list options (body, left)
$employeeperson_grid->ListOptions->render("body", "left", $employeeperson_grid->RowIndex);
?>
	<?php if ($employeeperson->EmployeeID->Visible) { // EmployeeID ?>
		<td data-name="EmployeeID">
<?php if (!$employeeperson->isConfirm()) { ?>
<?php if ($employeeperson->EmployeeID->getSessionValue() <> "") { ?>
<span id="el$rowindex$_employeeperson_EmployeeID" class="form-group employeeperson_EmployeeID">
<span<?php echo $employeeperson->EmployeeID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeeperson->EmployeeID->ViewValue) ?>"></span>
</span>
<input type="hidden" id="x<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" name="x<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" value="<?php echo HtmlEncode($employeeperson->EmployeeID->CurrentValue) ?>">
<?php } else { ?>
<span id="el$rowindex$_employeeperson_EmployeeID" class="form-group employeeperson_EmployeeID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="employeeperson" data-field="x_EmployeeID" data-value-separator="<?php echo $employeeperson->EmployeeID->displayValueSeparatorAttribute() ?>" id="x<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" name="x<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID"<?php echo $employeeperson->EmployeeID->editAttributes() ?>>
		<?php echo $employeeperson->EmployeeID->selectOptionListHtml("x<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID") ?>
	</select>
</div>
<?php echo $employeeperson->EmployeeID->Lookup->getParamTag("p_x" . $employeeperson_grid->RowIndex . "_EmployeeID") ?>
</span>
<?php } ?>
<?php } else { ?>
<span id="el$rowindex$_employeeperson_EmployeeID" class="form-group employeeperson_EmployeeID">
<span<?php echo $employeeperson->EmployeeID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeeperson->EmployeeID->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_EmployeeID" name="x<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" id="x<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" value="<?php echo HtmlEncode($employeeperson->EmployeeID->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeeperson" data-field="x_EmployeeID" name="o<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" id="o<?php echo $employeeperson_grid->RowIndex ?>_EmployeeID" value="<?php echo HtmlEncode($employeeperson->EmployeeID->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($employeeperson->MaritalStatusID->Visible) { // MaritalStatusID ?>
		<td data-name="MaritalStatusID">
<?php if (!$employeeperson->isConfirm()) { ?>
<span id="el$rowindex$_employeeperson_MaritalStatusID" class="form-group employeeperson_MaritalStatusID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="employeeperson" data-field="x_MaritalStatusID" data-value-separator="<?php echo $employeeperson->MaritalStatusID->displayValueSeparatorAttribute() ?>" id="x<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID" name="x<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID"<?php echo $employeeperson->MaritalStatusID->editAttributes() ?>>
		<?php echo $employeeperson->MaritalStatusID->selectOptionListHtml("x<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID") ?>
	</select>
</div>
<?php echo $employeeperson->MaritalStatusID->Lookup->getParamTag("p_x" . $employeeperson_grid->RowIndex . "_MaritalStatusID") ?>
</span>
<?php } else { ?>
<span id="el$rowindex$_employeeperson_MaritalStatusID" class="form-group employeeperson_MaritalStatusID">
<span<?php echo $employeeperson->MaritalStatusID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeeperson->MaritalStatusID->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_MaritalStatusID" name="x<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID" id="x<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID" value="<?php echo HtmlEncode($employeeperson->MaritalStatusID->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeeperson" data-field="x_MaritalStatusID" name="o<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID" id="o<?php echo $employeeperson_grid->RowIndex ?>_MaritalStatusID" value="<?php echo HtmlEncode($employeeperson->MaritalStatusID->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($employeeperson->CivilStatus23->Visible) { // CivilStatus# ?>
		<td data-name="CivilStatus23">
<?php if (!$employeeperson->isConfirm()) { ?>
<span id="el$rowindex$_employeeperson_CivilStatus23" class="form-group employeeperson_CivilStatus23">
<input type="text" data-table="employeeperson" data-field="x_CivilStatus23" name="x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatus23" id="x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatus23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->CivilStatus23->getPlaceHolder()) ?>" value="<?php echo $employeeperson->CivilStatus23->EditValue ?>"<?php echo $employeeperson->CivilStatus23->editAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_employeeperson_CivilStatus23" class="form-group employeeperson_CivilStatus23">
<span<?php echo $employeeperson->CivilStatus23->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeeperson->CivilStatus23->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_CivilStatus23" name="x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatus23" id="x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatus23" value="<?php echo HtmlEncode($employeeperson->CivilStatus23->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeeperson" data-field="x_CivilStatus23" name="o<?php echo $employeeperson_grid->RowIndex ?>_CivilStatus23" id="o<?php echo $employeeperson_grid->RowIndex ?>_CivilStatus23" value="<?php echo HtmlEncode($employeeperson->CivilStatus23->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($employeeperson->CivilStatusPlace->Visible) { // CivilStatusPlace ?>
		<td data-name="CivilStatusPlace">
<?php if (!$employeeperson->isConfirm()) { ?>
<span id="el$rowindex$_employeeperson_CivilStatusPlace" class="form-group employeeperson_CivilStatusPlace">
<input type="text" data-table="employeeperson" data-field="x_CivilStatusPlace" name="x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatusPlace" id="x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatusPlace" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->CivilStatusPlace->getPlaceHolder()) ?>" value="<?php echo $employeeperson->CivilStatusPlace->EditValue ?>"<?php echo $employeeperson->CivilStatusPlace->editAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_employeeperson_CivilStatusPlace" class="form-group employeeperson_CivilStatusPlace">
<span<?php echo $employeeperson->CivilStatusPlace->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeeperson->CivilStatusPlace->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_CivilStatusPlace" name="x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatusPlace" id="x<?php echo $employeeperson_grid->RowIndex ?>_CivilStatusPlace" value="<?php echo HtmlEncode($employeeperson->CivilStatusPlace->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeeperson" data-field="x_CivilStatusPlace" name="o<?php echo $employeeperson_grid->RowIndex ?>_CivilStatusPlace" id="o<?php echo $employeeperson_grid->RowIndex ?>_CivilStatusPlace" value="<?php echo HtmlEncode($employeeperson->CivilStatusPlace->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($employeeperson->IdCard23->Visible) { // IdCard# ?>
		<td data-name="IdCard23">
<?php if (!$employeeperson->isConfirm()) { ?>
<span id="el$rowindex$_employeeperson_IdCard23" class="form-group employeeperson_IdCard23">
<input type="text" data-table="employeeperson" data-field="x_IdCard23" name="x<?php echo $employeeperson_grid->RowIndex ?>_IdCard23" id="x<?php echo $employeeperson_grid->RowIndex ?>_IdCard23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->IdCard23->getPlaceHolder()) ?>" value="<?php echo $employeeperson->IdCard23->EditValue ?>"<?php echo $employeeperson->IdCard23->editAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_employeeperson_IdCard23" class="form-group employeeperson_IdCard23">
<span<?php echo $employeeperson->IdCard23->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeeperson->IdCard23->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_IdCard23" name="x<?php echo $employeeperson_grid->RowIndex ?>_IdCard23" id="x<?php echo $employeeperson_grid->RowIndex ?>_IdCard23" value="<?php echo HtmlEncode($employeeperson->IdCard23->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeeperson" data-field="x_IdCard23" name="o<?php echo $employeeperson_grid->RowIndex ?>_IdCard23" id="o<?php echo $employeeperson_grid->RowIndex ?>_IdCard23" value="<?php echo HtmlEncode($employeeperson->IdCard23->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($employeeperson->PracticingProfessionLicense23->Visible) { // PracticingProfessionLicense# ?>
		<td data-name="PracticingProfessionLicense23">
<?php if (!$employeeperson->isConfirm()) { ?>
<span id="el$rowindex$_employeeperson_PracticingProfessionLicense23" class="form-group employeeperson_PracticingProfessionLicense23">
<input type="text" data-table="employeeperson" data-field="x_PracticingProfessionLicense23" name="x<?php echo $employeeperson_grid->RowIndex ?>_PracticingProfessionLicense23" id="x<?php echo $employeeperson_grid->RowIndex ?>_PracticingProfessionLicense23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->PracticingProfessionLicense23->getPlaceHolder()) ?>" value="<?php echo $employeeperson->PracticingProfessionLicense23->EditValue ?>"<?php echo $employeeperson->PracticingProfessionLicense23->editAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_employeeperson_PracticingProfessionLicense23" class="form-group employeeperson_PracticingProfessionLicense23">
<span<?php echo $employeeperson->PracticingProfessionLicense23->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeeperson->PracticingProfessionLicense23->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_PracticingProfessionLicense23" name="x<?php echo $employeeperson_grid->RowIndex ?>_PracticingProfessionLicense23" id="x<?php echo $employeeperson_grid->RowIndex ?>_PracticingProfessionLicense23" value="<?php echo HtmlEncode($employeeperson->PracticingProfessionLicense23->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeeperson" data-field="x_PracticingProfessionLicense23" name="o<?php echo $employeeperson_grid->RowIndex ?>_PracticingProfessionLicense23" id="o<?php echo $employeeperson_grid->RowIndex ?>_PracticingProfessionLicense23" value="<?php echo HtmlEncode($employeeperson->PracticingProfessionLicense23->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($employeeperson->NationalId23->Visible) { // NationalId# ?>
		<td data-name="NationalId23">
<?php if (!$employeeperson->isConfirm()) { ?>
<span id="el$rowindex$_employeeperson_NationalId23" class="form-group employeeperson_NationalId23">
<input type="text" data-table="employeeperson" data-field="x_NationalId23" name="x<?php echo $employeeperson_grid->RowIndex ?>_NationalId23" id="x<?php echo $employeeperson_grid->RowIndex ?>_NationalId23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->NationalId23->getPlaceHolder()) ?>" value="<?php echo $employeeperson->NationalId23->EditValue ?>"<?php echo $employeeperson->NationalId23->editAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_employeeperson_NationalId23" class="form-group employeeperson_NationalId23">
<span<?php echo $employeeperson->NationalId23->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeeperson->NationalId23->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_NationalId23" name="x<?php echo $employeeperson_grid->RowIndex ?>_NationalId23" id="x<?php echo $employeeperson_grid->RowIndex ?>_NationalId23" value="<?php echo HtmlEncode($employeeperson->NationalId23->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeeperson" data-field="x_NationalId23" name="o<?php echo $employeeperson_grid->RowIndex ?>_NationalId23" id="o<?php echo $employeeperson_grid->RowIndex ?>_NationalId23" value="<?php echo HtmlEncode($employeeperson->NationalId23->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($employeeperson->Nationality1->Visible) { // Nationality1 ?>
		<td data-name="Nationality1">
<?php if (!$employeeperson->isConfirm()) { ?>
<span id="el$rowindex$_employeeperson_Nationality1" class="form-group employeeperson_Nationality1">
<input type="text" data-table="employeeperson" data-field="x_Nationality1" name="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality1" id="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality1" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->Nationality1->getPlaceHolder()) ?>" value="<?php echo $employeeperson->Nationality1->EditValue ?>"<?php echo $employeeperson->Nationality1->editAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_employeeperson_Nationality1" class="form-group employeeperson_Nationality1">
<span<?php echo $employeeperson->Nationality1->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeeperson->Nationality1->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_Nationality1" name="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality1" id="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality1" value="<?php echo HtmlEncode($employeeperson->Nationality1->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeeperson" data-field="x_Nationality1" name="o<?php echo $employeeperson_grid->RowIndex ?>_Nationality1" id="o<?php echo $employeeperson_grid->RowIndex ?>_Nationality1" value="<?php echo HtmlEncode($employeeperson->Nationality1->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($employeeperson->Nationality2->Visible) { // Nationality2 ?>
		<td data-name="Nationality2">
<?php if (!$employeeperson->isConfirm()) { ?>
<span id="el$rowindex$_employeeperson_Nationality2" class="form-group employeeperson_Nationality2">
<input type="text" data-table="employeeperson" data-field="x_Nationality2" name="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality2" id="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality2" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->Nationality2->getPlaceHolder()) ?>" value="<?php echo $employeeperson->Nationality2->EditValue ?>"<?php echo $employeeperson->Nationality2->editAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_employeeperson_Nationality2" class="form-group employeeperson_Nationality2">
<span<?php echo $employeeperson->Nationality2->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeeperson->Nationality2->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_Nationality2" name="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality2" id="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality2" value="<?php echo HtmlEncode($employeeperson->Nationality2->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeeperson" data-field="x_Nationality2" name="o<?php echo $employeeperson_grid->RowIndex ?>_Nationality2" id="o<?php echo $employeeperson_grid->RowIndex ?>_Nationality2" value="<?php echo HtmlEncode($employeeperson->Nationality2->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($employeeperson->Nationality3->Visible) { // Nationality3 ?>
		<td data-name="Nationality3">
<?php if (!$employeeperson->isConfirm()) { ?>
<span id="el$rowindex$_employeeperson_Nationality3" class="form-group employeeperson_Nationality3">
<input type="text" data-table="employeeperson" data-field="x_Nationality3" name="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality3" id="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality3" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->Nationality3->getPlaceHolder()) ?>" value="<?php echo $employeeperson->Nationality3->EditValue ?>"<?php echo $employeeperson->Nationality3->editAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_employeeperson_Nationality3" class="form-group employeeperson_Nationality3">
<span<?php echo $employeeperson->Nationality3->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeeperson->Nationality3->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_Nationality3" name="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality3" id="x<?php echo $employeeperson_grid->RowIndex ?>_Nationality3" value="<?php echo HtmlEncode($employeeperson->Nationality3->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeeperson" data-field="x_Nationality3" name="o<?php echo $employeeperson_grid->RowIndex ?>_Nationality3" id="o<?php echo $employeeperson_grid->RowIndex ?>_Nationality3" value="<?php echo HtmlEncode($employeeperson->Nationality3->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($employeeperson->DriverLicense23->Visible) { // DriverLicense# ?>
		<td data-name="DriverLicense23">
<?php if (!$employeeperson->isConfirm()) { ?>
<span id="el$rowindex$_employeeperson_DriverLicense23" class="form-group employeeperson_DriverLicense23">
<input type="text" data-table="employeeperson" data-field="x_DriverLicense23" name="x<?php echo $employeeperson_grid->RowIndex ?>_DriverLicense23" id="x<?php echo $employeeperson_grid->RowIndex ?>_DriverLicense23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->DriverLicense23->getPlaceHolder()) ?>" value="<?php echo $employeeperson->DriverLicense23->EditValue ?>"<?php echo $employeeperson->DriverLicense23->editAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_employeeperson_DriverLicense23" class="form-group employeeperson_DriverLicense23">
<span<?php echo $employeeperson->DriverLicense23->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeeperson->DriverLicense23->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_DriverLicense23" name="x<?php echo $employeeperson_grid->RowIndex ?>_DriverLicense23" id="x<?php echo $employeeperson_grid->RowIndex ?>_DriverLicense23" value="<?php echo HtmlEncode($employeeperson->DriverLicense23->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeeperson" data-field="x_DriverLicense23" name="o<?php echo $employeeperson_grid->RowIndex ?>_DriverLicense23" id="o<?php echo $employeeperson_grid->RowIndex ?>_DriverLicense23" value="<?php echo HtmlEncode($employeeperson->DriverLicense23->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($employeeperson->Extra23->Visible) { // Extra# ?>
		<td data-name="Extra23">
<?php if (!$employeeperson->isConfirm()) { ?>
<span id="el$rowindex$_employeeperson_Extra23" class="form-group employeeperson_Extra23">
<input type="text" data-table="employeeperson" data-field="x_Extra23" name="x<?php echo $employeeperson_grid->RowIndex ?>_Extra23" id="x<?php echo $employeeperson_grid->RowIndex ?>_Extra23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeeperson->Extra23->getPlaceHolder()) ?>" value="<?php echo $employeeperson->Extra23->EditValue ?>"<?php echo $employeeperson->Extra23->editAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_employeeperson_Extra23" class="form-group employeeperson_Extra23">
<span<?php echo $employeeperson->Extra23->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeeperson->Extra23->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeeperson" data-field="x_Extra23" name="x<?php echo $employeeperson_grid->RowIndex ?>_Extra23" id="x<?php echo $employeeperson_grid->RowIndex ?>_Extra23" value="<?php echo HtmlEncode($employeeperson->Extra23->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeeperson" data-field="x_Extra23" name="o<?php echo $employeeperson_grid->RowIndex ?>_Extra23" id="o<?php echo $employeeperson_grid->RowIndex ?>_Extra23" value="<?php echo HtmlEncode($employeeperson->Extra23->OldValue) ?>">
</td>
	<?php } ?>
<?php

// Render list options (body, right)
$employeeperson_grid->ListOptions->render("body", "right", $employeeperson_grid->RowIndex);
?>
<script>
femployeepersongrid.updateLists(<?php echo $employeeperson_grid->RowIndex ?>);
</script>
	</tr>
<?php
}
?>
</tbody>
</table><!-- /.ew-table -->
<?php if ($employeeperson->CurrentMode == "add" || $employeeperson->CurrentMode == "copy") { ?>
<input type="hidden" name="<?php echo $employeeperson_grid->FormKeyCountName ?>" id="<?php echo $employeeperson_grid->FormKeyCountName ?>" value="<?php echo $employeeperson_grid->KeyCount ?>">
<?php echo $employeeperson_grid->MultiSelectKey ?>
<?php } ?>
<?php if ($employeeperson->CurrentMode == "edit") { ?>
<input type="hidden" name="<?php echo $employeeperson_grid->FormKeyCountName ?>" id="<?php echo $employeeperson_grid->FormKeyCountName ?>" value="<?php echo $employeeperson_grid->KeyCount ?>">
<?php echo $employeeperson_grid->MultiSelectKey ?>
<?php } ?>
<?php if ($employeeperson->CurrentMode == "") { ?>
<input type="hidden" name="action" id="action" value="">
<?php } ?>
<input type="hidden" name="detailpage" value="femployeepersongrid">
</div><!-- /.ew-grid-middle-panel -->
<?php

// Close recordset
if ($employeeperson_grid->Recordset)
	$employeeperson_grid->Recordset->Close();
?>
</div>
<?php if ($employeeperson_grid->ShowOtherOptions) { ?>
<div class="card-footer ew-grid-lower-panel">
<?php $employeeperson_grid->OtherOptions->render("body", "bottom") ?>
</div>
<div class="clearfix"></div>
<?php } ?>
</div><!-- /.ew-grid -->
<?php } ?>
<?php if ($employeeperson_grid->TotalRecs == 0 && !$employeeperson->CurrentAction) { // Show other options ?>
<div class="ew-list-other-options">
<?php $employeeperson_grid->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
<?php } ?>
<?php
$employeeperson_grid->terminate();
?>
<?php if (!$employeeperson->isExport()) { ?>
<script>
ew.scrollableTable("gmp_employeeperson", "1250px", "");
</script>
<?php } ?>
