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

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

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

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

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

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

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

// Dynamic selection lists
fjudgessearch.lists["x_CourtID"] = <?php echo $judges_search->CourtID->Lookup->toClientList() ?>;
fjudgessearch.lists["x_CourtID"].options = <?php echo JsonEncode($judges_search->CourtID->lookupOptions()) ?>;
fjudgessearch.autoSuggests["x_CourtID"] = <?php echo json_encode(["data" => "ajax=autosuggest"]) ?>;
fjudgessearch.lists["x_TitleID"] = <?php echo $judges_search->TitleID->Lookup->toClientList() ?>;
fjudgessearch.lists["x_TitleID"].options = <?php echo JsonEncode($judges_search->TitleID->lookupOptions()) ?>;

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

fjudgessearch.validate = function(fobj) {
	if (!this.validateRequired)
		return true; // Ignore validation
	fobj = fobj || this._form;
	var infix = "";

	// 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 $judges_search->showPageHeader(); ?>
<?php
$judges_search->showMessage();
?>
<form name="fjudgessearch" id="fjudgessearch" class="<?php echo $judges_search->FormClassName ?>" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($judges_search->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $judges_search->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="judges">
<input type="hidden" name="action" id="action" value="search">
<input type="hidden" name="modal" value="<?php echo (int)$judges_search->IsModal ?>">
<?php if (!$judges_search->IsMobileOrModal) { ?>
<div class="ew-desktop"><!-- desktop -->
<?php } ?>
<?php if ($judges_search->IsMobileOrModal) { ?>
<div class="ew-search-div"><!-- page* -->
<?php } else { ?>
<table id="tbl_judgessearch" class="table table-striped table-sm ew-desktop-table"><!-- table* -->
<?php } ?>
<?php if ($judges->JudgeID->Visible) { // JudgeID ?>
<?php if ($judges_search->IsMobileOrModal) { ?>
	<div id="r_JudgeID" class="form-group row">
		<label class="<?php echo $judges_search->LeftColumnClass ?>"><span id="elh_judges_JudgeID"><?php echo $judges->JudgeID->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_JudgeID" id="z_JudgeID" value="="></span>
		</label>
		<div class="<?php echo $judges_search->RightColumnClass ?>"><div<?php echo $judges->JudgeID->cellAttributes() ?>>
			<span id="el_judges_JudgeID">
<input type="text" data-table="judges" data-field="x_JudgeID" name="x_JudgeID" id="x_JudgeID" placeholder="<?php echo HtmlEncode($judges->JudgeID->getPlaceHolder()) ?>" value="<?php echo $judges->JudgeID->EditValue ?>"<?php echo $judges->JudgeID->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_JudgeID">
		<td class="<?php echo $judges_search->TableLeftColumnClass ?>"><span id="elh_judges_JudgeID"><?php echo $judges->JudgeID->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_JudgeID" id="z_JudgeID" value="="></span></td>
		<td<?php echo $judges->JudgeID->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_judges_JudgeID">
<input type="text" data-table="judges" data-field="x_JudgeID" name="x_JudgeID" id="x_JudgeID" placeholder="<?php echo HtmlEncode($judges->JudgeID->getPlaceHolder()) ?>" value="<?php echo $judges->JudgeID->EditValue ?>"<?php echo $judges->JudgeID->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($judges->CourtID->Visible) { // CourtID ?>
<?php if ($judges_search->IsMobileOrModal) { ?>
	<div id="r_CourtID" class="form-group row">
		<label class="<?php echo $judges_search->LeftColumnClass ?>"><span id="elh_judges_CourtID"><?php echo $judges->CourtID->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_CourtID" id="z_CourtID" value="="></span>
		</label>
		<div class="<?php echo $judges_search->RightColumnClass ?>"><div<?php echo $judges->CourtID->cellAttributes() ?>>
			<span id="el_judges_CourtID">
<?php
$wrkonchange = "" . trim(@$judges->CourtID->EditAttrs["onchange"]);
if (trim($wrkonchange) <> "") $wrkonchange = " onchange=\"" . JsEncode($wrkonchange) . "\"";
$judges->CourtID->EditAttrs["onchange"] = "";
?>
<span id="as_x_CourtID" class="text-nowrap" style="z-index: 8970">
	<input type="text" class="form-control" name="sv_x_CourtID" id="sv_x_CourtID" value="<?php echo RemoveHtml($judges->CourtID->EditValue) ?>" size="30" placeholder="<?php echo HtmlEncode($judges->CourtID->getPlaceHolder()) ?>" data-placeholder="<?php echo HtmlEncode($judges->CourtID->getPlaceHolder()) ?>"<?php echo $judges->CourtID->editAttributes() ?>>
</span>
<input type="hidden" data-table="judges" data-field="x_CourtID" data-value-separator="<?php echo $judges->CourtID->displayValueSeparatorAttribute() ?>" name="x_CourtID" id="x_CourtID" value="<?php echo HtmlEncode($judges->CourtID->AdvancedSearch->SearchValue) ?>"<?php echo $wrkonchange ?>>
<script>
fjudgessearch.createAutoSuggest({"id":"x_CourtID","forceSelect":false});
</script>
<?php echo $judges->CourtID->Lookup->getParamTag("p_x_CourtID") ?>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_CourtID">
		<td class="<?php echo $judges_search->TableLeftColumnClass ?>"><span id="elh_judges_CourtID"><?php echo $judges->CourtID->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_CourtID" id="z_CourtID" value="="></span></td>
		<td<?php echo $judges->CourtID->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_judges_CourtID">
<?php
$wrkonchange = "" . trim(@$judges->CourtID->EditAttrs["onchange"]);
if (trim($wrkonchange) <> "") $wrkonchange = " onchange=\"" . JsEncode($wrkonchange) . "\"";
$judges->CourtID->EditAttrs["onchange"] = "";
?>
<span id="as_x_CourtID" class="text-nowrap" style="z-index: 8970">
	<input type="text" class="form-control" name="sv_x_CourtID" id="sv_x_CourtID" value="<?php echo RemoveHtml($judges->CourtID->EditValue) ?>" size="30" placeholder="<?php echo HtmlEncode($judges->CourtID->getPlaceHolder()) ?>" data-placeholder="<?php echo HtmlEncode($judges->CourtID->getPlaceHolder()) ?>"<?php echo $judges->CourtID->editAttributes() ?>>
</span>
<input type="hidden" data-table="judges" data-field="x_CourtID" data-value-separator="<?php echo $judges->CourtID->displayValueSeparatorAttribute() ?>" name="x_CourtID" id="x_CourtID" value="<?php echo HtmlEncode($judges->CourtID->AdvancedSearch->SearchValue) ?>"<?php echo $wrkonchange ?>>
<script>
fjudgessearch.createAutoSuggest({"id":"x_CourtID","forceSelect":false});
</script>
<?php echo $judges->CourtID->Lookup->getParamTag("p_x_CourtID") ?>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($judges->TitleID->Visible) { // TitleID ?>
<?php if ($judges_search->IsMobileOrModal) { ?>
	<div id="r_TitleID" class="form-group row">
		<label for="x_TitleID" class="<?php echo $judges_search->LeftColumnClass ?>"><span id="elh_judges_TitleID"><?php echo $judges->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 $judges_search->RightColumnClass ?>"><div<?php echo $judges->TitleID->cellAttributes() ?>>
			<span id="el_judges_TitleID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="judges" data-field="x_TitleID" data-value-separator="<?php echo $judges->TitleID->displayValueSeparatorAttribute() ?>" id="x_TitleID" name="x_TitleID"<?php echo $judges->TitleID->editAttributes() ?>>
		<?php echo $judges->TitleID->selectOptionListHtml("x_TitleID") ?>
	</select>
</div>
<?php echo $judges->TitleID->Lookup->getParamTag("p_x_TitleID") ?>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_TitleID">
		<td class="<?php echo $judges_search->TableLeftColumnClass ?>"><span id="elh_judges_TitleID"><?php echo $judges->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 $judges->TitleID->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_judges_TitleID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="judges" data-field="x_TitleID" data-value-separator="<?php echo $judges->TitleID->displayValueSeparatorAttribute() ?>" id="x_TitleID" name="x_TitleID"<?php echo $judges->TitleID->editAttributes() ?>>
		<?php echo $judges->TitleID->selectOptionListHtml("x_TitleID") ?>
	</select>
</div>
<?php echo $judges->TitleID->Lookup->getParamTag("p_x_TitleID") ?>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($judges->FirstName->Visible) { // FirstName ?>
<?php if ($judges_search->IsMobileOrModal) { ?>
	<div id="r_FirstName" class="form-group row">
		<label for="x_FirstName" class="<?php echo $judges_search->LeftColumnClass ?>"><span id="elh_judges_FirstName"><?php echo $judges->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 $judges_search->RightColumnClass ?>"><div<?php echo $judges->FirstName->cellAttributes() ?>>
			<span id="el_judges_FirstName">
<input type="text" data-table="judges" data-field="x_FirstName" name="x_FirstName" id="x_FirstName" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($judges->FirstName->getPlaceHolder()) ?>" value="<?php echo $judges->FirstName->EditValue ?>"<?php echo $judges->FirstName->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_FirstName">
		<td class="<?php echo $judges_search->TableLeftColumnClass ?>"><span id="elh_judges_FirstName"><?php echo $judges->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 $judges->FirstName->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_judges_FirstName">
<input type="text" data-table="judges" data-field="x_FirstName" name="x_FirstName" id="x_FirstName" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($judges->FirstName->getPlaceHolder()) ?>" value="<?php echo $judges->FirstName->EditValue ?>"<?php echo $judges->FirstName->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($judges->MiddleName->Visible) { // MiddleName ?>
<?php if ($judges_search->IsMobileOrModal) { ?>
	<div id="r_MiddleName" class="form-group row">
		<label for="x_MiddleName" class="<?php echo $judges_search->LeftColumnClass ?>"><span id="elh_judges_MiddleName"><?php echo $judges->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 $judges_search->RightColumnClass ?>"><div<?php echo $judges->MiddleName->cellAttributes() ?>>
			<span id="el_judges_MiddleName">
<input type="text" data-table="judges" data-field="x_MiddleName" name="x_MiddleName" id="x_MiddleName" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($judges->MiddleName->getPlaceHolder()) ?>" value="<?php echo $judges->MiddleName->EditValue ?>"<?php echo $judges->MiddleName->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_MiddleName">
		<td class="<?php echo $judges_search->TableLeftColumnClass ?>"><span id="elh_judges_MiddleName"><?php echo $judges->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 $judges->MiddleName->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_judges_MiddleName">
<input type="text" data-table="judges" data-field="x_MiddleName" name="x_MiddleName" id="x_MiddleName" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($judges->MiddleName->getPlaceHolder()) ?>" value="<?php echo $judges->MiddleName->EditValue ?>"<?php echo $judges->MiddleName->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($judges->LastName->Visible) { // LastName ?>
<?php if ($judges_search->IsMobileOrModal) { ?>
	<div id="r_LastName" class="form-group row">
		<label for="x_LastName" class="<?php echo $judges_search->LeftColumnClass ?>"><span id="elh_judges_LastName"><?php echo $judges->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 $judges_search->RightColumnClass ?>"><div<?php echo $judges->LastName->cellAttributes() ?>>
			<span id="el_judges_LastName">
<input type="text" data-table="judges" data-field="x_LastName" name="x_LastName" id="x_LastName" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($judges->LastName->getPlaceHolder()) ?>" value="<?php echo $judges->LastName->EditValue ?>"<?php echo $judges->LastName->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_LastName">
		<td class="<?php echo $judges_search->TableLeftColumnClass ?>"><span id="elh_judges_LastName"><?php echo $judges->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 $judges->LastName->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_judges_LastName">
<input type="text" data-table="judges" data-field="x_LastName" name="x_LastName" id="x_LastName" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($judges->LastName->getPlaceHolder()) ?>" value="<?php echo $judges->LastName->EditValue ?>"<?php echo $judges->LastName->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($judges->Notes->Visible) { // Notes ?>
<?php if ($judges_search->IsMobileOrModal) { ?>
	<div id="r_Notes" class="form-group row">
		<label for="x_Notes" class="<?php echo $judges_search->LeftColumnClass ?>"><span id="elh_judges_Notes"><?php echo $judges->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 $judges_search->RightColumnClass ?>"><div<?php echo $judges->Notes->cellAttributes() ?>>
			<span id="el_judges_Notes">
<input type="text" data-table="judges" data-field="x_Notes" name="x_Notes" id="x_Notes" size="35" placeholder="<?php echo HtmlEncode($judges->Notes->getPlaceHolder()) ?>" value="<?php echo $judges->Notes->EditValue ?>"<?php echo $judges->Notes->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_Notes">
		<td class="<?php echo $judges_search->TableLeftColumnClass ?>"><span id="elh_judges_Notes"><?php echo $judges->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 $judges->Notes->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_judges_Notes">
<input type="text" data-table="judges" data-field="x_Notes" name="x_Notes" id="x_Notes" size="35" placeholder="<?php echo HtmlEncode($judges->Notes->getPlaceHolder()) ?>" value="<?php echo $judges->Notes->EditValue ?>"<?php echo $judges->Notes->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($judges_search->IsMobileOrModal) { ?>
</div><!-- /page* -->
<?php } else { ?>
</table><!-- /table* -->
<?php } ?>
<?php if (!$judges_search->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $judges_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 (!$judges_search->IsMobileOrModal) { ?>
</div><!-- /desktop -->
<?php } ?>
</form>
<?php
$judges_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
$judges_search->terminate();
?>
