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

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

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

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

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

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

// Form_CustomValidate event
fenvelopesdelete.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
fenvelopesdelete.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 $envelopes_delete->showPageHeader(); ?>
<?php
$envelopes_delete->showMessage();
?>
<form name="fenvelopesdelete" id="fenvelopesdelete" class="form-inline ew-form ew-delete-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($envelopes_delete->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $envelopes_delete->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="envelopes">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($envelopes_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 ($envelopes->CaseNumber->Visible) { // CaseNumber ?>
		<th class="<?php echo $envelopes->CaseNumber->headerCellClass() ?>"><span id="elh_envelopes_CaseNumber" class="envelopes_CaseNumber"><?php echo $envelopes->CaseNumber->caption() ?></span></th>
<?php } ?>
<?php if ($envelopes->FileNumber->Visible) { // FileNumber ?>
		<th class="<?php echo $envelopes->FileNumber->headerCellClass() ?>"><span id="elh_envelopes_FileNumber" class="envelopes_FileNumber"><?php echo $envelopes->FileNumber->caption() ?></span></th>
<?php } ?>
<?php if ($envelopes->EnvelopeNumber->Visible) { // EnvelopeNumber ?>
		<th class="<?php echo $envelopes->EnvelopeNumber->headerCellClass() ?>"><span id="elh_envelopes_EnvelopeNumber" class="envelopes_EnvelopeNumber"><?php echo $envelopes->EnvelopeNumber->caption() ?></span></th>
<?php } ?>
<?php if ($envelopes->FileLocation->Visible) { // FileLocation ?>
		<th class="<?php echo $envelopes->FileLocation->headerCellClass() ?>"><span id="elh_envelopes_FileLocation" class="envelopes_FileLocation"><?php echo $envelopes->FileLocation->caption() ?></span></th>
<?php } ?>
<?php if ($envelopes->_Case->Visible) { // Case ?>
		<th class="<?php echo $envelopes->_Case->headerCellClass() ?>"><span id="elh_envelopes__Case" class="envelopes__Case"><?php echo $envelopes->_Case->caption() ?></span></th>
<?php } ?>
<?php if ($envelopes->CaseEn->Visible) { // CaseEn ?>
		<th class="<?php echo $envelopes->CaseEn->headerCellClass() ?>"><span id="elh_envelopes_CaseEn" class="envelopes_CaseEn"><?php echo $envelopes->CaseEn->caption() ?></span></th>
<?php } ?>
<?php if ($envelopes->CaseType->Visible) { // CaseType ?>
		<th class="<?php echo $envelopes->CaseType->headerCellClass() ?>"><span id="elh_envelopes_CaseType" class="envelopes_CaseType"><?php echo $envelopes->CaseType->caption() ?></span></th>
<?php } ?>
<?php if ($envelopes->ClientName->Visible) { // ClientName ?>
		<th class="<?php echo $envelopes->ClientName->headerCellClass() ?>"><span id="elh_envelopes_ClientName" class="envelopes_ClientName"><?php echo $envelopes->ClientName->caption() ?></span></th>
<?php } ?>
<?php if ($envelopes->LitigantName->Visible) { // LitigantName ?>
		<th class="<?php echo $envelopes->LitigantName->headerCellClass() ?>"><span id="elh_envelopes_LitigantName" class="envelopes_LitigantName"><?php echo $envelopes->LitigantName->caption() ?></span></th>
<?php } ?>
<?php if ($envelopes->CourtName->Visible) { // CourtName ?>
		<th class="<?php echo $envelopes->CourtName->headerCellClass() ?>"><span id="elh_envelopes_CourtName" class="envelopes_CourtName"><?php echo $envelopes->CourtName->caption() ?></span></th>
<?php } ?>
<?php if ($envelopes->CourtID->Visible) { // CourtID ?>
		<th class="<?php echo $envelopes->CourtID->headerCellClass() ?>"><span id="elh_envelopes_CourtID" class="envelopes_CourtID"><?php echo $envelopes->CourtID->caption() ?></span></th>
<?php } ?>
<?php if ($envelopes->CourtTypeName->Visible) { // CourtTypeName ?>
		<th class="<?php echo $envelopes->CourtTypeName->headerCellClass() ?>"><span id="elh_envelopes_CourtTypeName" class="envelopes_CourtTypeName"><?php echo $envelopes->CourtTypeName->caption() ?></span></th>
<?php } ?>
<?php if ($envelopes->CourtGenderName->Visible) { // CourtGenderName ?>
		<th class="<?php echo $envelopes->CourtGenderName->headerCellClass() ?>"><span id="elh_envelopes_CourtGenderName" class="envelopes_CourtGenderName"><?php echo $envelopes->CourtGenderName->caption() ?></span></th>
<?php } ?>
<?php if ($envelopes->JudgeName->Visible) { // JudgeName ?>
		<th class="<?php echo $envelopes->JudgeName->headerCellClass() ?>"><span id="elh_envelopes_JudgeName" class="envelopes_JudgeName"><?php echo $envelopes->JudgeName->caption() ?></span></th>
<?php } ?>
<?php if ($envelopes->ClientID->Visible) { // ClientID ?>
		<th class="<?php echo $envelopes->ClientID->headerCellClass() ?>"><span id="elh_envelopes_ClientID" class="envelopes_ClientID"><?php echo $envelopes->ClientID->caption() ?></span></th>
<?php } ?>
<?php if ($envelopes->LitigantID->Visible) { // LitigantID ?>
		<th class="<?php echo $envelopes->LitigantID->headerCellClass() ?>"><span id="elh_envelopes_LitigantID" class="envelopes_LitigantID"><?php echo $envelopes->LitigantID->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$envelopes_delete->RecCnt = 0;
$i = 0;
while (!$envelopes_delete->Recordset->EOF) {
	$envelopes_delete->RecCnt++;
	$envelopes_delete->RowCnt++;

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

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

	// Render row
	$envelopes_delete->renderRow();
?>
	<tr<?php echo $envelopes->rowAttributes() ?>>
<?php if ($envelopes->CaseNumber->Visible) { // CaseNumber ?>
		<td<?php echo $envelopes->CaseNumber->cellAttributes() ?>>
<span id="el<?php echo $envelopes_delete->RowCnt ?>_envelopes_CaseNumber" class="envelopes_CaseNumber">
<span<?php echo $envelopes->CaseNumber->viewAttributes() ?>>
<?php echo $envelopes->CaseNumber->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($envelopes->FileNumber->Visible) { // FileNumber ?>
		<td<?php echo $envelopes->FileNumber->cellAttributes() ?>>
<span id="el<?php echo $envelopes_delete->RowCnt ?>_envelopes_FileNumber" class="envelopes_FileNumber">
<span<?php echo $envelopes->FileNumber->viewAttributes() ?>>
<?php echo $envelopes->FileNumber->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($envelopes->EnvelopeNumber->Visible) { // EnvelopeNumber ?>
		<td<?php echo $envelopes->EnvelopeNumber->cellAttributes() ?>>
<span id="el<?php echo $envelopes_delete->RowCnt ?>_envelopes_EnvelopeNumber" class="envelopes_EnvelopeNumber">
<span<?php echo $envelopes->EnvelopeNumber->viewAttributes() ?>>
<?php echo $envelopes->EnvelopeNumber->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($envelopes->FileLocation->Visible) { // FileLocation ?>
		<td<?php echo $envelopes->FileLocation->cellAttributes() ?>>
<span id="el<?php echo $envelopes_delete->RowCnt ?>_envelopes_FileLocation" class="envelopes_FileLocation">
<span<?php echo $envelopes->FileLocation->viewAttributes() ?>>
<?php echo $envelopes->FileLocation->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($envelopes->_Case->Visible) { // Case ?>
		<td<?php echo $envelopes->_Case->cellAttributes() ?>>
<span id="el<?php echo $envelopes_delete->RowCnt ?>_envelopes__Case" class="envelopes__Case">
<span<?php echo $envelopes->_Case->viewAttributes() ?>>
<?php echo $envelopes->_Case->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($envelopes->CaseEn->Visible) { // CaseEn ?>
		<td<?php echo $envelopes->CaseEn->cellAttributes() ?>>
<span id="el<?php echo $envelopes_delete->RowCnt ?>_envelopes_CaseEn" class="envelopes_CaseEn">
<span<?php echo $envelopes->CaseEn->viewAttributes() ?>>
<?php echo $envelopes->CaseEn->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($envelopes->CaseType->Visible) { // CaseType ?>
		<td<?php echo $envelopes->CaseType->cellAttributes() ?>>
<span id="el<?php echo $envelopes_delete->RowCnt ?>_envelopes_CaseType" class="envelopes_CaseType">
<span<?php echo $envelopes->CaseType->viewAttributes() ?>>
<?php echo $envelopes->CaseType->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($envelopes->ClientName->Visible) { // ClientName ?>
		<td<?php echo $envelopes->ClientName->cellAttributes() ?>>
<span id="el<?php echo $envelopes_delete->RowCnt ?>_envelopes_ClientName" class="envelopes_ClientName">
<span<?php echo $envelopes->ClientName->viewAttributes() ?>>
<?php echo $envelopes->ClientName->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($envelopes->LitigantName->Visible) { // LitigantName ?>
		<td<?php echo $envelopes->LitigantName->cellAttributes() ?>>
<span id="el<?php echo $envelopes_delete->RowCnt ?>_envelopes_LitigantName" class="envelopes_LitigantName">
<span<?php echo $envelopes->LitigantName->viewAttributes() ?>>
<?php echo $envelopes->LitigantName->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($envelopes->CourtName->Visible) { // CourtName ?>
		<td<?php echo $envelopes->CourtName->cellAttributes() ?>>
<span id="el<?php echo $envelopes_delete->RowCnt ?>_envelopes_CourtName" class="envelopes_CourtName">
<span<?php echo $envelopes->CourtName->viewAttributes() ?>>
<?php echo $envelopes->CourtName->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($envelopes->CourtID->Visible) { // CourtID ?>
		<td<?php echo $envelopes->CourtID->cellAttributes() ?>>
<span id="el<?php echo $envelopes_delete->RowCnt ?>_envelopes_CourtID" class="envelopes_CourtID">
<span<?php echo $envelopes->CourtID->viewAttributes() ?>>
<?php echo $envelopes->CourtID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($envelopes->CourtTypeName->Visible) { // CourtTypeName ?>
		<td<?php echo $envelopes->CourtTypeName->cellAttributes() ?>>
<span id="el<?php echo $envelopes_delete->RowCnt ?>_envelopes_CourtTypeName" class="envelopes_CourtTypeName">
<span<?php echo $envelopes->CourtTypeName->viewAttributes() ?>>
<?php echo $envelopes->CourtTypeName->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($envelopes->CourtGenderName->Visible) { // CourtGenderName ?>
		<td<?php echo $envelopes->CourtGenderName->cellAttributes() ?>>
<span id="el<?php echo $envelopes_delete->RowCnt ?>_envelopes_CourtGenderName" class="envelopes_CourtGenderName">
<span<?php echo $envelopes->CourtGenderName->viewAttributes() ?>>
<?php echo $envelopes->CourtGenderName->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($envelopes->JudgeName->Visible) { // JudgeName ?>
		<td<?php echo $envelopes->JudgeName->cellAttributes() ?>>
<span id="el<?php echo $envelopes_delete->RowCnt ?>_envelopes_JudgeName" class="envelopes_JudgeName">
<span<?php echo $envelopes->JudgeName->viewAttributes() ?>>
<?php echo $envelopes->JudgeName->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($envelopes->ClientID->Visible) { // ClientID ?>
		<td<?php echo $envelopes->ClientID->cellAttributes() ?>>
<span id="el<?php echo $envelopes_delete->RowCnt ?>_envelopes_ClientID" class="envelopes_ClientID">
<span<?php echo $envelopes->ClientID->viewAttributes() ?>>
<?php echo $envelopes->ClientID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($envelopes->LitigantID->Visible) { // LitigantID ?>
		<td<?php echo $envelopes->LitigantID->cellAttributes() ?>>
<span id="el<?php echo $envelopes_delete->RowCnt ?>_envelopes_LitigantID" class="envelopes_LitigantID">
<span<?php echo $envelopes->LitigantID->viewAttributes() ?>>
<?php echo $envelopes->LitigantID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$envelopes_delete->Recordset->moveNext();
}
$envelopes_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 $envelopes_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$envelopes_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
$envelopes_delete->terminate();
?>
