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

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

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

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

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

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

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

// Dynamic selection lists
fhearingssearch.lists["x_CaseID"] = <?php echo $hearings_search->CaseID->Lookup->toClientList() ?>;
fhearingssearch.lists["x_CaseID"].options = <?php echo JsonEncode($hearings_search->CaseID->lookupOptions()) ?>;
fhearingssearch.autoSuggests["x_CaseID"] = <?php echo json_encode(["data" => "ajax=autosuggest"]) ?>;
fhearingssearch.lists["x_LawyerID"] = <?php echo $hearings_search->LawyerID->Lookup->toClientList() ?>;
fhearingssearch.lists["x_LawyerID"].options = <?php echo JsonEncode($hearings_search->LawyerID->lookupOptions()) ?>;
fhearingssearch.lists["x_JudgeID"] = <?php echo $hearings_search->JudgeID->Lookup->toClientList() ?>;
fhearingssearch.lists["x_JudgeID"].options = <?php echo JsonEncode($hearings_search->JudgeID->lookupOptions()) ?>;
fhearingssearch.lists["x_CourtID"] = <?php echo $hearings_search->CourtID->Lookup->toClientList() ?>;
fhearingssearch.lists["x_CourtID"].options = <?php echo JsonEncode($hearings_search->CourtID->lookupOptions()) ?>;
fhearingssearch.autoSuggests["x_CourtID"] = <?php echo json_encode(["data" => "ajax=autosuggest"]) ?>;

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

fhearingssearch.validate = function(fobj) {
	if (!this.validateRequired)
		return true; // Ignore validation
	fobj = fobj || this._form;
	var infix = "";
	elm = this.getElements("x" + infix + "_HearingDate");
	if (elm && !ew.checkEuroDate(elm.value))
		return this.onError(elm, "<?php echo JsEncode($hearings->HearingDate->errorMessage()) ?>");
	elm = this.getElements("x" + infix + "_NextHearingDate");
	if (elm && !ew.checkEuroDate(elm.value))
		return this.onError(elm, "<?php echo JsEncode($hearings->NextHearingDate->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 $hearings_search->showPageHeader(); ?>
<?php
$hearings_search->showMessage();
?>
<form name="fhearingssearch" id="fhearingssearch" class="<?php echo $hearings_search->FormClassName ?>" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($hearings_search->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $hearings_search->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="hearings">
<input type="hidden" name="action" id="action" value="search">
<input type="hidden" name="modal" value="<?php echo (int)$hearings_search->IsModal ?>">
<?php if (!$hearings_search->IsMobileOrModal) { ?>
<div class="ew-desktop"><!-- desktop -->
<?php } ?>
<?php if ($hearings_search->IsMobileOrModal) { ?>
<div class="ew-search-div"><!-- page* -->
<?php } else { ?>
<table id="tbl_hearingssearch" class="table table-striped table-sm ew-desktop-table"><!-- table* -->
<?php } ?>
<?php if ($hearings->HearingID->Visible) { // HearingID ?>
<?php if ($hearings_search->IsMobileOrModal) { ?>
	<div id="r_HearingID" class="form-group row">
		<label class="<?php echo $hearings_search->LeftColumnClass ?>"><span id="elh_hearings_HearingID"><?php echo $hearings->HearingID->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_HearingID" id="z_HearingID" value="="></span>
		</label>
		<div class="<?php echo $hearings_search->RightColumnClass ?>"><div<?php echo $hearings->HearingID->cellAttributes() ?>>
			<span id="el_hearings_HearingID">
<input type="text" data-table="hearings" data-field="x_HearingID" name="x_HearingID" id="x_HearingID" placeholder="<?php echo HtmlEncode($hearings->HearingID->getPlaceHolder()) ?>" value="<?php echo $hearings->HearingID->EditValue ?>"<?php echo $hearings->HearingID->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_HearingID">
		<td class="<?php echo $hearings_search->TableLeftColumnClass ?>"><span id="elh_hearings_HearingID"><?php echo $hearings->HearingID->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_HearingID" id="z_HearingID" value="="></span></td>
		<td<?php echo $hearings->HearingID->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_hearings_HearingID">
<input type="text" data-table="hearings" data-field="x_HearingID" name="x_HearingID" id="x_HearingID" placeholder="<?php echo HtmlEncode($hearings->HearingID->getPlaceHolder()) ?>" value="<?php echo $hearings->HearingID->EditValue ?>"<?php echo $hearings->HearingID->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($hearings->CaseID->Visible) { // CaseID ?>
<?php if ($hearings_search->IsMobileOrModal) { ?>
	<div id="r_CaseID" class="form-group row">
		<label class="<?php echo $hearings_search->LeftColumnClass ?>"><span id="elh_hearings_CaseID"><?php echo $hearings->CaseID->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_CaseID" id="z_CaseID" value="="></span>
		</label>
		<div class="<?php echo $hearings_search->RightColumnClass ?>"><div<?php echo $hearings->CaseID->cellAttributes() ?>>
			<span id="el_hearings_CaseID">
<?php
$wrkonchange = "" . trim(@$hearings->CaseID->EditAttrs["onchange"]);
if (trim($wrkonchange) <> "") $wrkonchange = " onchange=\"" . JsEncode($wrkonchange) . "\"";
$hearings->CaseID->EditAttrs["onchange"] = "";
?>
<span id="as_x_CaseID" class="text-nowrap" style="z-index: 8980">
	<div class="input-group mb-3">
		<input type="text" class="form-control" name="sv_x_CaseID" id="sv_x_CaseID" value="<?php echo RemoveHtml($hearings->CaseID->EditValue) ?>" size="30" placeholder="<?php echo HtmlEncode($hearings->CaseID->getPlaceHolder()) ?>" data-placeholder="<?php echo HtmlEncode($hearings->CaseID->getPlaceHolder()) ?>"<?php echo $hearings->CaseID->editAttributes() ?>>
		<div class="input-group-append">
			<button type="button" title="<?php echo HtmlEncode(str_replace("%s", RemoveHtml($hearings->CaseID->caption()), $Language->phrase("LookupLink", TRUE))) ?>" onclick="ew.modalLookupShow({lnk:this,el:'x_CaseID',m:0,n:10,srch:true});" class="ew-lookup-btn btn btn-default"<?php echo (($hearings->CaseID->ReadOnly || $hearings->CaseID->Disabled) ? " disabled" : "")?>><i class="fa fa-search ew-icon"></i></button>
		</div>
	</div>
</span>
<input type="hidden" data-table="hearings" data-field="x_CaseID" data-multiple="0" data-lookup="1" data-value-separator="<?php echo $hearings->CaseID->displayValueSeparatorAttribute() ?>" name="x_CaseID" id="x_CaseID" value="<?php echo HtmlEncode($hearings->CaseID->AdvancedSearch->SearchValue) ?>"<?php echo $wrkonchange ?>>
<script>
fhearingssearch.createAutoSuggest({"id":"x_CaseID","forceSelect":false});
</script>
<?php echo $hearings->CaseID->Lookup->getParamTag("p_x_CaseID") ?>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_CaseID">
		<td class="<?php echo $hearings_search->TableLeftColumnClass ?>"><span id="elh_hearings_CaseID"><?php echo $hearings->CaseID->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_CaseID" id="z_CaseID" value="="></span></td>
		<td<?php echo $hearings->CaseID->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_hearings_CaseID">
<?php
$wrkonchange = "" . trim(@$hearings->CaseID->EditAttrs["onchange"]);
if (trim($wrkonchange) <> "") $wrkonchange = " onchange=\"" . JsEncode($wrkonchange) . "\"";
$hearings->CaseID->EditAttrs["onchange"] = "";
?>
<span id="as_x_CaseID" class="text-nowrap" style="z-index: 8980">
	<div class="input-group mb-3">
		<input type="text" class="form-control" name="sv_x_CaseID" id="sv_x_CaseID" value="<?php echo RemoveHtml($hearings->CaseID->EditValue) ?>" size="30" placeholder="<?php echo HtmlEncode($hearings->CaseID->getPlaceHolder()) ?>" data-placeholder="<?php echo HtmlEncode($hearings->CaseID->getPlaceHolder()) ?>"<?php echo $hearings->CaseID->editAttributes() ?>>
		<div class="input-group-append">
			<button type="button" title="<?php echo HtmlEncode(str_replace("%s", RemoveHtml($hearings->CaseID->caption()), $Language->phrase("LookupLink", TRUE))) ?>" onclick="ew.modalLookupShow({lnk:this,el:'x_CaseID',m:0,n:10,srch:true});" class="ew-lookup-btn btn btn-default"<?php echo (($hearings->CaseID->ReadOnly || $hearings->CaseID->Disabled) ? " disabled" : "")?>><i class="fa fa-search ew-icon"></i></button>
		</div>
	</div>
</span>
<input type="hidden" data-table="hearings" data-field="x_CaseID" data-multiple="0" data-lookup="1" data-value-separator="<?php echo $hearings->CaseID->displayValueSeparatorAttribute() ?>" name="x_CaseID" id="x_CaseID" value="<?php echo HtmlEncode($hearings->CaseID->AdvancedSearch->SearchValue) ?>"<?php echo $wrkonchange ?>>
<script>
fhearingssearch.createAutoSuggest({"id":"x_CaseID","forceSelect":false});
</script>
<?php echo $hearings->CaseID->Lookup->getParamTag("p_x_CaseID") ?>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($hearings->HearingDate->Visible) { // HearingDate ?>
<?php if ($hearings_search->IsMobileOrModal) { ?>
	<div id="r_HearingDate" class="form-group row">
		<label for="x_HearingDate" class="<?php echo $hearings_search->LeftColumnClass ?>"><span id="elh_hearings_HearingDate"><?php echo $hearings->HearingDate->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_HearingDate" id="z_HearingDate" value="="></span>
		</label>
		<div class="<?php echo $hearings_search->RightColumnClass ?>"><div<?php echo $hearings->HearingDate->cellAttributes() ?>>
			<span id="el_hearings_HearingDate">
<input type="text" data-table="hearings" data-field="x_HearingDate" data-format="7" name="x_HearingDate" id="x_HearingDate" placeholder="<?php echo HtmlEncode($hearings->HearingDate->getPlaceHolder()) ?>" value="<?php echo $hearings->HearingDate->EditValue ?>"<?php echo $hearings->HearingDate->editAttributes() ?>>
<?php if (!$hearings->HearingDate->ReadOnly && !$hearings->HearingDate->Disabled && !isset($hearings->HearingDate->EditAttrs["readonly"]) && !isset($hearings->HearingDate->EditAttrs["disabled"])) { ?>
<script>
ew.createDateTimePicker("fhearingssearch", "x_HearingDate", {"ignoreReadonly":true,"useCurrent":false,"format":7});
</script>
<?php } ?>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_HearingDate">
		<td class="<?php echo $hearings_search->TableLeftColumnClass ?>"><span id="elh_hearings_HearingDate"><?php echo $hearings->HearingDate->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_HearingDate" id="z_HearingDate" value="="></span></td>
		<td<?php echo $hearings->HearingDate->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_hearings_HearingDate">
<input type="text" data-table="hearings" data-field="x_HearingDate" data-format="7" name="x_HearingDate" id="x_HearingDate" placeholder="<?php echo HtmlEncode($hearings->HearingDate->getPlaceHolder()) ?>" value="<?php echo $hearings->HearingDate->EditValue ?>"<?php echo $hearings->HearingDate->editAttributes() ?>>
<?php if (!$hearings->HearingDate->ReadOnly && !$hearings->HearingDate->Disabled && !isset($hearings->HearingDate->EditAttrs["readonly"]) && !isset($hearings->HearingDate->EditAttrs["disabled"])) { ?>
<script>
ew.createDateTimePicker("fhearingssearch", "x_HearingDate", {"ignoreReadonly":true,"useCurrent":false,"format":7});
</script>
<?php } ?>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($hearings->NextHearingDate->Visible) { // NextHearingDate ?>
<?php if ($hearings_search->IsMobileOrModal) { ?>
	<div id="r_NextHearingDate" class="form-group row">
		<label for="x_NextHearingDate" class="<?php echo $hearings_search->LeftColumnClass ?>"><span id="elh_hearings_NextHearingDate"><?php echo $hearings->NextHearingDate->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_NextHearingDate" id="z_NextHearingDate" value="="></span>
		</label>
		<div class="<?php echo $hearings_search->RightColumnClass ?>"><div<?php echo $hearings->NextHearingDate->cellAttributes() ?>>
			<span id="el_hearings_NextHearingDate">
<input type="text" data-table="hearings" data-field="x_NextHearingDate" data-format="7" name="x_NextHearingDate" id="x_NextHearingDate" placeholder="<?php echo HtmlEncode($hearings->NextHearingDate->getPlaceHolder()) ?>" value="<?php echo $hearings->NextHearingDate->EditValue ?>"<?php echo $hearings->NextHearingDate->editAttributes() ?>>
<?php if (!$hearings->NextHearingDate->ReadOnly && !$hearings->NextHearingDate->Disabled && !isset($hearings->NextHearingDate->EditAttrs["readonly"]) && !isset($hearings->NextHearingDate->EditAttrs["disabled"])) { ?>
<script>
ew.createDateTimePicker("fhearingssearch", "x_NextHearingDate", {"ignoreReadonly":true,"useCurrent":false,"format":7});
</script>
<?php } ?>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_NextHearingDate">
		<td class="<?php echo $hearings_search->TableLeftColumnClass ?>"><span id="elh_hearings_NextHearingDate"><?php echo $hearings->NextHearingDate->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_NextHearingDate" id="z_NextHearingDate" value="="></span></td>
		<td<?php echo $hearings->NextHearingDate->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_hearings_NextHearingDate">
<input type="text" data-table="hearings" data-field="x_NextHearingDate" data-format="7" name="x_NextHearingDate" id="x_NextHearingDate" placeholder="<?php echo HtmlEncode($hearings->NextHearingDate->getPlaceHolder()) ?>" value="<?php echo $hearings->NextHearingDate->EditValue ?>"<?php echo $hearings->NextHearingDate->editAttributes() ?>>
<?php if (!$hearings->NextHearingDate->ReadOnly && !$hearings->NextHearingDate->Disabled && !isset($hearings->NextHearingDate->EditAttrs["readonly"]) && !isset($hearings->NextHearingDate->EditAttrs["disabled"])) { ?>
<script>
ew.createDateTimePicker("fhearingssearch", "x_NextHearingDate", {"ignoreReadonly":true,"useCurrent":false,"format":7});
</script>
<?php } ?>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($hearings->Hearing->Visible) { // Hearing ?>
<?php if ($hearings_search->IsMobileOrModal) { ?>
	<div id="r_Hearing" class="form-group row">
		<label for="x_Hearing" class="<?php echo $hearings_search->LeftColumnClass ?>"><span id="elh_hearings_Hearing"><?php echo $hearings->Hearing->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_Hearing" id="z_Hearing" value="LIKE"></span>
		</label>
		<div class="<?php echo $hearings_search->RightColumnClass ?>"><div<?php echo $hearings->Hearing->cellAttributes() ?>>
			<span id="el_hearings_Hearing">
<input type="text" data-table="hearings" data-field="x_Hearing" name="x_Hearing" id="x_Hearing" size="35" maxlength="200" placeholder="<?php echo HtmlEncode($hearings->Hearing->getPlaceHolder()) ?>" value="<?php echo $hearings->Hearing->EditValue ?>"<?php echo $hearings->Hearing->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_Hearing">
		<td class="<?php echo $hearings_search->TableLeftColumnClass ?>"><span id="elh_hearings_Hearing"><?php echo $hearings->Hearing->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_Hearing" id="z_Hearing" value="LIKE"></span></td>
		<td<?php echo $hearings->Hearing->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_hearings_Hearing">
<input type="text" data-table="hearings" data-field="x_Hearing" name="x_Hearing" id="x_Hearing" size="35" maxlength="200" placeholder="<?php echo HtmlEncode($hearings->Hearing->getPlaceHolder()) ?>" value="<?php echo $hearings->Hearing->EditValue ?>"<?php echo $hearings->Hearing->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($hearings->Notes->Visible) { // Notes ?>
<?php if ($hearings_search->IsMobileOrModal) { ?>
	<div id="r_Notes" class="form-group row">
		<label class="<?php echo $hearings_search->LeftColumnClass ?>"><span id="elh_hearings_Notes"><?php echo $hearings->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 $hearings_search->RightColumnClass ?>"><div<?php echo $hearings->Notes->cellAttributes() ?>>
			<span id="el_hearings_Notes">
<input type="text" data-table="hearings" data-field="x_Notes" name="x_Notes" id="x_Notes" size="35" placeholder="<?php echo HtmlEncode($hearings->Notes->getPlaceHolder()) ?>" value="<?php echo $hearings->Notes->EditValue ?>"<?php echo $hearings->Notes->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_Notes">
		<td class="<?php echo $hearings_search->TableLeftColumnClass ?>"><span id="elh_hearings_Notes"><?php echo $hearings->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 $hearings->Notes->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_hearings_Notes">
<input type="text" data-table="hearings" data-field="x_Notes" name="x_Notes" id="x_Notes" size="35" placeholder="<?php echo HtmlEncode($hearings->Notes->getPlaceHolder()) ?>" value="<?php echo $hearings->Notes->EditValue ?>"<?php echo $hearings->Notes->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($hearings->LawyerID->Visible) { // LawyerID ?>
<?php if ($hearings_search->IsMobileOrModal) { ?>
	<div id="r_LawyerID" class="form-group row">
		<label for="x_LawyerID" class="<?php echo $hearings_search->LeftColumnClass ?>"><span id="elh_hearings_LawyerID"><?php echo $hearings->LawyerID->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_LawyerID" id="z_LawyerID" value="="></span>
		</label>
		<div class="<?php echo $hearings_search->RightColumnClass ?>"><div<?php echo $hearings->LawyerID->cellAttributes() ?>>
			<span id="el_hearings_LawyerID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="hearings" data-field="x_LawyerID" data-value-separator="<?php echo $hearings->LawyerID->displayValueSeparatorAttribute() ?>" id="x_LawyerID" name="x_LawyerID"<?php echo $hearings->LawyerID->editAttributes() ?>>
		<?php echo $hearings->LawyerID->selectOptionListHtml("x_LawyerID") ?>
	</select>
</div>
<?php echo $hearings->LawyerID->Lookup->getParamTag("p_x_LawyerID") ?>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_LawyerID">
		<td class="<?php echo $hearings_search->TableLeftColumnClass ?>"><span id="elh_hearings_LawyerID"><?php echo $hearings->LawyerID->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_LawyerID" id="z_LawyerID" value="="></span></td>
		<td<?php echo $hearings->LawyerID->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_hearings_LawyerID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="hearings" data-field="x_LawyerID" data-value-separator="<?php echo $hearings->LawyerID->displayValueSeparatorAttribute() ?>" id="x_LawyerID" name="x_LawyerID"<?php echo $hearings->LawyerID->editAttributes() ?>>
		<?php echo $hearings->LawyerID->selectOptionListHtml("x_LawyerID") ?>
	</select>
</div>
<?php echo $hearings->LawyerID->Lookup->getParamTag("p_x_LawyerID") ?>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($hearings->JudgeID->Visible) { // JudgeID ?>
<?php if ($hearings_search->IsMobileOrModal) { ?>
	<div id="r_JudgeID" class="form-group row">
		<label for="x_JudgeID" class="<?php echo $hearings_search->LeftColumnClass ?>"><span id="elh_hearings_JudgeID"><?php echo $hearings->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 $hearings_search->RightColumnClass ?>"><div<?php echo $hearings->JudgeID->cellAttributes() ?>>
			<span id="el_hearings_JudgeID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="hearings" data-field="x_JudgeID" data-value-separator="<?php echo $hearings->JudgeID->displayValueSeparatorAttribute() ?>" id="x_JudgeID" name="x_JudgeID"<?php echo $hearings->JudgeID->editAttributes() ?>>
		<?php echo $hearings->JudgeID->selectOptionListHtml("x_JudgeID") ?>
	</select>
</div>
<?php echo $hearings->JudgeID->Lookup->getParamTag("p_x_JudgeID") ?>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_JudgeID">
		<td class="<?php echo $hearings_search->TableLeftColumnClass ?>"><span id="elh_hearings_JudgeID"><?php echo $hearings->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 $hearings->JudgeID->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_hearings_JudgeID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="hearings" data-field="x_JudgeID" data-value-separator="<?php echo $hearings->JudgeID->displayValueSeparatorAttribute() ?>" id="x_JudgeID" name="x_JudgeID"<?php echo $hearings->JudgeID->editAttributes() ?>>
		<?php echo $hearings->JudgeID->selectOptionListHtml("x_JudgeID") ?>
	</select>
</div>
<?php echo $hearings->JudgeID->Lookup->getParamTag("p_x_JudgeID") ?>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($hearings->CaseNumber->Visible) { // CaseNumber ?>
<?php if ($hearings_search->IsMobileOrModal) { ?>
	<div id="r_CaseNumber" class="form-group row">
		<label class="<?php echo $hearings_search->LeftColumnClass ?>"><span id="elh_hearings_CaseNumber"><?php echo $hearings->CaseNumber->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_CaseNumber" id="z_CaseNumber" value="LIKE"></span>
		</label>
		<div class="<?php echo $hearings_search->RightColumnClass ?>"><div<?php echo $hearings->CaseNumber->cellAttributes() ?>>
			<span id="el_hearings_CaseNumber">
<input type="text" data-table="hearings" data-field="x_CaseNumber" name="x_CaseNumber" id="x_CaseNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($hearings->CaseNumber->getPlaceHolder()) ?>" value="<?php echo $hearings->CaseNumber->EditValue ?>"<?php echo $hearings->CaseNumber->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_CaseNumber">
		<td class="<?php echo $hearings_search->TableLeftColumnClass ?>"><span id="elh_hearings_CaseNumber"><?php echo $hearings->CaseNumber->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_CaseNumber" id="z_CaseNumber" value="LIKE"></span></td>
		<td<?php echo $hearings->CaseNumber->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_hearings_CaseNumber">
<input type="text" data-table="hearings" data-field="x_CaseNumber" name="x_CaseNumber" id="x_CaseNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($hearings->CaseNumber->getPlaceHolder()) ?>" value="<?php echo $hearings->CaseNumber->EditValue ?>"<?php echo $hearings->CaseNumber->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($hearings->CourtID->Visible) { // CourtID ?>
<?php if ($hearings_search->IsMobileOrModal) { ?>
	<div id="r_CourtID" class="form-group row">
		<label class="<?php echo $hearings_search->LeftColumnClass ?>"><span id="elh_hearings_CourtID"><?php echo $hearings->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 $hearings_search->RightColumnClass ?>"><div<?php echo $hearings->CourtID->cellAttributes() ?>>
			<span id="el_hearings_CourtID">
<?php
$wrkonchange = "" . trim(@$hearings->CourtID->EditAttrs["onchange"]);
if (trim($wrkonchange) <> "") $wrkonchange = " onchange=\"" . JsEncode($wrkonchange) . "\"";
$hearings->CourtID->EditAttrs["onchange"] = "";
?>
<span id="as_x_CourtID" class="text-nowrap" style="z-index: 8770">
	<div class="input-group mb-3">
		<input type="text" class="form-control" name="sv_x_CourtID" id="sv_x_CourtID" value="<?php echo RemoveHtml($hearings->CourtID->EditValue) ?>" size="30" placeholder="<?php echo HtmlEncode($hearings->CourtID->getPlaceHolder()) ?>" data-placeholder="<?php echo HtmlEncode($hearings->CourtID->getPlaceHolder()) ?>"<?php echo $hearings->CourtID->editAttributes() ?>>
		<div class="input-group-append">
			<button type="button" title="<?php echo HtmlEncode(str_replace("%s", RemoveHtml($hearings->CourtID->caption()), $Language->phrase("LookupLink", TRUE))) ?>" onclick="ew.modalLookupShow({lnk:this,el:'x_CourtID',m:0,n:10,srch:true});" class="ew-lookup-btn btn btn-default"<?php echo (($hearings->CourtID->ReadOnly || $hearings->CourtID->Disabled) ? " disabled" : "")?>><i class="fa fa-search ew-icon"></i></button>
		</div>
	</div>
</span>
<input type="hidden" data-table="hearings" data-field="x_CourtID" data-multiple="0" data-lookup="1" data-value-separator="<?php echo $hearings->CourtID->displayValueSeparatorAttribute() ?>" name="x_CourtID" id="x_CourtID" value="<?php echo HtmlEncode($hearings->CourtID->AdvancedSearch->SearchValue) ?>"<?php echo $wrkonchange ?>>
<script>
fhearingssearch.createAutoSuggest({"id":"x_CourtID","forceSelect":false});
</script>
<?php echo $hearings->CourtID->Lookup->getParamTag("p_x_CourtID") ?>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_CourtID">
		<td class="<?php echo $hearings_search->TableLeftColumnClass ?>"><span id="elh_hearings_CourtID"><?php echo $hearings->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 $hearings->CourtID->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_hearings_CourtID">
<?php
$wrkonchange = "" . trim(@$hearings->CourtID->EditAttrs["onchange"]);
if (trim($wrkonchange) <> "") $wrkonchange = " onchange=\"" . JsEncode($wrkonchange) . "\"";
$hearings->CourtID->EditAttrs["onchange"] = "";
?>
<span id="as_x_CourtID" class="text-nowrap" style="z-index: 8770">
	<div class="input-group mb-3">
		<input type="text" class="form-control" name="sv_x_CourtID" id="sv_x_CourtID" value="<?php echo RemoveHtml($hearings->CourtID->EditValue) ?>" size="30" placeholder="<?php echo HtmlEncode($hearings->CourtID->getPlaceHolder()) ?>" data-placeholder="<?php echo HtmlEncode($hearings->CourtID->getPlaceHolder()) ?>"<?php echo $hearings->CourtID->editAttributes() ?>>
		<div class="input-group-append">
			<button type="button" title="<?php echo HtmlEncode(str_replace("%s", RemoveHtml($hearings->CourtID->caption()), $Language->phrase("LookupLink", TRUE))) ?>" onclick="ew.modalLookupShow({lnk:this,el:'x_CourtID',m:0,n:10,srch:true});" class="ew-lookup-btn btn btn-default"<?php echo (($hearings->CourtID->ReadOnly || $hearings->CourtID->Disabled) ? " disabled" : "")?>><i class="fa fa-search ew-icon"></i></button>
		</div>
	</div>
</span>
<input type="hidden" data-table="hearings" data-field="x_CourtID" data-multiple="0" data-lookup="1" data-value-separator="<?php echo $hearings->CourtID->displayValueSeparatorAttribute() ?>" name="x_CourtID" id="x_CourtID" value="<?php echo HtmlEncode($hearings->CourtID->AdvancedSearch->SearchValue) ?>"<?php echo $wrkonchange ?>>
<script>
fhearingssearch.createAutoSuggest({"id":"x_CourtID","forceSelect":false});
</script>
<?php echo $hearings->CourtID->Lookup->getParamTag("p_x_CourtID") ?>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($hearings_search->IsMobileOrModal) { ?>
</div><!-- /page* -->
<?php } else { ?>
</table><!-- /table* -->
<?php } ?>
<?php if (!$hearings_search->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $hearings_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 (!$hearings_search->IsMobileOrModal) { ?>
</div><!-- /desktop -->
<?php } ?>
</form>
<?php
$hearings_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
$hearings_search->terminate();
?>
