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

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

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

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

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

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

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

// Dynamic selection lists
fcourtgendersearch.lists["x_CourtSortID"] = <?php echo $courtgender_search->CourtSortID->Lookup->toClientList() ?>;
fcourtgendersearch.lists["x_CourtSortID"].options = <?php echo JsonEncode($courtgender_search->CourtSortID->lookupOptions()) ?>;

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

fcourtgendersearch.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 $courtgender_search->showPageHeader(); ?>
<?php
$courtgender_search->showMessage();
?>
<form name="fcourtgendersearch" id="fcourtgendersearch" class="<?php echo $courtgender_search->FormClassName ?>" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($courtgender_search->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $courtgender_search->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="courtgender">
<input type="hidden" name="action" id="action" value="search">
<input type="hidden" name="modal" value="<?php echo (int)$courtgender_search->IsModal ?>">
<?php if (!$courtgender_search->IsMobileOrModal) { ?>
<div class="ew-desktop"><!-- desktop -->
<?php } ?>
<?php if ($courtgender_search->IsMobileOrModal) { ?>
<div class="ew-search-div"><!-- page* -->
<?php } else { ?>
<table id="tbl_courtgendersearch" class="table table-striped table-sm ew-desktop-table"><!-- table* -->
<?php } ?>
<?php if ($courtgender->CourtGenderID->Visible) { // CourtGenderID ?>
<?php if ($courtgender_search->IsMobileOrModal) { ?>
	<div id="r_CourtGenderID" class="form-group row">
		<label class="<?php echo $courtgender_search->LeftColumnClass ?>"><span id="elh_courtgender_CourtGenderID"><?php echo $courtgender->CourtGenderID->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_CourtGenderID" id="z_CourtGenderID" value="="></span>
		</label>
		<div class="<?php echo $courtgender_search->RightColumnClass ?>"><div<?php echo $courtgender->CourtGenderID->cellAttributes() ?>>
			<span id="el_courtgender_CourtGenderID">
<input type="text" data-table="courtgender" data-field="x_CourtGenderID" name="x_CourtGenderID" id="x_CourtGenderID" placeholder="<?php echo HtmlEncode($courtgender->CourtGenderID->getPlaceHolder()) ?>" value="<?php echo $courtgender->CourtGenderID->EditValue ?>"<?php echo $courtgender->CourtGenderID->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_CourtGenderID">
		<td class="<?php echo $courtgender_search->TableLeftColumnClass ?>"><span id="elh_courtgender_CourtGenderID"><?php echo $courtgender->CourtGenderID->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_CourtGenderID" id="z_CourtGenderID" value="="></span></td>
		<td<?php echo $courtgender->CourtGenderID->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_courtgender_CourtGenderID">
<input type="text" data-table="courtgender" data-field="x_CourtGenderID" name="x_CourtGenderID" id="x_CourtGenderID" placeholder="<?php echo HtmlEncode($courtgender->CourtGenderID->getPlaceHolder()) ?>" value="<?php echo $courtgender->CourtGenderID->EditValue ?>"<?php echo $courtgender->CourtGenderID->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($courtgender->CourtSortID->Visible) { // CourtSortID ?>
<?php if ($courtgender_search->IsMobileOrModal) { ?>
	<div id="r_CourtSortID" class="form-group row">
		<label for="x_CourtSortID" class="<?php echo $courtgender_search->LeftColumnClass ?>"><span id="elh_courtgender_CourtSortID"><?php echo $courtgender->CourtSortID->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_CourtSortID" id="z_CourtSortID" value="="></span>
		</label>
		<div class="<?php echo $courtgender_search->RightColumnClass ?>"><div<?php echo $courtgender->CourtSortID->cellAttributes() ?>>
			<span id="el_courtgender_CourtSortID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="courtgender" data-field="x_CourtSortID" data-value-separator="<?php echo $courtgender->CourtSortID->displayValueSeparatorAttribute() ?>" id="x_CourtSortID" name="x_CourtSortID"<?php echo $courtgender->CourtSortID->editAttributes() ?>>
		<?php echo $courtgender->CourtSortID->selectOptionListHtml("x_CourtSortID") ?>
	</select>
</div>
<?php echo $courtgender->CourtSortID->Lookup->getParamTag("p_x_CourtSortID") ?>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_CourtSortID">
		<td class="<?php echo $courtgender_search->TableLeftColumnClass ?>"><span id="elh_courtgender_CourtSortID"><?php echo $courtgender->CourtSortID->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_CourtSortID" id="z_CourtSortID" value="="></span></td>
		<td<?php echo $courtgender->CourtSortID->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_courtgender_CourtSortID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="courtgender" data-field="x_CourtSortID" data-value-separator="<?php echo $courtgender->CourtSortID->displayValueSeparatorAttribute() ?>" id="x_CourtSortID" name="x_CourtSortID"<?php echo $courtgender->CourtSortID->editAttributes() ?>>
		<?php echo $courtgender->CourtSortID->selectOptionListHtml("x_CourtSortID") ?>
	</select>
</div>
<?php echo $courtgender->CourtSortID->Lookup->getParamTag("p_x_CourtSortID") ?>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($courtgender->CourtGender->Visible) { // CourtGender ?>
<?php if ($courtgender_search->IsMobileOrModal) { ?>
	<div id="r_CourtGender" class="form-group row">
		<label for="x_CourtGender" class="<?php echo $courtgender_search->LeftColumnClass ?>"><span id="elh_courtgender_CourtGender"><?php echo $courtgender->CourtGender->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_CourtGender" id="z_CourtGender" value="LIKE"></span>
		</label>
		<div class="<?php echo $courtgender_search->RightColumnClass ?>"><div<?php echo $courtgender->CourtGender->cellAttributes() ?>>
			<span id="el_courtgender_CourtGender">
<input type="text" data-table="courtgender" data-field="x_CourtGender" name="x_CourtGender" id="x_CourtGender" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($courtgender->CourtGender->getPlaceHolder()) ?>" value="<?php echo $courtgender->CourtGender->EditValue ?>"<?php echo $courtgender->CourtGender->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_CourtGender">
		<td class="<?php echo $courtgender_search->TableLeftColumnClass ?>"><span id="elh_courtgender_CourtGender"><?php echo $courtgender->CourtGender->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_CourtGender" id="z_CourtGender" value="LIKE"></span></td>
		<td<?php echo $courtgender->CourtGender->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_courtgender_CourtGender">
<input type="text" data-table="courtgender" data-field="x_CourtGender" name="x_CourtGender" id="x_CourtGender" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($courtgender->CourtGender->getPlaceHolder()) ?>" value="<?php echo $courtgender->CourtGender->EditValue ?>"<?php echo $courtgender->CourtGender->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($courtgender->Notes->Visible) { // Notes ?>
<?php if ($courtgender_search->IsMobileOrModal) { ?>
	<div id="r_Notes" class="form-group row">
		<label for="x_Notes" class="<?php echo $courtgender_search->LeftColumnClass ?>"><span id="elh_courtgender_Notes"><?php echo $courtgender->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 $courtgender_search->RightColumnClass ?>"><div<?php echo $courtgender->Notes->cellAttributes() ?>>
			<span id="el_courtgender_Notes">
<input type="text" data-table="courtgender" data-field="x_Notes" name="x_Notes" id="x_Notes" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($courtgender->Notes->getPlaceHolder()) ?>" value="<?php echo $courtgender->Notes->EditValue ?>"<?php echo $courtgender->Notes->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_Notes">
		<td class="<?php echo $courtgender_search->TableLeftColumnClass ?>"><span id="elh_courtgender_Notes"><?php echo $courtgender->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 $courtgender->Notes->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_courtgender_Notes">
<input type="text" data-table="courtgender" data-field="x_Notes" name="x_Notes" id="x_Notes" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($courtgender->Notes->getPlaceHolder()) ?>" value="<?php echo $courtgender->Notes->EditValue ?>"<?php echo $courtgender->Notes->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($courtgender_search->IsMobileOrModal) { ?>
</div><!-- /page* -->
<?php } else { ?>
</table><!-- /table* -->
<?php } ?>
<?php if (!$courtgender_search->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $courtgender_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 (!$courtgender_search->IsMobileOrModal) { ?>
</div><!-- /desktop -->
<?php } ?>
</form>
<?php
$courtgender_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
$courtgender_search->terminate();
?>
