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

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

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

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

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

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

// Form_CustomValidate event
ftmp_errordelete.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
ftmp_errordelete.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 $tmp_error_delete->showPageHeader(); ?>
<?php
$tmp_error_delete->showMessage();
?>
<form name="ftmp_errordelete" id="ftmp_errordelete" class="form-inline ew-form ew-delete-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($tmp_error_delete->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $tmp_error_delete->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="tmp_error">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($tmp_error_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 ($tmp_error->id->Visible) { // id ?>
		<th class="<?php echo $tmp_error->id->headerCellClass() ?>"><span id="elh_tmp_error_id" class="tmp_error_id"><?php echo $tmp_error->id->caption() ?></span></th>
<?php } ?>
<?php if ($tmp_error->error_date->Visible) { // error_date ?>
		<th class="<?php echo $tmp_error->error_date->headerCellClass() ?>"><span id="elh_tmp_error_error_date" class="tmp_error_error_date"><?php echo $tmp_error->error_date->caption() ?></span></th>
<?php } ?>
<?php if ($tmp_error->audit_time->Visible) { // audit_time ?>
		<th class="<?php echo $tmp_error->audit_time->headerCellClass() ?>"><span id="elh_tmp_error_audit_time" class="tmp_error_audit_time"><?php echo $tmp_error->audit_time->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$tmp_error_delete->RecCnt = 0;
$i = 0;
while (!$tmp_error_delete->Recordset->EOF) {
	$tmp_error_delete->RecCnt++;
	$tmp_error_delete->RowCnt++;

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

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

	// Render row
	$tmp_error_delete->renderRow();
?>
	<tr<?php echo $tmp_error->rowAttributes() ?>>
<?php if ($tmp_error->id->Visible) { // id ?>
		<td<?php echo $tmp_error->id->cellAttributes() ?>>
<span id="el<?php echo $tmp_error_delete->RowCnt ?>_tmp_error_id" class="tmp_error_id">
<span<?php echo $tmp_error->id->viewAttributes() ?>>
<?php echo $tmp_error->id->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($tmp_error->error_date->Visible) { // error_date ?>
		<td<?php echo $tmp_error->error_date->cellAttributes() ?>>
<span id="el<?php echo $tmp_error_delete->RowCnt ?>_tmp_error_error_date" class="tmp_error_error_date">
<span<?php echo $tmp_error->error_date->viewAttributes() ?>>
<?php echo $tmp_error->error_date->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($tmp_error->audit_time->Visible) { // audit_time ?>
		<td<?php echo $tmp_error->audit_time->cellAttributes() ?>>
<span id="el<?php echo $tmp_error_delete->RowCnt ?>_tmp_error_audit_time" class="tmp_error_audit_time">
<span<?php echo $tmp_error->audit_time->viewAttributes() ?>>
<?php echo $tmp_error->audit_time->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$tmp_error_delete->Recordset->moveNext();
}
$tmp_error_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 $tmp_error_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$tmp_error_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
$tmp_error_delete->terminate();
?>
