<?php
namespace PHPMaker2020\project2;

// 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
$ubigeo_peru_departments_delete = new ubigeo_peru_departments_delete();

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

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

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

// Page Rendering event
$ubigeo_peru_departments_delete->Page_Render();
?>
<?php include_once "header.php"; ?>
<script>
var fubigeo_peru_departmentsdelete, currentPageID;
loadjs.ready("head", function() {

	// Form object
	currentPageID = ew.PAGE_ID = "delete";
	fubigeo_peru_departmentsdelete = currentForm = new ew.Form("fubigeo_peru_departmentsdelete", "delete");
	loadjs.done("fubigeo_peru_departmentsdelete");
});
</script>
<script>
loadjs.ready("head", function() {

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

});
</script>
<?php $ubigeo_peru_departments_delete->showPageHeader(); ?>
<?php
$ubigeo_peru_departments_delete->showMessage();
?>
<form name="fubigeo_peru_departmentsdelete" id="fubigeo_peru_departmentsdelete" class="form-inline ew-form ew-delete-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="ubigeo_peru_departments">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($ubigeo_peru_departments_delete->RecKeys as $key) { ?>
<?php $keyvalue = is_array($key) ? implode(Config("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 echo ResponsiveTableClass() ?>card-body ew-grid-middle-panel">
<table class="table ew-table">
	<thead>
	<tr class="ew-table-header">
<?php if ($ubigeo_peru_departments_delete->id->Visible) { // id ?>
		<th class="<?php echo $ubigeo_peru_departments_delete->id->headerCellClass() ?>"><span id="elh_ubigeo_peru_departments_id" class="ubigeo_peru_departments_id"><?php echo $ubigeo_peru_departments_delete->id->caption() ?></span></th>
<?php } ?>
<?php if ($ubigeo_peru_departments_delete->name->Visible) { // name ?>
		<th class="<?php echo $ubigeo_peru_departments_delete->name->headerCellClass() ?>"><span id="elh_ubigeo_peru_departments_name" class="ubigeo_peru_departments_name"><?php echo $ubigeo_peru_departments_delete->name->caption() ?></span></th>
<?php } ?>
<?php if ($ubigeo_peru_departments_delete->id_pais->Visible) { // id_pais ?>
		<th class="<?php echo $ubigeo_peru_departments_delete->id_pais->headerCellClass() ?>"><span id="elh_ubigeo_peru_departments_id_pais" class="ubigeo_peru_departments_id_pais"><?php echo $ubigeo_peru_departments_delete->id_pais->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$ubigeo_peru_departments_delete->RecordCount = 0;
$i = 0;
while (!$ubigeo_peru_departments_delete->Recordset->EOF) {
	$ubigeo_peru_departments_delete->RecordCount++;
	$ubigeo_peru_departments_delete->RowCount++;

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

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

	// Render row
	$ubigeo_peru_departments_delete->renderRow();
?>
	<tr <?php echo $ubigeo_peru_departments->rowAttributes() ?>>
<?php if ($ubigeo_peru_departments_delete->id->Visible) { // id ?>
		<td <?php echo $ubigeo_peru_departments_delete->id->cellAttributes() ?>>
<span id="el<?php echo $ubigeo_peru_departments_delete->RowCount ?>_ubigeo_peru_departments_id" class="ubigeo_peru_departments_id">
<span<?php echo $ubigeo_peru_departments_delete->id->viewAttributes() ?>><?php echo $ubigeo_peru_departments_delete->id->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($ubigeo_peru_departments_delete->name->Visible) { // name ?>
		<td <?php echo $ubigeo_peru_departments_delete->name->cellAttributes() ?>>
<span id="el<?php echo $ubigeo_peru_departments_delete->RowCount ?>_ubigeo_peru_departments_name" class="ubigeo_peru_departments_name">
<span<?php echo $ubigeo_peru_departments_delete->name->viewAttributes() ?>><?php echo $ubigeo_peru_departments_delete->name->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($ubigeo_peru_departments_delete->id_pais->Visible) { // id_pais ?>
		<td <?php echo $ubigeo_peru_departments_delete->id_pais->cellAttributes() ?>>
<span id="el<?php echo $ubigeo_peru_departments_delete->RowCount ?>_ubigeo_peru_departments_id_pais" class="ubigeo_peru_departments_id_pais">
<span<?php echo $ubigeo_peru_departments_delete->id_pais->viewAttributes() ?>><?php echo $ubigeo_peru_departments_delete->id_pais->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$ubigeo_peru_departments_delete->Recordset->moveNext();
}
$ubigeo_peru_departments_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 $ubigeo_peru_departments_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$ubigeo_peru_departments_delete->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<script>
loadjs.ready("load", function() {

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

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