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

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

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

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

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

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

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

// Dynamic selection lists
fcourtlocationsearch.lists["x_GovernorateID"] = <?php echo $courtlocation_search->GovernorateID->Lookup->toClientList() ?>;
fcourtlocationsearch.lists["x_GovernorateID"].options = <?php echo JsonEncode($courtlocation_search->GovernorateID->lookupOptions()) ?>;

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

fcourtlocationsearch.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 $courtlocation_search->showPageHeader(); ?>
<?php
$courtlocation_search->showMessage();
?>
<form name="fcourtlocationsearch" id="fcourtlocationsearch" class="<?php echo $courtlocation_search->FormClassName ?>" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($courtlocation_search->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $courtlocation_search->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="courtlocation">
<input type="hidden" name="action" id="action" value="search">
<input type="hidden" name="modal" value="<?php echo (int)$courtlocation_search->IsModal ?>">
<?php if (!$courtlocation_search->IsMobileOrModal) { ?>
<div class="ew-desktop"><!-- desktop -->
<?php } ?>
<?php if ($courtlocation_search->IsMobileOrModal) { ?>
<div class="ew-search-div"><!-- page* -->
<?php } else { ?>
<table id="tbl_courtlocationsearch" class="table table-striped table-sm ew-desktop-table"><!-- table* -->
<?php } ?>
<?php if ($courtlocation->CourtLocationID->Visible) { // CourtLocationID ?>
<?php if ($courtlocation_search->IsMobileOrModal) { ?>
	<div id="r_CourtLocationID" class="form-group row">
		<label class="<?php echo $courtlocation_search->LeftColumnClass ?>"><span id="elh_courtlocation_CourtLocationID"><?php echo $courtlocation->CourtLocationID->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_CourtLocationID" id="z_CourtLocationID" value="="></span>
		</label>
		<div class="<?php echo $courtlocation_search->RightColumnClass ?>"><div<?php echo $courtlocation->CourtLocationID->cellAttributes() ?>>
			<span id="el_courtlocation_CourtLocationID">
<input type="text" data-table="courtlocation" data-field="x_CourtLocationID" name="x_CourtLocationID" id="x_CourtLocationID" placeholder="<?php echo HtmlEncode($courtlocation->CourtLocationID->getPlaceHolder()) ?>" value="<?php echo $courtlocation->CourtLocationID->EditValue ?>"<?php echo $courtlocation->CourtLocationID->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_CourtLocationID">
		<td class="<?php echo $courtlocation_search->TableLeftColumnClass ?>"><span id="elh_courtlocation_CourtLocationID"><?php echo $courtlocation->CourtLocationID->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_CourtLocationID" id="z_CourtLocationID" value="="></span></td>
		<td<?php echo $courtlocation->CourtLocationID->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_courtlocation_CourtLocationID">
<input type="text" data-table="courtlocation" data-field="x_CourtLocationID" name="x_CourtLocationID" id="x_CourtLocationID" placeholder="<?php echo HtmlEncode($courtlocation->CourtLocationID->getPlaceHolder()) ?>" value="<?php echo $courtlocation->CourtLocationID->EditValue ?>"<?php echo $courtlocation->CourtLocationID->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($courtlocation->CourtLocation->Visible) { // CourtLocation ?>
<?php if ($courtlocation_search->IsMobileOrModal) { ?>
	<div id="r_CourtLocation" class="form-group row">
		<label for="x_CourtLocation" class="<?php echo $courtlocation_search->LeftColumnClass ?>"><span id="elh_courtlocation_CourtLocation"><?php echo $courtlocation->CourtLocation->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_CourtLocation" id="z_CourtLocation" value="LIKE"></span>
		</label>
		<div class="<?php echo $courtlocation_search->RightColumnClass ?>"><div<?php echo $courtlocation->CourtLocation->cellAttributes() ?>>
			<span id="el_courtlocation_CourtLocation">
<input type="text" data-table="courtlocation" data-field="x_CourtLocation" name="x_CourtLocation" id="x_CourtLocation" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($courtlocation->CourtLocation->getPlaceHolder()) ?>" value="<?php echo $courtlocation->CourtLocation->EditValue ?>"<?php echo $courtlocation->CourtLocation->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_CourtLocation">
		<td class="<?php echo $courtlocation_search->TableLeftColumnClass ?>"><span id="elh_courtlocation_CourtLocation"><?php echo $courtlocation->CourtLocation->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_CourtLocation" id="z_CourtLocation" value="LIKE"></span></td>
		<td<?php echo $courtlocation->CourtLocation->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_courtlocation_CourtLocation">
<input type="text" data-table="courtlocation" data-field="x_CourtLocation" name="x_CourtLocation" id="x_CourtLocation" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($courtlocation->CourtLocation->getPlaceHolder()) ?>" value="<?php echo $courtlocation->CourtLocation->EditValue ?>"<?php echo $courtlocation->CourtLocation->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($courtlocation->GovernorateID->Visible) { // GovernorateID ?>
<?php if ($courtlocation_search->IsMobileOrModal) { ?>
	<div id="r_GovernorateID" class="form-group row">
		<label for="x_GovernorateID" class="<?php echo $courtlocation_search->LeftColumnClass ?>"><span id="elh_courtlocation_GovernorateID"><?php echo $courtlocation->GovernorateID->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_GovernorateID" id="z_GovernorateID" value="="></span>
		</label>
		<div class="<?php echo $courtlocation_search->RightColumnClass ?>"><div<?php echo $courtlocation->GovernorateID->cellAttributes() ?>>
			<span id="el_courtlocation_GovernorateID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="courtlocation" data-field="x_GovernorateID" data-value-separator="<?php echo $courtlocation->GovernorateID->displayValueSeparatorAttribute() ?>" id="x_GovernorateID" name="x_GovernorateID"<?php echo $courtlocation->GovernorateID->editAttributes() ?>>
		<?php echo $courtlocation->GovernorateID->selectOptionListHtml("x_GovernorateID") ?>
	</select>
</div>
<?php echo $courtlocation->GovernorateID->Lookup->getParamTag("p_x_GovernorateID") ?>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_GovernorateID">
		<td class="<?php echo $courtlocation_search->TableLeftColumnClass ?>"><span id="elh_courtlocation_GovernorateID"><?php echo $courtlocation->GovernorateID->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_GovernorateID" id="z_GovernorateID" value="="></span></td>
		<td<?php echo $courtlocation->GovernorateID->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_courtlocation_GovernorateID">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="courtlocation" data-field="x_GovernorateID" data-value-separator="<?php echo $courtlocation->GovernorateID->displayValueSeparatorAttribute() ?>" id="x_GovernorateID" name="x_GovernorateID"<?php echo $courtlocation->GovernorateID->editAttributes() ?>>
		<?php echo $courtlocation->GovernorateID->selectOptionListHtml("x_GovernorateID") ?>
	</select>
</div>
<?php echo $courtlocation->GovernorateID->Lookup->getParamTag("p_x_GovernorateID") ?>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($courtlocation->Notes->Visible) { // Notes ?>
<?php if ($courtlocation_search->IsMobileOrModal) { ?>
	<div id="r_Notes" class="form-group row">
		<label for="x_Notes" class="<?php echo $courtlocation_search->LeftColumnClass ?>"><span id="elh_courtlocation_Notes"><?php echo $courtlocation->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 $courtlocation_search->RightColumnClass ?>"><div<?php echo $courtlocation->Notes->cellAttributes() ?>>
			<span id="el_courtlocation_Notes">
<input type="text" data-table="courtlocation" data-field="x_Notes" name="x_Notes" id="x_Notes" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($courtlocation->Notes->getPlaceHolder()) ?>" value="<?php echo $courtlocation->Notes->EditValue ?>"<?php echo $courtlocation->Notes->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_Notes">
		<td class="<?php echo $courtlocation_search->TableLeftColumnClass ?>"><span id="elh_courtlocation_Notes"><?php echo $courtlocation->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 $courtlocation->Notes->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_courtlocation_Notes">
<input type="text" data-table="courtlocation" data-field="x_Notes" name="x_Notes" id="x_Notes" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($courtlocation->Notes->getPlaceHolder()) ?>" value="<?php echo $courtlocation->Notes->EditValue ?>"<?php echo $courtlocation->Notes->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($courtlocation_search->IsMobileOrModal) { ?>
</div><!-- /page* -->
<?php } else { ?>
</table><!-- /table* -->
<?php } ?>
<?php if (!$courtlocation_search->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $courtlocation_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 (!$courtlocation_search->IsMobileOrModal) { ?>
</div><!-- /desktop -->
<?php } ?>
</form>
<?php
$courtlocation_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
$courtlocation_search->terminate();
?>
