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

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

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

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

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

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

// Validate form
fclientpartnersedit.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 ($clientpartners_edit->ClientPartnerID->Required) { ?>
			elm = this.getElements("x" + infix + "_ClientPartnerID");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $clientpartners->ClientPartnerID->caption(), $clientpartners->ClientPartnerID->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($clientpartners_edit->ClientID->Required) { ?>
			elm = this.getElements("x" + infix + "_ClientID");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $clientpartners->ClientID->caption(), $clientpartners->ClientID->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($clientpartners_edit->TitleID->Required) { ?>
			elm = this.getElements("x" + infix + "_TitleID");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $clientpartners->TitleID->caption(), $clientpartners->TitleID->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($clientpartners_edit->FirstName->Required) { ?>
			elm = this.getElements("x" + infix + "_FirstName");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $clientpartners->FirstName->caption(), $clientpartners->FirstName->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($clientpartners_edit->MiddleName->Required) { ?>
			elm = this.getElements("x" + infix + "_MiddleName");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $clientpartners->MiddleName->caption(), $clientpartners->MiddleName->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($clientpartners_edit->LastName->Required) { ?>
			elm = this.getElements("x" + infix + "_LastName");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $clientpartners->LastName->caption(), $clientpartners->LastName->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($clientpartners_edit->Notes->Required) { ?>
			elm = this.getElements("x" + infix + "_Notes");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $clientpartners->Notes->caption(), $clientpartners->Notes->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($clientpartners_edit->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", $clientpartners->JobTitle->caption(), $clientpartners->JobTitle->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($clientpartners_edit->Photo->Required) { ?>
			felm = this.getElements("x" + infix + "_Photo");
			elm = this.getElements("fn_x" + infix + "_Photo");
			if (felm && elm && !ew.hasValue(elm))
				return this.onError(felm, "<?php echo JsEncode(str_replace("%s", $clientpartners->Photo->caption(), $clientpartners->Photo->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($clientpartners_edit->BirthDate->Required) { ?>
			elm = this.getElements("x" + infix + "_BirthDate");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $clientpartners->BirthDate->caption(), $clientpartners->BirthDate->RequiredErrorMessage)) ?>");
		<?php } ?>
			elm = this.getElements("x" + infix + "_BirthDate");
			if (elm && !ew.checkDateDef(elm.value))
				return this.onError(elm, "<?php echo JsEncode($clientpartners->BirthDate->errorMessage()) ?>");
		<?php if ($clientpartners_edit->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", $clientpartners->MaritalStatusID->caption(), $clientpartners->MaritalStatusID->RequiredErrorMessage)) ?>");
		<?php } ?>
			elm = this.getElements("x" + infix + "_MaritalStatusID");
			if (elm && !ew.checkInteger(elm.value))
				return this.onError(elm, "<?php echo JsEncode($clientpartners->MaritalStatusID->errorMessage()) ?>");
		<?php if ($clientpartners_edit->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", $clientpartners->CivilStatus23->caption(), $clientpartners->CivilStatus23->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($clientpartners_edit->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", $clientpartners->CivilStatusPlace->caption(), $clientpartners->CivilStatusPlace->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($clientpartners_edit->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", $clientpartners->IdCard23->caption(), $clientpartners->IdCard23->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($clientpartners_edit->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", $clientpartners->Nationality1->caption(), $clientpartners->Nationality1->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($clientpartners_edit->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", $clientpartners->Nationality2->caption(), $clientpartners->Nationality2->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($clientpartners_edit->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", $clientpartners->Extra23->caption(), $clientpartners->Extra23->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
fclientpartnersedit.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
fclientpartnersedit.validateRequired = <?php echo json_encode(CLIENT_VALIDATE) ?>;

// Dynamic selection lists
fclientpartnersedit.lists["x_ClientID"] = <?php echo $clientpartners_edit->ClientID->Lookup->toClientList() ?>;
fclientpartnersedit.lists["x_ClientID"].options = <?php echo JsonEncode($clientpartners_edit->ClientID->lookupOptions()) ?>;
fclientpartnersedit.lists["x_TitleID"] = <?php echo $clientpartners_edit->TitleID->Lookup->toClientList() ?>;
fclientpartnersedit.lists["x_TitleID"].options = <?php echo JsonEncode($clientpartners_edit->TitleID->lookupOptions()) ?>;
fclientpartnersedit.lists["x_MaritalStatusID"] = <?php echo $clientpartners_edit->MaritalStatusID->Lookup->toClientList() ?>;
fclientpartnersedit.lists["x_MaritalStatusID"].options = <?php echo JsonEncode($clientpartners_edit->MaritalStatusID->lookupOptions()) ?>;
fclientpartnersedit.autoSuggests["x_MaritalStatusID"] = <?php echo json_encode(["data" => "ajax=autosuggest"]) ?>;

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

// Write your client script here, no need to add script tags.
</script>
<?php $clientpartners_edit->showPageHeader(); ?>
<?php
$clientpartners_edit->showMessage();
?>
<?php if (!$clientpartners_edit->IsModal) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($clientpartners_edit->Pager)) $clientpartners_edit->Pager = new PrevNextPager($clientpartners_edit->StartRec, $clientpartners_edit->DisplayRecs, $clientpartners_edit->TotalRecs, $clientpartners_edit->AutoHidePager) ?>
<?php if ($clientpartners_edit->Pager->RecordCount > 0 && $clientpartners_edit->Pager->Visible) { ?>
<div class="ew-pager">
<span><?php echo $Language->Phrase("Page") ?>&nbsp;</span>
<div class="ew-prev-next"><div class="input-group input-group-sm">
<div class="input-group-prepend">
<!-- first page button -->
	<?php if ($clientpartners_edit->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $clientpartners_edit->pageUrl() ?>start=<?php echo $clientpartners_edit->Pager->FirstButton->Start ?>"><i class="icon-first ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerFirst") ?>"><i class="icon-first ew-icon"></i></a>
	<?php } ?>
<!-- previous page button -->
	<?php if ($clientpartners_edit->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $clientpartners_edit->pageUrl() ?>start=<?php echo $clientpartners_edit->Pager->PrevButton->Start ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerPrevious") ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } ?>
</div>
<!-- current page number -->
	<input class="form-control" type="text" name="<?php echo TABLE_PAGE_NO ?>" value="<?php echo $clientpartners_edit->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($clientpartners_edit->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $clientpartners_edit->pageUrl() ?>start=<?php echo $clientpartners_edit->Pager->NextButton->Start ?>"><i class="icon-next ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerNext") ?>"><i class="icon-next ew-icon"></i></a>
	<?php } ?>
<!-- last page button -->
	<?php if ($clientpartners_edit->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $clientpartners_edit->pageUrl() ?>start=<?php echo $clientpartners_edit->Pager->LastButton->Start ?>"><i class="icon-last ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerLast") ?>"><i class="icon-last ew-icon"></i></a>
	<?php } ?>
</div>
</div>
</div>
<span>&nbsp;<?php echo $Language->Phrase("of") ?>&nbsp;<?php echo $clientpartners_edit->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<form name="fclientpartnersedit" id="fclientpartnersedit" class="<?php echo $clientpartners_edit->FormClassName ?>" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($clientpartners_edit->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $clientpartners_edit->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="clientpartners">
<input type="hidden" name="action" id="action" value="update">
<input type="hidden" name="modal" value="<?php echo (int)$clientpartners_edit->IsModal ?>">
<?php if ($clientpartners->getCurrentMasterTable() == "clients") { ?>
<input type="hidden" name="<?php echo TABLE_SHOW_MASTER ?>" value="clients">
<input type="hidden" name="fk_ClientID" value="<?php echo $clientpartners->ClientID->getSessionValue() ?>">
<?php } ?>
<?php if (!$clientpartners_edit->IsMobileOrModal) { ?>
<div class="ew-desktop"><!-- desktop -->
<?php } ?>
<?php if ($clientpartners_edit->IsMobileOrModal) { ?>
<div class="ew-edit-div"><!-- page* -->
<?php } else { ?>
<table id="tbl_clientpartnersedit" class="table table-striped table-sm ew-desktop-table"><!-- table* -->
<?php } ?>
<?php if ($clientpartners->ClientPartnerID->Visible) { // ClientPartnerID ?>
<?php if ($clientpartners_edit->IsMobileOrModal) { ?>
	<div id="r_ClientPartnerID" class="form-group row">
		<label id="elh_clientpartners_ClientPartnerID" class="<?php echo $clientpartners_edit->LeftColumnClass ?>"><?php echo $clientpartners->ClientPartnerID->caption() ?><?php echo ($clientpartners->ClientPartnerID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $clientpartners_edit->RightColumnClass ?>"><div<?php echo $clientpartners->ClientPartnerID->cellAttributes() ?>>
<span id="el_clientpartners_ClientPartnerID">
<span<?php echo $clientpartners->ClientPartnerID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($clientpartners->ClientPartnerID->EditValue) ?>"></span>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_ClientPartnerID" name="x_ClientPartnerID" id="x_ClientPartnerID" value="<?php echo HtmlEncode($clientpartners->ClientPartnerID->CurrentValue) ?>">
<?php echo $clientpartners->ClientPartnerID->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_ClientPartnerID">
		<td class="<?php echo $clientpartners_edit->TableLeftColumnClass ?>"><span id="elh_clientpartners_ClientPartnerID"><?php echo $clientpartners->ClientPartnerID->caption() ?><?php echo ($clientpartners->ClientPartnerID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $clientpartners->ClientPartnerID->cellAttributes() ?>>
<span id="el_clientpartners_ClientPartnerID">
<span<?php echo $clientpartners->ClientPartnerID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($clientpartners->ClientPartnerID->EditValue) ?>"></span>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_ClientPartnerID" name="x_ClientPartnerID" id="x_ClientPartnerID" value="<?php echo HtmlEncode($clientpartners->ClientPartnerID->CurrentValue) ?>">
<?php echo $clientpartners->ClientPartnerID->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->ClientID->Visible) { // ClientID ?>
<?php if ($clientpartners_edit->IsMobileOrModal) { ?>
	<div id="r_ClientID" class="form-group row">
		<label id="elh_clientpartners_ClientID" for="x_ClientID" class="<?php echo $clientpartners_edit->LeftColumnClass ?>"><?php echo $clientpartners->ClientID->caption() ?><?php echo ($clientpartners->ClientID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $clientpartners_edit->RightColumnClass ?>"><div<?php echo $clientpartners->ClientID->cellAttributes() ?>>
<?php if ($clientpartners->ClientID->getSessionValue() <> "") { ?>
<span id="el_clientpartners_ClientID">
<span<?php echo $clientpartners->ClientID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($clientpartners->ClientID->ViewValue) ?>"></span>
</span>
<input type="hidden" id="x_ClientID" name="x_ClientID" value="<?php echo HtmlEncode($clientpartners->ClientID->CurrentValue) ?>">
<?php } else { ?>
<span id="el_clientpartners_ClientID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="clientpartners" data-field="x_ClientID" data-value-separator="<?php echo $clientpartners->ClientID->displayValueSeparatorAttribute() ?>" id="x_ClientID" name="x_ClientID"<?php echo $clientpartners->ClientID->editAttributes() ?>>
		<?php echo $clientpartners->ClientID->selectOptionListHtml("x_ClientID") ?>
	</select>
</div>
<?php echo $clientpartners->ClientID->Lookup->getParamTag("p_x_ClientID") ?>
</span>
<?php } ?>
<?php echo $clientpartners->ClientID->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_ClientID">
		<td class="<?php echo $clientpartners_edit->TableLeftColumnClass ?>"><span id="elh_clientpartners_ClientID"><?php echo $clientpartners->ClientID->caption() ?><?php echo ($clientpartners->ClientID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $clientpartners->ClientID->cellAttributes() ?>>
<?php if ($clientpartners->ClientID->getSessionValue() <> "") { ?>
<span id="el_clientpartners_ClientID">
<span<?php echo $clientpartners->ClientID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($clientpartners->ClientID->ViewValue) ?>"></span>
</span>
<input type="hidden" id="x_ClientID" name="x_ClientID" value="<?php echo HtmlEncode($clientpartners->ClientID->CurrentValue) ?>">
<?php } else { ?>
<span id="el_clientpartners_ClientID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="clientpartners" data-field="x_ClientID" data-value-separator="<?php echo $clientpartners->ClientID->displayValueSeparatorAttribute() ?>" id="x_ClientID" name="x_ClientID"<?php echo $clientpartners->ClientID->editAttributes() ?>>
		<?php echo $clientpartners->ClientID->selectOptionListHtml("x_ClientID") ?>
	</select>
</div>
<?php echo $clientpartners->ClientID->Lookup->getParamTag("p_x_ClientID") ?>
</span>
<?php } ?>
<?php echo $clientpartners->ClientID->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->TitleID->Visible) { // TitleID ?>
<?php if ($clientpartners_edit->IsMobileOrModal) { ?>
	<div id="r_TitleID" class="form-group row">
		<label id="elh_clientpartners_TitleID" for="x_TitleID" class="<?php echo $clientpartners_edit->LeftColumnClass ?>"><?php echo $clientpartners->TitleID->caption() ?><?php echo ($clientpartners->TitleID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $clientpartners_edit->RightColumnClass ?>"><div<?php echo $clientpartners->TitleID->cellAttributes() ?>>
<span id="el_clientpartners_TitleID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="clientpartners" data-field="x_TitleID" data-value-separator="<?php echo $clientpartners->TitleID->displayValueSeparatorAttribute() ?>" id="x_TitleID" name="x_TitleID"<?php echo $clientpartners->TitleID->editAttributes() ?>>
		<?php echo $clientpartners->TitleID->selectOptionListHtml("x_TitleID") ?>
	</select>
<?php if (AllowAdd(CurrentProjectID() . "titles") && !$clientpartners->TitleID->ReadOnly) { ?>
<div class="input-group-append"><button type="button" class="btn btn-default ew-add-opt-btn" id="aol_x_TitleID" title="<?php echo HtmlTitle($Language->phrase("AddLink")) . "&nbsp;" . $clientpartners->TitleID->caption() ?>" data-title="<?php echo $clientpartners->TitleID->caption() ?>" onclick="ew.addOptionDialogShow({lnk:this,el:'x_TitleID',url:'titlesaddopt.php'});"><i class="fa fa-plus ew-icon"></i></button></div>
<?php } ?>
</div>
<?php echo $clientpartners->TitleID->Lookup->getParamTag("p_x_TitleID") ?>
</span>
<?php echo $clientpartners->TitleID->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_TitleID">
		<td class="<?php echo $clientpartners_edit->TableLeftColumnClass ?>"><span id="elh_clientpartners_TitleID"><?php echo $clientpartners->TitleID->caption() ?><?php echo ($clientpartners->TitleID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $clientpartners->TitleID->cellAttributes() ?>>
<span id="el_clientpartners_TitleID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="clientpartners" data-field="x_TitleID" data-value-separator="<?php echo $clientpartners->TitleID->displayValueSeparatorAttribute() ?>" id="x_TitleID" name="x_TitleID"<?php echo $clientpartners->TitleID->editAttributes() ?>>
		<?php echo $clientpartners->TitleID->selectOptionListHtml("x_TitleID") ?>
	</select>
<?php if (AllowAdd(CurrentProjectID() . "titles") && !$clientpartners->TitleID->ReadOnly) { ?>
<div class="input-group-append"><button type="button" class="btn btn-default ew-add-opt-btn" id="aol_x_TitleID" title="<?php echo HtmlTitle($Language->phrase("AddLink")) . "&nbsp;" . $clientpartners->TitleID->caption() ?>" data-title="<?php echo $clientpartners->TitleID->caption() ?>" onclick="ew.addOptionDialogShow({lnk:this,el:'x_TitleID',url:'titlesaddopt.php'});"><i class="fa fa-plus ew-icon"></i></button></div>
<?php } ?>
</div>
<?php echo $clientpartners->TitleID->Lookup->getParamTag("p_x_TitleID") ?>
</span>
<?php echo $clientpartners->TitleID->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->FirstName->Visible) { // FirstName ?>
<?php if ($clientpartners_edit->IsMobileOrModal) { ?>
	<div id="r_FirstName" class="form-group row">
		<label id="elh_clientpartners_FirstName" for="x_FirstName" class="<?php echo $clientpartners_edit->LeftColumnClass ?>"><?php echo $clientpartners->FirstName->caption() ?><?php echo ($clientpartners->FirstName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $clientpartners_edit->RightColumnClass ?>"><div<?php echo $clientpartners->FirstName->cellAttributes() ?>>
<span id="el_clientpartners_FirstName">
<input type="text" data-table="clientpartners" data-field="x_FirstName" name="x_FirstName" id="x_FirstName" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($clientpartners->FirstName->getPlaceHolder()) ?>" value="<?php echo $clientpartners->FirstName->EditValue ?>"<?php echo $clientpartners->FirstName->editAttributes() ?>>
</span>
<?php echo $clientpartners->FirstName->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_FirstName">
		<td class="<?php echo $clientpartners_edit->TableLeftColumnClass ?>"><span id="elh_clientpartners_FirstName"><?php echo $clientpartners->FirstName->caption() ?><?php echo ($clientpartners->FirstName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $clientpartners->FirstName->cellAttributes() ?>>
<span id="el_clientpartners_FirstName">
<input type="text" data-table="clientpartners" data-field="x_FirstName" name="x_FirstName" id="x_FirstName" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($clientpartners->FirstName->getPlaceHolder()) ?>" value="<?php echo $clientpartners->FirstName->EditValue ?>"<?php echo $clientpartners->FirstName->editAttributes() ?>>
</span>
<?php echo $clientpartners->FirstName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->MiddleName->Visible) { // MiddleName ?>
<?php if ($clientpartners_edit->IsMobileOrModal) { ?>
	<div id="r_MiddleName" class="form-group row">
		<label id="elh_clientpartners_MiddleName" for="x_MiddleName" class="<?php echo $clientpartners_edit->LeftColumnClass ?>"><?php echo $clientpartners->MiddleName->caption() ?><?php echo ($clientpartners->MiddleName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $clientpartners_edit->RightColumnClass ?>"><div<?php echo $clientpartners->MiddleName->cellAttributes() ?>>
<span id="el_clientpartners_MiddleName">
<input type="text" data-table="clientpartners" data-field="x_MiddleName" name="x_MiddleName" id="x_MiddleName" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->MiddleName->getPlaceHolder()) ?>" value="<?php echo $clientpartners->MiddleName->EditValue ?>"<?php echo $clientpartners->MiddleName->editAttributes() ?>>
</span>
<?php echo $clientpartners->MiddleName->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_MiddleName">
		<td class="<?php echo $clientpartners_edit->TableLeftColumnClass ?>"><span id="elh_clientpartners_MiddleName"><?php echo $clientpartners->MiddleName->caption() ?><?php echo ($clientpartners->MiddleName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $clientpartners->MiddleName->cellAttributes() ?>>
<span id="el_clientpartners_MiddleName">
<input type="text" data-table="clientpartners" data-field="x_MiddleName" name="x_MiddleName" id="x_MiddleName" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->MiddleName->getPlaceHolder()) ?>" value="<?php echo $clientpartners->MiddleName->EditValue ?>"<?php echo $clientpartners->MiddleName->editAttributes() ?>>
</span>
<?php echo $clientpartners->MiddleName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->LastName->Visible) { // LastName ?>
<?php if ($clientpartners_edit->IsMobileOrModal) { ?>
	<div id="r_LastName" class="form-group row">
		<label id="elh_clientpartners_LastName" for="x_LastName" class="<?php echo $clientpartners_edit->LeftColumnClass ?>"><?php echo $clientpartners->LastName->caption() ?><?php echo ($clientpartners->LastName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $clientpartners_edit->RightColumnClass ?>"><div<?php echo $clientpartners->LastName->cellAttributes() ?>>
<span id="el_clientpartners_LastName">
<input type="text" data-table="clientpartners" data-field="x_LastName" name="x_LastName" id="x_LastName" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($clientpartners->LastName->getPlaceHolder()) ?>" value="<?php echo $clientpartners->LastName->EditValue ?>"<?php echo $clientpartners->LastName->editAttributes() ?>>
</span>
<?php echo $clientpartners->LastName->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_LastName">
		<td class="<?php echo $clientpartners_edit->TableLeftColumnClass ?>"><span id="elh_clientpartners_LastName"><?php echo $clientpartners->LastName->caption() ?><?php echo ($clientpartners->LastName->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $clientpartners->LastName->cellAttributes() ?>>
<span id="el_clientpartners_LastName">
<input type="text" data-table="clientpartners" data-field="x_LastName" name="x_LastName" id="x_LastName" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($clientpartners->LastName->getPlaceHolder()) ?>" value="<?php echo $clientpartners->LastName->EditValue ?>"<?php echo $clientpartners->LastName->editAttributes() ?>>
</span>
<?php echo $clientpartners->LastName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->Notes->Visible) { // Notes ?>
<?php if ($clientpartners_edit->IsMobileOrModal) { ?>
	<div id="r_Notes" class="form-group row">
		<label id="elh_clientpartners_Notes" for="x_Notes" class="<?php echo $clientpartners_edit->LeftColumnClass ?>"><?php echo $clientpartners->Notes->caption() ?><?php echo ($clientpartners->Notes->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $clientpartners_edit->RightColumnClass ?>"><div<?php echo $clientpartners->Notes->cellAttributes() ?>>
<span id="el_clientpartners_Notes">
<textarea data-table="clientpartners" data-field="x_Notes" name="x_Notes" id="x_Notes" cols="35" rows="4" placeholder="<?php echo HtmlEncode($clientpartners->Notes->getPlaceHolder()) ?>"<?php echo $clientpartners->Notes->editAttributes() ?>><?php echo $clientpartners->Notes->EditValue ?></textarea>
</span>
<?php echo $clientpartners->Notes->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_Notes">
		<td class="<?php echo $clientpartners_edit->TableLeftColumnClass ?>"><span id="elh_clientpartners_Notes"><?php echo $clientpartners->Notes->caption() ?><?php echo ($clientpartners->Notes->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $clientpartners->Notes->cellAttributes() ?>>
<span id="el_clientpartners_Notes">
<textarea data-table="clientpartners" data-field="x_Notes" name="x_Notes" id="x_Notes" cols="35" rows="4" placeholder="<?php echo HtmlEncode($clientpartners->Notes->getPlaceHolder()) ?>"<?php echo $clientpartners->Notes->editAttributes() ?>><?php echo $clientpartners->Notes->EditValue ?></textarea>
</span>
<?php echo $clientpartners->Notes->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->JobTitle->Visible) { // JobTitle ?>
<?php if ($clientpartners_edit->IsMobileOrModal) { ?>
	<div id="r_JobTitle" class="form-group row">
		<label id="elh_clientpartners_JobTitle" for="x_JobTitle" class="<?php echo $clientpartners_edit->LeftColumnClass ?>"><?php echo $clientpartners->JobTitle->caption() ?><?php echo ($clientpartners->JobTitle->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $clientpartners_edit->RightColumnClass ?>"><div<?php echo $clientpartners->JobTitle->cellAttributes() ?>>
<span id="el_clientpartners_JobTitle">
<input type="text" data-table="clientpartners" data-field="x_JobTitle" name="x_JobTitle" id="x_JobTitle" size="30" maxlength="25" placeholder="<?php echo HtmlEncode($clientpartners->JobTitle->getPlaceHolder()) ?>" value="<?php echo $clientpartners->JobTitle->EditValue ?>"<?php echo $clientpartners->JobTitle->editAttributes() ?>>
</span>
<?php echo $clientpartners->JobTitle->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_JobTitle">
		<td class="<?php echo $clientpartners_edit->TableLeftColumnClass ?>"><span id="elh_clientpartners_JobTitle"><?php echo $clientpartners->JobTitle->caption() ?><?php echo ($clientpartners->JobTitle->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $clientpartners->JobTitle->cellAttributes() ?>>
<span id="el_clientpartners_JobTitle">
<input type="text" data-table="clientpartners" data-field="x_JobTitle" name="x_JobTitle" id="x_JobTitle" size="30" maxlength="25" placeholder="<?php echo HtmlEncode($clientpartners->JobTitle->getPlaceHolder()) ?>" value="<?php echo $clientpartners->JobTitle->EditValue ?>"<?php echo $clientpartners->JobTitle->editAttributes() ?>>
</span>
<?php echo $clientpartners->JobTitle->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->Photo->Visible) { // Photo ?>
<?php if ($clientpartners_edit->IsMobileOrModal) { ?>
	<div id="r_Photo" class="form-group row">
		<label id="elh_clientpartners_Photo" class="<?php echo $clientpartners_edit->LeftColumnClass ?>"><?php echo $clientpartners->Photo->caption() ?><?php echo ($clientpartners->Photo->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $clientpartners_edit->RightColumnClass ?>"><div<?php echo $clientpartners->Photo->cellAttributes() ?>>
<span id="el_clientpartners_Photo">
<div id="fd_x_Photo">
<span title="<?php echo $clientpartners->Photo->title() ? $clientpartners->Photo->title() : $Language->phrase("ChooseFile") ?>" class="btn btn-default btn-sm fileinput-button ew-tooltip<?php if ($clientpartners->Photo->ReadOnly || $clientpartners->Photo->Disabled) echo " d-none"; ?>">
	<span><?php echo $Language->phrase("ChooseFileBtn") ?></span>
	<input type="file" title=" " data-table="clientpartners" data-field="x_Photo" name="x_Photo" id="x_Photo"<?php echo $clientpartners->Photo->editAttributes() ?>>
</span>
<input type="hidden" name="fn_x_Photo" id= "fn_x_Photo" value="<?php echo $clientpartners->Photo->Upload->FileName ?>">
<?php if (Post("fa_x_Photo") == "0") { ?>
<input type="hidden" name="fa_x_Photo" id= "fa_x_Photo" value="0">
<?php } else { ?>
<input type="hidden" name="fa_x_Photo" id= "fa_x_Photo" value="1">
<?php } ?>
<input type="hidden" name="fs_x_Photo" id= "fs_x_Photo" value="255">
<input type="hidden" name="fx_x_Photo" id= "fx_x_Photo" value="<?php echo $clientpartners->Photo->UploadAllowedFileExt ?>">
<input type="hidden" name="fm_x_Photo" id= "fm_x_Photo" value="<?php echo $clientpartners->Photo->UploadMaxFileSize ?>">
</div>
<table id="ft_x_Photo" class="table table-sm float-left ew-upload-table"><tbody class="files"></tbody></table>
</span>
<?php echo $clientpartners->Photo->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_Photo">
		<td class="<?php echo $clientpartners_edit->TableLeftColumnClass ?>"><span id="elh_clientpartners_Photo"><?php echo $clientpartners->Photo->caption() ?><?php echo ($clientpartners->Photo->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $clientpartners->Photo->cellAttributes() ?>>
<span id="el_clientpartners_Photo">
<div id="fd_x_Photo">
<span title="<?php echo $clientpartners->Photo->title() ? $clientpartners->Photo->title() : $Language->phrase("ChooseFile") ?>" class="btn btn-default btn-sm fileinput-button ew-tooltip<?php if ($clientpartners->Photo->ReadOnly || $clientpartners->Photo->Disabled) echo " d-none"; ?>">
	<span><?php echo $Language->phrase("ChooseFileBtn") ?></span>
	<input type="file" title=" " data-table="clientpartners" data-field="x_Photo" name="x_Photo" id="x_Photo"<?php echo $clientpartners->Photo->editAttributes() ?>>
</span>
<input type="hidden" name="fn_x_Photo" id= "fn_x_Photo" value="<?php echo $clientpartners->Photo->Upload->FileName ?>">
<?php if (Post("fa_x_Photo") == "0") { ?>
<input type="hidden" name="fa_x_Photo" id= "fa_x_Photo" value="0">
<?php } else { ?>
<input type="hidden" name="fa_x_Photo" id= "fa_x_Photo" value="1">
<?php } ?>
<input type="hidden" name="fs_x_Photo" id= "fs_x_Photo" value="255">
<input type="hidden" name="fx_x_Photo" id= "fx_x_Photo" value="<?php echo $clientpartners->Photo->UploadAllowedFileExt ?>">
<input type="hidden" name="fm_x_Photo" id= "fm_x_Photo" value="<?php echo $clientpartners->Photo->UploadMaxFileSize ?>">
</div>
<table id="ft_x_Photo" class="table table-sm float-left ew-upload-table"><tbody class="files"></tbody></table>
</span>
<?php echo $clientpartners->Photo->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->BirthDate->Visible) { // BirthDate ?>
<?php if ($clientpartners_edit->IsMobileOrModal) { ?>
	<div id="r_BirthDate" class="form-group row">
		<label id="elh_clientpartners_BirthDate" for="x_BirthDate" class="<?php echo $clientpartners_edit->LeftColumnClass ?>"><?php echo $clientpartners->BirthDate->caption() ?><?php echo ($clientpartners->BirthDate->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $clientpartners_edit->RightColumnClass ?>"><div<?php echo $clientpartners->BirthDate->cellAttributes() ?>>
<span id="el_clientpartners_BirthDate">
<input type="text" data-table="clientpartners" data-field="x_BirthDate" name="x_BirthDate" id="x_BirthDate" placeholder="<?php echo HtmlEncode($clientpartners->BirthDate->getPlaceHolder()) ?>" value="<?php echo $clientpartners->BirthDate->EditValue ?>"<?php echo $clientpartners->BirthDate->editAttributes() ?>>
<?php if (!$clientpartners->BirthDate->ReadOnly && !$clientpartners->BirthDate->Disabled && !isset($clientpartners->BirthDate->EditAttrs["readonly"]) && !isset($clientpartners->BirthDate->EditAttrs["disabled"])) { ?>
<script>
ew.createDateTimePicker("fclientpartnersedit", "x_BirthDate", {"ignoreReadonly":true,"useCurrent":false,"format":0});
</script>
<?php } ?>
</span>
<?php echo $clientpartners->BirthDate->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_BirthDate">
		<td class="<?php echo $clientpartners_edit->TableLeftColumnClass ?>"><span id="elh_clientpartners_BirthDate"><?php echo $clientpartners->BirthDate->caption() ?><?php echo ($clientpartners->BirthDate->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $clientpartners->BirthDate->cellAttributes() ?>>
<span id="el_clientpartners_BirthDate">
<input type="text" data-table="clientpartners" data-field="x_BirthDate" name="x_BirthDate" id="x_BirthDate" placeholder="<?php echo HtmlEncode($clientpartners->BirthDate->getPlaceHolder()) ?>" value="<?php echo $clientpartners->BirthDate->EditValue ?>"<?php echo $clientpartners->BirthDate->editAttributes() ?>>
<?php if (!$clientpartners->BirthDate->ReadOnly && !$clientpartners->BirthDate->Disabled && !isset($clientpartners->BirthDate->EditAttrs["readonly"]) && !isset($clientpartners->BirthDate->EditAttrs["disabled"])) { ?>
<script>
ew.createDateTimePicker("fclientpartnersedit", "x_BirthDate", {"ignoreReadonly":true,"useCurrent":false,"format":0});
</script>
<?php } ?>
</span>
<?php echo $clientpartners->BirthDate->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->MaritalStatusID->Visible) { // MaritalStatusID ?>
<?php if ($clientpartners_edit->IsMobileOrModal) { ?>
	<div id="r_MaritalStatusID" class="form-group row">
		<label id="elh_clientpartners_MaritalStatusID" class="<?php echo $clientpartners_edit->LeftColumnClass ?>"><?php echo $clientpartners->MaritalStatusID->caption() ?><?php echo ($clientpartners->MaritalStatusID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $clientpartners_edit->RightColumnClass ?>"><div<?php echo $clientpartners->MaritalStatusID->cellAttributes() ?>>
<span id="el_clientpartners_MaritalStatusID">
<?php
$wrkonchange = "" . trim(@$clientpartners->MaritalStatusID->EditAttrs["onchange"]);
if (trim($wrkonchange) <> "") $wrkonchange = " onchange=\"" . JsEncode($wrkonchange) . "\"";
$clientpartners->MaritalStatusID->EditAttrs["onchange"] = "";
?>
<span id="as_x_MaritalStatusID" class="text-nowrap" style="z-index: 8890">
	<input type="text" class="form-control" name="sv_x_MaritalStatusID" id="sv_x_MaritalStatusID" value="<?php echo RemoveHtml($clientpartners->MaritalStatusID->EditValue) ?>" size="30" placeholder="<?php echo HtmlEncode($clientpartners->MaritalStatusID->getPlaceHolder()) ?>" data-placeholder="<?php echo HtmlEncode($clientpartners->MaritalStatusID->getPlaceHolder()) ?>"<?php echo $clientpartners->MaritalStatusID->editAttributes() ?>>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_MaritalStatusID" data-value-separator="<?php echo $clientpartners->MaritalStatusID->displayValueSeparatorAttribute() ?>" name="x_MaritalStatusID" id="x_MaritalStatusID" value="<?php echo HtmlEncode($clientpartners->MaritalStatusID->CurrentValue) ?>"<?php echo $wrkonchange ?>>
<script>
fclientpartnersedit.createAutoSuggest({"id":"x_MaritalStatusID","forceSelect":false});
</script>
<?php echo $clientpartners->MaritalStatusID->Lookup->getParamTag("p_x_MaritalStatusID") ?>
</span>
<?php echo $clientpartners->MaritalStatusID->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_MaritalStatusID">
		<td class="<?php echo $clientpartners_edit->TableLeftColumnClass ?>"><span id="elh_clientpartners_MaritalStatusID"><?php echo $clientpartners->MaritalStatusID->caption() ?><?php echo ($clientpartners->MaritalStatusID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $clientpartners->MaritalStatusID->cellAttributes() ?>>
<span id="el_clientpartners_MaritalStatusID">
<?php
$wrkonchange = "" . trim(@$clientpartners->MaritalStatusID->EditAttrs["onchange"]);
if (trim($wrkonchange) <> "") $wrkonchange = " onchange=\"" . JsEncode($wrkonchange) . "\"";
$clientpartners->MaritalStatusID->EditAttrs["onchange"] = "";
?>
<span id="as_x_MaritalStatusID" class="text-nowrap" style="z-index: 8890">
	<input type="text" class="form-control" name="sv_x_MaritalStatusID" id="sv_x_MaritalStatusID" value="<?php echo RemoveHtml($clientpartners->MaritalStatusID->EditValue) ?>" size="30" placeholder="<?php echo HtmlEncode($clientpartners->MaritalStatusID->getPlaceHolder()) ?>" data-placeholder="<?php echo HtmlEncode($clientpartners->MaritalStatusID->getPlaceHolder()) ?>"<?php echo $clientpartners->MaritalStatusID->editAttributes() ?>>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_MaritalStatusID" data-value-separator="<?php echo $clientpartners->MaritalStatusID->displayValueSeparatorAttribute() ?>" name="x_MaritalStatusID" id="x_MaritalStatusID" value="<?php echo HtmlEncode($clientpartners->MaritalStatusID->CurrentValue) ?>"<?php echo $wrkonchange ?>>
<script>
fclientpartnersedit.createAutoSuggest({"id":"x_MaritalStatusID","forceSelect":false});
</script>
<?php echo $clientpartners->MaritalStatusID->Lookup->getParamTag("p_x_MaritalStatusID") ?>
</span>
<?php echo $clientpartners->MaritalStatusID->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->CivilStatus23->Visible) { // CivilStatus# ?>
<?php if ($clientpartners_edit->IsMobileOrModal) { ?>
	<div id="r_CivilStatus23" class="form-group row">
		<label id="elh_clientpartners_CivilStatus23" for="x_CivilStatus23" class="<?php echo $clientpartners_edit->LeftColumnClass ?>"><?php echo $clientpartners->CivilStatus23->caption() ?><?php echo ($clientpartners->CivilStatus23->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $clientpartners_edit->RightColumnClass ?>"><div<?php echo $clientpartners->CivilStatus23->cellAttributes() ?>>
<span id="el_clientpartners_CivilStatus23">
<input type="text" data-table="clientpartners" data-field="x_CivilStatus23" name="x_CivilStatus23" id="x_CivilStatus23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->CivilStatus23->getPlaceHolder()) ?>" value="<?php echo $clientpartners->CivilStatus23->EditValue ?>"<?php echo $clientpartners->CivilStatus23->editAttributes() ?>>
</span>
<?php echo $clientpartners->CivilStatus23->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_CivilStatus23">
		<td class="<?php echo $clientpartners_edit->TableLeftColumnClass ?>"><span id="elh_clientpartners_CivilStatus23"><?php echo $clientpartners->CivilStatus23->caption() ?><?php echo ($clientpartners->CivilStatus23->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $clientpartners->CivilStatus23->cellAttributes() ?>>
<span id="el_clientpartners_CivilStatus23">
<input type="text" data-table="clientpartners" data-field="x_CivilStatus23" name="x_CivilStatus23" id="x_CivilStatus23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->CivilStatus23->getPlaceHolder()) ?>" value="<?php echo $clientpartners->CivilStatus23->EditValue ?>"<?php echo $clientpartners->CivilStatus23->editAttributes() ?>>
</span>
<?php echo $clientpartners->CivilStatus23->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->CivilStatusPlace->Visible) { // CivilStatusPlace ?>
<?php if ($clientpartners_edit->IsMobileOrModal) { ?>
	<div id="r_CivilStatusPlace" class="form-group row">
		<label id="elh_clientpartners_CivilStatusPlace" for="x_CivilStatusPlace" class="<?php echo $clientpartners_edit->LeftColumnClass ?>"><?php echo $clientpartners->CivilStatusPlace->caption() ?><?php echo ($clientpartners->CivilStatusPlace->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $clientpartners_edit->RightColumnClass ?>"><div<?php echo $clientpartners->CivilStatusPlace->cellAttributes() ?>>
<span id="el_clientpartners_CivilStatusPlace">
<input type="text" data-table="clientpartners" data-field="x_CivilStatusPlace" name="x_CivilStatusPlace" id="x_CivilStatusPlace" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->CivilStatusPlace->getPlaceHolder()) ?>" value="<?php echo $clientpartners->CivilStatusPlace->EditValue ?>"<?php echo $clientpartners->CivilStatusPlace->editAttributes() ?>>
</span>
<?php echo $clientpartners->CivilStatusPlace->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_CivilStatusPlace">
		<td class="<?php echo $clientpartners_edit->TableLeftColumnClass ?>"><span id="elh_clientpartners_CivilStatusPlace"><?php echo $clientpartners->CivilStatusPlace->caption() ?><?php echo ($clientpartners->CivilStatusPlace->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $clientpartners->CivilStatusPlace->cellAttributes() ?>>
<span id="el_clientpartners_CivilStatusPlace">
<input type="text" data-table="clientpartners" data-field="x_CivilStatusPlace" name="x_CivilStatusPlace" id="x_CivilStatusPlace" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->CivilStatusPlace->getPlaceHolder()) ?>" value="<?php echo $clientpartners->CivilStatusPlace->EditValue ?>"<?php echo $clientpartners->CivilStatusPlace->editAttributes() ?>>
</span>
<?php echo $clientpartners->CivilStatusPlace->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->IdCard23->Visible) { // IdCard# ?>
<?php if ($clientpartners_edit->IsMobileOrModal) { ?>
	<div id="r_IdCard23" class="form-group row">
		<label id="elh_clientpartners_IdCard23" for="x_IdCard23" class="<?php echo $clientpartners_edit->LeftColumnClass ?>"><?php echo $clientpartners->IdCard23->caption() ?><?php echo ($clientpartners->IdCard23->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $clientpartners_edit->RightColumnClass ?>"><div<?php echo $clientpartners->IdCard23->cellAttributes() ?>>
<span id="el_clientpartners_IdCard23">
<input type="text" data-table="clientpartners" data-field="x_IdCard23" name="x_IdCard23" id="x_IdCard23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->IdCard23->getPlaceHolder()) ?>" value="<?php echo $clientpartners->IdCard23->EditValue ?>"<?php echo $clientpartners->IdCard23->editAttributes() ?>>
</span>
<?php echo $clientpartners->IdCard23->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_IdCard23">
		<td class="<?php echo $clientpartners_edit->TableLeftColumnClass ?>"><span id="elh_clientpartners_IdCard23"><?php echo $clientpartners->IdCard23->caption() ?><?php echo ($clientpartners->IdCard23->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $clientpartners->IdCard23->cellAttributes() ?>>
<span id="el_clientpartners_IdCard23">
<input type="text" data-table="clientpartners" data-field="x_IdCard23" name="x_IdCard23" id="x_IdCard23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->IdCard23->getPlaceHolder()) ?>" value="<?php echo $clientpartners->IdCard23->EditValue ?>"<?php echo $clientpartners->IdCard23->editAttributes() ?>>
</span>
<?php echo $clientpartners->IdCard23->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->Nationality1->Visible) { // Nationality1 ?>
<?php if ($clientpartners_edit->IsMobileOrModal) { ?>
	<div id="r_Nationality1" class="form-group row">
		<label id="elh_clientpartners_Nationality1" for="x_Nationality1" class="<?php echo $clientpartners_edit->LeftColumnClass ?>"><?php echo $clientpartners->Nationality1->caption() ?><?php echo ($clientpartners->Nationality1->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $clientpartners_edit->RightColumnClass ?>"><div<?php echo $clientpartners->Nationality1->cellAttributes() ?>>
<span id="el_clientpartners_Nationality1">
<input type="text" data-table="clientpartners" data-field="x_Nationality1" name="x_Nationality1" id="x_Nationality1" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->Nationality1->getPlaceHolder()) ?>" value="<?php echo $clientpartners->Nationality1->EditValue ?>"<?php echo $clientpartners->Nationality1->editAttributes() ?>>
</span>
<?php echo $clientpartners->Nationality1->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_Nationality1">
		<td class="<?php echo $clientpartners_edit->TableLeftColumnClass ?>"><span id="elh_clientpartners_Nationality1"><?php echo $clientpartners->Nationality1->caption() ?><?php echo ($clientpartners->Nationality1->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $clientpartners->Nationality1->cellAttributes() ?>>
<span id="el_clientpartners_Nationality1">
<input type="text" data-table="clientpartners" data-field="x_Nationality1" name="x_Nationality1" id="x_Nationality1" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->Nationality1->getPlaceHolder()) ?>" value="<?php echo $clientpartners->Nationality1->EditValue ?>"<?php echo $clientpartners->Nationality1->editAttributes() ?>>
</span>
<?php echo $clientpartners->Nationality1->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->Nationality2->Visible) { // Nationality2 ?>
<?php if ($clientpartners_edit->IsMobileOrModal) { ?>
	<div id="r_Nationality2" class="form-group row">
		<label id="elh_clientpartners_Nationality2" for="x_Nationality2" class="<?php echo $clientpartners_edit->LeftColumnClass ?>"><?php echo $clientpartners->Nationality2->caption() ?><?php echo ($clientpartners->Nationality2->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $clientpartners_edit->RightColumnClass ?>"><div<?php echo $clientpartners->Nationality2->cellAttributes() ?>>
<span id="el_clientpartners_Nationality2">
<input type="text" data-table="clientpartners" data-field="x_Nationality2" name="x_Nationality2" id="x_Nationality2" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->Nationality2->getPlaceHolder()) ?>" value="<?php echo $clientpartners->Nationality2->EditValue ?>"<?php echo $clientpartners->Nationality2->editAttributes() ?>>
</span>
<?php echo $clientpartners->Nationality2->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_Nationality2">
		<td class="<?php echo $clientpartners_edit->TableLeftColumnClass ?>"><span id="elh_clientpartners_Nationality2"><?php echo $clientpartners->Nationality2->caption() ?><?php echo ($clientpartners->Nationality2->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $clientpartners->Nationality2->cellAttributes() ?>>
<span id="el_clientpartners_Nationality2">
<input type="text" data-table="clientpartners" data-field="x_Nationality2" name="x_Nationality2" id="x_Nationality2" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->Nationality2->getPlaceHolder()) ?>" value="<?php echo $clientpartners->Nationality2->EditValue ?>"<?php echo $clientpartners->Nationality2->editAttributes() ?>>
</span>
<?php echo $clientpartners->Nationality2->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->Extra23->Visible) { // Extra# ?>
<?php if ($clientpartners_edit->IsMobileOrModal) { ?>
	<div id="r_Extra23" class="form-group row">
		<label id="elh_clientpartners_Extra23" for="x_Extra23" class="<?php echo $clientpartners_edit->LeftColumnClass ?>"><?php echo $clientpartners->Extra23->caption() ?><?php echo ($clientpartners->Extra23->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $clientpartners_edit->RightColumnClass ?>"><div<?php echo $clientpartners->Extra23->cellAttributes() ?>>
<span id="el_clientpartners_Extra23">
<input type="text" data-table="clientpartners" data-field="x_Extra23" name="x_Extra23" id="x_Extra23" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($clientpartners->Extra23->getPlaceHolder()) ?>" value="<?php echo $clientpartners->Extra23->EditValue ?>"<?php echo $clientpartners->Extra23->editAttributes() ?>>
</span>
<?php echo $clientpartners->Extra23->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_Extra23">
		<td class="<?php echo $clientpartners_edit->TableLeftColumnClass ?>"><span id="elh_clientpartners_Extra23"><?php echo $clientpartners->Extra23->caption() ?><?php echo ($clientpartners->Extra23->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $clientpartners->Extra23->cellAttributes() ?>>
<span id="el_clientpartners_Extra23">
<input type="text" data-table="clientpartners" data-field="x_Extra23" name="x_Extra23" id="x_Extra23" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($clientpartners->Extra23->getPlaceHolder()) ?>" value="<?php echo $clientpartners->Extra23->EditValue ?>"<?php echo $clientpartners->Extra23->editAttributes() ?>>
</span>
<?php echo $clientpartners->Extra23->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners_edit->IsMobileOrModal) { ?>
</div><!-- /page* -->
<?php } else { ?>
</table><!-- /table* -->
<?php } ?>
<?php if (!$clientpartners_edit->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $clientpartners_edit->OffsetColumnClass ?>"><!-- buttons offset -->
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?php echo $Language->phrase("SaveBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?php echo $clientpartners_edit->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
<?php if (!$clientpartners_edit->IsMobileOrModal) { ?>
</div><!-- /desktop -->
<?php } ?>
<?php if (!$clientpartners_edit->IsModal) { ?>
<?php if (!isset($clientpartners_edit->Pager)) $clientpartners_edit->Pager = new PrevNextPager($clientpartners_edit->StartRec, $clientpartners_edit->DisplayRecs, $clientpartners_edit->TotalRecs, $clientpartners_edit->AutoHidePager) ?>
<?php if ($clientpartners_edit->Pager->RecordCount > 0 && $clientpartners_edit->Pager->Visible) { ?>
<div class="ew-pager">
<span><?php echo $Language->Phrase("Page") ?>&nbsp;</span>
<div class="ew-prev-next"><div class="input-group input-group-sm">
<div class="input-group-prepend">
<!-- first page button -->
	<?php if ($clientpartners_edit->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $clientpartners_edit->pageUrl() ?>start=<?php echo $clientpartners_edit->Pager->FirstButton->Start ?>"><i class="icon-first ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerFirst") ?>"><i class="icon-first ew-icon"></i></a>
	<?php } ?>
<!-- previous page button -->
	<?php if ($clientpartners_edit->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $clientpartners_edit->pageUrl() ?>start=<?php echo $clientpartners_edit->Pager->PrevButton->Start ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerPrevious") ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } ?>
</div>
<!-- current page number -->
	<input class="form-control" type="text" name="<?php echo TABLE_PAGE_NO ?>" value="<?php echo $clientpartners_edit->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($clientpartners_edit->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $clientpartners_edit->pageUrl() ?>start=<?php echo $clientpartners_edit->Pager->NextButton->Start ?>"><i class="icon-next ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerNext") ?>"><i class="icon-next ew-icon"></i></a>
	<?php } ?>
<!-- last page button -->
	<?php if ($clientpartners_edit->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $clientpartners_edit->pageUrl() ?>start=<?php echo $clientpartners_edit->Pager->LastButton->Start ?>"><i class="icon-last ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerLast") ?>"><i class="icon-last ew-icon"></i></a>
	<?php } ?>
</div>
</div>
</div>
<span>&nbsp;<?php echo $Language->Phrase("of") ?>&nbsp;<?php echo $clientpartners_edit->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
</form>
<?php
$clientpartners_edit->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<script>

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

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