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

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

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

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

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

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

// Form_CustomValidate event
ffilesdelete.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
ffilesdelete.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 $files_delete->showPageHeader(); ?>
<?php
$files_delete->showMessage();
?>
<form name="ffilesdelete" id="ffilesdelete" class="form-inline ew-form ew-delete-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($files_delete->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $files_delete->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="files">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($files_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 ($files->FileID->Visible) { // FileID ?>
		<th class="<?php echo $files->FileID->headerCellClass() ?>"><span id="elh_files_FileID" class="files_FileID"><?php echo $files->FileID->caption() ?></span></th>
<?php } ?>
<?php if ($files->CaseNumber->Visible) { // CaseNumber ?>
		<th class="<?php echo $files->CaseNumber->headerCellClass() ?>"><span id="elh_files_CaseNumber" class="files_CaseNumber"><?php echo $files->CaseNumber->caption() ?></span></th>
<?php } ?>
<?php if ($files->FileNumber->Visible) { // FileNumber ?>
		<th class="<?php echo $files->FileNumber->headerCellClass() ?>"><span id="elh_files_FileNumber" class="files_FileNumber"><?php echo $files->FileNumber->caption() ?></span></th>
<?php } ?>
<?php if ($files->EnvelopeNumber->Visible) { // EnvelopeNumber ?>
		<th class="<?php echo $files->EnvelopeNumber->headerCellClass() ?>"><span id="elh_files_EnvelopeNumber" class="files_EnvelopeNumber"><?php echo $files->EnvelopeNumber->caption() ?></span></th>
<?php } ?>
<?php if ($files->FileLocation->Visible) { // FileLocation ?>
		<th class="<?php echo $files->FileLocation->headerCellClass() ?>"><span id="elh_files_FileLocation" class="files_FileLocation"><?php echo $files->FileLocation->caption() ?></span></th>
<?php } ?>
<?php if ($files->_Case->Visible) { // Case ?>
		<th class="<?php echo $files->_Case->headerCellClass() ?>"><span id="elh_files__Case" class="files__Case"><?php echo $files->_Case->caption() ?></span></th>
<?php } ?>
<?php if ($files->CaseType->Visible) { // CaseType ?>
		<th class="<?php echo $files->CaseType->headerCellClass() ?>"><span id="elh_files_CaseType" class="files_CaseType"><?php echo $files->CaseType->caption() ?></span></th>
<?php } ?>
<?php if ($files->ClientName->Visible) { // ClientName ?>
		<th class="<?php echo $files->ClientName->headerCellClass() ?>"><span id="elh_files_ClientName" class="files_ClientName"><?php echo $files->ClientName->caption() ?></span></th>
<?php } ?>
<?php if ($files->LitigantName->Visible) { // LitigantName ?>
		<th class="<?php echo $files->LitigantName->headerCellClass() ?>"><span id="elh_files_LitigantName" class="files_LitigantName"><?php echo $files->LitigantName->caption() ?></span></th>
<?php } ?>
<?php if ($files->CourtName->Visible) { // CourtName ?>
		<th class="<?php echo $files->CourtName->headerCellClass() ?>"><span id="elh_files_CourtName" class="files_CourtName"><?php echo $files->CourtName->caption() ?></span></th>
<?php } ?>
<?php if ($files->JudgeName->Visible) { // JudgeName ?>
		<th class="<?php echo $files->JudgeName->headerCellClass() ?>"><span id="elh_files_JudgeName" class="files_JudgeName"><?php echo $files->JudgeName->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$files_delete->RecCnt = 0;
$i = 0;
while (!$files_delete->Recordset->EOF) {
	$files_delete->RecCnt++;
	$files_delete->RowCnt++;

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

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

	// Render row
	$files_delete->renderRow();
?>
	<tr<?php echo $files->rowAttributes() ?>>
<?php if ($files->FileID->Visible) { // FileID ?>
		<td<?php echo $files->FileID->cellAttributes() ?>>
<span id="el<?php echo $files_delete->RowCnt ?>_files_FileID" class="files_FileID">
<span<?php echo $files->FileID->viewAttributes() ?>>
<?php echo $files->FileID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($files->CaseNumber->Visible) { // CaseNumber ?>
		<td<?php echo $files->CaseNumber->cellAttributes() ?>>
<span id="el<?php echo $files_delete->RowCnt ?>_files_CaseNumber" class="files_CaseNumber">
<span<?php echo $files->CaseNumber->viewAttributes() ?>>
<?php echo $files->CaseNumber->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($files->FileNumber->Visible) { // FileNumber ?>
		<td<?php echo $files->FileNumber->cellAttributes() ?>>
<span id="el<?php echo $files_delete->RowCnt ?>_files_FileNumber" class="files_FileNumber">
<span<?php echo $files->FileNumber->viewAttributes() ?>>
<?php echo $files->FileNumber->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($files->EnvelopeNumber->Visible) { // EnvelopeNumber ?>
		<td<?php echo $files->EnvelopeNumber->cellAttributes() ?>>
<span id="el<?php echo $files_delete->RowCnt ?>_files_EnvelopeNumber" class="files_EnvelopeNumber">
<span<?php echo $files->EnvelopeNumber->viewAttributes() ?>>
<?php echo $files->EnvelopeNumber->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($files->FileLocation->Visible) { // FileLocation ?>
		<td<?php echo $files->FileLocation->cellAttributes() ?>>
<span id="el<?php echo $files_delete->RowCnt ?>_files_FileLocation" class="files_FileLocation">
<span<?php echo $files->FileLocation->viewAttributes() ?>>
<?php echo $files->FileLocation->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($files->_Case->Visible) { // Case ?>
		<td<?php echo $files->_Case->cellAttributes() ?>>
<span id="el<?php echo $files_delete->RowCnt ?>_files__Case" class="files__Case">
<span<?php echo $files->_Case->viewAttributes() ?>>
<?php echo $files->_Case->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($files->CaseType->Visible) { // CaseType ?>
		<td<?php echo $files->CaseType->cellAttributes() ?>>
<span id="el<?php echo $files_delete->RowCnt ?>_files_CaseType" class="files_CaseType">
<span<?php echo $files->CaseType->viewAttributes() ?>>
<?php echo $files->CaseType->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($files->ClientName->Visible) { // ClientName ?>
		<td<?php echo $files->ClientName->cellAttributes() ?>>
<span id="el<?php echo $files_delete->RowCnt ?>_files_ClientName" class="files_ClientName">
<span<?php echo $files->ClientName->viewAttributes() ?>>
<?php echo $files->ClientName->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($files->LitigantName->Visible) { // LitigantName ?>
		<td<?php echo $files->LitigantName->cellAttributes() ?>>
<span id="el<?php echo $files_delete->RowCnt ?>_files_LitigantName" class="files_LitigantName">
<span<?php echo $files->LitigantName->viewAttributes() ?>>
<?php echo $files->LitigantName->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($files->CourtName->Visible) { // CourtName ?>
		<td<?php echo $files->CourtName->cellAttributes() ?>>
<span id="el<?php echo $files_delete->RowCnt ?>_files_CourtName" class="files_CourtName">
<span<?php echo $files->CourtName->viewAttributes() ?>>
<?php echo $files->CourtName->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($files->JudgeName->Visible) { // JudgeName ?>
		<td<?php echo $files->JudgeName->cellAttributes() ?>>
<span id="el<?php echo $files_delete->RowCnt ?>_files_JudgeName" class="files_JudgeName">
<span<?php echo $files->JudgeName->viewAttributes() ?>>
<?php echo $files->JudgeName->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$files_delete->Recordset->moveNext();
}
$files_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 $files_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$files_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
$files_delete->terminate();
?>
