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

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

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

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

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

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

// Form_CustomValidate event
flitigantsdelete.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
flitigantsdelete.validateRequired = <?php echo json_encode(CLIENT_VALIDATE) ?>;

// Dynamic selection lists
flitigantsdelete.lists["x_LitigantTypeID"] = <?php echo $litigants_delete->LitigantTypeID->Lookup->toClientList() ?>;
flitigantsdelete.lists["x_LitigantTypeID"].options = <?php echo JsonEncode($litigants_delete->LitigantTypeID->lookupOptions()) ?>;
flitigantsdelete.lists["x_LitigantGroupID"] = <?php echo $litigants_delete->LitigantGroupID->Lookup->toClientList() ?>;
flitigantsdelete.lists["x_LitigantGroupID"].options = <?php echo JsonEncode($litigants_delete->LitigantGroupID->lookupOptions()) ?>;
flitigantsdelete.autoSuggests["x_LitigantGroupID"] = <?php echo json_encode(["data" => "ajax=autosuggest"]) ?>;
flitigantsdelete.lists["x_TitleID"] = <?php echo $litigants_delete->TitleID->Lookup->toClientList() ?>;
flitigantsdelete.lists["x_TitleID"].options = <?php echo JsonEncode($litigants_delete->TitleID->lookupOptions()) ?>;
flitigantsdelete.lists["x_Gender"] = <?php echo $litigants_delete->Gender->Lookup->toClientList() ?>;
flitigantsdelete.lists["x_Gender"].options = <?php echo JsonEncode($litigants_delete->Gender->options(FALSE, TRUE)) ?>;

// Form object for search
</script>
<script>

// Write your client script here, no need to add script tags.
</script>
<?php $litigants_delete->showPageHeader(); ?>
<?php
$litigants_delete->showMessage();
?>
<form name="flitigantsdelete" id="flitigantsdelete" class="form-inline ew-form ew-delete-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($litigants_delete->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $litigants_delete->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="litigants">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($litigants_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 ($litigants->LitigantTypeID->Visible) { // LitigantTypeID ?>
		<th class="<?php echo $litigants->LitigantTypeID->headerCellClass() ?>"><span id="elh_litigants_LitigantTypeID" class="litigants_LitigantTypeID"><?php echo $litigants->LitigantTypeID->caption() ?></span></th>
<?php } ?>
<?php if ($litigants->LitigantGroupID->Visible) { // LitigantGroupID ?>
		<th class="<?php echo $litigants->LitigantGroupID->headerCellClass() ?>"><span id="elh_litigants_LitigantGroupID" class="litigants_LitigantGroupID"><?php echo $litigants->LitigantGroupID->caption() ?></span></th>
<?php } ?>
<?php if ($litigants->WorkNature->Visible) { // WorkNature ?>
		<th class="<?php echo $litigants->WorkNature->headerCellClass() ?>"><span id="elh_litigants_WorkNature" class="litigants_WorkNature"><?php echo $litigants->WorkNature->caption() ?></span></th>
<?php } ?>
<?php if ($litigants->TitleID->Visible) { // TitleID ?>
		<th class="<?php echo $litigants->TitleID->headerCellClass() ?>"><span id="elh_litigants_TitleID" class="litigants_TitleID"><?php echo $litigants->TitleID->caption() ?></span></th>
<?php } ?>
<?php if ($litigants->FirstName->Visible) { // FirstName ?>
		<th class="<?php echo $litigants->FirstName->headerCellClass() ?>"><span id="elh_litigants_FirstName" class="litigants_FirstName"><?php echo $litigants->FirstName->caption() ?></span></th>
<?php } ?>
<?php if ($litigants->MiddleName->Visible) { // MiddleName ?>
		<th class="<?php echo $litigants->MiddleName->headerCellClass() ?>"><span id="elh_litigants_MiddleName" class="litigants_MiddleName"><?php echo $litigants->MiddleName->caption() ?></span></th>
<?php } ?>
<?php if ($litigants->LastName->Visible) { // LastName ?>
		<th class="<?php echo $litigants->LastName->headerCellClass() ?>"><span id="elh_litigants_LastName" class="litigants_LastName"><?php echo $litigants->LastName->caption() ?></span></th>
<?php } ?>
<?php if ($litigants->PartnersName->Visible) { // PartnersName ?>
		<th class="<?php echo $litigants->PartnersName->headerCellClass() ?>"><span id="elh_litigants_PartnersName" class="litigants_PartnersName"><?php echo $litigants->PartnersName->caption() ?></span></th>
<?php } ?>
<?php if ($litigants->CompanyName->Visible) { // CompanyName ?>
		<th class="<?php echo $litigants->CompanyName->headerCellClass() ?>"><span id="elh_litigants_CompanyName" class="litigants_CompanyName"><?php echo $litigants->CompanyName->caption() ?></span></th>
<?php } ?>
<?php if ($litigants->ContactPerson->Visible) { // ContactPerson ?>
		<th class="<?php echo $litigants->ContactPerson->headerCellClass() ?>"><span id="elh_litigants_ContactPerson" class="litigants_ContactPerson"><?php echo $litigants->ContactPerson->caption() ?></span></th>
<?php } ?>
<?php if ($litigants->JobTitle->Visible) { // JobTitle ?>
		<th class="<?php echo $litigants->JobTitle->headerCellClass() ?>"><span id="elh_litigants_JobTitle" class="litigants_JobTitle"><?php echo $litigants->JobTitle->caption() ?></span></th>
<?php } ?>
<?php if ($litigants->Photo->Visible) { // Photo ?>
		<th class="<?php echo $litigants->Photo->headerCellClass() ?>"><span id="elh_litigants_Photo" class="litigants_Photo"><?php echo $litigants->Photo->caption() ?></span></th>
<?php } ?>
<?php if ($litigants->BirthDate->Visible) { // BirthDate ?>
		<th class="<?php echo $litigants->BirthDate->headerCellClass() ?>"><span id="elh_litigants_BirthDate" class="litigants_BirthDate"><?php echo $litigants->BirthDate->caption() ?></span></th>
<?php } ?>
<?php if ($litigants->Gender->Visible) { // Gender ?>
		<th class="<?php echo $litigants->Gender->headerCellClass() ?>"><span id="elh_litigants_Gender" class="litigants_Gender"><?php echo $litigants->Gender->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$litigants_delete->RecCnt = 0;
$i = 0;
while (!$litigants_delete->Recordset->EOF) {
	$litigants_delete->RecCnt++;
	$litigants_delete->RowCnt++;

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

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

	// Render row
	$litigants_delete->renderRow();
?>
	<tr<?php echo $litigants->rowAttributes() ?>>
<?php if ($litigants->LitigantTypeID->Visible) { // LitigantTypeID ?>
		<td<?php echo $litigants->LitigantTypeID->cellAttributes() ?>>
<span id="el<?php echo $litigants_delete->RowCnt ?>_litigants_LitigantTypeID" class="litigants_LitigantTypeID">
<span<?php echo $litigants->LitigantTypeID->viewAttributes() ?>>
<?php echo $litigants->LitigantTypeID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($litigants->LitigantGroupID->Visible) { // LitigantGroupID ?>
		<td<?php echo $litigants->LitigantGroupID->cellAttributes() ?>>
<span id="el<?php echo $litigants_delete->RowCnt ?>_litigants_LitigantGroupID" class="litigants_LitigantGroupID">
<span<?php echo $litigants->LitigantGroupID->viewAttributes() ?>>
<?php echo $litigants->LitigantGroupID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($litigants->WorkNature->Visible) { // WorkNature ?>
		<td<?php echo $litigants->WorkNature->cellAttributes() ?>>
<span id="el<?php echo $litigants_delete->RowCnt ?>_litigants_WorkNature" class="litigants_WorkNature">
<span<?php echo $litigants->WorkNature->viewAttributes() ?>>
<?php echo $litigants->WorkNature->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($litigants->TitleID->Visible) { // TitleID ?>
		<td<?php echo $litigants->TitleID->cellAttributes() ?>>
<span id="el<?php echo $litigants_delete->RowCnt ?>_litigants_TitleID" class="litigants_TitleID">
<span<?php echo $litigants->TitleID->viewAttributes() ?>>
<?php echo $litigants->TitleID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($litigants->FirstName->Visible) { // FirstName ?>
		<td<?php echo $litigants->FirstName->cellAttributes() ?>>
<span id="el<?php echo $litigants_delete->RowCnt ?>_litigants_FirstName" class="litigants_FirstName">
<span<?php echo $litigants->FirstName->viewAttributes() ?>>
<?php echo $litigants->FirstName->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($litigants->MiddleName->Visible) { // MiddleName ?>
		<td<?php echo $litigants->MiddleName->cellAttributes() ?>>
<span id="el<?php echo $litigants_delete->RowCnt ?>_litigants_MiddleName" class="litigants_MiddleName">
<span<?php echo $litigants->MiddleName->viewAttributes() ?>>
<?php echo $litigants->MiddleName->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($litigants->LastName->Visible) { // LastName ?>
		<td<?php echo $litigants->LastName->cellAttributes() ?>>
<span id="el<?php echo $litigants_delete->RowCnt ?>_litigants_LastName" class="litigants_LastName">
<span<?php echo $litigants->LastName->viewAttributes() ?>>
<?php echo $litigants->LastName->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($litigants->PartnersName->Visible) { // PartnersName ?>
		<td<?php echo $litigants->PartnersName->cellAttributes() ?>>
<span id="el<?php echo $litigants_delete->RowCnt ?>_litigants_PartnersName" class="litigants_PartnersName">
<span<?php echo $litigants->PartnersName->viewAttributes() ?>>
<?php echo $litigants->PartnersName->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($litigants->CompanyName->Visible) { // CompanyName ?>
		<td<?php echo $litigants->CompanyName->cellAttributes() ?>>
<span id="el<?php echo $litigants_delete->RowCnt ?>_litigants_CompanyName" class="litigants_CompanyName">
<span<?php echo $litigants->CompanyName->viewAttributes() ?>>
<?php echo $litigants->CompanyName->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($litigants->ContactPerson->Visible) { // ContactPerson ?>
		<td<?php echo $litigants->ContactPerson->cellAttributes() ?>>
<span id="el<?php echo $litigants_delete->RowCnt ?>_litigants_ContactPerson" class="litigants_ContactPerson">
<span<?php echo $litigants->ContactPerson->viewAttributes() ?>>
<?php echo $litigants->ContactPerson->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($litigants->JobTitle->Visible) { // JobTitle ?>
		<td<?php echo $litigants->JobTitle->cellAttributes() ?>>
<span id="el<?php echo $litigants_delete->RowCnt ?>_litigants_JobTitle" class="litigants_JobTitle">
<span<?php echo $litigants->JobTitle->viewAttributes() ?>>
<?php echo $litigants->JobTitle->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($litigants->Photo->Visible) { // Photo ?>
		<td<?php echo $litigants->Photo->cellAttributes() ?>>
<span id="el<?php echo $litigants_delete->RowCnt ?>_litigants_Photo" class="litigants_Photo">
<span>
<?php echo GetFileViewTag($litigants->Photo, $litigants->Photo->getViewValue()) ?>
</span>
</span>
</td>
<?php } ?>
<?php if ($litigants->BirthDate->Visible) { // BirthDate ?>
		<td<?php echo $litigants->BirthDate->cellAttributes() ?>>
<span id="el<?php echo $litigants_delete->RowCnt ?>_litigants_BirthDate" class="litigants_BirthDate">
<span<?php echo $litigants->BirthDate->viewAttributes() ?>>
<?php echo $litigants->BirthDate->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($litigants->Gender->Visible) { // Gender ?>
		<td<?php echo $litigants->Gender->cellAttributes() ?>>
<span id="el<?php echo $litigants_delete->RowCnt ?>_litigants_Gender" class="litigants_Gender">
<span<?php echo $litigants->Gender->viewAttributes() ?>>
<?php echo $litigants->Gender->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$litigants_delete->Recordset->moveNext();
}
$litigants_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 $litigants_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$litigants_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
$litigants_delete->terminate();
?>
