<?php
namespace PHPMaker2019\project_germanos;

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

// Output buffering
ob_start(); 

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

// Write header
WriteHeader(FALSE);

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

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

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

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

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

// Form object
currentPageID = ew.PAGE_ID = "search";
<?php if ($clientpartners_search->IsModal) { ?>
var fclientpartnerssearch = currentAdvancedSearchForm = new ew.Form("fclientpartnerssearch", "search");
<?php } else { ?>
var fclientpartnerssearch = currentForm = new ew.Form("fclientpartnerssearch", "search");
<?php } ?>

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

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

// Form object for search
// Validate function for search

fclientpartnerssearch.validate = function(fobj) {
	if (!this.validateRequired)
		return true; // Ignore validation
	fobj = fobj || this._form;
	var infix = "";
	elm = this.getElements("x" + infix + "_ClientPartnerID");
	if (elm && !ew.checkInteger(elm.value))
		return this.onError(elm, "<?php echo JsEncode($clientpartners->ClientPartnerID->errorMessage()) ?>");
	elm = this.getElements("x" + infix + "_BirthDate");
	if (elm && !ew.checkDateDef(elm.value))
		return this.onError(elm, "<?php echo JsEncode($clientpartners->BirthDate->errorMessage()) ?>");
	elm = this.getElements("x" + infix + "_MaritalStatusID");
	if (elm && !ew.checkInteger(elm.value))
		return this.onError(elm, "<?php echo JsEncode($clientpartners->MaritalStatusID->errorMessage()) ?>");

	// Fire Form_CustomValidate event
	if (!this.Form_CustomValidate(fobj))
		return false;
	return true;
}
</script>
<script>

// Write your client script here, no need to add script tags.
</script>
<?php $clientpartners_search->showPageHeader(); ?>
<?php
$clientpartners_search->showMessage();
?>
<form name="fclientpartnerssearch" id="fclientpartnerssearch" class="<?php echo $clientpartners_search->FormClassName ?>" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($clientpartners_search->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $clientpartners_search->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="clientpartners">
<input type="hidden" name="action" id="action" value="search">
<input type="hidden" name="modal" value="<?php echo (int)$clientpartners_search->IsModal ?>">
<?php if (!$clientpartners_search->IsMobileOrModal) { ?>
<div class="ew-desktop"><!-- desktop -->
<?php } ?>
<?php if ($clientpartners_search->IsMobileOrModal) { ?>
<div class="ew-search-div"><!-- page* -->
<?php } else { ?>
<table id="tbl_clientpartnerssearch" class="table table-striped table-sm ew-desktop-table"><!-- table* -->
<?php } ?>
<?php if ($clientpartners->ClientPartnerID->Visible) { // ClientPartnerID ?>
<?php if ($clientpartners_search->IsMobileOrModal) { ?>
	<div id="r_ClientPartnerID" class="form-group row">
		<label for="x_ClientPartnerID" class="<?php echo $clientpartners_search->LeftColumnClass ?>"><span id="elh_clientpartners_ClientPartnerID"><?php echo $clientpartners->ClientPartnerID->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_ClientPartnerID" id="z_ClientPartnerID" value="="></span>
		</label>
		<div class="<?php echo $clientpartners_search->RightColumnClass ?>"><div<?php echo $clientpartners->ClientPartnerID->cellAttributes() ?>>
			<span id="el_clientpartners_ClientPartnerID">
<input type="text" data-table="clientpartners" data-field="x_ClientPartnerID" name="x_ClientPartnerID" id="x_ClientPartnerID" placeholder="<?php echo HtmlEncode($clientpartners->ClientPartnerID->getPlaceHolder()) ?>" value="<?php echo $clientpartners->ClientPartnerID->EditValue ?>"<?php echo $clientpartners->ClientPartnerID->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_ClientPartnerID">
		<td class="<?php echo $clientpartners_search->TableLeftColumnClass ?>"><span id="elh_clientpartners_ClientPartnerID"><?php echo $clientpartners->ClientPartnerID->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_ClientPartnerID" id="z_ClientPartnerID" value="="></span></td>
		<td<?php echo $clientpartners->ClientPartnerID->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_clientpartners_ClientPartnerID">
<input type="text" data-table="clientpartners" data-field="x_ClientPartnerID" name="x_ClientPartnerID" id="x_ClientPartnerID" placeholder="<?php echo HtmlEncode($clientpartners->ClientPartnerID->getPlaceHolder()) ?>" value="<?php echo $clientpartners->ClientPartnerID->EditValue ?>"<?php echo $clientpartners->ClientPartnerID->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->ClientID->Visible) { // ClientID ?>
<?php if ($clientpartners_search->IsMobileOrModal) { ?>
	<div id="r_ClientID" class="form-group row">
		<label for="x_ClientID" class="<?php echo $clientpartners_search->LeftColumnClass ?>"><span id="elh_clientpartners_ClientID"><?php echo $clientpartners->ClientID->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_ClientID" id="z_ClientID" value="="></span>
		</label>
		<div class="<?php echo $clientpartners_search->RightColumnClass ?>"><div<?php echo $clientpartners->ClientID->cellAttributes() ?>>
			<span id="el_clientpartners_ClientID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="clientpartners" data-field="x_ClientID" data-value-separator="<?php echo $clientpartners->ClientID->displayValueSeparatorAttribute() ?>" id="x_ClientID" name="x_ClientID"<?php echo $clientpartners->ClientID->editAttributes() ?>>
		<?php echo $clientpartners->ClientID->selectOptionListHtml("x_ClientID") ?>
	</select>
</div>
<?php echo $clientpartners->ClientID->Lookup->getParamTag("p_x_ClientID") ?>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_ClientID">
		<td class="<?php echo $clientpartners_search->TableLeftColumnClass ?>"><span id="elh_clientpartners_ClientID"><?php echo $clientpartners->ClientID->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_ClientID" id="z_ClientID" value="="></span></td>
		<td<?php echo $clientpartners->ClientID->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_clientpartners_ClientID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="clientpartners" data-field="x_ClientID" data-value-separator="<?php echo $clientpartners->ClientID->displayValueSeparatorAttribute() ?>" id="x_ClientID" name="x_ClientID"<?php echo $clientpartners->ClientID->editAttributes() ?>>
		<?php echo $clientpartners->ClientID->selectOptionListHtml("x_ClientID") ?>
	</select>
</div>
<?php echo $clientpartners->ClientID->Lookup->getParamTag("p_x_ClientID") ?>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->TitleID->Visible) { // TitleID ?>
<?php if ($clientpartners_search->IsMobileOrModal) { ?>
	<div id="r_TitleID" class="form-group row">
		<label for="x_TitleID" class="<?php echo $clientpartners_search->LeftColumnClass ?>"><span id="elh_clientpartners_TitleID"><?php echo $clientpartners->TitleID->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_TitleID" id="z_TitleID" value="="></span>
		</label>
		<div class="<?php echo $clientpartners_search->RightColumnClass ?>"><div<?php echo $clientpartners->TitleID->cellAttributes() ?>>
			<span id="el_clientpartners_TitleID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="clientpartners" data-field="x_TitleID" data-value-separator="<?php echo $clientpartners->TitleID->displayValueSeparatorAttribute() ?>" id="x_TitleID" name="x_TitleID"<?php echo $clientpartners->TitleID->editAttributes() ?>>
		<?php echo $clientpartners->TitleID->selectOptionListHtml("x_TitleID") ?>
	</select>
</div>
<?php echo $clientpartners->TitleID->Lookup->getParamTag("p_x_TitleID") ?>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_TitleID">
		<td class="<?php echo $clientpartners_search->TableLeftColumnClass ?>"><span id="elh_clientpartners_TitleID"><?php echo $clientpartners->TitleID->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_TitleID" id="z_TitleID" value="="></span></td>
		<td<?php echo $clientpartners->TitleID->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_clientpartners_TitleID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="clientpartners" data-field="x_TitleID" data-value-separator="<?php echo $clientpartners->TitleID->displayValueSeparatorAttribute() ?>" id="x_TitleID" name="x_TitleID"<?php echo $clientpartners->TitleID->editAttributes() ?>>
		<?php echo $clientpartners->TitleID->selectOptionListHtml("x_TitleID") ?>
	</select>
</div>
<?php echo $clientpartners->TitleID->Lookup->getParamTag("p_x_TitleID") ?>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->FirstName->Visible) { // FirstName ?>
<?php if ($clientpartners_search->IsMobileOrModal) { ?>
	<div id="r_FirstName" class="form-group row">
		<label for="x_FirstName" class="<?php echo $clientpartners_search->LeftColumnClass ?>"><span id="elh_clientpartners_FirstName"><?php echo $clientpartners->FirstName->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_FirstName" id="z_FirstName" value="LIKE"></span>
		</label>
		<div class="<?php echo $clientpartners_search->RightColumnClass ?>"><div<?php echo $clientpartners->FirstName->cellAttributes() ?>>
			<span id="el_clientpartners_FirstName">
<input type="text" data-table="clientpartners" data-field="x_FirstName" name="x_FirstName" id="x_FirstName" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($clientpartners->FirstName->getPlaceHolder()) ?>" value="<?php echo $clientpartners->FirstName->EditValue ?>"<?php echo $clientpartners->FirstName->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_FirstName">
		<td class="<?php echo $clientpartners_search->TableLeftColumnClass ?>"><span id="elh_clientpartners_FirstName"><?php echo $clientpartners->FirstName->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_FirstName" id="z_FirstName" value="LIKE"></span></td>
		<td<?php echo $clientpartners->FirstName->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_clientpartners_FirstName">
<input type="text" data-table="clientpartners" data-field="x_FirstName" name="x_FirstName" id="x_FirstName" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($clientpartners->FirstName->getPlaceHolder()) ?>" value="<?php echo $clientpartners->FirstName->EditValue ?>"<?php echo $clientpartners->FirstName->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->MiddleName->Visible) { // MiddleName ?>
<?php if ($clientpartners_search->IsMobileOrModal) { ?>
	<div id="r_MiddleName" class="form-group row">
		<label for="x_MiddleName" class="<?php echo $clientpartners_search->LeftColumnClass ?>"><span id="elh_clientpartners_MiddleName"><?php echo $clientpartners->MiddleName->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_MiddleName" id="z_MiddleName" value="LIKE"></span>
		</label>
		<div class="<?php echo $clientpartners_search->RightColumnClass ?>"><div<?php echo $clientpartners->MiddleName->cellAttributes() ?>>
			<span id="el_clientpartners_MiddleName">
<input type="text" data-table="clientpartners" data-field="x_MiddleName" name="x_MiddleName" id="x_MiddleName" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->MiddleName->getPlaceHolder()) ?>" value="<?php echo $clientpartners->MiddleName->EditValue ?>"<?php echo $clientpartners->MiddleName->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_MiddleName">
		<td class="<?php echo $clientpartners_search->TableLeftColumnClass ?>"><span id="elh_clientpartners_MiddleName"><?php echo $clientpartners->MiddleName->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_MiddleName" id="z_MiddleName" value="LIKE"></span></td>
		<td<?php echo $clientpartners->MiddleName->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_clientpartners_MiddleName">
<input type="text" data-table="clientpartners" data-field="x_MiddleName" name="x_MiddleName" id="x_MiddleName" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->MiddleName->getPlaceHolder()) ?>" value="<?php echo $clientpartners->MiddleName->EditValue ?>"<?php echo $clientpartners->MiddleName->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->LastName->Visible) { // LastName ?>
<?php if ($clientpartners_search->IsMobileOrModal) { ?>
	<div id="r_LastName" class="form-group row">
		<label for="x_LastName" class="<?php echo $clientpartners_search->LeftColumnClass ?>"><span id="elh_clientpartners_LastName"><?php echo $clientpartners->LastName->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_LastName" id="z_LastName" value="LIKE"></span>
		</label>
		<div class="<?php echo $clientpartners_search->RightColumnClass ?>"><div<?php echo $clientpartners->LastName->cellAttributes() ?>>
			<span id="el_clientpartners_LastName">
<input type="text" data-table="clientpartners" data-field="x_LastName" name="x_LastName" id="x_LastName" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($clientpartners->LastName->getPlaceHolder()) ?>" value="<?php echo $clientpartners->LastName->EditValue ?>"<?php echo $clientpartners->LastName->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_LastName">
		<td class="<?php echo $clientpartners_search->TableLeftColumnClass ?>"><span id="elh_clientpartners_LastName"><?php echo $clientpartners->LastName->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_LastName" id="z_LastName" value="LIKE"></span></td>
		<td<?php echo $clientpartners->LastName->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_clientpartners_LastName">
<input type="text" data-table="clientpartners" data-field="x_LastName" name="x_LastName" id="x_LastName" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($clientpartners->LastName->getPlaceHolder()) ?>" value="<?php echo $clientpartners->LastName->EditValue ?>"<?php echo $clientpartners->LastName->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->Notes->Visible) { // Notes ?>
<?php if ($clientpartners_search->IsMobileOrModal) { ?>
	<div id="r_Notes" class="form-group row">
		<label for="x_Notes" class="<?php echo $clientpartners_search->LeftColumnClass ?>"><span id="elh_clientpartners_Notes"><?php echo $clientpartners->Notes->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_Notes" id="z_Notes" value="LIKE"></span>
		</label>
		<div class="<?php echo $clientpartners_search->RightColumnClass ?>"><div<?php echo $clientpartners->Notes->cellAttributes() ?>>
			<span id="el_clientpartners_Notes">
<input type="text" data-table="clientpartners" data-field="x_Notes" name="x_Notes" id="x_Notes" size="35" placeholder="<?php echo HtmlEncode($clientpartners->Notes->getPlaceHolder()) ?>" value="<?php echo $clientpartners->Notes->EditValue ?>"<?php echo $clientpartners->Notes->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_Notes">
		<td class="<?php echo $clientpartners_search->TableLeftColumnClass ?>"><span id="elh_clientpartners_Notes"><?php echo $clientpartners->Notes->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_Notes" id="z_Notes" value="LIKE"></span></td>
		<td<?php echo $clientpartners->Notes->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_clientpartners_Notes">
<input type="text" data-table="clientpartners" data-field="x_Notes" name="x_Notes" id="x_Notes" size="35" placeholder="<?php echo HtmlEncode($clientpartners->Notes->getPlaceHolder()) ?>" value="<?php echo $clientpartners->Notes->EditValue ?>"<?php echo $clientpartners->Notes->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->JobTitle->Visible) { // JobTitle ?>
<?php if ($clientpartners_search->IsMobileOrModal) { ?>
	<div id="r_JobTitle" class="form-group row">
		<label for="x_JobTitle" class="<?php echo $clientpartners_search->LeftColumnClass ?>"><span id="elh_clientpartners_JobTitle"><?php echo $clientpartners->JobTitle->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_JobTitle" id="z_JobTitle" value="LIKE"></span>
		</label>
		<div class="<?php echo $clientpartners_search->RightColumnClass ?>"><div<?php echo $clientpartners->JobTitle->cellAttributes() ?>>
			<span id="el_clientpartners_JobTitle">
<input type="text" data-table="clientpartners" data-field="x_JobTitle" name="x_JobTitle" id="x_JobTitle" size="30" maxlength="25" placeholder="<?php echo HtmlEncode($clientpartners->JobTitle->getPlaceHolder()) ?>" value="<?php echo $clientpartners->JobTitle->EditValue ?>"<?php echo $clientpartners->JobTitle->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_JobTitle">
		<td class="<?php echo $clientpartners_search->TableLeftColumnClass ?>"><span id="elh_clientpartners_JobTitle"><?php echo $clientpartners->JobTitle->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_JobTitle" id="z_JobTitle" value="LIKE"></span></td>
		<td<?php echo $clientpartners->JobTitle->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_clientpartners_JobTitle">
<input type="text" data-table="clientpartners" data-field="x_JobTitle" name="x_JobTitle" id="x_JobTitle" size="30" maxlength="25" placeholder="<?php echo HtmlEncode($clientpartners->JobTitle->getPlaceHolder()) ?>" value="<?php echo $clientpartners->JobTitle->EditValue ?>"<?php echo $clientpartners->JobTitle->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->Photo->Visible) { // Photo ?>
<?php if ($clientpartners_search->IsMobileOrModal) { ?>
	<div id="r_Photo" class="form-group row">
		<label class="<?php echo $clientpartners_search->LeftColumnClass ?>"><span id="elh_clientpartners_Photo"><?php echo $clientpartners->Photo->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_Photo" id="z_Photo" value="LIKE"></span>
		</label>
		<div class="<?php echo $clientpartners_search->RightColumnClass ?>"><div<?php echo $clientpartners->Photo->cellAttributes() ?>>
			<span id="el_clientpartners_Photo">
<input type="text" data-table="clientpartners" data-field="x_Photo" name="x_Photo" id="x_Photo" size="30" maxlength="255" placeholder="<?php echo HtmlEncode($clientpartners->Photo->getPlaceHolder()) ?>" value="<?php echo $clientpartners->Photo->EditValue ?>"<?php echo $clientpartners->Photo->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_Photo">
		<td class="<?php echo $clientpartners_search->TableLeftColumnClass ?>"><span id="elh_clientpartners_Photo"><?php echo $clientpartners->Photo->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_Photo" id="z_Photo" value="LIKE"></span></td>
		<td<?php echo $clientpartners->Photo->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_clientpartners_Photo">
<input type="text" data-table="clientpartners" data-field="x_Photo" name="x_Photo" id="x_Photo" size="30" maxlength="255" placeholder="<?php echo HtmlEncode($clientpartners->Photo->getPlaceHolder()) ?>" value="<?php echo $clientpartners->Photo->EditValue ?>"<?php echo $clientpartners->Photo->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->BirthDate->Visible) { // BirthDate ?>
<?php if ($clientpartners_search->IsMobileOrModal) { ?>
	<div id="r_BirthDate" class="form-group row">
		<label for="x_BirthDate" class="<?php echo $clientpartners_search->LeftColumnClass ?>"><span id="elh_clientpartners_BirthDate"><?php echo $clientpartners->BirthDate->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_BirthDate" id="z_BirthDate" value="="></span>
		</label>
		<div class="<?php echo $clientpartners_search->RightColumnClass ?>"><div<?php echo $clientpartners->BirthDate->cellAttributes() ?>>
			<span id="el_clientpartners_BirthDate">
<input type="text" data-table="clientpartners" data-field="x_BirthDate" name="x_BirthDate" id="x_BirthDate" placeholder="<?php echo HtmlEncode($clientpartners->BirthDate->getPlaceHolder()) ?>" value="<?php echo $clientpartners->BirthDate->EditValue ?>"<?php echo $clientpartners->BirthDate->editAttributes() ?>>
<?php if (!$clientpartners->BirthDate->ReadOnly && !$clientpartners->BirthDate->Disabled && !isset($clientpartners->BirthDate->EditAttrs["readonly"]) && !isset($clientpartners->BirthDate->EditAttrs["disabled"])) { ?>
<script>
ew.createDateTimePicker("fclientpartnerssearch", "x_BirthDate", {"ignoreReadonly":true,"useCurrent":false,"format":0});
</script>
<?php } ?>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_BirthDate">
		<td class="<?php echo $clientpartners_search->TableLeftColumnClass ?>"><span id="elh_clientpartners_BirthDate"><?php echo $clientpartners->BirthDate->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_BirthDate" id="z_BirthDate" value="="></span></td>
		<td<?php echo $clientpartners->BirthDate->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_clientpartners_BirthDate">
<input type="text" data-table="clientpartners" data-field="x_BirthDate" name="x_BirthDate" id="x_BirthDate" placeholder="<?php echo HtmlEncode($clientpartners->BirthDate->getPlaceHolder()) ?>" value="<?php echo $clientpartners->BirthDate->EditValue ?>"<?php echo $clientpartners->BirthDate->editAttributes() ?>>
<?php if (!$clientpartners->BirthDate->ReadOnly && !$clientpartners->BirthDate->Disabled && !isset($clientpartners->BirthDate->EditAttrs["readonly"]) && !isset($clientpartners->BirthDate->EditAttrs["disabled"])) { ?>
<script>
ew.createDateTimePicker("fclientpartnerssearch", "x_BirthDate", {"ignoreReadonly":true,"useCurrent":false,"format":0});
</script>
<?php } ?>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->MaritalStatusID->Visible) { // MaritalStatusID ?>
<?php if ($clientpartners_search->IsMobileOrModal) { ?>
	<div id="r_MaritalStatusID" class="form-group row">
		<label class="<?php echo $clientpartners_search->LeftColumnClass ?>"><span id="elh_clientpartners_MaritalStatusID"><?php echo $clientpartners->MaritalStatusID->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_MaritalStatusID" id="z_MaritalStatusID" value="="></span>
		</label>
		<div class="<?php echo $clientpartners_search->RightColumnClass ?>"><div<?php echo $clientpartners->MaritalStatusID->cellAttributes() ?>>
			<span id="el_clientpartners_MaritalStatusID">
<?php
$wrkonchange = "" . trim(@$clientpartners->MaritalStatusID->EditAttrs["onchange"]);
if (trim($wrkonchange) <> "") $wrkonchange = " onchange=\"" . JsEncode($wrkonchange) . "\"";
$clientpartners->MaritalStatusID->EditAttrs["onchange"] = "";
?>
<span id="as_x_MaritalStatusID" class="text-nowrap" style="z-index: 8890">
	<input type="text" class="form-control" name="sv_x_MaritalStatusID" id="sv_x_MaritalStatusID" value="<?php echo RemoveHtml($clientpartners->MaritalStatusID->EditValue) ?>" size="30" placeholder="<?php echo HtmlEncode($clientpartners->MaritalStatusID->getPlaceHolder()) ?>" data-placeholder="<?php echo HtmlEncode($clientpartners->MaritalStatusID->getPlaceHolder()) ?>"<?php echo $clientpartners->MaritalStatusID->editAttributes() ?>>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_MaritalStatusID" data-value-separator="<?php echo $clientpartners->MaritalStatusID->displayValueSeparatorAttribute() ?>" name="x_MaritalStatusID" id="x_MaritalStatusID" value="<?php echo HtmlEncode($clientpartners->MaritalStatusID->AdvancedSearch->SearchValue) ?>"<?php echo $wrkonchange ?>>
<script>
fclientpartnerssearch.createAutoSuggest({"id":"x_MaritalStatusID","forceSelect":false});
</script>
<?php echo $clientpartners->MaritalStatusID->Lookup->getParamTag("p_x_MaritalStatusID") ?>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_MaritalStatusID">
		<td class="<?php echo $clientpartners_search->TableLeftColumnClass ?>"><span id="elh_clientpartners_MaritalStatusID"><?php echo $clientpartners->MaritalStatusID->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_MaritalStatusID" id="z_MaritalStatusID" value="="></span></td>
		<td<?php echo $clientpartners->MaritalStatusID->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_clientpartners_MaritalStatusID">
<?php
$wrkonchange = "" . trim(@$clientpartners->MaritalStatusID->EditAttrs["onchange"]);
if (trim($wrkonchange) <> "") $wrkonchange = " onchange=\"" . JsEncode($wrkonchange) . "\"";
$clientpartners->MaritalStatusID->EditAttrs["onchange"] = "";
?>
<span id="as_x_MaritalStatusID" class="text-nowrap" style="z-index: 8890">
	<input type="text" class="form-control" name="sv_x_MaritalStatusID" id="sv_x_MaritalStatusID" value="<?php echo RemoveHtml($clientpartners->MaritalStatusID->EditValue) ?>" size="30" placeholder="<?php echo HtmlEncode($clientpartners->MaritalStatusID->getPlaceHolder()) ?>" data-placeholder="<?php echo HtmlEncode($clientpartners->MaritalStatusID->getPlaceHolder()) ?>"<?php echo $clientpartners->MaritalStatusID->editAttributes() ?>>
</span>
<input type="hidden" data-table="clientpartners" data-field="x_MaritalStatusID" data-value-separator="<?php echo $clientpartners->MaritalStatusID->displayValueSeparatorAttribute() ?>" name="x_MaritalStatusID" id="x_MaritalStatusID" value="<?php echo HtmlEncode($clientpartners->MaritalStatusID->AdvancedSearch->SearchValue) ?>"<?php echo $wrkonchange ?>>
<script>
fclientpartnerssearch.createAutoSuggest({"id":"x_MaritalStatusID","forceSelect":false});
</script>
<?php echo $clientpartners->MaritalStatusID->Lookup->getParamTag("p_x_MaritalStatusID") ?>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->CivilStatus23->Visible) { // CivilStatus# ?>
<?php if ($clientpartners_search->IsMobileOrModal) { ?>
	<div id="r_CivilStatus23" class="form-group row">
		<label for="x_CivilStatus23" class="<?php echo $clientpartners_search->LeftColumnClass ?>"><span id="elh_clientpartners_CivilStatus23"><?php echo $clientpartners->CivilStatus23->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_CivilStatus23" id="z_CivilStatus23" value="LIKE"></span>
		</label>
		<div class="<?php echo $clientpartners_search->RightColumnClass ?>"><div<?php echo $clientpartners->CivilStatus23->cellAttributes() ?>>
			<span id="el_clientpartners_CivilStatus23">
<input type="text" data-table="clientpartners" data-field="x_CivilStatus23" name="x_CivilStatus23" id="x_CivilStatus23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->CivilStatus23->getPlaceHolder()) ?>" value="<?php echo $clientpartners->CivilStatus23->EditValue ?>"<?php echo $clientpartners->CivilStatus23->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_CivilStatus23">
		<td class="<?php echo $clientpartners_search->TableLeftColumnClass ?>"><span id="elh_clientpartners_CivilStatus23"><?php echo $clientpartners->CivilStatus23->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_CivilStatus23" id="z_CivilStatus23" value="LIKE"></span></td>
		<td<?php echo $clientpartners->CivilStatus23->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_clientpartners_CivilStatus23">
<input type="text" data-table="clientpartners" data-field="x_CivilStatus23" name="x_CivilStatus23" id="x_CivilStatus23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->CivilStatus23->getPlaceHolder()) ?>" value="<?php echo $clientpartners->CivilStatus23->EditValue ?>"<?php echo $clientpartners->CivilStatus23->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->CivilStatusPlace->Visible) { // CivilStatusPlace ?>
<?php if ($clientpartners_search->IsMobileOrModal) { ?>
	<div id="r_CivilStatusPlace" class="form-group row">
		<label for="x_CivilStatusPlace" class="<?php echo $clientpartners_search->LeftColumnClass ?>"><span id="elh_clientpartners_CivilStatusPlace"><?php echo $clientpartners->CivilStatusPlace->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_CivilStatusPlace" id="z_CivilStatusPlace" value="LIKE"></span>
		</label>
		<div class="<?php echo $clientpartners_search->RightColumnClass ?>"><div<?php echo $clientpartners->CivilStatusPlace->cellAttributes() ?>>
			<span id="el_clientpartners_CivilStatusPlace">
<input type="text" data-table="clientpartners" data-field="x_CivilStatusPlace" name="x_CivilStatusPlace" id="x_CivilStatusPlace" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->CivilStatusPlace->getPlaceHolder()) ?>" value="<?php echo $clientpartners->CivilStatusPlace->EditValue ?>"<?php echo $clientpartners->CivilStatusPlace->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_CivilStatusPlace">
		<td class="<?php echo $clientpartners_search->TableLeftColumnClass ?>"><span id="elh_clientpartners_CivilStatusPlace"><?php echo $clientpartners->CivilStatusPlace->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_CivilStatusPlace" id="z_CivilStatusPlace" value="LIKE"></span></td>
		<td<?php echo $clientpartners->CivilStatusPlace->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_clientpartners_CivilStatusPlace">
<input type="text" data-table="clientpartners" data-field="x_CivilStatusPlace" name="x_CivilStatusPlace" id="x_CivilStatusPlace" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->CivilStatusPlace->getPlaceHolder()) ?>" value="<?php echo $clientpartners->CivilStatusPlace->EditValue ?>"<?php echo $clientpartners->CivilStatusPlace->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->IdCard23->Visible) { // IdCard# ?>
<?php if ($clientpartners_search->IsMobileOrModal) { ?>
	<div id="r_IdCard23" class="form-group row">
		<label for="x_IdCard23" class="<?php echo $clientpartners_search->LeftColumnClass ?>"><span id="elh_clientpartners_IdCard23"><?php echo $clientpartners->IdCard23->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_IdCard23" id="z_IdCard23" value="LIKE"></span>
		</label>
		<div class="<?php echo $clientpartners_search->RightColumnClass ?>"><div<?php echo $clientpartners->IdCard23->cellAttributes() ?>>
			<span id="el_clientpartners_IdCard23">
<input type="text" data-table="clientpartners" data-field="x_IdCard23" name="x_IdCard23" id="x_IdCard23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->IdCard23->getPlaceHolder()) ?>" value="<?php echo $clientpartners->IdCard23->EditValue ?>"<?php echo $clientpartners->IdCard23->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_IdCard23">
		<td class="<?php echo $clientpartners_search->TableLeftColumnClass ?>"><span id="elh_clientpartners_IdCard23"><?php echo $clientpartners->IdCard23->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_IdCard23" id="z_IdCard23" value="LIKE"></span></td>
		<td<?php echo $clientpartners->IdCard23->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_clientpartners_IdCard23">
<input type="text" data-table="clientpartners" data-field="x_IdCard23" name="x_IdCard23" id="x_IdCard23" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->IdCard23->getPlaceHolder()) ?>" value="<?php echo $clientpartners->IdCard23->EditValue ?>"<?php echo $clientpartners->IdCard23->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->Nationality1->Visible) { // Nationality1 ?>
<?php if ($clientpartners_search->IsMobileOrModal) { ?>
	<div id="r_Nationality1" class="form-group row">
		<label for="x_Nationality1" class="<?php echo $clientpartners_search->LeftColumnClass ?>"><span id="elh_clientpartners_Nationality1"><?php echo $clientpartners->Nationality1->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_Nationality1" id="z_Nationality1" value="LIKE"></span>
		</label>
		<div class="<?php echo $clientpartners_search->RightColumnClass ?>"><div<?php echo $clientpartners->Nationality1->cellAttributes() ?>>
			<span id="el_clientpartners_Nationality1">
<input type="text" data-table="clientpartners" data-field="x_Nationality1" name="x_Nationality1" id="x_Nationality1" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->Nationality1->getPlaceHolder()) ?>" value="<?php echo $clientpartners->Nationality1->EditValue ?>"<?php echo $clientpartners->Nationality1->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_Nationality1">
		<td class="<?php echo $clientpartners_search->TableLeftColumnClass ?>"><span id="elh_clientpartners_Nationality1"><?php echo $clientpartners->Nationality1->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_Nationality1" id="z_Nationality1" value="LIKE"></span></td>
		<td<?php echo $clientpartners->Nationality1->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_clientpartners_Nationality1">
<input type="text" data-table="clientpartners" data-field="x_Nationality1" name="x_Nationality1" id="x_Nationality1" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->Nationality1->getPlaceHolder()) ?>" value="<?php echo $clientpartners->Nationality1->EditValue ?>"<?php echo $clientpartners->Nationality1->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->Nationality2->Visible) { // Nationality2 ?>
<?php if ($clientpartners_search->IsMobileOrModal) { ?>
	<div id="r_Nationality2" class="form-group row">
		<label for="x_Nationality2" class="<?php echo $clientpartners_search->LeftColumnClass ?>"><span id="elh_clientpartners_Nationality2"><?php echo $clientpartners->Nationality2->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_Nationality2" id="z_Nationality2" value="LIKE"></span>
		</label>
		<div class="<?php echo $clientpartners_search->RightColumnClass ?>"><div<?php echo $clientpartners->Nationality2->cellAttributes() ?>>
			<span id="el_clientpartners_Nationality2">
<input type="text" data-table="clientpartners" data-field="x_Nationality2" name="x_Nationality2" id="x_Nationality2" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->Nationality2->getPlaceHolder()) ?>" value="<?php echo $clientpartners->Nationality2->EditValue ?>"<?php echo $clientpartners->Nationality2->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_Nationality2">
		<td class="<?php echo $clientpartners_search->TableLeftColumnClass ?>"><span id="elh_clientpartners_Nationality2"><?php echo $clientpartners->Nationality2->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_Nationality2" id="z_Nationality2" value="LIKE"></span></td>
		<td<?php echo $clientpartners->Nationality2->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_clientpartners_Nationality2">
<input type="text" data-table="clientpartners" data-field="x_Nationality2" name="x_Nationality2" id="x_Nationality2" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($clientpartners->Nationality2->getPlaceHolder()) ?>" value="<?php echo $clientpartners->Nationality2->EditValue ?>"<?php echo $clientpartners->Nationality2->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners->Extra23->Visible) { // Extra# ?>
<?php if ($clientpartners_search->IsMobileOrModal) { ?>
	<div id="r_Extra23" class="form-group row">
		<label for="x_Extra23" class="<?php echo $clientpartners_search->LeftColumnClass ?>"><span id="elh_clientpartners_Extra23"><?php echo $clientpartners->Extra23->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_Extra23" id="z_Extra23" value="LIKE"></span>
		</label>
		<div class="<?php echo $clientpartners_search->RightColumnClass ?>"><div<?php echo $clientpartners->Extra23->cellAttributes() ?>>
			<span id="el_clientpartners_Extra23">
<input type="text" data-table="clientpartners" data-field="x_Extra23" name="x_Extra23" id="x_Extra23" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($clientpartners->Extra23->getPlaceHolder()) ?>" value="<?php echo $clientpartners->Extra23->EditValue ?>"<?php echo $clientpartners->Extra23->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_Extra23">
		<td class="<?php echo $clientpartners_search->TableLeftColumnClass ?>"><span id="elh_clientpartners_Extra23"><?php echo $clientpartners->Extra23->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_Extra23" id="z_Extra23" value="LIKE"></span></td>
		<td<?php echo $clientpartners->Extra23->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_clientpartners_Extra23">
<input type="text" data-table="clientpartners" data-field="x_Extra23" name="x_Extra23" id="x_Extra23" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($clientpartners->Extra23->getPlaceHolder()) ?>" value="<?php echo $clientpartners->Extra23->EditValue ?>"<?php echo $clientpartners->Extra23->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($clientpartners_search->IsMobileOrModal) { ?>
</div><!-- /page* -->
<?php } else { ?>
</table><!-- /table* -->
<?php } ?>
<?php if (!$clientpartners_search->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $clientpartners_search->OffsetColumnClass ?>"><!-- buttons offset -->
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?php echo $Language->phrase("Search") ?></button>
<button class="btn btn-default ew-btn" name="btn-reset" id="btn-reset" type="button" onclick="ew.clearForm(this.form);"><?php echo $Language->phrase("Reset") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
<?php if (!$clientpartners_search->IsMobileOrModal) { ?>
</div><!-- /desktop -->
<?php } ?>
</form>
<?php
$clientpartners_search->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<script>

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

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