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

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

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

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

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

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

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

// Dynamic selection lists
// Form object for search
// Validate function for search

fisocountriessearch.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 $isocountries_search->showPageHeader(); ?>
<?php
$isocountries_search->showMessage();
?>
<form name="fisocountriessearch" id="fisocountriessearch" class="<?php echo $isocountries_search->FormClassName ?>" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($isocountries_search->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $isocountries_search->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="isocountries">
<input type="hidden" name="action" id="action" value="search">
<input type="hidden" name="modal" value="<?php echo (int)$isocountries_search->IsModal ?>">
<?php if (!$isocountries_search->IsMobileOrModal) { ?>
<div class="ew-desktop"><!-- desktop -->
<?php } ?>
<?php if ($isocountries_search->IsMobileOrModal) { ?>
<div class="ew-search-div"><!-- page* -->
<?php } else { ?>
<table id="tbl_isocountriessearch" class="table table-striped table-sm ew-desktop-table"><!-- table* -->
<?php } ?>
<?php if ($isocountries->isocountries_id->Visible) { // isocountries_id ?>
<?php if ($isocountries_search->IsMobileOrModal) { ?>
	<div id="r_isocountries_id" class="form-group row">
		<label class="<?php echo $isocountries_search->LeftColumnClass ?>"><span id="elh_isocountries_isocountries_id"><?php echo $isocountries->isocountries_id->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_isocountries_id" id="z_isocountries_id" value="="></span>
		</label>
		<div class="<?php echo $isocountries_search->RightColumnClass ?>"><div<?php echo $isocountries->isocountries_id->cellAttributes() ?>>
			<span id="el_isocountries_isocountries_id">
<input type="text" data-table="isocountries" data-field="x_isocountries_id" name="x_isocountries_id" id="x_isocountries_id" placeholder="<?php echo HtmlEncode($isocountries->isocountries_id->getPlaceHolder()) ?>" value="<?php echo $isocountries->isocountries_id->EditValue ?>"<?php echo $isocountries->isocountries_id->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_isocountries_id">
		<td class="<?php echo $isocountries_search->TableLeftColumnClass ?>"><span id="elh_isocountries_isocountries_id"><?php echo $isocountries->isocountries_id->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_isocountries_id" id="z_isocountries_id" value="="></span></td>
		<td<?php echo $isocountries->isocountries_id->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_isocountries_isocountries_id">
<input type="text" data-table="isocountries" data-field="x_isocountries_id" name="x_isocountries_id" id="x_isocountries_id" placeholder="<?php echo HtmlEncode($isocountries->isocountries_id->getPlaceHolder()) ?>" value="<?php echo $isocountries->isocountries_id->EditValue ?>"<?php echo $isocountries->isocountries_id->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($isocountries->isocountries_code->Visible) { // isocountries_code ?>
<?php if ($isocountries_search->IsMobileOrModal) { ?>
	<div id="r_isocountries_code" class="form-group row">
		<label for="x_isocountries_code" class="<?php echo $isocountries_search->LeftColumnClass ?>"><span id="elh_isocountries_isocountries_code"><?php echo $isocountries->isocountries_code->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_isocountries_code" id="z_isocountries_code" value="LIKE"></span>
		</label>
		<div class="<?php echo $isocountries_search->RightColumnClass ?>"><div<?php echo $isocountries->isocountries_code->cellAttributes() ?>>
			<span id="el_isocountries_isocountries_code">
<input type="text" data-table="isocountries" data-field="x_isocountries_code" name="x_isocountries_code" id="x_isocountries_code" size="30" maxlength="3" placeholder="<?php echo HtmlEncode($isocountries->isocountries_code->getPlaceHolder()) ?>" value="<?php echo $isocountries->isocountries_code->EditValue ?>"<?php echo $isocountries->isocountries_code->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_isocountries_code">
		<td class="<?php echo $isocountries_search->TableLeftColumnClass ?>"><span id="elh_isocountries_isocountries_code"><?php echo $isocountries->isocountries_code->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_isocountries_code" id="z_isocountries_code" value="LIKE"></span></td>
		<td<?php echo $isocountries->isocountries_code->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_isocountries_isocountries_code">
<input type="text" data-table="isocountries" data-field="x_isocountries_code" name="x_isocountries_code" id="x_isocountries_code" size="30" maxlength="3" placeholder="<?php echo HtmlEncode($isocountries->isocountries_code->getPlaceHolder()) ?>" value="<?php echo $isocountries->isocountries_code->EditValue ?>"<?php echo $isocountries->isocountries_code->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($isocountries->isocountries_description->Visible) { // isocountries_description ?>
<?php if ($isocountries_search->IsMobileOrModal) { ?>
	<div id="r_isocountries_description" class="form-group row">
		<label for="x_isocountries_description" class="<?php echo $isocountries_search->LeftColumnClass ?>"><span id="elh_isocountries_isocountries_description"><?php echo $isocountries->isocountries_description->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_isocountries_description" id="z_isocountries_description" value="LIKE"></span>
		</label>
		<div class="<?php echo $isocountries_search->RightColumnClass ?>"><div<?php echo $isocountries->isocountries_description->cellAttributes() ?>>
			<span id="el_isocountries_isocountries_description">
<input type="text" data-table="isocountries" data-field="x_isocountries_description" name="x_isocountries_description" id="x_isocountries_description" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($isocountries->isocountries_description->getPlaceHolder()) ?>" value="<?php echo $isocountries->isocountries_description->EditValue ?>"<?php echo $isocountries->isocountries_description->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_isocountries_description">
		<td class="<?php echo $isocountries_search->TableLeftColumnClass ?>"><span id="elh_isocountries_isocountries_description"><?php echo $isocountries->isocountries_description->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_isocountries_description" id="z_isocountries_description" value="LIKE"></span></td>
		<td<?php echo $isocountries->isocountries_description->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_isocountries_isocountries_description">
<input type="text" data-table="isocountries" data-field="x_isocountries_description" name="x_isocountries_description" id="x_isocountries_description" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($isocountries->isocountries_description->getPlaceHolder()) ?>" value="<?php echo $isocountries->isocountries_description->EditValue ?>"<?php echo $isocountries->isocountries_description->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($isocountries_search->IsMobileOrModal) { ?>
</div><!-- /page* -->
<?php } else { ?>
</table><!-- /table* -->
<?php } ?>
<?php if (!$isocountries_search->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $isocountries_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 (!$isocountries_search->IsMobileOrModal) { ?>
</div><!-- /desktop -->
<?php } ?>
</form>
<?php
$isocountries_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
$isocountries_search->terminate();
?>
