<?php
namespace PHPMaker2019\project_germanos;

// Session
if (session_status() !== PHP_SESSION_ACTIVE)
	session_start(); // Init session data

// Output buffering
ob_start(); 

// Autoload
include_once "autoload.php";
?>
<?php

// Write header
WriteHeader(FALSE);

// Create page object
$employeeperson_add = new employeeperson_add();

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

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

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

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

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

// Validate form
femployeepersonadd.validate = function() {
	if (!this.validateRequired)
		return true; // Ignore validation
	var $ = jQuery, fobj = this.getForm(), $fobj = $(fobj);
	if ($fobj.find("#confirm").val() == "F")
		return true;
	var elm, felm, uelm, addcnt = 0;
	var $k = $fobj.find("#" + this.formKeyCountName); // Get key_count
	var rowcnt = ($k[0]) ? parseInt($k.val(), 10) : 1;
	var startcnt = (rowcnt == 0) ? 0 : 1; // Check rowcnt == 0 => Inline-Add
	var gridinsert = ["insert", "gridinsert"].includes($fobj.find("#action").val()) && $k[0];
	for (var i = startcnt; i <= rowcnt; i++) {
		var infix = ($k[0]) ? String(i) : "";
		$fobj.data("rowindex", infix);
		<?php if ($employeeperson_add->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_add->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_add->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_add->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_add->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_add->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_add->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_add->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_add->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_add->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_add->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_add->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 } ?>
		<?php if ($employeeperson_add->Notes->Required) { ?>
			elm = this.getElements("x" + infix + "_Notes");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $employeeperson->Notes->caption(), $employeeperson->Notes->RequiredErrorMessage)) ?>");
		<?php } ?>

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

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

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

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

// Form object for search
</script>
<script>

// Write your client script here, no need to add script tags.
</script>
<?php $employeeperson_add->showPageHeader(); ?>
<?php
$employeeperson_add->showMessage();
?>
<form name="femployeepersonadd" id="femployeepersonadd" class="<?php echo $employeeperson_add->FormClassName ?>" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($employeeperson_add->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $employeeperson_add->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="employeeperson">
<input type="hidden" name="action" id="action" value="insert">
<input type="hidden" name="modal" value="<?php echo (int)$employeeperson_add->IsModal ?>">
<?php if ($employeeperson->getCurrentMasterTable() == "employees") { ?>
<input type="hidden" name="<?php echo TABLE_SHOW_MASTER ?>" value="employees">
<input type="hidden" name="fk_EmployeeID" value="<?php echo $employeeperson->EmployeeID->getSessionValue() ?>">
<?php } ?>
<?php if (!$employeeperson_add->IsMobileOrModal) { ?>
<div class="ew-desktop"><!-- desktop -->
<?php } ?>
<?php if ($employeeperson_add->IsMobileOrModal) { ?>
<div class="ew-add-div"><!-- page* -->
<?php } else { ?>
<table id="tbl_employeepersonadd" class="table table-striped table-sm ew-desktop-table"><!-- table* -->
<?php } ?>
<?php if ($employeeperson->EmployeeID->Visible) { // EmployeeID ?>
<?php if ($employeeperson_add->IsMobileOrModal) { ?>
	<div id="r_EmployeeID" class="form-group row">
		<label id="elh_employeeperson_EmployeeID" for="x_EmployeeID" class="<?php echo $employeeperson_add->LeftColumnClass ?>"><?php echo $employeeperson->EmployeeID->caption() ?><?php echo ($employeeperson->EmployeeID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $employeeperson_add->RightColumnClass ?>"><div<?php echo $employeeperson->EmployeeID->cellAttributes() ?>>
<?php if ($employeeperson->EmployeeID->getSessionValue() <> "") { ?>
<span id="el_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_EmployeeID" name="x_EmployeeID" value="<?php echo HtmlEncode($employeeperson->EmployeeID->CurrentValue) ?>">
<?php } else { ?>
<span id="el_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_EmployeeID" name="x_EmployeeID"<?php echo $employeeperson->EmployeeID->editAttributes() ?>>
		<?php echo $employeeperson->EmployeeID->selectOptionListHtml("x_EmployeeID") ?>
	</select>
</div>
<?php echo $employeeperson->EmployeeID->Lookup->getParamTag("p_x_EmployeeID") ?>
</span>
<?php } ?>
<?php echo $employeeperson->EmployeeID->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_EmployeeID">
		<td class="<?php echo $employeeperson_add->TableLeftColumnClass ?>"><span id="elh_employeeperson_EmployeeID"><?php echo $employeeperson->EmployeeID->caption() ?><?php echo ($employeeperson->EmployeeID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $employeeperson->EmployeeID->cellAttributes() ?>>
<?php if ($employeeperson->EmployeeID->getSessionValue() <> "") { ?>
<span id="el_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_EmployeeID" name="x_EmployeeID" value="<?php echo HtmlEncode($employeeperson->EmployeeID->CurrentValue) ?>">
<?php } else { ?>
<span id="el_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_EmployeeID" name="x_EmployeeID"<?php echo $employeeperson->EmployeeID->editAttributes() ?>>
		<?php echo $employeeperson->EmployeeID->selectOptionListHtml("x_EmployeeID") ?>
	</select>
</div>
<?php echo $employeeperson->EmployeeID->Lookup->getParamTag("p_x_EmployeeID") ?>
</span>
<?php } ?>
<?php echo $employeeperson->EmployeeID->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($employeeperson->MaritalStatusID->Visible) { // MaritalStatusID ?>
<?php if ($employeeperson_add->IsMobileOrModal) { ?>
	<div id="r_MaritalStatusID" class="form-group row">
		<label id="elh_employeeperson_MaritalStatusID" for="x_MaritalStatusID" class="<?php echo $employeeperson_add->LeftColumnClass ?>"><?php echo $employeeperson->MaritalStatusID->caption() ?><?php echo ($employeeperson->MaritalStatusID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $employeeperson_add->RightColumnClass ?>"><div<?php echo $employeeperson->MaritalStatusID->cellAttributes() ?>>
<span id="el_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_MaritalStatusID" name="x_MaritalStatusID"<?php echo $employeeperson->MaritalStatusID->editAttributes() ?>>
		<?php echo $employeeperson->MaritalStatusID->selectOptionListHtml("x_MaritalStatusID") ?>
	</select>
</div>
<?php echo $employeeperson->MaritalStatusID->Lookup->getParamTag("p_x_MaritalStatusID") ?>
</span>
<?php echo $employeeperson->MaritalStatusID->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_MaritalStatusID">
		<td class="<?php echo $employeeperson_add->TableLeftColumnClass ?>"><span id="elh_employeeperson_MaritalStatusID"><?php echo $employeeperson->MaritalStatusID->caption() ?><?php echo ($employeeperson->MaritalStatusID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $employeeperson->MaritalStatusID->cellAttributes() ?>>
<span id="el_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_MaritalStatusID" name="x_MaritalStatusID"<?php echo $employeeperson->MaritalStatusID->editAttributes() ?>>
		<?php echo $employeeperson->MaritalStatusID->selectOptionListHtml("x_MaritalStatusID") ?>
	</select>
</div>
<?php echo $employeeperson->MaritalStatusID->Lookup->getParamTag("p_x_MaritalStatusID") ?>
</span>
<?php echo $employeeperson->MaritalStatusID->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($employeeperson->CivilStatus23->Visible) { // CivilStatus# ?>
<?php if ($employeeperson_add->IsMobileOrModal) { ?>
	<div id="r_CivilStatus23" class="form-group row">
		<label id="elh_employeeperson_CivilStatus23" for="x_CivilStatus23" class="<?php echo $employeeperson_add->LeftColumnClass ?>"><?php echo $employeeperson->CivilStatus23->caption() ?><?php echo ($employeeperson->CivilStatus23->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $employeeperson_add->RightColumnClass ?>"><div<?php echo $employeeperson->CivilStatus23->cellAttributes() ?>>
<span id="el_employeeperson_CivilStatus23">
<input type="text" data-table="employeeperson" data-field="x_CivilStatus23" name="x_CivilStatus23" id="x_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 echo $employeeperson->CivilStatus23->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_CivilStatus23">
		<td class="<?php echo $employeeperson_add->TableLeftColumnClass ?>"><span id="elh_employeeperson_CivilStatus23"><?php echo $employeeperson->CivilStatus23->caption() ?><?php echo ($employeeperson->CivilStatus23->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $employeeperson->CivilStatus23->cellAttributes() ?>>
<span id="el_employeeperson_CivilStatus23">
<input type="text" data-table="employeeperson" data-field="x_CivilStatus23" name="x_CivilStatus23" id="x_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 echo $employeeperson->CivilStatus23->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($employeeperson->CivilStatusPlace->Visible) { // CivilStatusPlace ?>
<?php if ($employeeperson_add->IsMobileOrModal) { ?>
	<div id="r_CivilStatusPlace" class="form-group row">
		<label id="elh_employeeperson_CivilStatusPlace" for="x_CivilStatusPlace" class="<?php echo $employeeperson_add->LeftColumnClass ?>"><?php echo $employeeperson->CivilStatusPlace->caption() ?><?php echo ($employeeperson->CivilStatusPlace->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $employeeperson_add->RightColumnClass ?>"><div<?php echo $employeeperson->CivilStatusPlace->cellAttributes() ?>>
<span id="el_employeeperson_CivilStatusPlace">
<input type="text" data-table="employeeperson" data-field="x_CivilStatusPlace" name="x_CivilStatusPlace" id="x_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 echo $employeeperson->CivilStatusPlace->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_CivilStatusPlace">
		<td class="<?php echo $employeeperson_add->TableLeftColumnClass ?>"><span id="elh_employeeperson_CivilStatusPlace"><?php echo $employeeperson->CivilStatusPlace->caption() ?><?php echo ($employeeperson->CivilStatusPlace->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $employeeperson->CivilStatusPlace->cellAttributes() ?>>
<span id="el_employeeperson_CivilStatusPlace">
<input type="text" data-table="employeeperson" data-field="x_CivilStatusPlace" name="x_CivilStatusPlace" id="x_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 echo $employeeperson->CivilStatusPlace->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($employeeperson->IdCard23->Visible) { // IdCard# ?>
<?php if ($employeeperson_add->IsMobileOrModal) { ?>
	<div id="r_IdCard23" class="form-group row">
		<label id="elh_employeeperson_IdCard23" for="x_IdCard23" class="<?php echo $employeeperson_add->LeftColumnClass ?>"><?php echo $employeeperson->IdCard23->caption() ?><?php echo ($employeeperson->IdCard23->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $employeeperson_add->RightColumnClass ?>"><div<?php echo $employeeperson->IdCard23->cellAttributes() ?>>
<span id="el_employeeperson_IdCard23">
<input type="text" data-table="employeeperson" data-field="x_IdCard23" name="x_IdCard23" id="x_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 echo $employeeperson->IdCard23->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_IdCard23">
		<td class="<?php echo $employeeperson_add->TableLeftColumnClass ?>"><span id="elh_employeeperson_IdCard23"><?php echo $employeeperson->IdCard23->caption() ?><?php echo ($employeeperson->IdCard23->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $employeeperson->IdCard23->cellAttributes() ?>>
<span id="el_employeeperson_IdCard23">
<input type="text" data-table="employeeperson" data-field="x_IdCard23" name="x_IdCard23" id="x_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 echo $employeeperson->IdCard23->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($employeeperson->PracticingProfessionLicense23->Visible) { // PracticingProfessionLicense# ?>
<?php if ($employeeperson_add->IsMobileOrModal) { ?>
	<div id="r_PracticingProfessionLicense23" class="form-group row">
		<label id="elh_employeeperson_PracticingProfessionLicense23" for="x_PracticingProfessionLicense23" class="<?php echo $employeeperson_add->LeftColumnClass ?>"><?php echo $employeeperson->PracticingProfessionLicense23->caption() ?><?php echo ($employeeperson->PracticingProfessionLicense23->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $employeeperson_add->RightColumnClass ?>"><div<?php echo $employeeperson->PracticingProfessionLicense23->cellAttributes() ?>>
<span id="el_employeeperson_PracticingProfessionLicense23">
<input type="text" data-table="employeeperson" data-field="x_PracticingProfessionLicense23" name="x_PracticingProfessionLicense23" id="x_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 echo $employeeperson->PracticingProfessionLicense23->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_PracticingProfessionLicense23">
		<td class="<?php echo $employeeperson_add->TableLeftColumnClass ?>"><span id="elh_employeeperson_PracticingProfessionLicense23"><?php echo $employeeperson->PracticingProfessionLicense23->caption() ?><?php echo ($employeeperson->PracticingProfessionLicense23->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $employeeperson->PracticingProfessionLicense23->cellAttributes() ?>>
<span id="el_employeeperson_PracticingProfessionLicense23">
<input type="text" data-table="employeeperson" data-field="x_PracticingProfessionLicense23" name="x_PracticingProfessionLicense23" id="x_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 echo $employeeperson->PracticingProfessionLicense23->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($employeeperson->NationalId23->Visible) { // NationalId# ?>
<?php if ($employeeperson_add->IsMobileOrModal) { ?>
	<div id="r_NationalId23" class="form-group row">
		<label id="elh_employeeperson_NationalId23" for="x_NationalId23" class="<?php echo $employeeperson_add->LeftColumnClass ?>"><?php echo $employeeperson->NationalId23->caption() ?><?php echo ($employeeperson->NationalId23->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $employeeperson_add->RightColumnClass ?>"><div<?php echo $employeeperson->NationalId23->cellAttributes() ?>>
<span id="el_employeeperson_NationalId23">
<input type="text" data-table="employeeperson" data-field="x_NationalId23" name="x_NationalId23" id="x_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 echo $employeeperson->NationalId23->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_NationalId23">
		<td class="<?php echo $employeeperson_add->TableLeftColumnClass ?>"><span id="elh_employeeperson_NationalId23"><?php echo $employeeperson->NationalId23->caption() ?><?php echo ($employeeperson->NationalId23->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $employeeperson->NationalId23->cellAttributes() ?>>
<span id="el_employeeperson_NationalId23">
<input type="text" data-table="employeeperson" data-field="x_NationalId23" name="x_NationalId23" id="x_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 echo $employeeperson->NationalId23->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($employeeperson->Nationality1->Visible) { // Nationality1 ?>
<?php if ($employeeperson_add->IsMobileOrModal) { ?>
	<div id="r_Nationality1" class="form-group row">
		<label id="elh_employeeperson_Nationality1" for="x_Nationality1" class="<?php echo $employeeperson_add->LeftColumnClass ?>"><?php echo $employeeperson->Nationality1->caption() ?><?php echo ($employeeperson->Nationality1->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $employeeperson_add->RightColumnClass ?>"><div<?php echo $employeeperson->Nationality1->cellAttributes() ?>>
<span id="el_employeeperson_Nationality1">
<input type="text" data-table="employeeperson" data-field="x_Nationality1" name="x_Nationality1" id="x_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 echo $employeeperson->Nationality1->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_Nationality1">
		<td class="<?php echo $employeeperson_add->TableLeftColumnClass ?>"><span id="elh_employeeperson_Nationality1"><?php echo $employeeperson->Nationality1->caption() ?><?php echo ($employeeperson->Nationality1->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $employeeperson->Nationality1->cellAttributes() ?>>
<span id="el_employeeperson_Nationality1">
<input type="text" data-table="employeeperson" data-field="x_Nationality1" name="x_Nationality1" id="x_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 echo $employeeperson->Nationality1->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($employeeperson->Nationality2->Visible) { // Nationality2 ?>
<?php if ($employeeperson_add->IsMobileOrModal) { ?>
	<div id="r_Nationality2" class="form-group row">
		<label id="elh_employeeperson_Nationality2" for="x_Nationality2" class="<?php echo $employeeperson_add->LeftColumnClass ?>"><?php echo $employeeperson->Nationality2->caption() ?><?php echo ($employeeperson->Nationality2->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $employeeperson_add->RightColumnClass ?>"><div<?php echo $employeeperson->Nationality2->cellAttributes() ?>>
<span id="el_employeeperson_Nationality2">
<input type="text" data-table="employeeperson" data-field="x_Nationality2" name="x_Nationality2" id="x_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 echo $employeeperson->Nationality2->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_Nationality2">
		<td class="<?php echo $employeeperson_add->TableLeftColumnClass ?>"><span id="elh_employeeperson_Nationality2"><?php echo $employeeperson->Nationality2->caption() ?><?php echo ($employeeperson->Nationality2->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $employeeperson->Nationality2->cellAttributes() ?>>
<span id="el_employeeperson_Nationality2">
<input type="text" data-table="employeeperson" data-field="x_Nationality2" name="x_Nationality2" id="x_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 echo $employeeperson->Nationality2->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($employeeperson->Nationality3->Visible) { // Nationality3 ?>
<?php if ($employeeperson_add->IsMobileOrModal) { ?>
	<div id="r_Nationality3" class="form-group row">
		<label id="elh_employeeperson_Nationality3" for="x_Nationality3" class="<?php echo $employeeperson_add->LeftColumnClass ?>"><?php echo $employeeperson->Nationality3->caption() ?><?php echo ($employeeperson->Nationality3->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $employeeperson_add->RightColumnClass ?>"><div<?php echo $employeeperson->Nationality3->cellAttributes() ?>>
<span id="el_employeeperson_Nationality3">
<input type="text" data-table="employeeperson" data-field="x_Nationality3" name="x_Nationality3" id="x_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 echo $employeeperson->Nationality3->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_Nationality3">
		<td class="<?php echo $employeeperson_add->TableLeftColumnClass ?>"><span id="elh_employeeperson_Nationality3"><?php echo $employeeperson->Nationality3->caption() ?><?php echo ($employeeperson->Nationality3->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $employeeperson->Nationality3->cellAttributes() ?>>
<span id="el_employeeperson_Nationality3">
<input type="text" data-table="employeeperson" data-field="x_Nationality3" name="x_Nationality3" id="x_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 echo $employeeperson->Nationality3->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($employeeperson->DriverLicense23->Visible) { // DriverLicense# ?>
<?php if ($employeeperson_add->IsMobileOrModal) { ?>
	<div id="r_DriverLicense23" class="form-group row">
		<label id="elh_employeeperson_DriverLicense23" for="x_DriverLicense23" class="<?php echo $employeeperson_add->LeftColumnClass ?>"><?php echo $employeeperson->DriverLicense23->caption() ?><?php echo ($employeeperson->DriverLicense23->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $employeeperson_add->RightColumnClass ?>"><div<?php echo $employeeperson->DriverLicense23->cellAttributes() ?>>
<span id="el_employeeperson_DriverLicense23">
<input type="text" data-table="employeeperson" data-field="x_DriverLicense23" name="x_DriverLicense23" id="x_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 echo $employeeperson->DriverLicense23->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_DriverLicense23">
		<td class="<?php echo $employeeperson_add->TableLeftColumnClass ?>"><span id="elh_employeeperson_DriverLicense23"><?php echo $employeeperson->DriverLicense23->caption() ?><?php echo ($employeeperson->DriverLicense23->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $employeeperson->DriverLicense23->cellAttributes() ?>>
<span id="el_employeeperson_DriverLicense23">
<input type="text" data-table="employeeperson" data-field="x_DriverLicense23" name="x_DriverLicense23" id="x_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 echo $employeeperson->DriverLicense23->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($employeeperson->Extra23->Visible) { // Extra# ?>
<?php if ($employeeperson_add->IsMobileOrModal) { ?>
	<div id="r_Extra23" class="form-group row">
		<label id="elh_employeeperson_Extra23" for="x_Extra23" class="<?php echo $employeeperson_add->LeftColumnClass ?>"><?php echo $employeeperson->Extra23->caption() ?><?php echo ($employeeperson->Extra23->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $employeeperson_add->RightColumnClass ?>"><div<?php echo $employeeperson->Extra23->cellAttributes() ?>>
<span id="el_employeeperson_Extra23">
<input type="text" data-table="employeeperson" data-field="x_Extra23" name="x_Extra23" id="x_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 echo $employeeperson->Extra23->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_Extra23">
		<td class="<?php echo $employeeperson_add->TableLeftColumnClass ?>"><span id="elh_employeeperson_Extra23"><?php echo $employeeperson->Extra23->caption() ?><?php echo ($employeeperson->Extra23->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $employeeperson->Extra23->cellAttributes() ?>>
<span id="el_employeeperson_Extra23">
<input type="text" data-table="employeeperson" data-field="x_Extra23" name="x_Extra23" id="x_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 echo $employeeperson->Extra23->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($employeeperson->Notes->Visible) { // Notes ?>
<?php if ($employeeperson_add->IsMobileOrModal) { ?>
	<div id="r_Notes" class="form-group row">
		<label id="elh_employeeperson_Notes" for="x_Notes" class="<?php echo $employeeperson_add->LeftColumnClass ?>"><?php echo $employeeperson->Notes->caption() ?><?php echo ($employeeperson->Notes->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $employeeperson_add->RightColumnClass ?>"><div<?php echo $employeeperson->Notes->cellAttributes() ?>>
<span id="el_employeeperson_Notes">
<textarea data-table="employeeperson" data-field="x_Notes" name="x_Notes" id="x_Notes" cols="35" rows="4" placeholder="<?php echo HtmlEncode($employeeperson->Notes->getPlaceHolder()) ?>"<?php echo $employeeperson->Notes->editAttributes() ?>><?php echo $employeeperson->Notes->EditValue ?></textarea>
</span>
<?php echo $employeeperson->Notes->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_Notes">
		<td class="<?php echo $employeeperson_add->TableLeftColumnClass ?>"><span id="elh_employeeperson_Notes"><?php echo $employeeperson->Notes->caption() ?><?php echo ($employeeperson->Notes->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $employeeperson->Notes->cellAttributes() ?>>
<span id="el_employeeperson_Notes">
<textarea data-table="employeeperson" data-field="x_Notes" name="x_Notes" id="x_Notes" cols="35" rows="4" placeholder="<?php echo HtmlEncode($employeeperson->Notes->getPlaceHolder()) ?>"<?php echo $employeeperson->Notes->editAttributes() ?>><?php echo $employeeperson->Notes->EditValue ?></textarea>
</span>
<?php echo $employeeperson->Notes->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($employeeperson_add->IsMobileOrModal) { ?>
</div><!-- /page* -->
<?php } else { ?>
</table><!-- /table* -->
<?php } ?>
<?php if (!$employeeperson_add->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $employeeperson_add->OffsetColumnClass ?>"><!-- buttons offset -->
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?php echo $Language->phrase("AddBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?php echo $employeeperson_add->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
<?php if (!$employeeperson_add->IsMobileOrModal) { ?>
</div><!-- /desktop -->
<?php } ?>
</form>
<?php
$employeeperson_add->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<script>

// Write your table-specific startup script here
// document.write("page loaded");

</script>
<?php include_once "footer.php" ?>
<?php
$employeeperson_add->terminate();
?>
