<?php
namespace PHPMaker2019\project_germanos;

// Write header
WriteHeader(FALSE);

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

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

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

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

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

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

// Validate form
femployeehrgrid.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 ($employeehr_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", $employeehr->EmployeeID->caption(), $employeehr->EmployeeID->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($employeehr_grid->JobTitle->Required) { ?>
			elm = this.getElements("x" + infix + "_JobTitle");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $employeehr->JobTitle->caption(), $employeehr->JobTitle->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($employeehr_grid->Department->Required) { ?>
			elm = this.getElements("x" + infix + "_Department");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $employeehr->Department->caption(), $employeehr->Department->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($employeehr_grid->BranchID->Required) { ?>
			elm = this.getElements("x" + infix + "_BranchID");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $employeehr->BranchID->caption(), $employeehr->BranchID->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($employeehr_grid->LawFirmID->Required) { ?>
			elm = this.getElements("x" + infix + "_LawFirmID");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $employeehr->LawFirmID->caption(), $employeehr->LawFirmID->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($employeehr_grid->HireDate->Required) { ?>
			elm = this.getElements("x" + infix + "_HireDate");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $employeehr->HireDate->caption(), $employeehr->HireDate->RequiredErrorMessage)) ?>");
		<?php } ?>
			elm = this.getElements("x" + infix + "_HireDate");
			if (elm && !ew.checkDateDef(elm.value))
				return this.onError(elm, "<?php echo JsEncode($employeehr->HireDate->errorMessage()) ?>");
		<?php if ($employeehr_grid->EndOfServiceDate->Required) { ?>
			elm = this.getElements("x" + infix + "_EndOfServiceDate");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $employeehr->EndOfServiceDate->caption(), $employeehr->EndOfServiceDate->RequiredErrorMessage)) ?>");
		<?php } ?>
			elm = this.getElements("x" + infix + "_EndOfServiceDate");
			if (elm && !ew.checkDateDef(elm.value))
				return this.onError(elm, "<?php echo JsEncode($employeehr->EndOfServiceDate->errorMessage()) ?>");
		<?php if ($employeehr_grid->SocialSecurity23->Required) { ?>
			elm = this.getElements("x" + infix + "_SocialSecurity23");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $employeehr->SocialSecurity23->caption(), $employeehr->SocialSecurity23->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($employeehr_grid->Financial23->Required) { ?>
			elm = this.getElements("x" + infix + "_Financial23");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $employeehr->Financial23->caption(), $employeehr->Financial23->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($employeehr_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", $employeehr->Extra23->caption(), $employeehr->Extra23->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($employeehr_grid->WorkNature->Required) { ?>
			elm = this.getElements("x" + infix + "_WorkNature");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $employeehr->WorkNature->caption(), $employeehr->WorkNature->RequiredErrorMessage)) ?>");
		<?php } ?>

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

// Check empty row
femployeehrgrid.emptyRow = function(infix) {
	var fobj = this._form;
	if (ew.valueChanged(fobj, infix, "EmployeeID", false)) return false;
	if (ew.valueChanged(fobj, infix, "JobTitle", false)) return false;
	if (ew.valueChanged(fobj, infix, "Department", false)) return false;
	if (ew.valueChanged(fobj, infix, "BranchID", false)) return false;
	if (ew.valueChanged(fobj, infix, "LawFirmID", false)) return false;
	if (ew.valueChanged(fobj, infix, "HireDate", false)) return false;
	if (ew.valueChanged(fobj, infix, "EndOfServiceDate", false)) return false;
	if (ew.valueChanged(fobj, infix, "SocialSecurity23", false)) return false;
	if (ew.valueChanged(fobj, infix, "Financial23", false)) return false;
	if (ew.valueChanged(fobj, infix, "Extra23", false)) return false;
	if (ew.valueChanged(fobj, infix, "WorkNature", false)) return false;
	return true;
}

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

// Dynamic selection lists
femployeehrgrid.lists["x_EmployeeID"] = <?php echo $employeehr_grid->EmployeeID->Lookup->toClientList() ?>;
femployeehrgrid.lists["x_EmployeeID"].options = <?php echo JsonEncode($employeehr_grid->EmployeeID->lookupOptions()) ?>;
femployeehrgrid.lists["x_BranchID"] = <?php echo $employeehr_grid->BranchID->Lookup->toClientList() ?>;
femployeehrgrid.lists["x_BranchID"].options = <?php echo JsonEncode($employeehr_grid->BranchID->lookupOptions()) ?>;
femployeehrgrid.lists["x_LawFirmID"] = <?php echo $employeehr_grid->LawFirmID->Lookup->toClientList() ?>;
femployeehrgrid.lists["x_LawFirmID"].options = <?php echo JsonEncode($employeehr_grid->LawFirmID->lookupOptions()) ?>;

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

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

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

// Render list options (header, left)
$employeehr_grid->ListOptions->render("header", "left");
?>
<?php if ($employeehr->EmployeeID->Visible) { // EmployeeID ?>
	<?php if ($employeehr->sortUrl($employeehr->EmployeeID) == "") { ?>
		<th data-name="EmployeeID" class="<?php echo $employeehr->EmployeeID->headerCellClass() ?>"><div id="elh_employeehr_EmployeeID" class="employeehr_EmployeeID"><div class="ew-table-header-caption"><?php echo $employeehr->EmployeeID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="EmployeeID" class="<?php echo $employeehr->EmployeeID->headerCellClass() ?>"><div><div id="elh_employeehr_EmployeeID" class="employeehr_EmployeeID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeehr->EmployeeID->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeehr->EmployeeID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeehr->EmployeeID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeehr->JobTitle->Visible) { // JobTitle ?>
	<?php if ($employeehr->sortUrl($employeehr->JobTitle) == "") { ?>
		<th data-name="JobTitle" class="<?php echo $employeehr->JobTitle->headerCellClass() ?>"><div id="elh_employeehr_JobTitle" class="employeehr_JobTitle"><div class="ew-table-header-caption"><?php echo $employeehr->JobTitle->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="JobTitle" class="<?php echo $employeehr->JobTitle->headerCellClass() ?>"><div><div id="elh_employeehr_JobTitle" class="employeehr_JobTitle">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeehr->JobTitle->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeehr->JobTitle->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeehr->JobTitle->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeehr->Department->Visible) { // Department ?>
	<?php if ($employeehr->sortUrl($employeehr->Department) == "") { ?>
		<th data-name="Department" class="<?php echo $employeehr->Department->headerCellClass() ?>"><div id="elh_employeehr_Department" class="employeehr_Department"><div class="ew-table-header-caption"><?php echo $employeehr->Department->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Department" class="<?php echo $employeehr->Department->headerCellClass() ?>"><div><div id="elh_employeehr_Department" class="employeehr_Department">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeehr->Department->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeehr->Department->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeehr->Department->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeehr->BranchID->Visible) { // BranchID ?>
	<?php if ($employeehr->sortUrl($employeehr->BranchID) == "") { ?>
		<th data-name="BranchID" class="<?php echo $employeehr->BranchID->headerCellClass() ?>"><div id="elh_employeehr_BranchID" class="employeehr_BranchID"><div class="ew-table-header-caption"><?php echo $employeehr->BranchID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="BranchID" class="<?php echo $employeehr->BranchID->headerCellClass() ?>"><div><div id="elh_employeehr_BranchID" class="employeehr_BranchID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeehr->BranchID->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeehr->BranchID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeehr->BranchID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeehr->LawFirmID->Visible) { // LawFirmID ?>
	<?php if ($employeehr->sortUrl($employeehr->LawFirmID) == "") { ?>
		<th data-name="LawFirmID" class="<?php echo $employeehr->LawFirmID->headerCellClass() ?>"><div id="elh_employeehr_LawFirmID" class="employeehr_LawFirmID"><div class="ew-table-header-caption"><?php echo $employeehr->LawFirmID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="LawFirmID" class="<?php echo $employeehr->LawFirmID->headerCellClass() ?>"><div><div id="elh_employeehr_LawFirmID" class="employeehr_LawFirmID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeehr->LawFirmID->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeehr->LawFirmID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeehr->LawFirmID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeehr->HireDate->Visible) { // HireDate ?>
	<?php if ($employeehr->sortUrl($employeehr->HireDate) == "") { ?>
		<th data-name="HireDate" class="<?php echo $employeehr->HireDate->headerCellClass() ?>"><div id="elh_employeehr_HireDate" class="employeehr_HireDate"><div class="ew-table-header-caption"><?php echo $employeehr->HireDate->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="HireDate" class="<?php echo $employeehr->HireDate->headerCellClass() ?>"><div><div id="elh_employeehr_HireDate" class="employeehr_HireDate">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeehr->HireDate->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeehr->HireDate->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeehr->HireDate->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeehr->EndOfServiceDate->Visible) { // EndOfServiceDate ?>
	<?php if ($employeehr->sortUrl($employeehr->EndOfServiceDate) == "") { ?>
		<th data-name="EndOfServiceDate" class="<?php echo $employeehr->EndOfServiceDate->headerCellClass() ?>"><div id="elh_employeehr_EndOfServiceDate" class="employeehr_EndOfServiceDate"><div class="ew-table-header-caption"><?php echo $employeehr->EndOfServiceDate->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="EndOfServiceDate" class="<?php echo $employeehr->EndOfServiceDate->headerCellClass() ?>"><div><div id="elh_employeehr_EndOfServiceDate" class="employeehr_EndOfServiceDate">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeehr->EndOfServiceDate->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeehr->EndOfServiceDate->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeehr->EndOfServiceDate->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeehr->SocialSecurity23->Visible) { // SocialSecurity# ?>
	<?php if ($employeehr->sortUrl($employeehr->SocialSecurity23) == "") { ?>
		<th data-name="SocialSecurity23" class="<?php echo $employeehr->SocialSecurity23->headerCellClass() ?>"><div id="elh_employeehr_SocialSecurity23" class="employeehr_SocialSecurity23"><div class="ew-table-header-caption"><?php echo $employeehr->SocialSecurity23->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="SocialSecurity23" class="<?php echo $employeehr->SocialSecurity23->headerCellClass() ?>"><div><div id="elh_employeehr_SocialSecurity23" class="employeehr_SocialSecurity23">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeehr->SocialSecurity23->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeehr->SocialSecurity23->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeehr->SocialSecurity23->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeehr->Financial23->Visible) { // Financial# ?>
	<?php if ($employeehr->sortUrl($employeehr->Financial23) == "") { ?>
		<th data-name="Financial23" class="<?php echo $employeehr->Financial23->headerCellClass() ?>"><div id="elh_employeehr_Financial23" class="employeehr_Financial23"><div class="ew-table-header-caption"><?php echo $employeehr->Financial23->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Financial23" class="<?php echo $employeehr->Financial23->headerCellClass() ?>"><div><div id="elh_employeehr_Financial23" class="employeehr_Financial23">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeehr->Financial23->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeehr->Financial23->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeehr->Financial23->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeehr->Extra23->Visible) { // Extra# ?>
	<?php if ($employeehr->sortUrl($employeehr->Extra23) == "") { ?>
		<th data-name="Extra23" class="<?php echo $employeehr->Extra23->headerCellClass() ?>"><div id="elh_employeehr_Extra23" class="employeehr_Extra23"><div class="ew-table-header-caption"><?php echo $employeehr->Extra23->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Extra23" class="<?php echo $employeehr->Extra23->headerCellClass() ?>"><div><div id="elh_employeehr_Extra23" class="employeehr_Extra23">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeehr->Extra23->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeehr->Extra23->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeehr->Extra23->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeehr->WorkNature->Visible) { // WorkNature ?>
	<?php if ($employeehr->sortUrl($employeehr->WorkNature) == "") { ?>
		<th data-name="WorkNature" class="<?php echo $employeehr->WorkNature->headerCellClass() ?>"><div id="elh_employeehr_WorkNature" class="employeehr_WorkNature"><div class="ew-table-header-caption"><?php echo $employeehr->WorkNature->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="WorkNature" class="<?php echo $employeehr->WorkNature->headerCellClass() ?>"><div><div id="elh_employeehr_WorkNature" class="employeehr_WorkNature">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeehr->WorkNature->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeehr->WorkNature->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeehr->WorkNature->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php

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

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

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

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

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

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

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

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

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

// Render list options (body, left)
$employeehr_grid->ListOptions->render("body", "left", $employeehr_grid->RowCnt);
?>
	<?php if ($employeehr->EmployeeID->Visible) { // EmployeeID ?>
		<td data-name="EmployeeID"<?php echo $employeehr->EmployeeID->cellAttributes() ?>>
<?php if ($employeehr->RowType == ROWTYPE_ADD) { // Add record ?>
<?php if ($employeehr->EmployeeID->getSessionValue() <> "") { ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_EmployeeID" class="form-group employeehr_EmployeeID">
<span<?php echo $employeehr->EmployeeID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeehr->EmployeeID->ViewValue) ?>"></span>
</span>
<input type="hidden" id="x<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" name="x<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" value="<?php echo HtmlEncode($employeehr->EmployeeID->CurrentValue) ?>">
<?php } else { ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_EmployeeID" class="form-group employeehr_EmployeeID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="employeehr" data-field="x_EmployeeID" data-value-separator="<?php echo $employeehr->EmployeeID->displayValueSeparatorAttribute() ?>" id="x<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" name="x<?php echo $employeehr_grid->RowIndex ?>_EmployeeID"<?php echo $employeehr->EmployeeID->editAttributes() ?>>
		<?php echo $employeehr->EmployeeID->selectOptionListHtml("x<?php echo $employeehr_grid->RowIndex ?>_EmployeeID") ?>
	</select>
</div>
<?php echo $employeehr->EmployeeID->Lookup->getParamTag("p_x" . $employeehr_grid->RowIndex . "_EmployeeID") ?>
</span>
<?php } ?>
<input type="hidden" data-table="employeehr" data-field="x_EmployeeID" name="o<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" id="o<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" value="<?php echo HtmlEncode($employeehr->EmployeeID->OldValue) ?>">
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_EDIT) { // Edit record ?>
<?php if ($employeehr->EmployeeID->getSessionValue() <> "") { ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_EmployeeID" class="form-group employeehr_EmployeeID">
<span<?php echo $employeehr->EmployeeID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeehr->EmployeeID->ViewValue) ?>"></span>
</span>
<input type="hidden" id="x<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" name="x<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" value="<?php echo HtmlEncode($employeehr->EmployeeID->CurrentValue) ?>">
<?php } else { ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_EmployeeID" class="form-group employeehr_EmployeeID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="employeehr" data-field="x_EmployeeID" data-value-separator="<?php echo $employeehr->EmployeeID->displayValueSeparatorAttribute() ?>" id="x<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" name="x<?php echo $employeehr_grid->RowIndex ?>_EmployeeID"<?php echo $employeehr->EmployeeID->editAttributes() ?>>
		<?php echo $employeehr->EmployeeID->selectOptionListHtml("x<?php echo $employeehr_grid->RowIndex ?>_EmployeeID") ?>
	</select>
</div>
<?php echo $employeehr->EmployeeID->Lookup->getParamTag("p_x" . $employeehr_grid->RowIndex . "_EmployeeID") ?>
</span>
<?php } ?>
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_EmployeeID" class="employeehr_EmployeeID">
<span<?php echo $employeehr->EmployeeID->viewAttributes() ?>>
<?php echo $employeehr->EmployeeID->getViewValue() ?></span>
</span>
<?php if (!$employeehr->isConfirm()) { ?>
<input type="hidden" data-table="employeehr" data-field="x_EmployeeID" name="x<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" id="x<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" value="<?php echo HtmlEncode($employeehr->EmployeeID->FormValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_EmployeeID" name="o<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" id="o<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" value="<?php echo HtmlEncode($employeehr->EmployeeID->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeehr" data-field="x_EmployeeID" name="femployeehrgrid$x<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" id="femployeehrgrid$x<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" value="<?php echo HtmlEncode($employeehr->EmployeeID->FormValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_EmployeeID" name="femployeehrgrid$o<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" id="femployeehrgrid$o<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" value="<?php echo HtmlEncode($employeehr->EmployeeID->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_ADD) { // Add record ?>
<input type="hidden" data-table="employeehr" data-field="x_EmployeeHrID" name="x<?php echo $employeehr_grid->RowIndex ?>_EmployeeHrID" id="x<?php echo $employeehr_grid->RowIndex ?>_EmployeeHrID" value="<?php echo HtmlEncode($employeehr->EmployeeHrID->CurrentValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_EmployeeHrID" name="o<?php echo $employeehr_grid->RowIndex ?>_EmployeeHrID" id="o<?php echo $employeehr_grid->RowIndex ?>_EmployeeHrID" value="<?php echo HtmlEncode($employeehr->EmployeeHrID->OldValue) ?>">
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_EDIT || $employeehr->CurrentMode == "edit") { ?>
<input type="hidden" data-table="employeehr" data-field="x_EmployeeHrID" name="x<?php echo $employeehr_grid->RowIndex ?>_EmployeeHrID" id="x<?php echo $employeehr_grid->RowIndex ?>_EmployeeHrID" value="<?php echo HtmlEncode($employeehr->EmployeeHrID->CurrentValue) ?>">
<?php } ?>
	<?php if ($employeehr->JobTitle->Visible) { // JobTitle ?>
		<td data-name="JobTitle"<?php echo $employeehr->JobTitle->cellAttributes() ?>>
<?php if ($employeehr->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_JobTitle" class="form-group employeehr_JobTitle">
<input type="text" data-table="employeehr" data-field="x_JobTitle" name="x<?php echo $employeehr_grid->RowIndex ?>_JobTitle" id="x<?php echo $employeehr_grid->RowIndex ?>_JobTitle" size="30" maxlength="25" placeholder="<?php echo HtmlEncode($employeehr->JobTitle->getPlaceHolder()) ?>" value="<?php echo $employeehr->JobTitle->EditValue ?>"<?php echo $employeehr->JobTitle->editAttributes() ?>>
</span>
<input type="hidden" data-table="employeehr" data-field="x_JobTitle" name="o<?php echo $employeehr_grid->RowIndex ?>_JobTitle" id="o<?php echo $employeehr_grid->RowIndex ?>_JobTitle" value="<?php echo HtmlEncode($employeehr->JobTitle->OldValue) ?>">
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_JobTitle" class="form-group employeehr_JobTitle">
<input type="text" data-table="employeehr" data-field="x_JobTitle" name="x<?php echo $employeehr_grid->RowIndex ?>_JobTitle" id="x<?php echo $employeehr_grid->RowIndex ?>_JobTitle" size="30" maxlength="25" placeholder="<?php echo HtmlEncode($employeehr->JobTitle->getPlaceHolder()) ?>" value="<?php echo $employeehr->JobTitle->EditValue ?>"<?php echo $employeehr->JobTitle->editAttributes() ?>>
</span>
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_JobTitle" class="employeehr_JobTitle">
<span<?php echo $employeehr->JobTitle->viewAttributes() ?>>
<?php echo $employeehr->JobTitle->getViewValue() ?></span>
</span>
<?php if (!$employeehr->isConfirm()) { ?>
<input type="hidden" data-table="employeehr" data-field="x_JobTitle" name="x<?php echo $employeehr_grid->RowIndex ?>_JobTitle" id="x<?php echo $employeehr_grid->RowIndex ?>_JobTitle" value="<?php echo HtmlEncode($employeehr->JobTitle->FormValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_JobTitle" name="o<?php echo $employeehr_grid->RowIndex ?>_JobTitle" id="o<?php echo $employeehr_grid->RowIndex ?>_JobTitle" value="<?php echo HtmlEncode($employeehr->JobTitle->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeehr" data-field="x_JobTitle" name="femployeehrgrid$x<?php echo $employeehr_grid->RowIndex ?>_JobTitle" id="femployeehrgrid$x<?php echo $employeehr_grid->RowIndex ?>_JobTitle" value="<?php echo HtmlEncode($employeehr->JobTitle->FormValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_JobTitle" name="femployeehrgrid$o<?php echo $employeehr_grid->RowIndex ?>_JobTitle" id="femployeehrgrid$o<?php echo $employeehr_grid->RowIndex ?>_JobTitle" value="<?php echo HtmlEncode($employeehr->JobTitle->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($employeehr->Department->Visible) { // Department ?>
		<td data-name="Department"<?php echo $employeehr->Department->cellAttributes() ?>>
<?php if ($employeehr->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_Department" class="form-group employeehr_Department">
<input type="text" data-table="employeehr" data-field="x_Department" name="x<?php echo $employeehr_grid->RowIndex ?>_Department" id="x<?php echo $employeehr_grid->RowIndex ?>_Department" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeehr->Department->getPlaceHolder()) ?>" value="<?php echo $employeehr->Department->EditValue ?>"<?php echo $employeehr->Department->editAttributes() ?>>
</span>
<input type="hidden" data-table="employeehr" data-field="x_Department" name="o<?php echo $employeehr_grid->RowIndex ?>_Department" id="o<?php echo $employeehr_grid->RowIndex ?>_Department" value="<?php echo HtmlEncode($employeehr->Department->OldValue) ?>">
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_Department" class="form-group employeehr_Department">
<input type="text" data-table="employeehr" data-field="x_Department" name="x<?php echo $employeehr_grid->RowIndex ?>_Department" id="x<?php echo $employeehr_grid->RowIndex ?>_Department" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeehr->Department->getPlaceHolder()) ?>" value="<?php echo $employeehr->Department->EditValue ?>"<?php echo $employeehr->Department->editAttributes() ?>>
</span>
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_Department" class="employeehr_Department">
<span<?php echo $employeehr->Department->viewAttributes() ?>>
<?php echo $employeehr->Department->getViewValue() ?></span>
</span>
<?php if (!$employeehr->isConfirm()) { ?>
<input type="hidden" data-table="employeehr" data-field="x_Department" name="x<?php echo $employeehr_grid->RowIndex ?>_Department" id="x<?php echo $employeehr_grid->RowIndex ?>_Department" value="<?php echo HtmlEncode($employeehr->Department->FormValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_Department" name="o<?php echo $employeehr_grid->RowIndex ?>_Department" id="o<?php echo $employeehr_grid->RowIndex ?>_Department" value="<?php echo HtmlEncode($employeehr->Department->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeehr" data-field="x_Department" name="femployeehrgrid$x<?php echo $employeehr_grid->RowIndex ?>_Department" id="femployeehrgrid$x<?php echo $employeehr_grid->RowIndex ?>_Department" value="<?php echo HtmlEncode($employeehr->Department->FormValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_Department" name="femployeehrgrid$o<?php echo $employeehr_grid->RowIndex ?>_Department" id="femployeehrgrid$o<?php echo $employeehr_grid->RowIndex ?>_Department" value="<?php echo HtmlEncode($employeehr->Department->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($employeehr->BranchID->Visible) { // BranchID ?>
		<td data-name="BranchID"<?php echo $employeehr->BranchID->cellAttributes() ?>>
<?php if ($employeehr->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_BranchID" class="form-group employeehr_BranchID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="employeehr" data-field="x_BranchID" data-value-separator="<?php echo $employeehr->BranchID->displayValueSeparatorAttribute() ?>" id="x<?php echo $employeehr_grid->RowIndex ?>_BranchID" name="x<?php echo $employeehr_grid->RowIndex ?>_BranchID"<?php echo $employeehr->BranchID->editAttributes() ?>>
		<?php echo $employeehr->BranchID->selectOptionListHtml("x<?php echo $employeehr_grid->RowIndex ?>_BranchID") ?>
	</select>
<?php if (AllowAdd(CurrentProjectID() . "branches") && !$employeehr->BranchID->ReadOnly) { ?>
<div class="input-group-append"><button type="button" class="btn btn-default ew-add-opt-btn" id="aol_x<?php echo $employeehr_grid->RowIndex ?>_BranchID" title="<?php echo HtmlTitle($Language->phrase("AddLink")) . "&nbsp;" . $employeehr->BranchID->caption() ?>" data-title="<?php echo $employeehr->BranchID->caption() ?>" onclick="ew.addOptionDialogShow({lnk:this,el:'x<?php echo $employeehr_grid->RowIndex ?>_BranchID',url:'branchesaddopt.php'});"><i class="fa fa-plus ew-icon"></i></button></div>
<?php } ?>
</div>
<?php echo $employeehr->BranchID->Lookup->getParamTag("p_x" . $employeehr_grid->RowIndex . "_BranchID") ?>
</span>
<input type="hidden" data-table="employeehr" data-field="x_BranchID" name="o<?php echo $employeehr_grid->RowIndex ?>_BranchID" id="o<?php echo $employeehr_grid->RowIndex ?>_BranchID" value="<?php echo HtmlEncode($employeehr->BranchID->OldValue) ?>">
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_BranchID" class="form-group employeehr_BranchID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="employeehr" data-field="x_BranchID" data-value-separator="<?php echo $employeehr->BranchID->displayValueSeparatorAttribute() ?>" id="x<?php echo $employeehr_grid->RowIndex ?>_BranchID" name="x<?php echo $employeehr_grid->RowIndex ?>_BranchID"<?php echo $employeehr->BranchID->editAttributes() ?>>
		<?php echo $employeehr->BranchID->selectOptionListHtml("x<?php echo $employeehr_grid->RowIndex ?>_BranchID") ?>
	</select>
<?php if (AllowAdd(CurrentProjectID() . "branches") && !$employeehr->BranchID->ReadOnly) { ?>
<div class="input-group-append"><button type="button" class="btn btn-default ew-add-opt-btn" id="aol_x<?php echo $employeehr_grid->RowIndex ?>_BranchID" title="<?php echo HtmlTitle($Language->phrase("AddLink")) . "&nbsp;" . $employeehr->BranchID->caption() ?>" data-title="<?php echo $employeehr->BranchID->caption() ?>" onclick="ew.addOptionDialogShow({lnk:this,el:'x<?php echo $employeehr_grid->RowIndex ?>_BranchID',url:'branchesaddopt.php'});"><i class="fa fa-plus ew-icon"></i></button></div>
<?php } ?>
</div>
<?php echo $employeehr->BranchID->Lookup->getParamTag("p_x" . $employeehr_grid->RowIndex . "_BranchID") ?>
</span>
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_BranchID" class="employeehr_BranchID">
<span<?php echo $employeehr->BranchID->viewAttributes() ?>>
<?php echo $employeehr->BranchID->getViewValue() ?></span>
</span>
<?php if (!$employeehr->isConfirm()) { ?>
<input type="hidden" data-table="employeehr" data-field="x_BranchID" name="x<?php echo $employeehr_grid->RowIndex ?>_BranchID" id="x<?php echo $employeehr_grid->RowIndex ?>_BranchID" value="<?php echo HtmlEncode($employeehr->BranchID->FormValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_BranchID" name="o<?php echo $employeehr_grid->RowIndex ?>_BranchID" id="o<?php echo $employeehr_grid->RowIndex ?>_BranchID" value="<?php echo HtmlEncode($employeehr->BranchID->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeehr" data-field="x_BranchID" name="femployeehrgrid$x<?php echo $employeehr_grid->RowIndex ?>_BranchID" id="femployeehrgrid$x<?php echo $employeehr_grid->RowIndex ?>_BranchID" value="<?php echo HtmlEncode($employeehr->BranchID->FormValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_BranchID" name="femployeehrgrid$o<?php echo $employeehr_grid->RowIndex ?>_BranchID" id="femployeehrgrid$o<?php echo $employeehr_grid->RowIndex ?>_BranchID" value="<?php echo HtmlEncode($employeehr->BranchID->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($employeehr->LawFirmID->Visible) { // LawFirmID ?>
		<td data-name="LawFirmID"<?php echo $employeehr->LawFirmID->cellAttributes() ?>>
<?php if ($employeehr->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_LawFirmID" class="form-group employeehr_LawFirmID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="employeehr" data-field="x_LawFirmID" data-value-separator="<?php echo $employeehr->LawFirmID->displayValueSeparatorAttribute() ?>" id="x<?php echo $employeehr_grid->RowIndex ?>_LawFirmID" name="x<?php echo $employeehr_grid->RowIndex ?>_LawFirmID"<?php echo $employeehr->LawFirmID->editAttributes() ?>>
		<?php echo $employeehr->LawFirmID->selectOptionListHtml("x<?php echo $employeehr_grid->RowIndex ?>_LawFirmID") ?>
	</select>
<?php if (AllowAdd(CurrentProjectID() . "lawfirm") && !$employeehr->LawFirmID->ReadOnly) { ?>
<div class="input-group-append"><button type="button" class="btn btn-default ew-add-opt-btn" id="aol_x<?php echo $employeehr_grid->RowIndex ?>_LawFirmID" title="<?php echo HtmlTitle($Language->phrase("AddLink")) . "&nbsp;" . $employeehr->LawFirmID->caption() ?>" data-title="<?php echo $employeehr->LawFirmID->caption() ?>" onclick="ew.addOptionDialogShow({lnk:this,el:'x<?php echo $employeehr_grid->RowIndex ?>_LawFirmID',url:'lawfirmaddopt.php'});"><i class="fa fa-plus ew-icon"></i></button></div>
<?php } ?>
</div>
<?php echo $employeehr->LawFirmID->Lookup->getParamTag("p_x" . $employeehr_grid->RowIndex . "_LawFirmID") ?>
</span>
<input type="hidden" data-table="employeehr" data-field="x_LawFirmID" name="o<?php echo $employeehr_grid->RowIndex ?>_LawFirmID" id="o<?php echo $employeehr_grid->RowIndex ?>_LawFirmID" value="<?php echo HtmlEncode($employeehr->LawFirmID->OldValue) ?>">
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_LawFirmID" class="form-group employeehr_LawFirmID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="employeehr" data-field="x_LawFirmID" data-value-separator="<?php echo $employeehr->LawFirmID->displayValueSeparatorAttribute() ?>" id="x<?php echo $employeehr_grid->RowIndex ?>_LawFirmID" name="x<?php echo $employeehr_grid->RowIndex ?>_LawFirmID"<?php echo $employeehr->LawFirmID->editAttributes() ?>>
		<?php echo $employeehr->LawFirmID->selectOptionListHtml("x<?php echo $employeehr_grid->RowIndex ?>_LawFirmID") ?>
	</select>
<?php if (AllowAdd(CurrentProjectID() . "lawfirm") && !$employeehr->LawFirmID->ReadOnly) { ?>
<div class="input-group-append"><button type="button" class="btn btn-default ew-add-opt-btn" id="aol_x<?php echo $employeehr_grid->RowIndex ?>_LawFirmID" title="<?php echo HtmlTitle($Language->phrase("AddLink")) . "&nbsp;" . $employeehr->LawFirmID->caption() ?>" data-title="<?php echo $employeehr->LawFirmID->caption() ?>" onclick="ew.addOptionDialogShow({lnk:this,el:'x<?php echo $employeehr_grid->RowIndex ?>_LawFirmID',url:'lawfirmaddopt.php'});"><i class="fa fa-plus ew-icon"></i></button></div>
<?php } ?>
</div>
<?php echo $employeehr->LawFirmID->Lookup->getParamTag("p_x" . $employeehr_grid->RowIndex . "_LawFirmID") ?>
</span>
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_LawFirmID" class="employeehr_LawFirmID">
<span<?php echo $employeehr->LawFirmID->viewAttributes() ?>>
<?php echo $employeehr->LawFirmID->getViewValue() ?></span>
</span>
<?php if (!$employeehr->isConfirm()) { ?>
<input type="hidden" data-table="employeehr" data-field="x_LawFirmID" name="x<?php echo $employeehr_grid->RowIndex ?>_LawFirmID" id="x<?php echo $employeehr_grid->RowIndex ?>_LawFirmID" value="<?php echo HtmlEncode($employeehr->LawFirmID->FormValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_LawFirmID" name="o<?php echo $employeehr_grid->RowIndex ?>_LawFirmID" id="o<?php echo $employeehr_grid->RowIndex ?>_LawFirmID" value="<?php echo HtmlEncode($employeehr->LawFirmID->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeehr" data-field="x_LawFirmID" name="femployeehrgrid$x<?php echo $employeehr_grid->RowIndex ?>_LawFirmID" id="femployeehrgrid$x<?php echo $employeehr_grid->RowIndex ?>_LawFirmID" value="<?php echo HtmlEncode($employeehr->LawFirmID->FormValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_LawFirmID" name="femployeehrgrid$o<?php echo $employeehr_grid->RowIndex ?>_LawFirmID" id="femployeehrgrid$o<?php echo $employeehr_grid->RowIndex ?>_LawFirmID" value="<?php echo HtmlEncode($employeehr->LawFirmID->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($employeehr->HireDate->Visible) { // HireDate ?>
		<td data-name="HireDate"<?php echo $employeehr->HireDate->cellAttributes() ?>>
<?php if ($employeehr->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_HireDate" class="form-group employeehr_HireDate">
<input type="text" data-table="employeehr" data-field="x_HireDate" name="x<?php echo $employeehr_grid->RowIndex ?>_HireDate" id="x<?php echo $employeehr_grid->RowIndex ?>_HireDate" placeholder="<?php echo HtmlEncode($employeehr->HireDate->getPlaceHolder()) ?>" value="<?php echo $employeehr->HireDate->EditValue ?>"<?php echo $employeehr->HireDate->editAttributes() ?>>
<?php if (!$employeehr->HireDate->ReadOnly && !$employeehr->HireDate->Disabled && !isset($employeehr->HireDate->EditAttrs["readonly"]) && !isset($employeehr->HireDate->EditAttrs["disabled"])) { ?>
<script>
ew.createDateTimePicker("femployeehrgrid", "x<?php echo $employeehr_grid->RowIndex ?>_HireDate", {"ignoreReadonly":true,"useCurrent":false,"format":0});
</script>
<?php } ?>
</span>
<input type="hidden" data-table="employeehr" data-field="x_HireDate" name="o<?php echo $employeehr_grid->RowIndex ?>_HireDate" id="o<?php echo $employeehr_grid->RowIndex ?>_HireDate" value="<?php echo HtmlEncode($employeehr->HireDate->OldValue) ?>">
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_HireDate" class="form-group employeehr_HireDate">
<input type="text" data-table="employeehr" data-field="x_HireDate" name="x<?php echo $employeehr_grid->RowIndex ?>_HireDate" id="x<?php echo $employeehr_grid->RowIndex ?>_HireDate" placeholder="<?php echo HtmlEncode($employeehr->HireDate->getPlaceHolder()) ?>" value="<?php echo $employeehr->HireDate->EditValue ?>"<?php echo $employeehr->HireDate->editAttributes() ?>>
<?php if (!$employeehr->HireDate->ReadOnly && !$employeehr->HireDate->Disabled && !isset($employeehr->HireDate->EditAttrs["readonly"]) && !isset($employeehr->HireDate->EditAttrs["disabled"])) { ?>
<script>
ew.createDateTimePicker("femployeehrgrid", "x<?php echo $employeehr_grid->RowIndex ?>_HireDate", {"ignoreReadonly":true,"useCurrent":false,"format":0});
</script>
<?php } ?>
</span>
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_HireDate" class="employeehr_HireDate">
<span<?php echo $employeehr->HireDate->viewAttributes() ?>>
<?php echo $employeehr->HireDate->getViewValue() ?></span>
</span>
<?php if (!$employeehr->isConfirm()) { ?>
<input type="hidden" data-table="employeehr" data-field="x_HireDate" name="x<?php echo $employeehr_grid->RowIndex ?>_HireDate" id="x<?php echo $employeehr_grid->RowIndex ?>_HireDate" value="<?php echo HtmlEncode($employeehr->HireDate->FormValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_HireDate" name="o<?php echo $employeehr_grid->RowIndex ?>_HireDate" id="o<?php echo $employeehr_grid->RowIndex ?>_HireDate" value="<?php echo HtmlEncode($employeehr->HireDate->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeehr" data-field="x_HireDate" name="femployeehrgrid$x<?php echo $employeehr_grid->RowIndex ?>_HireDate" id="femployeehrgrid$x<?php echo $employeehr_grid->RowIndex ?>_HireDate" value="<?php echo HtmlEncode($employeehr->HireDate->FormValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_HireDate" name="femployeehrgrid$o<?php echo $employeehr_grid->RowIndex ?>_HireDate" id="femployeehrgrid$o<?php echo $employeehr_grid->RowIndex ?>_HireDate" value="<?php echo HtmlEncode($employeehr->HireDate->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($employeehr->EndOfServiceDate->Visible) { // EndOfServiceDate ?>
		<td data-name="EndOfServiceDate"<?php echo $employeehr->EndOfServiceDate->cellAttributes() ?>>
<?php if ($employeehr->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_EndOfServiceDate" class="form-group employeehr_EndOfServiceDate">
<input type="text" data-table="employeehr" data-field="x_EndOfServiceDate" name="x<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate" id="x<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate" placeholder="<?php echo HtmlEncode($employeehr->EndOfServiceDate->getPlaceHolder()) ?>" value="<?php echo $employeehr->EndOfServiceDate->EditValue ?>"<?php echo $employeehr->EndOfServiceDate->editAttributes() ?>>
<?php if (!$employeehr->EndOfServiceDate->ReadOnly && !$employeehr->EndOfServiceDate->Disabled && !isset($employeehr->EndOfServiceDate->EditAttrs["readonly"]) && !isset($employeehr->EndOfServiceDate->EditAttrs["disabled"])) { ?>
<script>
ew.createDateTimePicker("femployeehrgrid", "x<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate", {"ignoreReadonly":true,"useCurrent":false,"format":0});
</script>
<?php } ?>
</span>
<input type="hidden" data-table="employeehr" data-field="x_EndOfServiceDate" name="o<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate" id="o<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate" value="<?php echo HtmlEncode($employeehr->EndOfServiceDate->OldValue) ?>">
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_EndOfServiceDate" class="form-group employeehr_EndOfServiceDate">
<input type="text" data-table="employeehr" data-field="x_EndOfServiceDate" name="x<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate" id="x<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate" placeholder="<?php echo HtmlEncode($employeehr->EndOfServiceDate->getPlaceHolder()) ?>" value="<?php echo $employeehr->EndOfServiceDate->EditValue ?>"<?php echo $employeehr->EndOfServiceDate->editAttributes() ?>>
<?php if (!$employeehr->EndOfServiceDate->ReadOnly && !$employeehr->EndOfServiceDate->Disabled && !isset($employeehr->EndOfServiceDate->EditAttrs["readonly"]) && !isset($employeehr->EndOfServiceDate->EditAttrs["disabled"])) { ?>
<script>
ew.createDateTimePicker("femployeehrgrid", "x<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate", {"ignoreReadonly":true,"useCurrent":false,"format":0});
</script>
<?php } ?>
</span>
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_EndOfServiceDate" class="employeehr_EndOfServiceDate">
<span<?php echo $employeehr->EndOfServiceDate->viewAttributes() ?>>
<?php echo $employeehr->EndOfServiceDate->getViewValue() ?></span>
</span>
<?php if (!$employeehr->isConfirm()) { ?>
<input type="hidden" data-table="employeehr" data-field="x_EndOfServiceDate" name="x<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate" id="x<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate" value="<?php echo HtmlEncode($employeehr->EndOfServiceDate->FormValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_EndOfServiceDate" name="o<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate" id="o<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate" value="<?php echo HtmlEncode($employeehr->EndOfServiceDate->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeehr" data-field="x_EndOfServiceDate" name="femployeehrgrid$x<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate" id="femployeehrgrid$x<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate" value="<?php echo HtmlEncode($employeehr->EndOfServiceDate->FormValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_EndOfServiceDate" name="femployeehrgrid$o<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate" id="femployeehrgrid$o<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate" value="<?php echo HtmlEncode($employeehr->EndOfServiceDate->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($employeehr->SocialSecurity23->Visible) { // SocialSecurity# ?>
		<td data-name="SocialSecurity23"<?php echo $employeehr->SocialSecurity23->cellAttributes() ?>>
<?php if ($employeehr->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_SocialSecurity23" class="form-group employeehr_SocialSecurity23">
<input type="text" data-table="employeehr" data-field="x_SocialSecurity23" name="x<?php echo $employeehr_grid->RowIndex ?>_SocialSecurity23" id="x<?php echo $employeehr_grid->RowIndex ?>_SocialSecurity23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeehr->SocialSecurity23->getPlaceHolder()) ?>" value="<?php echo $employeehr->SocialSecurity23->EditValue ?>"<?php echo $employeehr->SocialSecurity23->editAttributes() ?>>
</span>
<input type="hidden" data-table="employeehr" data-field="x_SocialSecurity23" name="o<?php echo $employeehr_grid->RowIndex ?>_SocialSecurity23" id="o<?php echo $employeehr_grid->RowIndex ?>_SocialSecurity23" value="<?php echo HtmlEncode($employeehr->SocialSecurity23->OldValue) ?>">
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_SocialSecurity23" class="form-group employeehr_SocialSecurity23">
<input type="text" data-table="employeehr" data-field="x_SocialSecurity23" name="x<?php echo $employeehr_grid->RowIndex ?>_SocialSecurity23" id="x<?php echo $employeehr_grid->RowIndex ?>_SocialSecurity23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeehr->SocialSecurity23->getPlaceHolder()) ?>" value="<?php echo $employeehr->SocialSecurity23->EditValue ?>"<?php echo $employeehr->SocialSecurity23->editAttributes() ?>>
</span>
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_SocialSecurity23" class="employeehr_SocialSecurity23">
<span<?php echo $employeehr->SocialSecurity23->viewAttributes() ?>>
<?php echo $employeehr->SocialSecurity23->getViewValue() ?></span>
</span>
<?php if (!$employeehr->isConfirm()) { ?>
<input type="hidden" data-table="employeehr" data-field="x_SocialSecurity23" name="x<?php echo $employeehr_grid->RowIndex ?>_SocialSecurity23" id="x<?php echo $employeehr_grid->RowIndex ?>_SocialSecurity23" value="<?php echo HtmlEncode($employeehr->SocialSecurity23->FormValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_SocialSecurity23" name="o<?php echo $employeehr_grid->RowIndex ?>_SocialSecurity23" id="o<?php echo $employeehr_grid->RowIndex ?>_SocialSecurity23" value="<?php echo HtmlEncode($employeehr->SocialSecurity23->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeehr" data-field="x_SocialSecurity23" name="femployeehrgrid$x<?php echo $employeehr_grid->RowIndex ?>_SocialSecurity23" id="femployeehrgrid$x<?php echo $employeehr_grid->RowIndex ?>_SocialSecurity23" value="<?php echo HtmlEncode($employeehr->SocialSecurity23->FormValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_SocialSecurity23" name="femployeehrgrid$o<?php echo $employeehr_grid->RowIndex ?>_SocialSecurity23" id="femployeehrgrid$o<?php echo $employeehr_grid->RowIndex ?>_SocialSecurity23" value="<?php echo HtmlEncode($employeehr->SocialSecurity23->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($employeehr->Financial23->Visible) { // Financial# ?>
		<td data-name="Financial23"<?php echo $employeehr->Financial23->cellAttributes() ?>>
<?php if ($employeehr->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_Financial23" class="form-group employeehr_Financial23">
<input type="text" data-table="employeehr" data-field="x_Financial23" name="x<?php echo $employeehr_grid->RowIndex ?>_Financial23" id="x<?php echo $employeehr_grid->RowIndex ?>_Financial23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeehr->Financial23->getPlaceHolder()) ?>" value="<?php echo $employeehr->Financial23->EditValue ?>"<?php echo $employeehr->Financial23->editAttributes() ?>>
</span>
<input type="hidden" data-table="employeehr" data-field="x_Financial23" name="o<?php echo $employeehr_grid->RowIndex ?>_Financial23" id="o<?php echo $employeehr_grid->RowIndex ?>_Financial23" value="<?php echo HtmlEncode($employeehr->Financial23->OldValue) ?>">
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_Financial23" class="form-group employeehr_Financial23">
<input type="text" data-table="employeehr" data-field="x_Financial23" name="x<?php echo $employeehr_grid->RowIndex ?>_Financial23" id="x<?php echo $employeehr_grid->RowIndex ?>_Financial23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeehr->Financial23->getPlaceHolder()) ?>" value="<?php echo $employeehr->Financial23->EditValue ?>"<?php echo $employeehr->Financial23->editAttributes() ?>>
</span>
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_Financial23" class="employeehr_Financial23">
<span<?php echo $employeehr->Financial23->viewAttributes() ?>>
<?php echo $employeehr->Financial23->getViewValue() ?></span>
</span>
<?php if (!$employeehr->isConfirm()) { ?>
<input type="hidden" data-table="employeehr" data-field="x_Financial23" name="x<?php echo $employeehr_grid->RowIndex ?>_Financial23" id="x<?php echo $employeehr_grid->RowIndex ?>_Financial23" value="<?php echo HtmlEncode($employeehr->Financial23->FormValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_Financial23" name="o<?php echo $employeehr_grid->RowIndex ?>_Financial23" id="o<?php echo $employeehr_grid->RowIndex ?>_Financial23" value="<?php echo HtmlEncode($employeehr->Financial23->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeehr" data-field="x_Financial23" name="femployeehrgrid$x<?php echo $employeehr_grid->RowIndex ?>_Financial23" id="femployeehrgrid$x<?php echo $employeehr_grid->RowIndex ?>_Financial23" value="<?php echo HtmlEncode($employeehr->Financial23->FormValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_Financial23" name="femployeehrgrid$o<?php echo $employeehr_grid->RowIndex ?>_Financial23" id="femployeehrgrid$o<?php echo $employeehr_grid->RowIndex ?>_Financial23" value="<?php echo HtmlEncode($employeehr->Financial23->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($employeehr->Extra23->Visible) { // Extra# ?>
		<td data-name="Extra23"<?php echo $employeehr->Extra23->cellAttributes() ?>>
<?php if ($employeehr->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_Extra23" class="form-group employeehr_Extra23">
<input type="text" data-table="employeehr" data-field="x_Extra23" name="x<?php echo $employeehr_grid->RowIndex ?>_Extra23" id="x<?php echo $employeehr_grid->RowIndex ?>_Extra23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeehr->Extra23->getPlaceHolder()) ?>" value="<?php echo $employeehr->Extra23->EditValue ?>"<?php echo $employeehr->Extra23->editAttributes() ?>>
</span>
<input type="hidden" data-table="employeehr" data-field="x_Extra23" name="o<?php echo $employeehr_grid->RowIndex ?>_Extra23" id="o<?php echo $employeehr_grid->RowIndex ?>_Extra23" value="<?php echo HtmlEncode($employeehr->Extra23->OldValue) ?>">
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_Extra23" class="form-group employeehr_Extra23">
<input type="text" data-table="employeehr" data-field="x_Extra23" name="x<?php echo $employeehr_grid->RowIndex ?>_Extra23" id="x<?php echo $employeehr_grid->RowIndex ?>_Extra23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeehr->Extra23->getPlaceHolder()) ?>" value="<?php echo $employeehr->Extra23->EditValue ?>"<?php echo $employeehr->Extra23->editAttributes() ?>>
</span>
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_Extra23" class="employeehr_Extra23">
<span<?php echo $employeehr->Extra23->viewAttributes() ?>>
<?php echo $employeehr->Extra23->getViewValue() ?></span>
</span>
<?php if (!$employeehr->isConfirm()) { ?>
<input type="hidden" data-table="employeehr" data-field="x_Extra23" name="x<?php echo $employeehr_grid->RowIndex ?>_Extra23" id="x<?php echo $employeehr_grid->RowIndex ?>_Extra23" value="<?php echo HtmlEncode($employeehr->Extra23->FormValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_Extra23" name="o<?php echo $employeehr_grid->RowIndex ?>_Extra23" id="o<?php echo $employeehr_grid->RowIndex ?>_Extra23" value="<?php echo HtmlEncode($employeehr->Extra23->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeehr" data-field="x_Extra23" name="femployeehrgrid$x<?php echo $employeehr_grid->RowIndex ?>_Extra23" id="femployeehrgrid$x<?php echo $employeehr_grid->RowIndex ?>_Extra23" value="<?php echo HtmlEncode($employeehr->Extra23->FormValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_Extra23" name="femployeehrgrid$o<?php echo $employeehr_grid->RowIndex ?>_Extra23" id="femployeehrgrid$o<?php echo $employeehr_grid->RowIndex ?>_Extra23" value="<?php echo HtmlEncode($employeehr->Extra23->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($employeehr->WorkNature->Visible) { // WorkNature ?>
		<td data-name="WorkNature"<?php echo $employeehr->WorkNature->cellAttributes() ?>>
<?php if ($employeehr->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_WorkNature" class="form-group employeehr_WorkNature">
<input type="text" data-table="employeehr" data-field="x_WorkNature" name="x<?php echo $employeehr_grid->RowIndex ?>_WorkNature" id="x<?php echo $employeehr_grid->RowIndex ?>_WorkNature" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($employeehr->WorkNature->getPlaceHolder()) ?>" value="<?php echo $employeehr->WorkNature->EditValue ?>"<?php echo $employeehr->WorkNature->editAttributes() ?>>
</span>
<input type="hidden" data-table="employeehr" data-field="x_WorkNature" name="o<?php echo $employeehr_grid->RowIndex ?>_WorkNature" id="o<?php echo $employeehr_grid->RowIndex ?>_WorkNature" value="<?php echo HtmlEncode($employeehr->WorkNature->OldValue) ?>">
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_WorkNature" class="form-group employeehr_WorkNature">
<input type="text" data-table="employeehr" data-field="x_WorkNature" name="x<?php echo $employeehr_grid->RowIndex ?>_WorkNature" id="x<?php echo $employeehr_grid->RowIndex ?>_WorkNature" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($employeehr->WorkNature->getPlaceHolder()) ?>" value="<?php echo $employeehr->WorkNature->EditValue ?>"<?php echo $employeehr->WorkNature->editAttributes() ?>>
</span>
<?php } ?>
<?php if ($employeehr->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $employeehr_grid->RowCnt ?>_employeehr_WorkNature" class="employeehr_WorkNature">
<span<?php echo $employeehr->WorkNature->viewAttributes() ?>>
<?php echo $employeehr->WorkNature->getViewValue() ?></span>
</span>
<?php if (!$employeehr->isConfirm()) { ?>
<input type="hidden" data-table="employeehr" data-field="x_WorkNature" name="x<?php echo $employeehr_grid->RowIndex ?>_WorkNature" id="x<?php echo $employeehr_grid->RowIndex ?>_WorkNature" value="<?php echo HtmlEncode($employeehr->WorkNature->FormValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_WorkNature" name="o<?php echo $employeehr_grid->RowIndex ?>_WorkNature" id="o<?php echo $employeehr_grid->RowIndex ?>_WorkNature" value="<?php echo HtmlEncode($employeehr->WorkNature->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="employeehr" data-field="x_WorkNature" name="femployeehrgrid$x<?php echo $employeehr_grid->RowIndex ?>_WorkNature" id="femployeehrgrid$x<?php echo $employeehr_grid->RowIndex ?>_WorkNature" value="<?php echo HtmlEncode($employeehr->WorkNature->FormValue) ?>">
<input type="hidden" data-table="employeehr" data-field="x_WorkNature" name="femployeehrgrid$o<?php echo $employeehr_grid->RowIndex ?>_WorkNature" id="femployeehrgrid$o<?php echo $employeehr_grid->RowIndex ?>_WorkNature" value="<?php echo HtmlEncode($employeehr->WorkNature->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
<?php

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

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

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

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

// Render list options (body, left)
$employeehr_grid->ListOptions->render("body", "left", $employeehr_grid->RowIndex);
?>
	<?php if ($employeehr->EmployeeID->Visible) { // EmployeeID ?>
		<td data-name="EmployeeID">
<?php if (!$employeehr->isConfirm()) { ?>
<?php if ($employeehr->EmployeeID->getSessionValue() <> "") { ?>
<span id="el$rowindex$_employeehr_EmployeeID" class="form-group employeehr_EmployeeID">
<span<?php echo $employeehr->EmployeeID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeehr->EmployeeID->ViewValue) ?>"></span>
</span>
<input type="hidden" id="x<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" name="x<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" value="<?php echo HtmlEncode($employeehr->EmployeeID->CurrentValue) ?>">
<?php } else { ?>
<span id="el$rowindex$_employeehr_EmployeeID" class="form-group employeehr_EmployeeID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="employeehr" data-field="x_EmployeeID" data-value-separator="<?php echo $employeehr->EmployeeID->displayValueSeparatorAttribute() ?>" id="x<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" name="x<?php echo $employeehr_grid->RowIndex ?>_EmployeeID"<?php echo $employeehr->EmployeeID->editAttributes() ?>>
		<?php echo $employeehr->EmployeeID->selectOptionListHtml("x<?php echo $employeehr_grid->RowIndex ?>_EmployeeID") ?>
	</select>
</div>
<?php echo $employeehr->EmployeeID->Lookup->getParamTag("p_x" . $employeehr_grid->RowIndex . "_EmployeeID") ?>
</span>
<?php } ?>
<?php } else { ?>
<span id="el$rowindex$_employeehr_EmployeeID" class="form-group employeehr_EmployeeID">
<span<?php echo $employeehr->EmployeeID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeehr->EmployeeID->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeehr" data-field="x_EmployeeID" name="x<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" id="x<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" value="<?php echo HtmlEncode($employeehr->EmployeeID->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeehr" data-field="x_EmployeeID" name="o<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" id="o<?php echo $employeehr_grid->RowIndex ?>_EmployeeID" value="<?php echo HtmlEncode($employeehr->EmployeeID->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($employeehr->JobTitle->Visible) { // JobTitle ?>
		<td data-name="JobTitle">
<?php if (!$employeehr->isConfirm()) { ?>
<span id="el$rowindex$_employeehr_JobTitle" class="form-group employeehr_JobTitle">
<input type="text" data-table="employeehr" data-field="x_JobTitle" name="x<?php echo $employeehr_grid->RowIndex ?>_JobTitle" id="x<?php echo $employeehr_grid->RowIndex ?>_JobTitle" size="30" maxlength="25" placeholder="<?php echo HtmlEncode($employeehr->JobTitle->getPlaceHolder()) ?>" value="<?php echo $employeehr->JobTitle->EditValue ?>"<?php echo $employeehr->JobTitle->editAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_employeehr_JobTitle" class="form-group employeehr_JobTitle">
<span<?php echo $employeehr->JobTitle->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeehr->JobTitle->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeehr" data-field="x_JobTitle" name="x<?php echo $employeehr_grid->RowIndex ?>_JobTitle" id="x<?php echo $employeehr_grid->RowIndex ?>_JobTitle" value="<?php echo HtmlEncode($employeehr->JobTitle->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeehr" data-field="x_JobTitle" name="o<?php echo $employeehr_grid->RowIndex ?>_JobTitle" id="o<?php echo $employeehr_grid->RowIndex ?>_JobTitle" value="<?php echo HtmlEncode($employeehr->JobTitle->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($employeehr->Department->Visible) { // Department ?>
		<td data-name="Department">
<?php if (!$employeehr->isConfirm()) { ?>
<span id="el$rowindex$_employeehr_Department" class="form-group employeehr_Department">
<input type="text" data-table="employeehr" data-field="x_Department" name="x<?php echo $employeehr_grid->RowIndex ?>_Department" id="x<?php echo $employeehr_grid->RowIndex ?>_Department" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeehr->Department->getPlaceHolder()) ?>" value="<?php echo $employeehr->Department->EditValue ?>"<?php echo $employeehr->Department->editAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_employeehr_Department" class="form-group employeehr_Department">
<span<?php echo $employeehr->Department->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeehr->Department->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeehr" data-field="x_Department" name="x<?php echo $employeehr_grid->RowIndex ?>_Department" id="x<?php echo $employeehr_grid->RowIndex ?>_Department" value="<?php echo HtmlEncode($employeehr->Department->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeehr" data-field="x_Department" name="o<?php echo $employeehr_grid->RowIndex ?>_Department" id="o<?php echo $employeehr_grid->RowIndex ?>_Department" value="<?php echo HtmlEncode($employeehr->Department->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($employeehr->BranchID->Visible) { // BranchID ?>
		<td data-name="BranchID">
<?php if (!$employeehr->isConfirm()) { ?>
<span id="el$rowindex$_employeehr_BranchID" class="form-group employeehr_BranchID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="employeehr" data-field="x_BranchID" data-value-separator="<?php echo $employeehr->BranchID->displayValueSeparatorAttribute() ?>" id="x<?php echo $employeehr_grid->RowIndex ?>_BranchID" name="x<?php echo $employeehr_grid->RowIndex ?>_BranchID"<?php echo $employeehr->BranchID->editAttributes() ?>>
		<?php echo $employeehr->BranchID->selectOptionListHtml("x<?php echo $employeehr_grid->RowIndex ?>_BranchID") ?>
	</select>
<?php if (AllowAdd(CurrentProjectID() . "branches") && !$employeehr->BranchID->ReadOnly) { ?>
<div class="input-group-append"><button type="button" class="btn btn-default ew-add-opt-btn" id="aol_x<?php echo $employeehr_grid->RowIndex ?>_BranchID" title="<?php echo HtmlTitle($Language->phrase("AddLink")) . "&nbsp;" . $employeehr->BranchID->caption() ?>" data-title="<?php echo $employeehr->BranchID->caption() ?>" onclick="ew.addOptionDialogShow({lnk:this,el:'x<?php echo $employeehr_grid->RowIndex ?>_BranchID',url:'branchesaddopt.php'});"><i class="fa fa-plus ew-icon"></i></button></div>
<?php } ?>
</div>
<?php echo $employeehr->BranchID->Lookup->getParamTag("p_x" . $employeehr_grid->RowIndex . "_BranchID") ?>
</span>
<?php } else { ?>
<span id="el$rowindex$_employeehr_BranchID" class="form-group employeehr_BranchID">
<span<?php echo $employeehr->BranchID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeehr->BranchID->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeehr" data-field="x_BranchID" name="x<?php echo $employeehr_grid->RowIndex ?>_BranchID" id="x<?php echo $employeehr_grid->RowIndex ?>_BranchID" value="<?php echo HtmlEncode($employeehr->BranchID->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeehr" data-field="x_BranchID" name="o<?php echo $employeehr_grid->RowIndex ?>_BranchID" id="o<?php echo $employeehr_grid->RowIndex ?>_BranchID" value="<?php echo HtmlEncode($employeehr->BranchID->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($employeehr->LawFirmID->Visible) { // LawFirmID ?>
		<td data-name="LawFirmID">
<?php if (!$employeehr->isConfirm()) { ?>
<span id="el$rowindex$_employeehr_LawFirmID" class="form-group employeehr_LawFirmID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="employeehr" data-field="x_LawFirmID" data-value-separator="<?php echo $employeehr->LawFirmID->displayValueSeparatorAttribute() ?>" id="x<?php echo $employeehr_grid->RowIndex ?>_LawFirmID" name="x<?php echo $employeehr_grid->RowIndex ?>_LawFirmID"<?php echo $employeehr->LawFirmID->editAttributes() ?>>
		<?php echo $employeehr->LawFirmID->selectOptionListHtml("x<?php echo $employeehr_grid->RowIndex ?>_LawFirmID") ?>
	</select>
<?php if (AllowAdd(CurrentProjectID() . "lawfirm") && !$employeehr->LawFirmID->ReadOnly) { ?>
<div class="input-group-append"><button type="button" class="btn btn-default ew-add-opt-btn" id="aol_x<?php echo $employeehr_grid->RowIndex ?>_LawFirmID" title="<?php echo HtmlTitle($Language->phrase("AddLink")) . "&nbsp;" . $employeehr->LawFirmID->caption() ?>" data-title="<?php echo $employeehr->LawFirmID->caption() ?>" onclick="ew.addOptionDialogShow({lnk:this,el:'x<?php echo $employeehr_grid->RowIndex ?>_LawFirmID',url:'lawfirmaddopt.php'});"><i class="fa fa-plus ew-icon"></i></button></div>
<?php } ?>
</div>
<?php echo $employeehr->LawFirmID->Lookup->getParamTag("p_x" . $employeehr_grid->RowIndex . "_LawFirmID") ?>
</span>
<?php } else { ?>
<span id="el$rowindex$_employeehr_LawFirmID" class="form-group employeehr_LawFirmID">
<span<?php echo $employeehr->LawFirmID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeehr->LawFirmID->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeehr" data-field="x_LawFirmID" name="x<?php echo $employeehr_grid->RowIndex ?>_LawFirmID" id="x<?php echo $employeehr_grid->RowIndex ?>_LawFirmID" value="<?php echo HtmlEncode($employeehr->LawFirmID->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeehr" data-field="x_LawFirmID" name="o<?php echo $employeehr_grid->RowIndex ?>_LawFirmID" id="o<?php echo $employeehr_grid->RowIndex ?>_LawFirmID" value="<?php echo HtmlEncode($employeehr->LawFirmID->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($employeehr->HireDate->Visible) { // HireDate ?>
		<td data-name="HireDate">
<?php if (!$employeehr->isConfirm()) { ?>
<span id="el$rowindex$_employeehr_HireDate" class="form-group employeehr_HireDate">
<input type="text" data-table="employeehr" data-field="x_HireDate" name="x<?php echo $employeehr_grid->RowIndex ?>_HireDate" id="x<?php echo $employeehr_grid->RowIndex ?>_HireDate" placeholder="<?php echo HtmlEncode($employeehr->HireDate->getPlaceHolder()) ?>" value="<?php echo $employeehr->HireDate->EditValue ?>"<?php echo $employeehr->HireDate->editAttributes() ?>>
<?php if (!$employeehr->HireDate->ReadOnly && !$employeehr->HireDate->Disabled && !isset($employeehr->HireDate->EditAttrs["readonly"]) && !isset($employeehr->HireDate->EditAttrs["disabled"])) { ?>
<script>
ew.createDateTimePicker("femployeehrgrid", "x<?php echo $employeehr_grid->RowIndex ?>_HireDate", {"ignoreReadonly":true,"useCurrent":false,"format":0});
</script>
<?php } ?>
</span>
<?php } else { ?>
<span id="el$rowindex$_employeehr_HireDate" class="form-group employeehr_HireDate">
<span<?php echo $employeehr->HireDate->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeehr->HireDate->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeehr" data-field="x_HireDate" name="x<?php echo $employeehr_grid->RowIndex ?>_HireDate" id="x<?php echo $employeehr_grid->RowIndex ?>_HireDate" value="<?php echo HtmlEncode($employeehr->HireDate->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeehr" data-field="x_HireDate" name="o<?php echo $employeehr_grid->RowIndex ?>_HireDate" id="o<?php echo $employeehr_grid->RowIndex ?>_HireDate" value="<?php echo HtmlEncode($employeehr->HireDate->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($employeehr->EndOfServiceDate->Visible) { // EndOfServiceDate ?>
		<td data-name="EndOfServiceDate">
<?php if (!$employeehr->isConfirm()) { ?>
<span id="el$rowindex$_employeehr_EndOfServiceDate" class="form-group employeehr_EndOfServiceDate">
<input type="text" data-table="employeehr" data-field="x_EndOfServiceDate" name="x<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate" id="x<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate" placeholder="<?php echo HtmlEncode($employeehr->EndOfServiceDate->getPlaceHolder()) ?>" value="<?php echo $employeehr->EndOfServiceDate->EditValue ?>"<?php echo $employeehr->EndOfServiceDate->editAttributes() ?>>
<?php if (!$employeehr->EndOfServiceDate->ReadOnly && !$employeehr->EndOfServiceDate->Disabled && !isset($employeehr->EndOfServiceDate->EditAttrs["readonly"]) && !isset($employeehr->EndOfServiceDate->EditAttrs["disabled"])) { ?>
<script>
ew.createDateTimePicker("femployeehrgrid", "x<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate", {"ignoreReadonly":true,"useCurrent":false,"format":0});
</script>
<?php } ?>
</span>
<?php } else { ?>
<span id="el$rowindex$_employeehr_EndOfServiceDate" class="form-group employeehr_EndOfServiceDate">
<span<?php echo $employeehr->EndOfServiceDate->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeehr->EndOfServiceDate->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeehr" data-field="x_EndOfServiceDate" name="x<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate" id="x<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate" value="<?php echo HtmlEncode($employeehr->EndOfServiceDate->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeehr" data-field="x_EndOfServiceDate" name="o<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate" id="o<?php echo $employeehr_grid->RowIndex ?>_EndOfServiceDate" value="<?php echo HtmlEncode($employeehr->EndOfServiceDate->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($employeehr->SocialSecurity23->Visible) { // SocialSecurity# ?>
		<td data-name="SocialSecurity23">
<?php if (!$employeehr->isConfirm()) { ?>
<span id="el$rowindex$_employeehr_SocialSecurity23" class="form-group employeehr_SocialSecurity23">
<input type="text" data-table="employeehr" data-field="x_SocialSecurity23" name="x<?php echo $employeehr_grid->RowIndex ?>_SocialSecurity23" id="x<?php echo $employeehr_grid->RowIndex ?>_SocialSecurity23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeehr->SocialSecurity23->getPlaceHolder()) ?>" value="<?php echo $employeehr->SocialSecurity23->EditValue ?>"<?php echo $employeehr->SocialSecurity23->editAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_employeehr_SocialSecurity23" class="form-group employeehr_SocialSecurity23">
<span<?php echo $employeehr->SocialSecurity23->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeehr->SocialSecurity23->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeehr" data-field="x_SocialSecurity23" name="x<?php echo $employeehr_grid->RowIndex ?>_SocialSecurity23" id="x<?php echo $employeehr_grid->RowIndex ?>_SocialSecurity23" value="<?php echo HtmlEncode($employeehr->SocialSecurity23->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeehr" data-field="x_SocialSecurity23" name="o<?php echo $employeehr_grid->RowIndex ?>_SocialSecurity23" id="o<?php echo $employeehr_grid->RowIndex ?>_SocialSecurity23" value="<?php echo HtmlEncode($employeehr->SocialSecurity23->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($employeehr->Financial23->Visible) { // Financial# ?>
		<td data-name="Financial23">
<?php if (!$employeehr->isConfirm()) { ?>
<span id="el$rowindex$_employeehr_Financial23" class="form-group employeehr_Financial23">
<input type="text" data-table="employeehr" data-field="x_Financial23" name="x<?php echo $employeehr_grid->RowIndex ?>_Financial23" id="x<?php echo $employeehr_grid->RowIndex ?>_Financial23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeehr->Financial23->getPlaceHolder()) ?>" value="<?php echo $employeehr->Financial23->EditValue ?>"<?php echo $employeehr->Financial23->editAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_employeehr_Financial23" class="form-group employeehr_Financial23">
<span<?php echo $employeehr->Financial23->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeehr->Financial23->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeehr" data-field="x_Financial23" name="x<?php echo $employeehr_grid->RowIndex ?>_Financial23" id="x<?php echo $employeehr_grid->RowIndex ?>_Financial23" value="<?php echo HtmlEncode($employeehr->Financial23->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeehr" data-field="x_Financial23" name="o<?php echo $employeehr_grid->RowIndex ?>_Financial23" id="o<?php echo $employeehr_grid->RowIndex ?>_Financial23" value="<?php echo HtmlEncode($employeehr->Financial23->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($employeehr->Extra23->Visible) { // Extra# ?>
		<td data-name="Extra23">
<?php if (!$employeehr->isConfirm()) { ?>
<span id="el$rowindex$_employeehr_Extra23" class="form-group employeehr_Extra23">
<input type="text" data-table="employeehr" data-field="x_Extra23" name="x<?php echo $employeehr_grid->RowIndex ?>_Extra23" id="x<?php echo $employeehr_grid->RowIndex ?>_Extra23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($employeehr->Extra23->getPlaceHolder()) ?>" value="<?php echo $employeehr->Extra23->EditValue ?>"<?php echo $employeehr->Extra23->editAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_employeehr_Extra23" class="form-group employeehr_Extra23">
<span<?php echo $employeehr->Extra23->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeehr->Extra23->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeehr" data-field="x_Extra23" name="x<?php echo $employeehr_grid->RowIndex ?>_Extra23" id="x<?php echo $employeehr_grid->RowIndex ?>_Extra23" value="<?php echo HtmlEncode($employeehr->Extra23->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeehr" data-field="x_Extra23" name="o<?php echo $employeehr_grid->RowIndex ?>_Extra23" id="o<?php echo $employeehr_grid->RowIndex ?>_Extra23" value="<?php echo HtmlEncode($employeehr->Extra23->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($employeehr->WorkNature->Visible) { // WorkNature ?>
		<td data-name="WorkNature">
<?php if (!$employeehr->isConfirm()) { ?>
<span id="el$rowindex$_employeehr_WorkNature" class="form-group employeehr_WorkNature">
<input type="text" data-table="employeehr" data-field="x_WorkNature" name="x<?php echo $employeehr_grid->RowIndex ?>_WorkNature" id="x<?php echo $employeehr_grid->RowIndex ?>_WorkNature" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($employeehr->WorkNature->getPlaceHolder()) ?>" value="<?php echo $employeehr->WorkNature->EditValue ?>"<?php echo $employeehr->WorkNature->editAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_employeehr_WorkNature" class="form-group employeehr_WorkNature">
<span<?php echo $employeehr->WorkNature->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($employeehr->WorkNature->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="employeehr" data-field="x_WorkNature" name="x<?php echo $employeehr_grid->RowIndex ?>_WorkNature" id="x<?php echo $employeehr_grid->RowIndex ?>_WorkNature" value="<?php echo HtmlEncode($employeehr->WorkNature->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="employeehr" data-field="x_WorkNature" name="o<?php echo $employeehr_grid->RowIndex ?>_WorkNature" id="o<?php echo $employeehr_grid->RowIndex ?>_WorkNature" value="<?php echo HtmlEncode($employeehr->WorkNature->OldValue) ?>">
</td>
	<?php } ?>
<?php

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

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