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

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

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

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

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

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

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

});
</script>
<?php $categories_delete->showPageHeader(); ?>
<?php
$categories_delete->showMessage();
?>
<form name="fcategoriesdelete" id="fcategoriesdelete" 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="categories">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($categories_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 ($categories_delete->id->Visible) { // id ?>
		<th class="<?php echo $categories_delete->id->headerCellClass() ?>"><span id="elh_categories_id" class="categories_id"><?php echo $categories_delete->id->caption() ?></span></th>
<?php } ?>
<?php if ($categories_delete->courses_id->Visible) { // courses_id ?>
		<th class="<?php echo $categories_delete->courses_id->headerCellClass() ?>"><span id="elh_categories_courses_id" class="categories_courses_id"><?php echo $categories_delete->courses_id->caption() ?></span></th>
<?php } ?>
<?php if ($categories_delete->category_name->Visible) { // category_name ?>
		<th class="<?php echo $categories_delete->category_name->headerCellClass() ?>"><span id="elh_categories_category_name" class="categories_category_name"><?php echo $categories_delete->category_name->caption() ?></span></th>
<?php } ?>
<?php if ($categories_delete->description->Visible) { // description ?>
		<th class="<?php echo $categories_delete->description->headerCellClass() ?>"><span id="elh_categories_description" class="categories_description"><?php echo $categories_delete->description->caption() ?></span></th>
<?php } ?>
<?php if ($categories_delete->time->Visible) { // time ?>
		<th class="<?php echo $categories_delete->time->headerCellClass() ?>"><span id="elh_categories_time" class="categories_time"><?php echo $categories_delete->time->caption() ?></span></th>
<?php } ?>
<?php if ($categories_delete->estado->Visible) { // estado ?>
		<th class="<?php echo $categories_delete->estado->headerCellClass() ?>"><span id="elh_categories_estado" class="categories_estado"><?php echo $categories_delete->estado->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$categories_delete->RecordCount = 0;
$i = 0;
while (!$categories_delete->Recordset->EOF) {
	$categories_delete->RecordCount++;
	$categories_delete->RowCount++;

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

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

	// Render row
	$categories_delete->renderRow();
?>
	<tr <?php echo $categories->rowAttributes() ?>>
<?php if ($categories_delete->id->Visible) { // id ?>
		<td <?php echo $categories_delete->id->cellAttributes() ?>>
<span id="el<?php echo $categories_delete->RowCount ?>_categories_id" class="categories_id">
<span<?php echo $categories_delete->id->viewAttributes() ?>><?php echo $categories_delete->id->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($categories_delete->courses_id->Visible) { // courses_id ?>
		<td <?php echo $categories_delete->courses_id->cellAttributes() ?>>
<span id="el<?php echo $categories_delete->RowCount ?>_categories_courses_id" class="categories_courses_id">
<span<?php echo $categories_delete->courses_id->viewAttributes() ?>><?php echo $categories_delete->courses_id->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($categories_delete->category_name->Visible) { // category_name ?>
		<td <?php echo $categories_delete->category_name->cellAttributes() ?>>
<span id="el<?php echo $categories_delete->RowCount ?>_categories_category_name" class="categories_category_name">
<span<?php echo $categories_delete->category_name->viewAttributes() ?>><?php echo $categories_delete->category_name->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($categories_delete->description->Visible) { // description ?>
		<td <?php echo $categories_delete->description->cellAttributes() ?>>
<span id="el<?php echo $categories_delete->RowCount ?>_categories_description" class="categories_description">
<span<?php echo $categories_delete->description->viewAttributes() ?>><?php echo $categories_delete->description->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($categories_delete->time->Visible) { // time ?>
		<td <?php echo $categories_delete->time->cellAttributes() ?>>
<span id="el<?php echo $categories_delete->RowCount ?>_categories_time" class="categories_time">
<span<?php echo $categories_delete->time->viewAttributes() ?>><?php echo $categories_delete->time->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($categories_delete->estado->Visible) { // estado ?>
		<td <?php echo $categories_delete->estado->cellAttributes() ?>>
<span id="el<?php echo $categories_delete->RowCount ?>_categories_estado" class="categories_estado">
<span<?php echo $categories_delete->estado->viewAttributes() ?>><?php echo $categories_delete->estado->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$categories_delete->Recordset->moveNext();
}
$categories_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 $categories_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$categories_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
$categories_delete->terminate();
?>