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

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

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

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

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

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

// Form_CustomValidate event
fnotificationsdelete.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
fnotificationsdelete.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 $notifications_delete->showPageHeader(); ?>
<?php
$notifications_delete->showMessage();
?>
<form name="fnotificationsdelete" id="fnotificationsdelete" class="form-inline ew-form ew-delete-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($notifications_delete->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $notifications_delete->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="notifications">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($notifications_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 ($notifications->CaseNumber->Visible) { // CaseNumber ?>
		<th class="<?php echo $notifications->CaseNumber->headerCellClass() ?>"><span id="elh_notifications_CaseNumber" class="notifications_CaseNumber"><?php echo $notifications->CaseNumber->caption() ?></span></th>
<?php } ?>
<?php if ($notifications->Notification->Visible) { // Notification ?>
		<th class="<?php echo $notifications->Notification->headerCellClass() ?>"><span id="elh_notifications_Notification" class="notifications_Notification"><?php echo $notifications->Notification->caption() ?></span></th>
<?php } ?>
<?php if ($notifications->NotificationDate->Visible) { // NotificationDate ?>
		<th class="<?php echo $notifications->NotificationDate->headerCellClass() ?>"><span id="elh_notifications_NotificationDate" class="notifications_NotificationDate"><?php echo $notifications->NotificationDate->caption() ?></span></th>
<?php } ?>
<?php if ($notifications->NotificationTime->Visible) { // NotificationTime ?>
		<th class="<?php echo $notifications->NotificationTime->headerCellClass() ?>"><span id="elh_notifications_NotificationTime" class="notifications_NotificationTime"><?php echo $notifications->NotificationTime->caption() ?></span></th>
<?php } ?>
<?php if ($notifications->Notes->Visible) { // Notes ?>
		<th class="<?php echo $notifications->Notes->headerCellClass() ?>"><span id="elh_notifications_Notes" class="notifications_Notes"><?php echo $notifications->Notes->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$notifications_delete->RecCnt = 0;
$i = 0;
while (!$notifications_delete->Recordset->EOF) {
	$notifications_delete->RecCnt++;
	$notifications_delete->RowCnt++;

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

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

	// Render row
	$notifications_delete->renderRow();
?>
	<tr<?php echo $notifications->rowAttributes() ?>>
<?php if ($notifications->CaseNumber->Visible) { // CaseNumber ?>
		<td<?php echo $notifications->CaseNumber->cellAttributes() ?>>
<span id="el<?php echo $notifications_delete->RowCnt ?>_notifications_CaseNumber" class="notifications_CaseNumber">
<span<?php echo $notifications->CaseNumber->viewAttributes() ?>>
<?php echo $notifications->CaseNumber->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($notifications->Notification->Visible) { // Notification ?>
		<td<?php echo $notifications->Notification->cellAttributes() ?>>
<span id="el<?php echo $notifications_delete->RowCnt ?>_notifications_Notification" class="notifications_Notification">
<span<?php echo $notifications->Notification->viewAttributes() ?>>
<?php echo $notifications->Notification->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($notifications->NotificationDate->Visible) { // NotificationDate ?>
		<td<?php echo $notifications->NotificationDate->cellAttributes() ?>>
<span id="el<?php echo $notifications_delete->RowCnt ?>_notifications_NotificationDate" class="notifications_NotificationDate">
<span<?php echo $notifications->NotificationDate->viewAttributes() ?>>
<?php echo $notifications->NotificationDate->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($notifications->NotificationTime->Visible) { // NotificationTime ?>
		<td<?php echo $notifications->NotificationTime->cellAttributes() ?>>
<span id="el<?php echo $notifications_delete->RowCnt ?>_notifications_NotificationTime" class="notifications_NotificationTime">
<span<?php echo $notifications->NotificationTime->viewAttributes() ?>>
<?php echo $notifications->NotificationTime->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($notifications->Notes->Visible) { // Notes ?>
		<td<?php echo $notifications->Notes->cellAttributes() ?>>
<span id="el<?php echo $notifications_delete->RowCnt ?>_notifications_Notes" class="notifications_Notes">
<span<?php echo $notifications->Notes->viewAttributes() ?>>
<?php echo $notifications->Notes->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$notifications_delete->Recordset->moveNext();
}
$notifications_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 $notifications_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$notifications_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
$notifications_delete->terminate();
?>
