<?php
namespace PHPMaker2019\project_germanos;

// Write header
WriteHeader(FALSE);

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

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

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

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

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

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

// Validate form
fclientpartnersgrid.validate = function() {
	if (!this.validateRequired)
		return true; // Ignore validation
	var $ = jQuery, fobj = this.getForm(), $fobj = $(fobj);
	if ($fobj.find("#confirm").val() == "F")
		return true;
	var elm, felm, uelm, addcnt = 0;
	var $k = $fobj.find("#" + this.formKeyCountName); // Get key_count
	var rowcnt = ($k[0]) ? parseInt($k.val(), 10) : 1;
	var startcnt = (rowcnt == 0) ? 0 : 1; // Check rowcnt == 0 => Inline-Add
	var gridinsert = ["insert", "gridinsert"].includes($fobj.find("#action").val()) && $k[0];
	for (var i = startcnt; i <= rowcnt; i++) {
		var infix = ($k[0]) ? String(i) : "";
		$fobj.data("rowindex", infix);
		var checkrow = (gridinsert) ? !this.emptyRow(infix) : true;
		if (checkrow) {
			addcnt++;
		<?php if ($clientpartners_grid->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_grid->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_grid->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_grid->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_grid->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_grid->JobTitle->Required) { ?>
			elm = this.getElements("x" + infix + "_JobTitle");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $clientpartners->JobTitle->caption(), $clientpartners->JobTitle->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($clientpartners_grid->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_grid->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_grid->MaritalStatusID->Required) { ?>
			elm = this.getElements("x" + infix + "_MaritalStatusID");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $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_grid->CivilStatus23->Required) { ?>
			elm = this.getElements("x" + infix + "_CivilStatus23");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $clientpartners->CivilStatus23->caption(), $clientpartners->CivilStatus23->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($clientpartners_grid->CivilStatusPlace->Required) { ?>
			elm = this.getElements("x" + infix + "_CivilStatusPlace");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $clientpartners->CivilStatusPlace->caption(), $clientpartners->CivilStatusPlace->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($clientpartners_grid->IdCard23->Required) { ?>
			elm = this.getElements("x" + infix + "_IdCard23");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $clientpartners->IdCard23->caption(), $clientpartners->IdCard23->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($clientpartners_grid->Nationality1->Required) { ?>
			elm = this.getElements("x" + infix + "_Nationality1");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $clientpartners->Nationality1->caption(), $clientpartners->Nationality1->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($clientpartners_grid->Nationality2->Required) { ?>
			elm = this.getElements("x" + infix + "_Nationality2");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $clientpartners->Nationality2->caption(), $clientpartners->Nationality2->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($clientpartners_grid->Extra23->Required) { ?>
			elm = this.getElements("x" + infix + "_Extra23");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $clientpartners->Extra23->caption(), $clientpartners->Extra23->RequiredErrorMessage)) ?>");
		<?php } ?>

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

// Check empty row
fclientpartnersgrid.emptyRow = function(infix) {
	var fobj = this._form;
	if (ew.valueChanged(fobj, infix, "ClientID", false)) return false;
	if (ew.valueChanged(fobj, infix, "TitleID", false)) return false;
	if (ew.valueChanged(fobj, infix, "FirstName", false)) return false;
	if (ew.valueChanged(fobj, infix, "MiddleName", false)) return false;
	if (ew.valueChanged(fobj, infix, "LastName", false)) return false;
	if (ew.valueChanged(fobj, infix, "JobTitle", false)) return false;
	if (ew.valueChanged(fobj, infix, "Photo", false)) return false;
	if (ew.valueChanged(fobj, infix, "BirthDate", false)) return false;
	if (ew.valueChanged(fobj, infix, "MaritalStatusID", false)) return false;
	if (ew.valueChanged(fobj, infix, "CivilStatus23", false)) return false;
	if (ew.valueChanged(fobj, infix, "CivilStatusPlace", false)) return false;
	if (ew.valueChanged(fobj, infix, "IdCard23", false)) return false;
	if (ew.valueChanged(fobj, infix, "Nationality1", false)) return false;
	if (ew.valueChanged(fobj, infix, "Nationality2", false)) return false;
	if (ew.valueChanged(fobj, infix, "Extra23", false)) return false;
	return true;
}

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

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

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

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

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

// Render list options (header, left)
$clientpartners_grid->ListOptions->render("header", "left");
?>
<?php if ($clientpartners->ClientID->Visible) { // ClientID ?>
	<?php if ($clientpartners->sortUrl($clientpartners->ClientID) == "") { ?>
		<th data-name="ClientID" class="<?php echo $clientpartners->ClientID->headerCellClass() ?>"><div id="elh_clientpartners_ClientID" class="clientpartners_ClientID"><div class="ew-table-header-caption"><?php echo $clientpartners->ClientID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="ClientID" class="<?php echo $clientpartners->ClientID->headerCellClass() ?>"><div><div id="elh_clientpartners_ClientID" class="clientpartners_ClientID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $clientpartners->ClientID->caption() ?></span><span class="ew-table-header-sort"><?php if ($clientpartners->ClientID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($clientpartners->ClientID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($clientpartners->TitleID->Visible) { // TitleID ?>
	<?php if ($clientpartners->sortUrl($clientpartners->TitleID) == "") { ?>
		<th data-name="TitleID" class="<?php echo $clientpartners->TitleID->headerCellClass() ?>"><div id="elh_clientpartners_TitleID" class="clientpartners_TitleID"><div class="ew-table-header-caption"><?php echo $clientpartners->TitleID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="TitleID" class="<?php echo $clientpartners->TitleID->headerCellClass() ?>"><div><div id="elh_clientpartners_TitleID" class="clientpartners_TitleID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $clientpartners->TitleID->caption() ?></span><span class="ew-table-header-sort"><?php if ($clientpartners->TitleID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($clientpartners->TitleID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($clientpartners->FirstName->Visible) { // FirstName ?>
	<?php if ($clientpartners->sortUrl($clientpartners->FirstName) == "") { ?>
		<th data-name="FirstName" class="<?php echo $clientpartners->FirstName->headerCellClass() ?>"><div id="elh_clientpartners_FirstName" class="clientpartners_FirstName"><div class="ew-table-header-caption"><?php echo $clientpartners->FirstName->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="FirstName" class="<?php echo $clientpartners->FirstName->headerCellClass() ?>"><div><div id="elh_clientpartners_FirstName" class="clientpartners_FirstName">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $clientpartners->FirstName->caption() ?></span><span class="ew-table-header-sort"><?php if ($clientpartners->FirstName->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($clientpartners->FirstName->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($clientpartners->MiddleName->Visible) { // MiddleName ?>
	<?php if ($clientpartners->sortUrl($clientpartners->MiddleName) == "") { ?>
		<th data-name="MiddleName" class="<?php echo $clientpartners->MiddleName->headerCellClass() ?>"><div id="elh_clientpartners_MiddleName" class="clientpartners_MiddleName"><div class="ew-table-header-caption"><?php echo $clientpartners->MiddleName->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="MiddleName" class="<?php echo $clientpartners->MiddleName->headerCellClass() ?>"><div><div id="elh_clientpartners_MiddleName" class="clientpartners_MiddleName">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $clientpartners->MiddleName->caption() ?></span><span class="ew-table-header-sort"><?php if ($clientpartners->MiddleName->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($clientpartners->MiddleName->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($clientpartners->LastName->Visible) { // LastName ?>
	<?php if ($clientpartners->sortUrl($clientpartners->LastName) == "") { ?>
		<th data-name="LastName" class="<?php echo $clientpartners->LastName->headerCellClass() ?>"><div id="elh_clientpartners_LastName" class="clientpartners_LastName"><div class="ew-table-header-caption"><?php echo $clientpartners->LastName->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="LastName" class="<?php echo $clientpartners->LastName->headerCellClass() ?>"><div><div id="elh_clientpartners_LastName" class="clientpartners_LastName">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $clientpartners->LastName->caption() ?></span><span class="ew-table-header-sort"><?php if ($clientpartners->LastName->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($clientpartners->LastName->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($clientpartners->JobTitle->Visible) { // JobTitle ?>
	<?php if ($clientpartners->sortUrl($clientpartners->JobTitle) == "") { ?>
		<th data-name="JobTitle" class="<?php echo $clientpartners->JobTitle->headerCellClass() ?>"><div id="elh_clientpartners_JobTitle" class="clientpartners_JobTitle"><div class="ew-table-header-caption"><?php echo $clientpartners->JobTitle->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="JobTitle" class="<?php echo $clientpartners->JobTitle->headerCellClass() ?>"><div><div id="elh_clientpartners_JobTitle" class="clientpartners_JobTitle">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $clientpartners->JobTitle->caption() ?></span><span class="ew-table-header-sort"><?php if ($clientpartners->JobTitle->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($clientpartners->JobTitle->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($clientpartners->Photo->Visible) { // Photo ?>
	<?php if ($clientpartners->sortUrl($clientpartners->Photo) == "") { ?>
		<th data-name="Photo" class="<?php echo $clientpartners->Photo->headerCellClass() ?>"><div id="elh_clientpartners_Photo" class="clientpartners_Photo"><div class="ew-table-header-caption"><?php echo $clientpartners->Photo->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Photo" class="<?php echo $clientpartners->Photo->headerCellClass() ?>"><div><div id="elh_clientpartners_Photo" class="clientpartners_Photo">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $clientpartners->Photo->caption() ?></span><span class="ew-table-header-sort"><?php if ($clientpartners->Photo->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($clientpartners->Photo->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($clientpartners->BirthDate->Visible) { // BirthDate ?>
	<?php if ($clientpartners->sortUrl($clientpartners->BirthDate) == "") { ?>
		<th data-name="BirthDate" class="<?php echo $clientpartners->BirthDate->headerCellClass() ?>"><div id="elh_clientpartners_BirthDate" class="clientpartners_BirthDate"><div class="ew-table-header-caption"><?php echo $clientpartners->BirthDate->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="BirthDate" class="<?php echo $clientpartners->BirthDate->headerCellClass() ?>"><div><div id="elh_clientpartners_BirthDate" class="clientpartners_BirthDate">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $clientpartners->BirthDate->caption() ?></span><span class="ew-table-header-sort"><?php if ($clientpartners->BirthDate->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($clientpartners->BirthDate->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($clientpartners->MaritalStatusID->Visible) { // MaritalStatusID ?>
	<?php if ($clientpartners->sortUrl($clientpartners->MaritalStatusID) == "") { ?>
		<th data-name="MaritalStatusID" class="<?php echo $clientpartners->MaritalStatusID->headerCellClass() ?>"><div id="elh_clientpartners_MaritalStatusID" class="clientpartners_MaritalStatusID"><div class="ew-table-header-caption"><?php echo $clientpartners->MaritalStatusID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="MaritalStatusID" class="<?php echo $clientpartners->MaritalStatusID->headerCellClass() ?>"><div><div id="elh_clientpartners_MaritalStatusID" class="clientpartners_MaritalStatusID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $clientpartners->MaritalStatusID->caption() ?></span><span class="ew-table-header-sort"><?php if ($clientpartners->MaritalStatusID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($clientpartners->MaritalStatusID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($clientpartners->CivilStatus23->Visible) { // CivilStatus# ?>
	<?php if ($clientpartners->sortUrl($clientpartners->CivilStatus23) == "") { ?>
		<th data-name="CivilStatus23" class="<?php echo $clientpartners->CivilStatus23->headerCellClass() ?>"><div id="elh_clientpartners_CivilStatus23" class="clientpartners_CivilStatus23"><div class="ew-table-header-caption"><?php echo $clientpartners->CivilStatus23->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="CivilStatus23" class="<?php echo $clientpartners->CivilStatus23->headerCellClass() ?>"><div><div id="elh_clientpartners_CivilStatus23" class="clientpartners_CivilStatus23">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $clientpartners->CivilStatus23->caption() ?></span><span class="ew-table-header-sort"><?php if ($clientpartners->CivilStatus23->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($clientpartners->CivilStatus23->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($clientpartners->CivilStatusPlace->Visible) { // CivilStatusPlace ?>
	<?php if ($clientpartners->sortUrl($clientpartners->CivilStatusPlace) == "") { ?>
		<th data-name="CivilStatusPlace" class="<?php echo $clientpartners->CivilStatusPlace->headerCellClass() ?>"><div id="elh_clientpartners_CivilStatusPlace" class="clientpartners_CivilStatusPlace"><div class="ew-table-header-caption"><?php echo $clientpartners->CivilStatusPlace->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="CivilStatusPlace" class="<?php echo $clientpartners->CivilStatusPlace->headerCellClass() ?>"><div><div id="elh_clientpartners_CivilStatusPlace" class="clientpartners_CivilStatusPlace">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $clientpartners->CivilStatusPlace->caption() ?></span><span class="ew-table-header-sort"><?php if ($clientpartners->CivilStatusPlace->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($clientpartners->CivilStatusPlace->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($clientpartners->IdCard23->Visible) { // IdCard# ?>
	<?php if ($clientpartners->sortUrl($clientpartners->IdCard23) == "") { ?>
		<th data-name="IdCard23" class="<?php echo $clientpartners->IdCard23->headerCellClass() ?>"><div id="elh_clientpartners_IdCard23" class="clientpartners_IdCard23"><div class="ew-table-header-caption"><?php echo $clientpartners->IdCard23->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="IdCard23" class="<?php echo $clientpartners->IdCard23->headerCellClass() ?>"><div><div id="elh_clientpartners_IdCard23" class="clientpartners_IdCard23">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $clientpartners->IdCard23->caption() ?></span><span class="ew-table-header-sort"><?php if ($clientpartners->IdCard23->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($clientpartners->IdCard23->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($clientpartners->Nationality1->Visible) { // Nationality1 ?>
	<?php if ($clientpartners->sortUrl($clientpartners->Nationality1) == "") { ?>
		<th data-name="Nationality1" class="<?php echo $clientpartners->Nationality1->headerCellClass() ?>"><div id="elh_clientpartners_Nationality1" class="clientpartners_Nationality1"><div class="ew-table-header-caption"><?php echo $clientpartners->Nationality1->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Nationality1" class="<?php echo $clientpartners->Nationality1->headerCellClass() ?>"><div><div id="elh_clientpartners_Nationality1" class="clientpartners_Nationality1">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $clientpartners->Nationality1->caption() ?></span><span class="ew-table-header-sort"><?php if ($clientpartners->Nationality1->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($clientpartners->Nationality1->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($clientpartners->Nationality2->Visible) { // Nationality2 ?>
	<?php if ($clientpartners->sortUrl($clientpartners->Nationality2) == "") { ?>
		<th data-name="Nationality2" class="<?php echo $clientpartners->Nationality2->headerCellClass() ?>"><div id="elh_clientpartners_Nationality2" class="clientpartners_Nationality2"><div class="ew-table-header-caption"><?php echo $clientpartners->Nationality2->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Nationality2" class="<?php echo $clientpartners->Nationality2->headerCellClass() ?>"><div><div id="elh_clientpartners_Nationality2" class="clientpartners_Nationality2">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $clientpartners->Nationality2->caption() ?></span><span class="ew-table-header-sort"><?php if ($clientpartners->Nationality2->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($clientpartners->Nationality2->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($clientpartners->Extra23->Visible) { // Extra# ?>
	<?php if ($clientpartners->sortUrl($clientpartners->Extra23) == "") { ?>
		<th data-name="Extra23" class="<?php echo $clientpartners->Extra23->headerCellClass() ?>"><div id="elh_clientpartners_Extra23" class="clientpartners_Extra23"><div class="ew-table-header-caption"><?php echo $clientpartners->Extra23->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Extra23" class="<?php echo $clientpartners->Extra23->headerCellClass() ?>"><div><div id="elh_clientpartners_Extra23" class="clientpartners_Extra23">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $clientpartners->Extra23->caption() ?></span><span class="ew-table-header-sort"><?php if ($clientpartners->Extra23->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($clientpartners->Extra23->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php

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

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

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

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

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

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

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

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

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

// Render list options (body, left)
$clientpartners_grid->ListOptions->render("body", "left", $clientpartners_grid->RowCnt);
?>
	<?php if ($clientpartners->ClientID->Visible) { // ClientID ?>
		<td data-name="ClientID"<?php echo $clientpartners->ClientID->cellAttributes() ?>>
<?php if ($clientpartners->RowType == ROWTYPE_ADD) { // Add record ?>
<?php if ($clientpartners->ClientID->getSessionValue() <> "") { ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_ClientID" class="form-group 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<?php echo $clientpartners_grid->RowIndex ?>_ClientID" name="x<?php echo $clientpartners_grid->RowIndex ?>_ClientID" value="<?php echo HtmlEncode($clientpartners->ClientID->CurrentValue) ?>">
<?php } else { ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_ClientID" class="form-group 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<?php echo $clientpartners_grid->RowIndex ?>_ClientID" name="x<?php echo $clientpartners_grid->RowIndex ?>_ClientID"<?php echo $clientpartners->ClientID->editAttributes() ?>>
		<?php echo $clientpartners->ClientID->selectOptionListHtml("x<?php echo $clientpartners_grid->RowIndex ?>_ClientID") ?>
	</select>
</div>
<?php echo $clientpartners->ClientID->Lookup->getParamTag("p_x" . $clientpartners_grid->RowIndex . "_ClientID") ?>
</span>
<?php } ?>
<input type="hidden" data-table="clientpartners" data-field="x_ClientID" name="o<?php echo $clientpartners_grid->RowIndex ?>_ClientID" id="o<?php echo $clientpartners_grid->RowIndex ?>_ClientID" value="<?php echo HtmlEncode($clientpartners->ClientID->OldValue) ?>">
<?php } ?>
<?php if ($clientpartners->RowType == ROWTYPE_EDIT) { // Edit record ?>
<?php if ($clientpartners->ClientID->getSessionValue() <> "") { ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_ClientID" class="form-group 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<?php echo $clientpartners_grid->RowIndex ?>_ClientID" name="x<?php echo $clientpartners_grid->RowIndex ?>_ClientID" value="<?php echo HtmlEncode($clientpartners->ClientID->CurrentValue) ?>">
<?php } else { ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_ClientID" class="form-group 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<?php echo $clientpartners_grid->RowIndex ?>_ClientID" name="x<?php echo $clientpartners_grid->RowIndex ?>_ClientID"<?php echo $clientpartners->ClientID->editAttributes() ?>>
		<?php echo $clientpartners->ClientID->selectOptionListHtml("x<?php echo $clientpartners_grid->RowIndex ?>_ClientID") ?>
	</select>
</div>
<?php echo $clientpartners->ClientID->Lookup->getParamTag("p_x" . $clientpartners_grid->RowIndex . "_ClientID") ?>
</span>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_ClientID" class="clientpartners_ClientID">
<span<?php echo $clientpartners->ClientID->viewAttributes() ?>>
<?php echo $clientpartners->ClientID->getViewValue() ?></span>
</span>
<?php if (!$clientpartners->isConfirm()) { ?>
<input type="hidden" data-table="clientpartners" data-field="x_ClientID" name="x<?php echo $clientpartners_grid->RowIndex ?>_ClientID" id="x<?php echo $clientpartners_grid->RowIndex ?>_ClientID" value="<?php echo HtmlEncode($clientpartners->ClientID->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_ClientID" name="o<?php echo $clientpartners_grid->RowIndex ?>_ClientID" id="o<?php echo $clientpartners_grid->RowIndex ?>_ClientID" value="<?php echo HtmlEncode($clientpartners->ClientID->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="clientpartners" data-field="x_ClientID" name="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_ClientID" id="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_ClientID" value="<?php echo HtmlEncode($clientpartners->ClientID->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_ClientID" name="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_ClientID" id="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_ClientID" value="<?php echo HtmlEncode($clientpartners->ClientID->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
<?php if ($clientpartners->RowType == ROWTYPE_ADD) { // Add record ?>
<input type="hidden" data-table="clientpartners" data-field="x_ClientPartnerID" name="x<?php echo $clientpartners_grid->RowIndex ?>_ClientPartnerID" id="x<?php echo $clientpartners_grid->RowIndex ?>_ClientPartnerID" value="<?php echo HtmlEncode($clientpartners->ClientPartnerID->CurrentValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_ClientPartnerID" name="o<?php echo $clientpartners_grid->RowIndex ?>_ClientPartnerID" id="o<?php echo $clientpartners_grid->RowIndex ?>_ClientPartnerID" value="<?php echo HtmlEncode($clientpartners->ClientPartnerID->OldValue) ?>">
<?php } ?>
<?php if ($clientpartners->RowType == ROWTYPE_EDIT || $clientpartners->CurrentMode == "edit") { ?>
<input type="hidden" data-table="clientpartners" data-field="x_ClientPartnerID" name="x<?php echo $clientpartners_grid->RowIndex ?>_ClientPartnerID" id="x<?php echo $clientpartners_grid->RowIndex ?>_ClientPartnerID" value="<?php echo HtmlEncode($clientpartners->ClientPartnerID->CurrentValue) ?>">
<?php } ?>
	<?php if ($clientpartners->TitleID->Visible) { // TitleID ?>
		<td data-name="TitleID"<?php echo $clientpartners->TitleID->cellAttributes() ?>>
<?php if ($clientpartners->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_TitleID" class="form-group 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<?php echo $clientpartners_grid->RowIndex ?>_TitleID" name="x<?php echo $clientpartners_grid->RowIndex ?>_TitleID"<?php echo $clientpartners->TitleID->editAttributes() ?>>
		<?php echo $clientpartners->TitleID->selectOptionListHtml("x<?php echo $clientpartners_grid->RowIndex ?>_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<?php echo $clientpartners_grid->RowIndex ?>_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<?php echo $clientpartners_grid->RowIndex ?>_TitleID',url:'titlesaddopt.php'});"><i class="fa fa-plus ew-icon"></i></button></div>
<?php } ?>
</div>
<?php echo $clientpartners->TitleID->Lookup->getParamTag("p_x" . $clientpartners_grid->RowIndex . "_TitleID") ?>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_TitleID" name="o<?php echo $clientpartners_grid->RowIndex ?>_TitleID" id="o<?php echo $clientpartners_grid->RowIndex ?>_TitleID" value="<?php echo HtmlEncode($clientpartners->TitleID->OldValue) ?>">
<?php } ?>
<?php if ($clientpartners->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_TitleID" class="form-group 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<?php echo $clientpartners_grid->RowIndex ?>_TitleID" name="x<?php echo $clientpartners_grid->RowIndex ?>_TitleID"<?php echo $clientpartners->TitleID->editAttributes() ?>>
		<?php echo $clientpartners->TitleID->selectOptionListHtml("x<?php echo $clientpartners_grid->RowIndex ?>_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<?php echo $clientpartners_grid->RowIndex ?>_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<?php echo $clientpartners_grid->RowIndex ?>_TitleID',url:'titlesaddopt.php'});"><i class="fa fa-plus ew-icon"></i></button></div>
<?php } ?>
</div>
<?php echo $clientpartners->TitleID->Lookup->getParamTag("p_x" . $clientpartners_grid->RowIndex . "_TitleID") ?>
</span>
<?php } ?>
<?php if ($clientpartners->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_TitleID" class="clientpartners_TitleID">
<span<?php echo $clientpartners->TitleID->viewAttributes() ?>>
<?php echo $clientpartners->TitleID->getViewValue() ?></span>
</span>
<?php if (!$clientpartners->isConfirm()) { ?>
<input type="hidden" data-table="clientpartners" data-field="x_TitleID" name="x<?php echo $clientpartners_grid->RowIndex ?>_TitleID" id="x<?php echo $clientpartners_grid->RowIndex ?>_TitleID" value="<?php echo HtmlEncode($clientpartners->TitleID->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_TitleID" name="o<?php echo $clientpartners_grid->RowIndex ?>_TitleID" id="o<?php echo $clientpartners_grid->RowIndex ?>_TitleID" value="<?php echo HtmlEncode($clientpartners->TitleID->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="clientpartners" data-field="x_TitleID" name="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_TitleID" id="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_TitleID" value="<?php echo HtmlEncode($clientpartners->TitleID->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_TitleID" name="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_TitleID" id="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_TitleID" value="<?php echo HtmlEncode($clientpartners->TitleID->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($clientpartners->FirstName->Visible) { // FirstName ?>
		<td data-name="FirstName"<?php echo $clientpartners->FirstName->cellAttributes() ?>>
<?php if ($clientpartners->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_FirstName" class="form-group clientpartners_FirstName">
<input type="text" data-table="clientpartners" data-field="x_FirstName" name="x<?php echo $clientpartners_grid->RowIndex ?>_FirstName" id="x<?php echo $clientpartners_grid->RowIndex ?>_FirstName" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($clientpartners->FirstName->getPlaceHolder()) ?>" value="<?php echo $clientpartners->FirstName->EditValue ?>"<?php echo $clientpartners->FirstName->editAttributes() ?>>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_FirstName" name="o<?php echo $clientpartners_grid->RowIndex ?>_FirstName" id="o<?php echo $clientpartners_grid->RowIndex ?>_FirstName" value="<?php echo HtmlEncode($clientpartners->FirstName->OldValue) ?>">
<?php } ?>
<?php if ($clientpartners->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_FirstName" class="form-group clientpartners_FirstName">
<input type="text" data-table="clientpartners" data-field="x_FirstName" name="x<?php echo $clientpartners_grid->RowIndex ?>_FirstName" id="x<?php echo $clientpartners_grid->RowIndex ?>_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 } ?>
<?php if ($clientpartners->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_FirstName" class="clientpartners_FirstName">
<span<?php echo $clientpartners->FirstName->viewAttributes() ?>>
<?php echo $clientpartners->FirstName->getViewValue() ?></span>
</span>
<?php if (!$clientpartners->isConfirm()) { ?>
<input type="hidden" data-table="clientpartners" data-field="x_FirstName" name="x<?php echo $clientpartners_grid->RowIndex ?>_FirstName" id="x<?php echo $clientpartners_grid->RowIndex ?>_FirstName" value="<?php echo HtmlEncode($clientpartners->FirstName->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_FirstName" name="o<?php echo $clientpartners_grid->RowIndex ?>_FirstName" id="o<?php echo $clientpartners_grid->RowIndex ?>_FirstName" value="<?php echo HtmlEncode($clientpartners->FirstName->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="clientpartners" data-field="x_FirstName" name="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_FirstName" id="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_FirstName" value="<?php echo HtmlEncode($clientpartners->FirstName->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_FirstName" name="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_FirstName" id="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_FirstName" value="<?php echo HtmlEncode($clientpartners->FirstName->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($clientpartners->MiddleName->Visible) { // MiddleName ?>
		<td data-name="MiddleName"<?php echo $clientpartners->MiddleName->cellAttributes() ?>>
<?php if ($clientpartners->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_MiddleName" class="form-group clientpartners_MiddleName">
<input type="text" data-table="clientpartners" data-field="x_MiddleName" name="x<?php echo $clientpartners_grid->RowIndex ?>_MiddleName" id="x<?php echo $clientpartners_grid->RowIndex ?>_MiddleName" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->MiddleName->getPlaceHolder()) ?>" value="<?php echo $clientpartners->MiddleName->EditValue ?>"<?php echo $clientpartners->MiddleName->editAttributes() ?>>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_MiddleName" name="o<?php echo $clientpartners_grid->RowIndex ?>_MiddleName" id="o<?php echo $clientpartners_grid->RowIndex ?>_MiddleName" value="<?php echo HtmlEncode($clientpartners->MiddleName->OldValue) ?>">
<?php } ?>
<?php if ($clientpartners->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_MiddleName" class="form-group clientpartners_MiddleName">
<input type="text" data-table="clientpartners" data-field="x_MiddleName" name="x<?php echo $clientpartners_grid->RowIndex ?>_MiddleName" id="x<?php echo $clientpartners_grid->RowIndex ?>_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 } ?>
<?php if ($clientpartners->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_MiddleName" class="clientpartners_MiddleName">
<span<?php echo $clientpartners->MiddleName->viewAttributes() ?>>
<?php echo $clientpartners->MiddleName->getViewValue() ?></span>
</span>
<?php if (!$clientpartners->isConfirm()) { ?>
<input type="hidden" data-table="clientpartners" data-field="x_MiddleName" name="x<?php echo $clientpartners_grid->RowIndex ?>_MiddleName" id="x<?php echo $clientpartners_grid->RowIndex ?>_MiddleName" value="<?php echo HtmlEncode($clientpartners->MiddleName->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_MiddleName" name="o<?php echo $clientpartners_grid->RowIndex ?>_MiddleName" id="o<?php echo $clientpartners_grid->RowIndex ?>_MiddleName" value="<?php echo HtmlEncode($clientpartners->MiddleName->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="clientpartners" data-field="x_MiddleName" name="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_MiddleName" id="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_MiddleName" value="<?php echo HtmlEncode($clientpartners->MiddleName->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_MiddleName" name="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_MiddleName" id="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_MiddleName" value="<?php echo HtmlEncode($clientpartners->MiddleName->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($clientpartners->LastName->Visible) { // LastName ?>
		<td data-name="LastName"<?php echo $clientpartners->LastName->cellAttributes() ?>>
<?php if ($clientpartners->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_LastName" class="form-group clientpartners_LastName">
<input type="text" data-table="clientpartners" data-field="x_LastName" name="x<?php echo $clientpartners_grid->RowIndex ?>_LastName" id="x<?php echo $clientpartners_grid->RowIndex ?>_LastName" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($clientpartners->LastName->getPlaceHolder()) ?>" value="<?php echo $clientpartners->LastName->EditValue ?>"<?php echo $clientpartners->LastName->editAttributes() ?>>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_LastName" name="o<?php echo $clientpartners_grid->RowIndex ?>_LastName" id="o<?php echo $clientpartners_grid->RowIndex ?>_LastName" value="<?php echo HtmlEncode($clientpartners->LastName->OldValue) ?>">
<?php } ?>
<?php if ($clientpartners->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_LastName" class="form-group clientpartners_LastName">
<input type="text" data-table="clientpartners" data-field="x_LastName" name="x<?php echo $clientpartners_grid->RowIndex ?>_LastName" id="x<?php echo $clientpartners_grid->RowIndex ?>_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 } ?>
<?php if ($clientpartners->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_LastName" class="clientpartners_LastName">
<span<?php echo $clientpartners->LastName->viewAttributes() ?>>
<?php echo $clientpartners->LastName->getViewValue() ?></span>
</span>
<?php if (!$clientpartners->isConfirm()) { ?>
<input type="hidden" data-table="clientpartners" data-field="x_LastName" name="x<?php echo $clientpartners_grid->RowIndex ?>_LastName" id="x<?php echo $clientpartners_grid->RowIndex ?>_LastName" value="<?php echo HtmlEncode($clientpartners->LastName->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_LastName" name="o<?php echo $clientpartners_grid->RowIndex ?>_LastName" id="o<?php echo $clientpartners_grid->RowIndex ?>_LastName" value="<?php echo HtmlEncode($clientpartners->LastName->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="clientpartners" data-field="x_LastName" name="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_LastName" id="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_LastName" value="<?php echo HtmlEncode($clientpartners->LastName->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_LastName" name="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_LastName" id="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_LastName" value="<?php echo HtmlEncode($clientpartners->LastName->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($clientpartners->JobTitle->Visible) { // JobTitle ?>
		<td data-name="JobTitle"<?php echo $clientpartners->JobTitle->cellAttributes() ?>>
<?php if ($clientpartners->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_JobTitle" class="form-group clientpartners_JobTitle">
<input type="text" data-table="clientpartners" data-field="x_JobTitle" name="x<?php echo $clientpartners_grid->RowIndex ?>_JobTitle" id="x<?php echo $clientpartners_grid->RowIndex ?>_JobTitle" size="30" maxlength="25" placeholder="<?php echo HtmlEncode($clientpartners->JobTitle->getPlaceHolder()) ?>" value="<?php echo $clientpartners->JobTitle->EditValue ?>"<?php echo $clientpartners->JobTitle->editAttributes() ?>>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_JobTitle" name="o<?php echo $clientpartners_grid->RowIndex ?>_JobTitle" id="o<?php echo $clientpartners_grid->RowIndex ?>_JobTitle" value="<?php echo HtmlEncode($clientpartners->JobTitle->OldValue) ?>">
<?php } ?>
<?php if ($clientpartners->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_JobTitle" class="form-group clientpartners_JobTitle">
<input type="text" data-table="clientpartners" data-field="x_JobTitle" name="x<?php echo $clientpartners_grid->RowIndex ?>_JobTitle" id="x<?php echo $clientpartners_grid->RowIndex ?>_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 } ?>
<?php if ($clientpartners->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_JobTitle" class="clientpartners_JobTitle">
<span<?php echo $clientpartners->JobTitle->viewAttributes() ?>>
<?php echo $clientpartners->JobTitle->getViewValue() ?></span>
</span>
<?php if (!$clientpartners->isConfirm()) { ?>
<input type="hidden" data-table="clientpartners" data-field="x_JobTitle" name="x<?php echo $clientpartners_grid->RowIndex ?>_JobTitle" id="x<?php echo $clientpartners_grid->RowIndex ?>_JobTitle" value="<?php echo HtmlEncode($clientpartners->JobTitle->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_JobTitle" name="o<?php echo $clientpartners_grid->RowIndex ?>_JobTitle" id="o<?php echo $clientpartners_grid->RowIndex ?>_JobTitle" value="<?php echo HtmlEncode($clientpartners->JobTitle->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="clientpartners" data-field="x_JobTitle" name="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_JobTitle" id="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_JobTitle" value="<?php echo HtmlEncode($clientpartners->JobTitle->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_JobTitle" name="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_JobTitle" id="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_JobTitle" value="<?php echo HtmlEncode($clientpartners->JobTitle->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($clientpartners->Photo->Visible) { // Photo ?>
		<td data-name="Photo"<?php echo $clientpartners->Photo->cellAttributes() ?>>
<?php if ($clientpartners_grid->RowAction == "insert") { // Add record ?>
<span id="el$rowindex$_clientpartners_Photo" class="form-group clientpartners_Photo">
<div id="fd_x<?php echo $clientpartners_grid->RowIndex ?>_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<?php echo $clientpartners_grid->RowIndex ?>_Photo" id="x<?php echo $clientpartners_grid->RowIndex ?>_Photo"<?php echo $clientpartners->Photo->editAttributes() ?>>
</span>
<input type="hidden" name="fn_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" id= "fn_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" value="<?php echo $clientpartners->Photo->Upload->FileName ?>">
<input type="hidden" name="fa_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" id= "fa_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" value="0">
<input type="hidden" name="fs_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" id= "fs_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" value="255">
<input type="hidden" name="fx_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" id= "fx_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" value="<?php echo $clientpartners->Photo->UploadAllowedFileExt ?>">
<input type="hidden" name="fm_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" id= "fm_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" value="<?php echo $clientpartners->Photo->UploadMaxFileSize ?>">
</div>
<table id="ft_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" class="table table-sm float-left ew-upload-table"><tbody class="files"></tbody></table>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_Photo" name="o<?php echo $clientpartners_grid->RowIndex ?>_Photo" id="o<?php echo $clientpartners_grid->RowIndex ?>_Photo" value="<?php echo HtmlEncode($clientpartners->Photo->OldValue) ?>">
<?php } elseif ($clientpartners->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_Photo" class="clientpartners_Photo">
<span>
<?php echo GetFileViewTag($clientpartners->Photo, $clientpartners->Photo->getViewValue()) ?>
</span>
</span>
<?php } else  { // Edit record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_Photo" class="form-group clientpartners_Photo">
<div id="fd_x<?php echo $clientpartners_grid->RowIndex ?>_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<?php echo $clientpartners_grid->RowIndex ?>_Photo" id="x<?php echo $clientpartners_grid->RowIndex ?>_Photo"<?php echo $clientpartners->Photo->editAttributes() ?>>
</span>
<input type="hidden" name="fn_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" id= "fn_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" value="<?php echo $clientpartners->Photo->Upload->FileName ?>">
<?php if (Post("fa_x<?php echo $clientpartners_grid->RowIndex ?>_Photo") == "0") { ?>
<input type="hidden" name="fa_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" id= "fa_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" value="0">
<?php } else { ?>
<input type="hidden" name="fa_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" id= "fa_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" value="1">
<?php } ?>
<input type="hidden" name="fs_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" id= "fs_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" value="255">
<input type="hidden" name="fx_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" id= "fx_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" value="<?php echo $clientpartners->Photo->UploadAllowedFileExt ?>">
<input type="hidden" name="fm_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" id= "fm_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" value="<?php echo $clientpartners->Photo->UploadMaxFileSize ?>">
</div>
<table id="ft_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" class="table table-sm float-left ew-upload-table"><tbody class="files"></tbody></table>
</span>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($clientpartners->BirthDate->Visible) { // BirthDate ?>
		<td data-name="BirthDate"<?php echo $clientpartners->BirthDate->cellAttributes() ?>>
<?php if ($clientpartners->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_BirthDate" class="form-group clientpartners_BirthDate">
<input type="text" data-table="clientpartners" data-field="x_BirthDate" name="x<?php echo $clientpartners_grid->RowIndex ?>_BirthDate" id="x<?php echo $clientpartners_grid->RowIndex ?>_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("fclientpartnersgrid", "x<?php echo $clientpartners_grid->RowIndex ?>_BirthDate", {"ignoreReadonly":true,"useCurrent":false,"format":0});
</script>
<?php } ?>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_BirthDate" name="o<?php echo $clientpartners_grid->RowIndex ?>_BirthDate" id="o<?php echo $clientpartners_grid->RowIndex ?>_BirthDate" value="<?php echo HtmlEncode($clientpartners->BirthDate->OldValue) ?>">
<?php } ?>
<?php if ($clientpartners->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_BirthDate" class="form-group clientpartners_BirthDate">
<input type="text" data-table="clientpartners" data-field="x_BirthDate" name="x<?php echo $clientpartners_grid->RowIndex ?>_BirthDate" id="x<?php echo $clientpartners_grid->RowIndex ?>_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("fclientpartnersgrid", "x<?php echo $clientpartners_grid->RowIndex ?>_BirthDate", {"ignoreReadonly":true,"useCurrent":false,"format":0});
</script>
<?php } ?>
</span>
<?php } ?>
<?php if ($clientpartners->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_BirthDate" class="clientpartners_BirthDate">
<span<?php echo $clientpartners->BirthDate->viewAttributes() ?>>
<?php echo $clientpartners->BirthDate->getViewValue() ?></span>
</span>
<?php if (!$clientpartners->isConfirm()) { ?>
<input type="hidden" data-table="clientpartners" data-field="x_BirthDate" name="x<?php echo $clientpartners_grid->RowIndex ?>_BirthDate" id="x<?php echo $clientpartners_grid->RowIndex ?>_BirthDate" value="<?php echo HtmlEncode($clientpartners->BirthDate->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_BirthDate" name="o<?php echo $clientpartners_grid->RowIndex ?>_BirthDate" id="o<?php echo $clientpartners_grid->RowIndex ?>_BirthDate" value="<?php echo HtmlEncode($clientpartners->BirthDate->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="clientpartners" data-field="x_BirthDate" name="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_BirthDate" id="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_BirthDate" value="<?php echo HtmlEncode($clientpartners->BirthDate->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_BirthDate" name="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_BirthDate" id="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_BirthDate" value="<?php echo HtmlEncode($clientpartners->BirthDate->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($clientpartners->MaritalStatusID->Visible) { // MaritalStatusID ?>
		<td data-name="MaritalStatusID"<?php echo $clientpartners->MaritalStatusID->cellAttributes() ?>>
<?php if ($clientpartners->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_MaritalStatusID" class="form-group clientpartners_MaritalStatusID">
<?php
$wrkonchange = "" . trim(@$clientpartners->MaritalStatusID->EditAttrs["onchange"]);
if (trim($wrkonchange) <> "") $wrkonchange = " onchange=\"" . JsEncode($wrkonchange) . "\"";
$clientpartners->MaritalStatusID->EditAttrs["onchange"] = "";
?>
<span id="as_x<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" class="text-nowrap" style="z-index: <?php echo (9000 - $clientpartners_grid->RowCnt * 10) ?>">
	<input type="text" class="form-control" name="sv_x<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" id="sv_x<?php echo $clientpartners_grid->RowIndex ?>_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<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" id="x<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" value="<?php echo HtmlEncode($clientpartners->MaritalStatusID->CurrentValue) ?>"<?php echo $wrkonchange ?>>
<script>
fclientpartnersgrid.createAutoSuggest({"id":"x<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID","forceSelect":false});
</script>
<?php echo $clientpartners->MaritalStatusID->Lookup->getParamTag("p_x" . $clientpartners_grid->RowIndex . "_MaritalStatusID") ?>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_MaritalStatusID" name="o<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" id="o<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" value="<?php echo HtmlEncode($clientpartners->MaritalStatusID->OldValue) ?>">
<?php } ?>
<?php if ($clientpartners->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_MaritalStatusID" class="form-group clientpartners_MaritalStatusID">
<?php
$wrkonchange = "" . trim(@$clientpartners->MaritalStatusID->EditAttrs["onchange"]);
if (trim($wrkonchange) <> "") $wrkonchange = " onchange=\"" . JsEncode($wrkonchange) . "\"";
$clientpartners->MaritalStatusID->EditAttrs["onchange"] = "";
?>
<span id="as_x<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" class="text-nowrap" style="z-index: <?php echo (9000 - $clientpartners_grid->RowCnt * 10) ?>">
	<input type="text" class="form-control" name="sv_x<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" id="sv_x<?php echo $clientpartners_grid->RowIndex ?>_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<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" id="x<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" value="<?php echo HtmlEncode($clientpartners->MaritalStatusID->CurrentValue) ?>"<?php echo $wrkonchange ?>>
<script>
fclientpartnersgrid.createAutoSuggest({"id":"x<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID","forceSelect":false});
</script>
<?php echo $clientpartners->MaritalStatusID->Lookup->getParamTag("p_x" . $clientpartners_grid->RowIndex . "_MaritalStatusID") ?>
</span>
<?php } ?>
<?php if ($clientpartners->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_MaritalStatusID" class="clientpartners_MaritalStatusID">
<span<?php echo $clientpartners->MaritalStatusID->viewAttributes() ?>>
<?php echo $clientpartners->MaritalStatusID->getViewValue() ?></span>
</span>
<?php if (!$clientpartners->isConfirm()) { ?>
<input type="hidden" data-table="clientpartners" data-field="x_MaritalStatusID" name="x<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" id="x<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" value="<?php echo HtmlEncode($clientpartners->MaritalStatusID->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_MaritalStatusID" name="o<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" id="o<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" value="<?php echo HtmlEncode($clientpartners->MaritalStatusID->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="clientpartners" data-field="x_MaritalStatusID" name="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" id="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" value="<?php echo HtmlEncode($clientpartners->MaritalStatusID->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_MaritalStatusID" name="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" id="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" value="<?php echo HtmlEncode($clientpartners->MaritalStatusID->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($clientpartners->CivilStatus23->Visible) { // CivilStatus# ?>
		<td data-name="CivilStatus23"<?php echo $clientpartners->CivilStatus23->cellAttributes() ?>>
<?php if ($clientpartners->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_CivilStatus23" class="form-group clientpartners_CivilStatus23">
<input type="text" data-table="clientpartners" data-field="x_CivilStatus23" name="x<?php echo $clientpartners_grid->RowIndex ?>_CivilStatus23" id="x<?php echo $clientpartners_grid->RowIndex ?>_CivilStatus23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->CivilStatus23->getPlaceHolder()) ?>" value="<?php echo $clientpartners->CivilStatus23->EditValue ?>"<?php echo $clientpartners->CivilStatus23->editAttributes() ?>>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_CivilStatus23" name="o<?php echo $clientpartners_grid->RowIndex ?>_CivilStatus23" id="o<?php echo $clientpartners_grid->RowIndex ?>_CivilStatus23" value="<?php echo HtmlEncode($clientpartners->CivilStatus23->OldValue) ?>">
<?php } ?>
<?php if ($clientpartners->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_CivilStatus23" class="form-group clientpartners_CivilStatus23">
<input type="text" data-table="clientpartners" data-field="x_CivilStatus23" name="x<?php echo $clientpartners_grid->RowIndex ?>_CivilStatus23" id="x<?php echo $clientpartners_grid->RowIndex ?>_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 } ?>
<?php if ($clientpartners->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_CivilStatus23" class="clientpartners_CivilStatus23">
<span<?php echo $clientpartners->CivilStatus23->viewAttributes() ?>>
<?php echo $clientpartners->CivilStatus23->getViewValue() ?></span>
</span>
<?php if (!$clientpartners->isConfirm()) { ?>
<input type="hidden" data-table="clientpartners" data-field="x_CivilStatus23" name="x<?php echo $clientpartners_grid->RowIndex ?>_CivilStatus23" id="x<?php echo $clientpartners_grid->RowIndex ?>_CivilStatus23" value="<?php echo HtmlEncode($clientpartners->CivilStatus23->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_CivilStatus23" name="o<?php echo $clientpartners_grid->RowIndex ?>_CivilStatus23" id="o<?php echo $clientpartners_grid->RowIndex ?>_CivilStatus23" value="<?php echo HtmlEncode($clientpartners->CivilStatus23->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="clientpartners" data-field="x_CivilStatus23" name="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_CivilStatus23" id="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_CivilStatus23" value="<?php echo HtmlEncode($clientpartners->CivilStatus23->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_CivilStatus23" name="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_CivilStatus23" id="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_CivilStatus23" value="<?php echo HtmlEncode($clientpartners->CivilStatus23->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($clientpartners->CivilStatusPlace->Visible) { // CivilStatusPlace ?>
		<td data-name="CivilStatusPlace"<?php echo $clientpartners->CivilStatusPlace->cellAttributes() ?>>
<?php if ($clientpartners->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_CivilStatusPlace" class="form-group clientpartners_CivilStatusPlace">
<input type="text" data-table="clientpartners" data-field="x_CivilStatusPlace" name="x<?php echo $clientpartners_grid->RowIndex ?>_CivilStatusPlace" id="x<?php echo $clientpartners_grid->RowIndex ?>_CivilStatusPlace" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->CivilStatusPlace->getPlaceHolder()) ?>" value="<?php echo $clientpartners->CivilStatusPlace->EditValue ?>"<?php echo $clientpartners->CivilStatusPlace->editAttributes() ?>>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_CivilStatusPlace" name="o<?php echo $clientpartners_grid->RowIndex ?>_CivilStatusPlace" id="o<?php echo $clientpartners_grid->RowIndex ?>_CivilStatusPlace" value="<?php echo HtmlEncode($clientpartners->CivilStatusPlace->OldValue) ?>">
<?php } ?>
<?php if ($clientpartners->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_CivilStatusPlace" class="form-group clientpartners_CivilStatusPlace">
<input type="text" data-table="clientpartners" data-field="x_CivilStatusPlace" name="x<?php echo $clientpartners_grid->RowIndex ?>_CivilStatusPlace" id="x<?php echo $clientpartners_grid->RowIndex ?>_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 } ?>
<?php if ($clientpartners->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_CivilStatusPlace" class="clientpartners_CivilStatusPlace">
<span<?php echo $clientpartners->CivilStatusPlace->viewAttributes() ?>>
<?php echo $clientpartners->CivilStatusPlace->getViewValue() ?></span>
</span>
<?php if (!$clientpartners->isConfirm()) { ?>
<input type="hidden" data-table="clientpartners" data-field="x_CivilStatusPlace" name="x<?php echo $clientpartners_grid->RowIndex ?>_CivilStatusPlace" id="x<?php echo $clientpartners_grid->RowIndex ?>_CivilStatusPlace" value="<?php echo HtmlEncode($clientpartners->CivilStatusPlace->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_CivilStatusPlace" name="o<?php echo $clientpartners_grid->RowIndex ?>_CivilStatusPlace" id="o<?php echo $clientpartners_grid->RowIndex ?>_CivilStatusPlace" value="<?php echo HtmlEncode($clientpartners->CivilStatusPlace->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="clientpartners" data-field="x_CivilStatusPlace" name="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_CivilStatusPlace" id="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_CivilStatusPlace" value="<?php echo HtmlEncode($clientpartners->CivilStatusPlace->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_CivilStatusPlace" name="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_CivilStatusPlace" id="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_CivilStatusPlace" value="<?php echo HtmlEncode($clientpartners->CivilStatusPlace->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($clientpartners->IdCard23->Visible) { // IdCard# ?>
		<td data-name="IdCard23"<?php echo $clientpartners->IdCard23->cellAttributes() ?>>
<?php if ($clientpartners->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_IdCard23" class="form-group clientpartners_IdCard23">
<input type="text" data-table="clientpartners" data-field="x_IdCard23" name="x<?php echo $clientpartners_grid->RowIndex ?>_IdCard23" id="x<?php echo $clientpartners_grid->RowIndex ?>_IdCard23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->IdCard23->getPlaceHolder()) ?>" value="<?php echo $clientpartners->IdCard23->EditValue ?>"<?php echo $clientpartners->IdCard23->editAttributes() ?>>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_IdCard23" name="o<?php echo $clientpartners_grid->RowIndex ?>_IdCard23" id="o<?php echo $clientpartners_grid->RowIndex ?>_IdCard23" value="<?php echo HtmlEncode($clientpartners->IdCard23->OldValue) ?>">
<?php } ?>
<?php if ($clientpartners->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_IdCard23" class="form-group clientpartners_IdCard23">
<input type="text" data-table="clientpartners" data-field="x_IdCard23" name="x<?php echo $clientpartners_grid->RowIndex ?>_IdCard23" id="x<?php echo $clientpartners_grid->RowIndex ?>_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 } ?>
<?php if ($clientpartners->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_IdCard23" class="clientpartners_IdCard23">
<span<?php echo $clientpartners->IdCard23->viewAttributes() ?>>
<?php echo $clientpartners->IdCard23->getViewValue() ?></span>
</span>
<?php if (!$clientpartners->isConfirm()) { ?>
<input type="hidden" data-table="clientpartners" data-field="x_IdCard23" name="x<?php echo $clientpartners_grid->RowIndex ?>_IdCard23" id="x<?php echo $clientpartners_grid->RowIndex ?>_IdCard23" value="<?php echo HtmlEncode($clientpartners->IdCard23->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_IdCard23" name="o<?php echo $clientpartners_grid->RowIndex ?>_IdCard23" id="o<?php echo $clientpartners_grid->RowIndex ?>_IdCard23" value="<?php echo HtmlEncode($clientpartners->IdCard23->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="clientpartners" data-field="x_IdCard23" name="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_IdCard23" id="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_IdCard23" value="<?php echo HtmlEncode($clientpartners->IdCard23->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_IdCard23" name="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_IdCard23" id="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_IdCard23" value="<?php echo HtmlEncode($clientpartners->IdCard23->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($clientpartners->Nationality1->Visible) { // Nationality1 ?>
		<td data-name="Nationality1"<?php echo $clientpartners->Nationality1->cellAttributes() ?>>
<?php if ($clientpartners->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_Nationality1" class="form-group clientpartners_Nationality1">
<input type="text" data-table="clientpartners" data-field="x_Nationality1" name="x<?php echo $clientpartners_grid->RowIndex ?>_Nationality1" id="x<?php echo $clientpartners_grid->RowIndex ?>_Nationality1" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->Nationality1->getPlaceHolder()) ?>" value="<?php echo $clientpartners->Nationality1->EditValue ?>"<?php echo $clientpartners->Nationality1->editAttributes() ?>>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_Nationality1" name="o<?php echo $clientpartners_grid->RowIndex ?>_Nationality1" id="o<?php echo $clientpartners_grid->RowIndex ?>_Nationality1" value="<?php echo HtmlEncode($clientpartners->Nationality1->OldValue) ?>">
<?php } ?>
<?php if ($clientpartners->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_Nationality1" class="form-group clientpartners_Nationality1">
<input type="text" data-table="clientpartners" data-field="x_Nationality1" name="x<?php echo $clientpartners_grid->RowIndex ?>_Nationality1" id="x<?php echo $clientpartners_grid->RowIndex ?>_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 } ?>
<?php if ($clientpartners->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_Nationality1" class="clientpartners_Nationality1">
<span<?php echo $clientpartners->Nationality1->viewAttributes() ?>>
<?php echo $clientpartners->Nationality1->getViewValue() ?></span>
</span>
<?php if (!$clientpartners->isConfirm()) { ?>
<input type="hidden" data-table="clientpartners" data-field="x_Nationality1" name="x<?php echo $clientpartners_grid->RowIndex ?>_Nationality1" id="x<?php echo $clientpartners_grid->RowIndex ?>_Nationality1" value="<?php echo HtmlEncode($clientpartners->Nationality1->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_Nationality1" name="o<?php echo $clientpartners_grid->RowIndex ?>_Nationality1" id="o<?php echo $clientpartners_grid->RowIndex ?>_Nationality1" value="<?php echo HtmlEncode($clientpartners->Nationality1->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="clientpartners" data-field="x_Nationality1" name="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_Nationality1" id="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_Nationality1" value="<?php echo HtmlEncode($clientpartners->Nationality1->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_Nationality1" name="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_Nationality1" id="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_Nationality1" value="<?php echo HtmlEncode($clientpartners->Nationality1->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($clientpartners->Nationality2->Visible) { // Nationality2 ?>
		<td data-name="Nationality2"<?php echo $clientpartners->Nationality2->cellAttributes() ?>>
<?php if ($clientpartners->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_Nationality2" class="form-group clientpartners_Nationality2">
<input type="text" data-table="clientpartners" data-field="x_Nationality2" name="x<?php echo $clientpartners_grid->RowIndex ?>_Nationality2" id="x<?php echo $clientpartners_grid->RowIndex ?>_Nationality2" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->Nationality2->getPlaceHolder()) ?>" value="<?php echo $clientpartners->Nationality2->EditValue ?>"<?php echo $clientpartners->Nationality2->editAttributes() ?>>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_Nationality2" name="o<?php echo $clientpartners_grid->RowIndex ?>_Nationality2" id="o<?php echo $clientpartners_grid->RowIndex ?>_Nationality2" value="<?php echo HtmlEncode($clientpartners->Nationality2->OldValue) ?>">
<?php } ?>
<?php if ($clientpartners->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_Nationality2" class="form-group clientpartners_Nationality2">
<input type="text" data-table="clientpartners" data-field="x_Nationality2" name="x<?php echo $clientpartners_grid->RowIndex ?>_Nationality2" id="x<?php echo $clientpartners_grid->RowIndex ?>_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 } ?>
<?php if ($clientpartners->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_Nationality2" class="clientpartners_Nationality2">
<span<?php echo $clientpartners->Nationality2->viewAttributes() ?>>
<?php echo $clientpartners->Nationality2->getViewValue() ?></span>
</span>
<?php if (!$clientpartners->isConfirm()) { ?>
<input type="hidden" data-table="clientpartners" data-field="x_Nationality2" name="x<?php echo $clientpartners_grid->RowIndex ?>_Nationality2" id="x<?php echo $clientpartners_grid->RowIndex ?>_Nationality2" value="<?php echo HtmlEncode($clientpartners->Nationality2->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_Nationality2" name="o<?php echo $clientpartners_grid->RowIndex ?>_Nationality2" id="o<?php echo $clientpartners_grid->RowIndex ?>_Nationality2" value="<?php echo HtmlEncode($clientpartners->Nationality2->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="clientpartners" data-field="x_Nationality2" name="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_Nationality2" id="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_Nationality2" value="<?php echo HtmlEncode($clientpartners->Nationality2->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_Nationality2" name="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_Nationality2" id="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_Nationality2" value="<?php echo HtmlEncode($clientpartners->Nationality2->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($clientpartners->Extra23->Visible) { // Extra# ?>
		<td data-name="Extra23"<?php echo $clientpartners->Extra23->cellAttributes() ?>>
<?php if ($clientpartners->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_Extra23" class="form-group clientpartners_Extra23">
<input type="text" data-table="clientpartners" data-field="x_Extra23" name="x<?php echo $clientpartners_grid->RowIndex ?>_Extra23" id="x<?php echo $clientpartners_grid->RowIndex ?>_Extra23" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($clientpartners->Extra23->getPlaceHolder()) ?>" value="<?php echo $clientpartners->Extra23->EditValue ?>"<?php echo $clientpartners->Extra23->editAttributes() ?>>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_Extra23" name="o<?php echo $clientpartners_grid->RowIndex ?>_Extra23" id="o<?php echo $clientpartners_grid->RowIndex ?>_Extra23" value="<?php echo HtmlEncode($clientpartners->Extra23->OldValue) ?>">
<?php } ?>
<?php if ($clientpartners->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_Extra23" class="form-group clientpartners_Extra23">
<input type="text" data-table="clientpartners" data-field="x_Extra23" name="x<?php echo $clientpartners_grid->RowIndex ?>_Extra23" id="x<?php echo $clientpartners_grid->RowIndex ?>_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 } ?>
<?php if ($clientpartners->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $clientpartners_grid->RowCnt ?>_clientpartners_Extra23" class="clientpartners_Extra23">
<span<?php echo $clientpartners->Extra23->viewAttributes() ?>>
<?php echo $clientpartners->Extra23->getViewValue() ?></span>
</span>
<?php if (!$clientpartners->isConfirm()) { ?>
<input type="hidden" data-table="clientpartners" data-field="x_Extra23" name="x<?php echo $clientpartners_grid->RowIndex ?>_Extra23" id="x<?php echo $clientpartners_grid->RowIndex ?>_Extra23" value="<?php echo HtmlEncode($clientpartners->Extra23->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_Extra23" name="o<?php echo $clientpartners_grid->RowIndex ?>_Extra23" id="o<?php echo $clientpartners_grid->RowIndex ?>_Extra23" value="<?php echo HtmlEncode($clientpartners->Extra23->OldValue) ?>">
<?php } else { ?>
<input type="hidden" data-table="clientpartners" data-field="x_Extra23" name="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_Extra23" id="fclientpartnersgrid$x<?php echo $clientpartners_grid->RowIndex ?>_Extra23" value="<?php echo HtmlEncode($clientpartners->Extra23->FormValue) ?>">
<input type="hidden" data-table="clientpartners" data-field="x_Extra23" name="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_Extra23" id="fclientpartnersgrid$o<?php echo $clientpartners_grid->RowIndex ?>_Extra23" value="<?php echo HtmlEncode($clientpartners->Extra23->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
	<?php } ?>
<?php

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

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

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

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

// Render list options (body, left)
$clientpartners_grid->ListOptions->render("body", "left", $clientpartners_grid->RowIndex);
?>
	<?php if ($clientpartners->ClientID->Visible) { // ClientID ?>
		<td data-name="ClientID">
<?php if (!$clientpartners->isConfirm()) { ?>
<?php if ($clientpartners->ClientID->getSessionValue() <> "") { ?>
<span id="el$rowindex$_clientpartners_ClientID" class="form-group 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<?php echo $clientpartners_grid->RowIndex ?>_ClientID" name="x<?php echo $clientpartners_grid->RowIndex ?>_ClientID" value="<?php echo HtmlEncode($clientpartners->ClientID->CurrentValue) ?>">
<?php } else { ?>
<span id="el$rowindex$_clientpartners_ClientID" class="form-group 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<?php echo $clientpartners_grid->RowIndex ?>_ClientID" name="x<?php echo $clientpartners_grid->RowIndex ?>_ClientID"<?php echo $clientpartners->ClientID->editAttributes() ?>>
		<?php echo $clientpartners->ClientID->selectOptionListHtml("x<?php echo $clientpartners_grid->RowIndex ?>_ClientID") ?>
	</select>
</div>
<?php echo $clientpartners->ClientID->Lookup->getParamTag("p_x" . $clientpartners_grid->RowIndex . "_ClientID") ?>
</span>
<?php } ?>
<?php } else { ?>
<span id="el$rowindex$_clientpartners_ClientID" class="form-group 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" data-table="clientpartners" data-field="x_ClientID" name="x<?php echo $clientpartners_grid->RowIndex ?>_ClientID" id="x<?php echo $clientpartners_grid->RowIndex ?>_ClientID" value="<?php echo HtmlEncode($clientpartners->ClientID->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="clientpartners" data-field="x_ClientID" name="o<?php echo $clientpartners_grid->RowIndex ?>_ClientID" id="o<?php echo $clientpartners_grid->RowIndex ?>_ClientID" value="<?php echo HtmlEncode($clientpartners->ClientID->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($clientpartners->TitleID->Visible) { // TitleID ?>
		<td data-name="TitleID">
<?php if (!$clientpartners->isConfirm()) { ?>
<span id="el$rowindex$_clientpartners_TitleID" class="form-group 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<?php echo $clientpartners_grid->RowIndex ?>_TitleID" name="x<?php echo $clientpartners_grid->RowIndex ?>_TitleID"<?php echo $clientpartners->TitleID->editAttributes() ?>>
		<?php echo $clientpartners->TitleID->selectOptionListHtml("x<?php echo $clientpartners_grid->RowIndex ?>_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<?php echo $clientpartners_grid->RowIndex ?>_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<?php echo $clientpartners_grid->RowIndex ?>_TitleID',url:'titlesaddopt.php'});"><i class="fa fa-plus ew-icon"></i></button></div>
<?php } ?>
</div>
<?php echo $clientpartners->TitleID->Lookup->getParamTag("p_x" . $clientpartners_grid->RowIndex . "_TitleID") ?>
</span>
<?php } else { ?>
<span id="el$rowindex$_clientpartners_TitleID" class="form-group clientpartners_TitleID">
<span<?php echo $clientpartners->TitleID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($clientpartners->TitleID->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_TitleID" name="x<?php echo $clientpartners_grid->RowIndex ?>_TitleID" id="x<?php echo $clientpartners_grid->RowIndex ?>_TitleID" value="<?php echo HtmlEncode($clientpartners->TitleID->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="clientpartners" data-field="x_TitleID" name="o<?php echo $clientpartners_grid->RowIndex ?>_TitleID" id="o<?php echo $clientpartners_grid->RowIndex ?>_TitleID" value="<?php echo HtmlEncode($clientpartners->TitleID->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($clientpartners->FirstName->Visible) { // FirstName ?>
		<td data-name="FirstName">
<?php if (!$clientpartners->isConfirm()) { ?>
<span id="el$rowindex$_clientpartners_FirstName" class="form-group clientpartners_FirstName">
<input type="text" data-table="clientpartners" data-field="x_FirstName" name="x<?php echo $clientpartners_grid->RowIndex ?>_FirstName" id="x<?php echo $clientpartners_grid->RowIndex ?>_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 } else { ?>
<span id="el$rowindex$_clientpartners_FirstName" class="form-group clientpartners_FirstName">
<span<?php echo $clientpartners->FirstName->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($clientpartners->FirstName->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_FirstName" name="x<?php echo $clientpartners_grid->RowIndex ?>_FirstName" id="x<?php echo $clientpartners_grid->RowIndex ?>_FirstName" value="<?php echo HtmlEncode($clientpartners->FirstName->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="clientpartners" data-field="x_FirstName" name="o<?php echo $clientpartners_grid->RowIndex ?>_FirstName" id="o<?php echo $clientpartners_grid->RowIndex ?>_FirstName" value="<?php echo HtmlEncode($clientpartners->FirstName->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($clientpartners->MiddleName->Visible) { // MiddleName ?>
		<td data-name="MiddleName">
<?php if (!$clientpartners->isConfirm()) { ?>
<span id="el$rowindex$_clientpartners_MiddleName" class="form-group clientpartners_MiddleName">
<input type="text" data-table="clientpartners" data-field="x_MiddleName" name="x<?php echo $clientpartners_grid->RowIndex ?>_MiddleName" id="x<?php echo $clientpartners_grid->RowIndex ?>_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 } else { ?>
<span id="el$rowindex$_clientpartners_MiddleName" class="form-group clientpartners_MiddleName">
<span<?php echo $clientpartners->MiddleName->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($clientpartners->MiddleName->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_MiddleName" name="x<?php echo $clientpartners_grid->RowIndex ?>_MiddleName" id="x<?php echo $clientpartners_grid->RowIndex ?>_MiddleName" value="<?php echo HtmlEncode($clientpartners->MiddleName->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="clientpartners" data-field="x_MiddleName" name="o<?php echo $clientpartners_grid->RowIndex ?>_MiddleName" id="o<?php echo $clientpartners_grid->RowIndex ?>_MiddleName" value="<?php echo HtmlEncode($clientpartners->MiddleName->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($clientpartners->LastName->Visible) { // LastName ?>
		<td data-name="LastName">
<?php if (!$clientpartners->isConfirm()) { ?>
<span id="el$rowindex$_clientpartners_LastName" class="form-group clientpartners_LastName">
<input type="text" data-table="clientpartners" data-field="x_LastName" name="x<?php echo $clientpartners_grid->RowIndex ?>_LastName" id="x<?php echo $clientpartners_grid->RowIndex ?>_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 } else { ?>
<span id="el$rowindex$_clientpartners_LastName" class="form-group clientpartners_LastName">
<span<?php echo $clientpartners->LastName->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($clientpartners->LastName->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_LastName" name="x<?php echo $clientpartners_grid->RowIndex ?>_LastName" id="x<?php echo $clientpartners_grid->RowIndex ?>_LastName" value="<?php echo HtmlEncode($clientpartners->LastName->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="clientpartners" data-field="x_LastName" name="o<?php echo $clientpartners_grid->RowIndex ?>_LastName" id="o<?php echo $clientpartners_grid->RowIndex ?>_LastName" value="<?php echo HtmlEncode($clientpartners->LastName->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($clientpartners->JobTitle->Visible) { // JobTitle ?>
		<td data-name="JobTitle">
<?php if (!$clientpartners->isConfirm()) { ?>
<span id="el$rowindex$_clientpartners_JobTitle" class="form-group clientpartners_JobTitle">
<input type="text" data-table="clientpartners" data-field="x_JobTitle" name="x<?php echo $clientpartners_grid->RowIndex ?>_JobTitle" id="x<?php echo $clientpartners_grid->RowIndex ?>_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 } else { ?>
<span id="el$rowindex$_clientpartners_JobTitle" class="form-group clientpartners_JobTitle">
<span<?php echo $clientpartners->JobTitle->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($clientpartners->JobTitle->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_JobTitle" name="x<?php echo $clientpartners_grid->RowIndex ?>_JobTitle" id="x<?php echo $clientpartners_grid->RowIndex ?>_JobTitle" value="<?php echo HtmlEncode($clientpartners->JobTitle->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="clientpartners" data-field="x_JobTitle" name="o<?php echo $clientpartners_grid->RowIndex ?>_JobTitle" id="o<?php echo $clientpartners_grid->RowIndex ?>_JobTitle" value="<?php echo HtmlEncode($clientpartners->JobTitle->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($clientpartners->Photo->Visible) { // Photo ?>
		<td data-name="Photo">
<span id="el$rowindex$_clientpartners_Photo" class="form-group clientpartners_Photo">
<div id="fd_x<?php echo $clientpartners_grid->RowIndex ?>_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<?php echo $clientpartners_grid->RowIndex ?>_Photo" id="x<?php echo $clientpartners_grid->RowIndex ?>_Photo"<?php echo $clientpartners->Photo->editAttributes() ?>>
</span>
<input type="hidden" name="fn_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" id= "fn_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" value="<?php echo $clientpartners->Photo->Upload->FileName ?>">
<input type="hidden" name="fa_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" id= "fa_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" value="0">
<input type="hidden" name="fs_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" id= "fs_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" value="255">
<input type="hidden" name="fx_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" id= "fx_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" value="<?php echo $clientpartners->Photo->UploadAllowedFileExt ?>">
<input type="hidden" name="fm_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" id= "fm_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" value="<?php echo $clientpartners->Photo->UploadMaxFileSize ?>">
</div>
<table id="ft_x<?php echo $clientpartners_grid->RowIndex ?>_Photo" class="table table-sm float-left ew-upload-table"><tbody class="files"></tbody></table>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_Photo" name="o<?php echo $clientpartners_grid->RowIndex ?>_Photo" id="o<?php echo $clientpartners_grid->RowIndex ?>_Photo" value="<?php echo HtmlEncode($clientpartners->Photo->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($clientpartners->BirthDate->Visible) { // BirthDate ?>
		<td data-name="BirthDate">
<?php if (!$clientpartners->isConfirm()) { ?>
<span id="el$rowindex$_clientpartners_BirthDate" class="form-group clientpartners_BirthDate">
<input type="text" data-table="clientpartners" data-field="x_BirthDate" name="x<?php echo $clientpartners_grid->RowIndex ?>_BirthDate" id="x<?php echo $clientpartners_grid->RowIndex ?>_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("fclientpartnersgrid", "x<?php echo $clientpartners_grid->RowIndex ?>_BirthDate", {"ignoreReadonly":true,"useCurrent":false,"format":0});
</script>
<?php } ?>
</span>
<?php } else { ?>
<span id="el$rowindex$_clientpartners_BirthDate" class="form-group clientpartners_BirthDate">
<span<?php echo $clientpartners->BirthDate->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($clientpartners->BirthDate->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_BirthDate" name="x<?php echo $clientpartners_grid->RowIndex ?>_BirthDate" id="x<?php echo $clientpartners_grid->RowIndex ?>_BirthDate" value="<?php echo HtmlEncode($clientpartners->BirthDate->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="clientpartners" data-field="x_BirthDate" name="o<?php echo $clientpartners_grid->RowIndex ?>_BirthDate" id="o<?php echo $clientpartners_grid->RowIndex ?>_BirthDate" value="<?php echo HtmlEncode($clientpartners->BirthDate->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($clientpartners->MaritalStatusID->Visible) { // MaritalStatusID ?>
		<td data-name="MaritalStatusID">
<?php if (!$clientpartners->isConfirm()) { ?>
<span id="el$rowindex$_clientpartners_MaritalStatusID" class="form-group clientpartners_MaritalStatusID">
<?php
$wrkonchange = "" . trim(@$clientpartners->MaritalStatusID->EditAttrs["onchange"]);
if (trim($wrkonchange) <> "") $wrkonchange = " onchange=\"" . JsEncode($wrkonchange) . "\"";
$clientpartners->MaritalStatusID->EditAttrs["onchange"] = "";
?>
<span id="as_x<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" class="text-nowrap" style="z-index: <?php echo (9000 - $clientpartners_grid->RowCnt * 10) ?>">
	<input type="text" class="form-control" name="sv_x<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" id="sv_x<?php echo $clientpartners_grid->RowIndex ?>_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<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" id="x<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" value="<?php echo HtmlEncode($clientpartners->MaritalStatusID->CurrentValue) ?>"<?php echo $wrkonchange ?>>
<script>
fclientpartnersgrid.createAutoSuggest({"id":"x<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID","forceSelect":false});
</script>
<?php echo $clientpartners->MaritalStatusID->Lookup->getParamTag("p_x" . $clientpartners_grid->RowIndex . "_MaritalStatusID") ?>
</span>
<?php } else { ?>
<span id="el$rowindex$_clientpartners_MaritalStatusID" class="form-group clientpartners_MaritalStatusID">
<span<?php echo $clientpartners->MaritalStatusID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($clientpartners->MaritalStatusID->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_MaritalStatusID" name="x<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" id="x<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" value="<?php echo HtmlEncode($clientpartners->MaritalStatusID->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="clientpartners" data-field="x_MaritalStatusID" name="o<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" id="o<?php echo $clientpartners_grid->RowIndex ?>_MaritalStatusID" value="<?php echo HtmlEncode($clientpartners->MaritalStatusID->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($clientpartners->CivilStatus23->Visible) { // CivilStatus# ?>
		<td data-name="CivilStatus23">
<?php if (!$clientpartners->isConfirm()) { ?>
<span id="el$rowindex$_clientpartners_CivilStatus23" class="form-group clientpartners_CivilStatus23">
<input type="text" data-table="clientpartners" data-field="x_CivilStatus23" name="x<?php echo $clientpartners_grid->RowIndex ?>_CivilStatus23" id="x<?php echo $clientpartners_grid->RowIndex ?>_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 } else { ?>
<span id="el$rowindex$_clientpartners_CivilStatus23" class="form-group clientpartners_CivilStatus23">
<span<?php echo $clientpartners->CivilStatus23->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($clientpartners->CivilStatus23->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_CivilStatus23" name="x<?php echo $clientpartners_grid->RowIndex ?>_CivilStatus23" id="x<?php echo $clientpartners_grid->RowIndex ?>_CivilStatus23" value="<?php echo HtmlEncode($clientpartners->CivilStatus23->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="clientpartners" data-field="x_CivilStatus23" name="o<?php echo $clientpartners_grid->RowIndex ?>_CivilStatus23" id="o<?php echo $clientpartners_grid->RowIndex ?>_CivilStatus23" value="<?php echo HtmlEncode($clientpartners->CivilStatus23->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($clientpartners->CivilStatusPlace->Visible) { // CivilStatusPlace ?>
		<td data-name="CivilStatusPlace">
<?php if (!$clientpartners->isConfirm()) { ?>
<span id="el$rowindex$_clientpartners_CivilStatusPlace" class="form-group clientpartners_CivilStatusPlace">
<input type="text" data-table="clientpartners" data-field="x_CivilStatusPlace" name="x<?php echo $clientpartners_grid->RowIndex ?>_CivilStatusPlace" id="x<?php echo $clientpartners_grid->RowIndex ?>_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 } else { ?>
<span id="el$rowindex$_clientpartners_CivilStatusPlace" class="form-group clientpartners_CivilStatusPlace">
<span<?php echo $clientpartners->CivilStatusPlace->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($clientpartners->CivilStatusPlace->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_CivilStatusPlace" name="x<?php echo $clientpartners_grid->RowIndex ?>_CivilStatusPlace" id="x<?php echo $clientpartners_grid->RowIndex ?>_CivilStatusPlace" value="<?php echo HtmlEncode($clientpartners->CivilStatusPlace->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="clientpartners" data-field="x_CivilStatusPlace" name="o<?php echo $clientpartners_grid->RowIndex ?>_CivilStatusPlace" id="o<?php echo $clientpartners_grid->RowIndex ?>_CivilStatusPlace" value="<?php echo HtmlEncode($clientpartners->CivilStatusPlace->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($clientpartners->IdCard23->Visible) { // IdCard# ?>
		<td data-name="IdCard23">
<?php if (!$clientpartners->isConfirm()) { ?>
<span id="el$rowindex$_clientpartners_IdCard23" class="form-group clientpartners_IdCard23">
<input type="text" data-table="clientpartners" data-field="x_IdCard23" name="x<?php echo $clientpartners_grid->RowIndex ?>_IdCard23" id="x<?php echo $clientpartners_grid->RowIndex ?>_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 } else { ?>
<span id="el$rowindex$_clientpartners_IdCard23" class="form-group clientpartners_IdCard23">
<span<?php echo $clientpartners->IdCard23->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($clientpartners->IdCard23->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_IdCard23" name="x<?php echo $clientpartners_grid->RowIndex ?>_IdCard23" id="x<?php echo $clientpartners_grid->RowIndex ?>_IdCard23" value="<?php echo HtmlEncode($clientpartners->IdCard23->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="clientpartners" data-field="x_IdCard23" name="o<?php echo $clientpartners_grid->RowIndex ?>_IdCard23" id="o<?php echo $clientpartners_grid->RowIndex ?>_IdCard23" value="<?php echo HtmlEncode($clientpartners->IdCard23->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($clientpartners->Nationality1->Visible) { // Nationality1 ?>
		<td data-name="Nationality1">
<?php if (!$clientpartners->isConfirm()) { ?>
<span id="el$rowindex$_clientpartners_Nationality1" class="form-group clientpartners_Nationality1">
<input type="text" data-table="clientpartners" data-field="x_Nationality1" name="x<?php echo $clientpartners_grid->RowIndex ?>_Nationality1" id="x<?php echo $clientpartners_grid->RowIndex ?>_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 } else { ?>
<span id="el$rowindex$_clientpartners_Nationality1" class="form-group clientpartners_Nationality1">
<span<?php echo $clientpartners->Nationality1->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($clientpartners->Nationality1->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_Nationality1" name="x<?php echo $clientpartners_grid->RowIndex ?>_Nationality1" id="x<?php echo $clientpartners_grid->RowIndex ?>_Nationality1" value="<?php echo HtmlEncode($clientpartners->Nationality1->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="clientpartners" data-field="x_Nationality1" name="o<?php echo $clientpartners_grid->RowIndex ?>_Nationality1" id="o<?php echo $clientpartners_grid->RowIndex ?>_Nationality1" value="<?php echo HtmlEncode($clientpartners->Nationality1->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($clientpartners->Nationality2->Visible) { // Nationality2 ?>
		<td data-name="Nationality2">
<?php if (!$clientpartners->isConfirm()) { ?>
<span id="el$rowindex$_clientpartners_Nationality2" class="form-group clientpartners_Nationality2">
<input type="text" data-table="clientpartners" data-field="x_Nationality2" name="x<?php echo $clientpartners_grid->RowIndex ?>_Nationality2" id="x<?php echo $clientpartners_grid->RowIndex ?>_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 } else { ?>
<span id="el$rowindex$_clientpartners_Nationality2" class="form-group clientpartners_Nationality2">
<span<?php echo $clientpartners->Nationality2->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($clientpartners->Nationality2->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_Nationality2" name="x<?php echo $clientpartners_grid->RowIndex ?>_Nationality2" id="x<?php echo $clientpartners_grid->RowIndex ?>_Nationality2" value="<?php echo HtmlEncode($clientpartners->Nationality2->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="clientpartners" data-field="x_Nationality2" name="o<?php echo $clientpartners_grid->RowIndex ?>_Nationality2" id="o<?php echo $clientpartners_grid->RowIndex ?>_Nationality2" value="<?php echo HtmlEncode($clientpartners->Nationality2->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($clientpartners->Extra23->Visible) { // Extra# ?>
		<td data-name="Extra23">
<?php if (!$clientpartners->isConfirm()) { ?>
<span id="el$rowindex$_clientpartners_Extra23" class="form-group clientpartners_Extra23">
<input type="text" data-table="clientpartners" data-field="x_Extra23" name="x<?php echo $clientpartners_grid->RowIndex ?>_Extra23" id="x<?php echo $clientpartners_grid->RowIndex ?>_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 } else { ?>
<span id="el$rowindex$_clientpartners_Extra23" class="form-group clientpartners_Extra23">
<span<?php echo $clientpartners->Extra23->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($clientpartners->Extra23->ViewValue) ?>"></span>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_Extra23" name="x<?php echo $clientpartners_grid->RowIndex ?>_Extra23" id="x<?php echo $clientpartners_grid->RowIndex ?>_Extra23" value="<?php echo HtmlEncode($clientpartners->Extra23->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="clientpartners" data-field="x_Extra23" name="o<?php echo $clientpartners_grid->RowIndex ?>_Extra23" id="o<?php echo $clientpartners_grid->RowIndex ?>_Extra23" value="<?php echo HtmlEncode($clientpartners->Extra23->OldValue) ?>">
</td>
	<?php } ?>
<?php

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

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