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

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

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

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

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

// Form object
currentPageID = ew.PAGE_ID = "delete";
var faddresstypedelete = currentForm = new ew.Form("faddresstypedelete", "delete");

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

// Dynamic selection lists
// Form object for search

</script>
<script>

// Write your client script here, no need to add script tags.
</script>
<?php $addresstype_delete->showPageHeader(); ?>
<?php
$addresstype_delete->showMessage();
?>
<form name="faddresstypedelete" id="faddresstypedelete" class="form-inline ew-form ew-delete-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($addresstype_delete->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $addresstype_delete->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="addresstype">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($addresstype_delete->RecKeys as $key) { ?>
<?php $keyvalue = is_array($key) ? implode($COMPOSITE_KEY_SEPARATOR, $key) : $key; ?>
<input type="hidden" name="key_m[]" value="<?php echo HtmlEncode($keyvalue) ?>">
<?php } ?>
<div class="card ew-card ew-grid">
<div class="<?php if (IsResponsiveLayout()) { ?>table-responsive <?php } ?>card-body ew-grid-middle-panel">
<table class="table ew-table">
	<thead>
	<tr class="ew-table-header">
<?php if ($addresstype->AddressTypeID->Visible) { // AddressTypeID ?>
		<th class="<?php echo $addresstype->AddressTypeID->headerCellClass() ?>"><span id="elh_addresstype_AddressTypeID" class="addresstype_AddressTypeID"><?php echo $addresstype->AddressTypeID->caption() ?></span></th>
<?php } ?>
<?php if ($addresstype->AddressType->Visible) { // AddressType ?>
		<th class="<?php echo $addresstype->AddressType->headerCellClass() ?>"><span id="elh_addresstype_AddressType" class="addresstype_AddressType"><?php echo $addresstype->AddressType->caption() ?></span></th>
<?php } ?>
<?php if ($addresstype->AddressTypeEn->Visible) { // AddressTypeEn ?>
		<th class="<?php echo $addresstype->AddressTypeEn->headerCellClass() ?>"><span id="elh_addresstype_AddressTypeEn" class="addresstype_AddressTypeEn"><?php echo $addresstype->AddressTypeEn->caption() ?></span></th>
<?php } ?>
<?php if ($addresstype->Notes->Visible) { // Notes ?>
		<th class="<?php echo $addresstype->Notes->headerCellClass() ?>"><span id="elh_addresstype_Notes" class="addresstype_Notes"><?php echo $addresstype->Notes->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$addresstype_delete->RecCnt = 0;
$i = 0;
while (!$addresstype_delete->Recordset->EOF) {
	$addresstype_delete->RecCnt++;
	$addresstype_delete->RowCnt++;

	// Set row properties
	$addresstype->resetAttributes();
	$addresstype->RowType = ROWTYPE_VIEW; // View

	// Get the field contents
	$addresstype_delete->loadRowValues($addresstype_delete->Recordset);

	// Render row
	$addresstype_delete->renderRow();
?>
	<tr<?php echo $addresstype->rowAttributes() ?>>
<?php if ($addresstype->AddressTypeID->Visible) { // AddressTypeID ?>
		<td<?php echo $addresstype->AddressTypeID->cellAttributes() ?>>
<span id="el<?php echo $addresstype_delete->RowCnt ?>_addresstype_AddressTypeID" class="addresstype_AddressTypeID">
<span<?php echo $addresstype->AddressTypeID->viewAttributes() ?>>
<?php echo $addresstype->AddressTypeID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($addresstype->AddressType->Visible) { // AddressType ?>
		<td<?php echo $addresstype->AddressType->cellAttributes() ?>>
<span id="el<?php echo $addresstype_delete->RowCnt ?>_addresstype_AddressType" class="addresstype_AddressType">
<span<?php echo $addresstype->AddressType->viewAttributes() ?>>
<?php echo $addresstype->AddressType->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($addresstype->AddressTypeEn->Visible) { // AddressTypeEn ?>
		<td<?php echo $addresstype->AddressTypeEn->cellAttributes() ?>>
<span id="el<?php echo $addresstype_delete->RowCnt ?>_addresstype_AddressTypeEn" class="addresstype_AddressTypeEn">
<span<?php echo $addresstype->AddressTypeEn->viewAttributes() ?>>
<?php echo $addresstype->AddressTypeEn->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($addresstype->Notes->Visible) { // Notes ?>
		<td<?php echo $addresstype->Notes->cellAttributes() ?>>
<span id="el<?php echo $addresstype_delete->RowCnt ?>_addresstype_Notes" class="addresstype_Notes">
<span<?php echo $addresstype->Notes->viewAttributes() ?>>
<?php echo $addresstype->Notes->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$addresstype_delete->Recordset->moveNext();
}
$addresstype_delete->Recordset->close();
?>
</tbody>
</table>
</div>
</div>
<div>
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?php echo $Language->phrase("DeleteBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?php echo $addresstype_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$addresstype_delete->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
$addresstype_delete->terminate();
?>
