<?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_list = new isocountries_list();

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

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

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

// Page Rendering event
$isocountries_list->Page_Render();
?>
<?php include_once "header.php" ?>
<?php if (!$isocountries->isExport()) { ?>
<script>

// Form object
currentPageID = ew.PAGE_ID = "list";
var fisocountrieslist = currentForm = new ew.Form("fisocountrieslist", "list");
fisocountrieslist.formKeyCountName = '<?php echo $isocountries_list->FormKeyCountName ?>';

// Validate form
fisocountrieslist.validate = function() {
	if (!this.validateRequired)
		return true; // Ignore validation
	var $ = jQuery, fobj = this.getForm(), $fobj = $(fobj);
	if ($fobj.find("#confirm").val() == "F")
		return true;
	var elm, felm, uelm, addcnt = 0;
	var $k = $fobj.find("#" + this.formKeyCountName); // Get key_count
	var rowcnt = ($k[0]) ? parseInt($k.val(), 10) : 1;
	var startcnt = (rowcnt == 0) ? 0 : 1; // Check rowcnt == 0 => Inline-Add
	var gridinsert = ["insert", "gridinsert"].includes($fobj.find("#action").val()) && $k[0];
	for (var i = startcnt; i <= rowcnt; i++) {
		var infix = ($k[0]) ? String(i) : "";
		$fobj.data("rowindex", infix);
		<?php if ($isocountries_list->isocountries_code->Required) { ?>
			elm = this.getElements("x" + infix + "_isocountries_code");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $isocountries->isocountries_code->caption(), $isocountries->isocountries_code->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($isocountries_list->isocountries_description->Required) { ?>
			elm = this.getElements("x" + infix + "_isocountries_description");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $isocountries->isocountries_description->caption(), $isocountries->isocountries_description->RequiredErrorMessage)) ?>");
		<?php } ?>

			// Fire Form_CustomValidate event
			if (!this.Form_CustomValidate(fobj))
				return false;
	}
	return true;
}

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

// Dynamic selection lists
// Form object for search

var fisocountrieslistsrch = currentSearchForm = new ew.Form("fisocountrieslistsrch");

// Filters
fisocountrieslistsrch.filterList = <?php echo $isocountries_list->getFilterList() ?>;
</script>
<script src="phpjs/ewscrolltable.js"></script>
<style type="text/css">
.ew-table-preview-row { /* main table preview row color */
	background-color: #FFFFFF; /* preview row color */
}
.ew-table-preview-row .ew-grid {
	display: table;
}
</style>
<div id="ew-preview" class="d-none"><!-- preview -->
	<div class="ew-nav-tabs"><!-- .ew-nav-tabs -->
		<ul class="nav nav-tabs"></ul>
		<div class="tab-content"><!-- .tab-content -->
			<div class="tab-pane fade active show"></div>
		</div><!-- /.tab-content -->
	</div><!-- /.ew-nav-tabs -->
</div><!-- /preview -->
<script src="phpjs/ewpreview.js"></script>
<script>
ew.PREVIEW_PLACEMENT = ew.CSS_FLIP ? "left" : "right";
ew.PREVIEW_SINGLE_ROW = false;
ew.PREVIEW_OVERLAY = true;
</script>
<script>

// Write your client script here, no need to add script tags.
</script>
<?php } ?>
<?php if (!$isocountries->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php if ($isocountries_list->TotalRecs > 0 && $isocountries_list->ExportOptions->visible()) { ?>
<?php $isocountries_list->ExportOptions->render("body") ?>
<?php } ?>
<?php if ($isocountries_list->ImportOptions->visible()) { ?>
<?php $isocountries_list->ImportOptions->render("body") ?>
<?php } ?>
<?php if ($isocountries_list->SearchOptions->visible()) { ?>
<?php $isocountries_list->SearchOptions->render("body") ?>
<?php } ?>
<?php if ($isocountries_list->FilterOptions->visible()) { ?>
<?php $isocountries_list->FilterOptions->render("body") ?>
<?php } ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php
$isocountries_list->renderOtherOptions();
?>
<?php if ($Security->CanSearch()) { ?>
<?php if (!$isocountries->isExport() && !$isocountries->CurrentAction) { ?>
<form name="fisocountrieslistsrch" id="fisocountrieslistsrch" class="form-inline ew-form ew-ext-search-form" action="<?php echo CurrentPageName() ?>">
<?php $searchPanelClass = ($isocountries_list->SearchWhere <> "") ? " show" : " show"; ?>
<div id="fisocountrieslistsrch-search-panel" class="ew-search-panel collapse<?php echo $searchPanelClass ?>">
<input type="hidden" name="cmd" value="search">
<input type="hidden" name="t" value="isocountries">
	<div class="ew-basic-search">
<div id="xsr_1" class="ew-row d-sm-flex">
	<div class="ew-quick-search input-group">
		<input type="text" name="<?php echo TABLE_BASIC_SEARCH ?>" id="<?php echo TABLE_BASIC_SEARCH ?>" class="form-control" value="<?php echo HtmlEncode($isocountries_list->BasicSearch->getKeyword()) ?>" placeholder="<?php echo HtmlEncode($Language->phrase("Search")) ?>">
		<input type="hidden" name="<?php echo TABLE_BASIC_SEARCH_TYPE ?>" id="<?php echo TABLE_BASIC_SEARCH_TYPE ?>" value="<?php echo HtmlEncode($isocountries_list->BasicSearch->getType()) ?>">
		<div class="input-group-append">
			<button class="btn btn-primary" name="btn-submit" id="btn-submit" type="submit"><?php echo $Language->phrase("SearchBtn") ?></button>
			<button type="button" data-toggle="dropdown" class="btn btn-primary dropdown-toggle dropdown-toggle-split" aria-haspopup="true" aria-expanded="false"><span id="searchtype"><?php echo $isocountries_list->BasicSearch->getTypeNameShort() ?></span></button>
			<div class="dropdown-menu dropdown-menu-right">
				<a class="dropdown-item<?php if ($isocountries_list->BasicSearch->getType() == "") echo " active"; ?>" href="javascript:void(0);" onclick="ew.setSearchType(this)"><?php echo $Language->phrase("QuickSearchAuto") ?></a>
				<a class="dropdown-item<?php if ($isocountries_list->BasicSearch->getType() == "=") echo " active"; ?>" href="javascript:void(0);" onclick="ew.setSearchType(this,'=')"><?php echo $Language->phrase("QuickSearchExact") ?></a>
				<a class="dropdown-item<?php if ($isocountries_list->BasicSearch->getType() == "AND") echo " active"; ?>" href="javascript:void(0);" onclick="ew.setSearchType(this,'AND')"><?php echo $Language->phrase("QuickSearchAll") ?></a>
				<a class="dropdown-item<?php if ($isocountries_list->BasicSearch->getType() == "OR") echo " active"; ?>" href="javascript:void(0);" onclick="ew.setSearchType(this,'OR')"><?php echo $Language->phrase("QuickSearchAny") ?></a>
			</div>
		</div>
	</div>
</div>
	</div>
</div>
</form>
<?php } ?>
<?php } ?>
<?php $isocountries_list->showPageHeader(); ?>
<?php
$isocountries_list->showMessage();
?>
<?php if ($isocountries_list->TotalRecs > 0 || $isocountries->CurrentAction) { ?>
<div class="card ew-card ew-grid<?php if ($isocountries_list->isAddOrEdit()) { ?> ew-grid-add-edit<?php } ?> isocountries">
<?php if (!$isocountries->isExport()) { ?>
<div class="card-header ew-grid-upper-panel">
<?php if (!$isocountries->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($isocountries_list->Pager)) $isocountries_list->Pager = new PrevNextPager($isocountries_list->StartRec, $isocountries_list->DisplayRecs, $isocountries_list->TotalRecs, $isocountries_list->AutoHidePager) ?>
<?php if ($isocountries_list->Pager->RecordCount > 0 && $isocountries_list->Pager->Visible) { ?>
<div class="ew-pager">
<span><?php echo $Language->Phrase("Page") ?>&nbsp;</span>
<div class="ew-prev-next"><div class="input-group input-group-sm">
<div class="input-group-prepend">
<!-- first page button -->
	<?php if ($isocountries_list->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $isocountries_list->pageUrl() ?>start=<?php echo $isocountries_list->Pager->FirstButton->Start ?>"><i class="icon-first ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerFirst") ?>"><i class="icon-first ew-icon"></i></a>
	<?php } ?>
<!-- previous page button -->
	<?php if ($isocountries_list->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $isocountries_list->pageUrl() ?>start=<?php echo $isocountries_list->Pager->PrevButton->Start ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerPrevious") ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } ?>
</div>
<!-- current page number -->
	<input class="form-control" type="text" name="<?php echo TABLE_PAGE_NO ?>" value="<?php echo $isocountries_list->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($isocountries_list->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $isocountries_list->pageUrl() ?>start=<?php echo $isocountries_list->Pager->NextButton->Start ?>"><i class="icon-next ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerNext") ?>"><i class="icon-next ew-icon"></i></a>
	<?php } ?>
<!-- last page button -->
	<?php if ($isocountries_list->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $isocountries_list->pageUrl() ?>start=<?php echo $isocountries_list->Pager->LastButton->Start ?>"><i class="icon-last ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerLast") ?>"><i class="icon-last ew-icon"></i></a>
	<?php } ?>
</div>
</div>
</div>
<span>&nbsp;<?php echo $Language->Phrase("of") ?>&nbsp;<?php echo $isocountries_list->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php if ($isocountries_list->Pager->RecordCount > 0) { ?>
<div class="ew-pager ew-rec">
	<span><?php echo $Language->Phrase("Record") ?>&nbsp;<?php echo $isocountries_list->Pager->FromIndex ?>&nbsp;<?php echo $Language->Phrase("To") ?>&nbsp;<?php echo $isocountries_list->Pager->ToIndex ?>&nbsp;<?php echo $Language->Phrase("Of") ?>&nbsp;<?php echo $isocountries_list->Pager->RecordCount ?></span>
</div>
<?php } ?>
<?php if ($isocountries_list->TotalRecs > 0 && (!$isocountries_list->AutoHidePageSizeSelector || $isocountries_list->Pager->Visible)) { ?>
<div class="ew-pager">
<input type="hidden" name="t" value="isocountries">
<select name="<?php echo TABLE_REC_PER_PAGE ?>" class="form-control form-control-sm ew-tooltip" title="<?php echo $Language->phrase("RecordsPerPage") ?>" onchange="this.form.submit();">
<option value="5"<?php if ($isocountries_list->DisplayRecs == 5) { ?> selected<?php } ?>>5</option>
<option value="10"<?php if ($isocountries_list->DisplayRecs == 10) { ?> selected<?php } ?>>10</option>
<option value="20"<?php if ($isocountries_list->DisplayRecs == 20) { ?> selected<?php } ?>>20</option>
<option value="30"<?php if ($isocountries_list->DisplayRecs == 30) { ?> selected<?php } ?>>30</option>
<option value="40"<?php if ($isocountries_list->DisplayRecs == 40) { ?> selected<?php } ?>>40</option>
<option value="50"<?php if ($isocountries_list->DisplayRecs == 50) { ?> selected<?php } ?>>50</option>
<option value="100"<?php if ($isocountries_list->DisplayRecs == 100) { ?> selected<?php } ?>>100</option>
<option value="200"<?php if ($isocountries_list->DisplayRecs == 200) { ?> selected<?php } ?>>200</option>
<option value="500"<?php if ($isocountries_list->DisplayRecs == 500) { ?> selected<?php } ?>>500</option>
<option value="ALL"<?php if ($isocountries->getRecordsPerPage() == -1) { ?> selected<?php } ?>><?php echo $Language->Phrase("AllRecords") ?></option>
</select>
</div>
<?php } ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $isocountries_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
<form name="fisocountrieslist" id="fisocountrieslist" class="form-inline ew-form ew-list-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($isocountries_list->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $isocountries_list->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="isocountries">
<div id="gmp_isocountries" class="<?php if (IsResponsiveLayout()) { ?>table-responsive <?php } ?>card-body ew-grid-middle-panel">
<?php if ($isocountries_list->TotalRecs > 0 || $isocountries->isGridEdit()) { ?>
<table id="tbl_isocountrieslist" class="table ew-table"><!-- .ew-table ##-->
<thead>
	<tr class="ew-table-header">
<?php

// Header row
$isocountries_list->RowType = ROWTYPE_HEADER;

// Render list options
$isocountries_list->renderListOptions();

// Render list options (header, left)
$isocountries_list->ListOptions->render("header", "left");
?>
<?php if ($isocountries->isocountries_code->Visible) { // isocountries_code ?>
	<?php if ($isocountries->sortUrl($isocountries->isocountries_code) == "") { ?>
		<th data-name="isocountries_code" class="<?php echo $isocountries->isocountries_code->headerCellClass() ?>"><div id="elh_isocountries_isocountries_code" class="isocountries_isocountries_code"><div class="ew-table-header-caption"><?php echo $isocountries->isocountries_code->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="isocountries_code" class="<?php echo $isocountries->isocountries_code->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $isocountries->SortUrl($isocountries->isocountries_code) ?>',2);"><div id="elh_isocountries_isocountries_code" class="isocountries_isocountries_code">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $isocountries->isocountries_code->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($isocountries->isocountries_code->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($isocountries->isocountries_code->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($isocountries->isocountries_description->Visible) { // isocountries_description ?>
	<?php if ($isocountries->sortUrl($isocountries->isocountries_description) == "") { ?>
		<th data-name="isocountries_description" class="<?php echo $isocountries->isocountries_description->headerCellClass() ?>"><div id="elh_isocountries_isocountries_description" class="isocountries_isocountries_description"><div class="ew-table-header-caption"><?php echo $isocountries->isocountries_description->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="isocountries_description" class="<?php echo $isocountries->isocountries_description->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $isocountries->SortUrl($isocountries->isocountries_description) ?>',2);"><div id="elh_isocountries_isocountries_description" class="isocountries_isocountries_description">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $isocountries->isocountries_description->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($isocountries->isocountries_description->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($isocountries->isocountries_description->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php

// Render list options (header, right)
$isocountries_list->ListOptions->render("header", "right");
?>
	</tr>
</thead>
<tbody>
<?php
if ($isocountries->ExportAll && $isocountries->isExport()) {
	$isocountries_list->StopRec = $isocountries_list->TotalRecs;
} else {

	// Set the last record to display
	if ($isocountries_list->TotalRecs > $isocountries_list->StartRec + $isocountries_list->DisplayRecs - 1)
		$isocountries_list->StopRec = $isocountries_list->StartRec + $isocountries_list->DisplayRecs - 1;
	else
		$isocountries_list->StopRec = $isocountries_list->TotalRecs;
}

// Restore number of post back records
if ($CurrentForm && $isocountries_list->EventCancelled) {
	$CurrentForm->Index = -1;
	if ($CurrentForm->hasValue($isocountries_list->FormKeyCountName) && ($isocountries->isGridAdd() || $isocountries->isGridEdit() || $isocountries->isConfirm())) {
		$isocountries_list->KeyCount = $CurrentForm->getValue($isocountries_list->FormKeyCountName);
		$isocountries_list->StopRec = $isocountries_list->StartRec + $isocountries_list->KeyCount - 1;
	}
}
$isocountries_list->RecCnt = $isocountries_list->StartRec - 1;
if ($isocountries_list->Recordset && !$isocountries_list->Recordset->EOF) {
	$isocountries_list->Recordset->moveFirst();
	$selectLimit = $isocountries_list->UseSelectLimit;
	if (!$selectLimit && $isocountries_list->StartRec > 1)
		$isocountries_list->Recordset->move($isocountries_list->StartRec - 1);
} elseif (!$isocountries->AllowAddDeleteRow && $isocountries_list->StopRec == 0) {
	$isocountries_list->StopRec = $isocountries->GridAddRowCount;
}

// Initialize aggregate
$isocountries->RowType = ROWTYPE_AGGREGATEINIT;
$isocountries->resetAttributes();
$isocountries_list->renderRow();
$isocountries_list->EditRowCnt = 0;
if ($isocountries->isEdit())
	$isocountries_list->RowIndex = 1;
while ($isocountries_list->RecCnt < $isocountries_list->StopRec) {
	$isocountries_list->RecCnt++;
	if ($isocountries_list->RecCnt >= $isocountries_list->StartRec) {
		$isocountries_list->RowCnt++;

		// Set up key count
		$isocountries_list->KeyCount = $isocountries_list->RowIndex;

		// Init row class and style
		$isocountries->resetAttributes();
		$isocountries->CssClass = "";
		if ($isocountries->isGridAdd()) {
			$isocountries_list->loadRowValues(); // Load default values
		} else {
			$isocountries_list->loadRowValues($isocountries_list->Recordset); // Load row values
		}
		$isocountries->RowType = ROWTYPE_VIEW; // Render view
		if ($isocountries->isEdit()) {
			if ($isocountries_list->checkInlineEditKey() && $isocountries_list->EditRowCnt == 0) { // Inline edit
				$isocountries->RowType = ROWTYPE_EDIT; // Render edit
			}
		}
		if ($isocountries->isEdit() && $isocountries->RowType == ROWTYPE_EDIT && $isocountries->EventCancelled) { // Update failed
			$CurrentForm->Index = 1;
			$isocountries_list->restoreFormValues(); // Restore form values
		}
		if ($isocountries->RowType == ROWTYPE_EDIT) // Edit row
			$isocountries_list->EditRowCnt++;

		// Set up row id / data-rowindex
		$isocountries->RowAttrs = array_merge($isocountries->RowAttrs, array('data-rowindex'=>$isocountries_list->RowCnt, 'id'=>'r' . $isocountries_list->RowCnt . '_isocountries', 'data-rowtype'=>$isocountries->RowType));

		// Render row
		$isocountries_list->renderRow();

		// Render list options
		$isocountries_list->renderListOptions();
?>
	<tr<?php echo $isocountries->rowAttributes() ?>>
<?php

// Render list options (body, left)
$isocountries_list->ListOptions->render("body", "left", $isocountries_list->RowCnt);
?>
	<?php if ($isocountries->isocountries_code->Visible) { // isocountries_code ?>
		<td data-name="isocountries_code"<?php echo $isocountries->isocountries_code->cellAttributes() ?>>
<?php if ($isocountries->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $isocountries_list->RowCnt ?>_isocountries_isocountries_code" class="form-group isocountries_isocountries_code">
<input type="text" data-table="isocountries" data-field="x_isocountries_code" name="x<?php echo $isocountries_list->RowIndex ?>_isocountries_code" id="x<?php echo $isocountries_list->RowIndex ?>_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>
<?php } ?>
<?php if ($isocountries->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $isocountries_list->RowCnt ?>_isocountries_isocountries_code" class="isocountries_isocountries_code">
<span<?php echo $isocountries->isocountries_code->viewAttributes() ?>>
<?php echo $isocountries->isocountries_code->getViewValue() ?></span>
</span>
<?php } ?>
</td>
	<?php } ?>
<?php if ($isocountries->RowType == ROWTYPE_EDIT || $isocountries->CurrentMode == "edit") { ?>
<input type="hidden" data-table="isocountries" data-field="x_isocountries_id" name="x<?php echo $isocountries_list->RowIndex ?>_isocountries_id" id="x<?php echo $isocountries_list->RowIndex ?>_isocountries_id" value="<?php echo HtmlEncode($isocountries->isocountries_id->CurrentValue) ?>">
<?php } ?>
	<?php if ($isocountries->isocountries_description->Visible) { // isocountries_description ?>
		<td data-name="isocountries_description"<?php echo $isocountries->isocountries_description->cellAttributes() ?>>
<?php if ($isocountries->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $isocountries_list->RowCnt ?>_isocountries_isocountries_description" class="form-group isocountries_isocountries_description">
<input type="text" data-table="isocountries" data-field="x_isocountries_description" name="x<?php echo $isocountries_list->RowIndex ?>_isocountries_description" id="x<?php echo $isocountries_list->RowIndex ?>_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>
<?php } ?>
<?php if ($isocountries->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $isocountries_list->RowCnt ?>_isocountries_isocountries_description" class="isocountries_isocountries_description">
<span<?php echo $isocountries->isocountries_description->viewAttributes() ?>>
<?php echo $isocountries->isocountries_description->getViewValue() ?></span>
</span>
<?php } ?>
</td>
	<?php } ?>
<?php

// Render list options (body, right)
$isocountries_list->ListOptions->render("body", "right", $isocountries_list->RowCnt);
?>
	</tr>
<?php if ($isocountries->RowType == ROWTYPE_ADD || $isocountries->RowType == ROWTYPE_EDIT) { ?>
<script>
fisocountrieslist.updateLists(<?php echo $isocountries_list->RowIndex ?>);
</script>
<?php } ?>
<?php
	}
	if (!$isocountries->isGridAdd())
		$isocountries_list->Recordset->moveNext();
}
?>
</tbody>
</table><!-- /.ew-table -->
<?php } ?>
<?php if ($isocountries->isEdit()) { ?>
<input type="hidden" name="<?php echo $isocountries_list->FormKeyCountName ?>" id="<?php echo $isocountries_list->FormKeyCountName ?>" value="<?php echo $isocountries_list->KeyCount ?>">
<?php } ?>
<?php if (!$isocountries->CurrentAction) { ?>
<input type="hidden" name="action" id="action" value="">
<?php } ?>
</div><!-- /.ew-grid-middle-panel -->
</form><!-- /.ew-list-form -->
<?php

// Close recordset
if ($isocountries_list->Recordset)
	$isocountries_list->Recordset->Close();
?>
<?php if (!$isocountries->isExport()) { ?>
<div class="card-footer ew-grid-lower-panel">
<?php if (!$isocountries->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($isocountries_list->Pager)) $isocountries_list->Pager = new PrevNextPager($isocountries_list->StartRec, $isocountries_list->DisplayRecs, $isocountries_list->TotalRecs, $isocountries_list->AutoHidePager) ?>
<?php if ($isocountries_list->Pager->RecordCount > 0 && $isocountries_list->Pager->Visible) { ?>
<div class="ew-pager">
<span><?php echo $Language->Phrase("Page") ?>&nbsp;</span>
<div class="ew-prev-next"><div class="input-group input-group-sm">
<div class="input-group-prepend">
<!-- first page button -->
	<?php if ($isocountries_list->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $isocountries_list->pageUrl() ?>start=<?php echo $isocountries_list->Pager->FirstButton->Start ?>"><i class="icon-first ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerFirst") ?>"><i class="icon-first ew-icon"></i></a>
	<?php } ?>
<!-- previous page button -->
	<?php if ($isocountries_list->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $isocountries_list->pageUrl() ?>start=<?php echo $isocountries_list->Pager->PrevButton->Start ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerPrevious") ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } ?>
</div>
<!-- current page number -->
	<input class="form-control" type="text" name="<?php echo TABLE_PAGE_NO ?>" value="<?php echo $isocountries_list->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($isocountries_list->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $isocountries_list->pageUrl() ?>start=<?php echo $isocountries_list->Pager->NextButton->Start ?>"><i class="icon-next ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerNext") ?>"><i class="icon-next ew-icon"></i></a>
	<?php } ?>
<!-- last page button -->
	<?php if ($isocountries_list->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $isocountries_list->pageUrl() ?>start=<?php echo $isocountries_list->Pager->LastButton->Start ?>"><i class="icon-last ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerLast") ?>"><i class="icon-last ew-icon"></i></a>
	<?php } ?>
</div>
</div>
</div>
<span>&nbsp;<?php echo $Language->Phrase("of") ?>&nbsp;<?php echo $isocountries_list->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php if ($isocountries_list->Pager->RecordCount > 0) { ?>
<div class="ew-pager ew-rec">
	<span><?php echo $Language->Phrase("Record") ?>&nbsp;<?php echo $isocountries_list->Pager->FromIndex ?>&nbsp;<?php echo $Language->Phrase("To") ?>&nbsp;<?php echo $isocountries_list->Pager->ToIndex ?>&nbsp;<?php echo $Language->Phrase("Of") ?>&nbsp;<?php echo $isocountries_list->Pager->RecordCount ?></span>
</div>
<?php } ?>
<?php if ($isocountries_list->TotalRecs > 0 && (!$isocountries_list->AutoHidePageSizeSelector || $isocountries_list->Pager->Visible)) { ?>
<div class="ew-pager">
<input type="hidden" name="t" value="isocountries">
<select name="<?php echo TABLE_REC_PER_PAGE ?>" class="form-control form-control-sm ew-tooltip" title="<?php echo $Language->phrase("RecordsPerPage") ?>" onchange="this.form.submit();">
<option value="5"<?php if ($isocountries_list->DisplayRecs == 5) { ?> selected<?php } ?>>5</option>
<option value="10"<?php if ($isocountries_list->DisplayRecs == 10) { ?> selected<?php } ?>>10</option>
<option value="20"<?php if ($isocountries_list->DisplayRecs == 20) { ?> selected<?php } ?>>20</option>
<option value="30"<?php if ($isocountries_list->DisplayRecs == 30) { ?> selected<?php } ?>>30</option>
<option value="40"<?php if ($isocountries_list->DisplayRecs == 40) { ?> selected<?php } ?>>40</option>
<option value="50"<?php if ($isocountries_list->DisplayRecs == 50) { ?> selected<?php } ?>>50</option>
<option value="100"<?php if ($isocountries_list->DisplayRecs == 100) { ?> selected<?php } ?>>100</option>
<option value="200"<?php if ($isocountries_list->DisplayRecs == 200) { ?> selected<?php } ?>>200</option>
<option value="500"<?php if ($isocountries_list->DisplayRecs == 500) { ?> selected<?php } ?>>500</option>
<option value="ALL"<?php if ($isocountries->getRecordsPerPage() == -1) { ?> selected<?php } ?>><?php echo $Language->Phrase("AllRecords") ?></option>
</select>
</div>
<?php } ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $isocountries_list->OtherOptions->render("body", "bottom") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
</div><!-- /.ew-grid -->
<?php } ?>
<?php if ($isocountries_list->TotalRecs == 0 && !$isocountries->CurrentAction) { // Show other options ?>
<div class="ew-list-other-options">
<?php $isocountries_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
<?php } ?>
<?php
$isocountries_list->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$isocountries->isExport()) { ?>
<script>

// Write your table-specific startup script here
// document.write("page loaded");

</script>
<?php if (!$isocountries->isExport()) { ?>
<script>
ew.scrollableTable("gmp_isocountries", "", "");
</script>
<?php } ?>
<?php } ?>
<?php include_once "footer.php" ?>
<?php
$isocountries_list->terminate();
?>
