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

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

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

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

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

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

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

// Dynamic selection lists
fclientpartnersdelete.lists["x_ClientID"] = <?php echo $clientpartners_delete->ClientID->Lookup->toClientList() ?>;
fclientpartnersdelete.lists["x_ClientID"].options = <?php echo JsonEncode($clientpartners_delete->ClientID->lookupOptions()) ?>;
fclientpartnersdelete.lists["x_TitleID"] = <?php echo $clientpartners_delete->TitleID->Lookup->toClientList() ?>;
fclientpartnersdelete.lists["x_TitleID"].options = <?php echo JsonEncode($clientpartners_delete->TitleID->lookupOptions()) ?>;
fclientpartnersdelete.lists["x_MaritalStatusID"] = <?php echo $clientpartners_delete->MaritalStatusID->Lookup->toClientList() ?>;
fclientpartnersdelete.lists["x_MaritalStatusID"].options = <?php echo JsonEncode($clientpartners_delete->MaritalStatusID->lookupOptions()) ?>;
fclientpartnersdelete.autoSuggests["x_MaritalStatusID"] = <?php echo json_encode(["data" => "ajax=autosuggest"]) ?>;

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

// Write your client script here, no need to add script tags.
</script>
<?php $clientpartners_delete->showPageHeader(); ?>
<?php
$clientpartners_delete->showMessage();
?>
<form name="fclientpartnersdelete" id="fclientpartnersdelete" class="form-inline ew-form ew-delete-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($clientpartners_delete->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $clientpartners_delete->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="clientpartners">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($clientpartners_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 ($clientpartners->ClientID->Visible) { // ClientID ?>
		<th class="<?php echo $clientpartners->ClientID->headerCellClass() ?>"><span id="elh_clientpartners_ClientID" class="clientpartners_ClientID"><?php echo $clientpartners->ClientID->caption() ?></span></th>
<?php } ?>
<?php if ($clientpartners->TitleID->Visible) { // TitleID ?>
		<th class="<?php echo $clientpartners->TitleID->headerCellClass() ?>"><span id="elh_clientpartners_TitleID" class="clientpartners_TitleID"><?php echo $clientpartners->TitleID->caption() ?></span></th>
<?php } ?>
<?php if ($clientpartners->FirstName->Visible) { // FirstName ?>
		<th class="<?php echo $clientpartners->FirstName->headerCellClass() ?>"><span id="elh_clientpartners_FirstName" class="clientpartners_FirstName"><?php echo $clientpartners->FirstName->caption() ?></span></th>
<?php } ?>
<?php if ($clientpartners->MiddleName->Visible) { // MiddleName ?>
		<th class="<?php echo $clientpartners->MiddleName->headerCellClass() ?>"><span id="elh_clientpartners_MiddleName" class="clientpartners_MiddleName"><?php echo $clientpartners->MiddleName->caption() ?></span></th>
<?php } ?>
<?php if ($clientpartners->LastName->Visible) { // LastName ?>
		<th class="<?php echo $clientpartners->LastName->headerCellClass() ?>"><span id="elh_clientpartners_LastName" class="clientpartners_LastName"><?php echo $clientpartners->LastName->caption() ?></span></th>
<?php } ?>
<?php if ($clientpartners->JobTitle->Visible) { // JobTitle ?>
		<th class="<?php echo $clientpartners->JobTitle->headerCellClass() ?>"><span id="elh_clientpartners_JobTitle" class="clientpartners_JobTitle"><?php echo $clientpartners->JobTitle->caption() ?></span></th>
<?php } ?>
<?php if ($clientpartners->Photo->Visible) { // Photo ?>
		<th class="<?php echo $clientpartners->Photo->headerCellClass() ?>"><span id="elh_clientpartners_Photo" class="clientpartners_Photo"><?php echo $clientpartners->Photo->caption() ?></span></th>
<?php } ?>
<?php if ($clientpartners->BirthDate->Visible) { // BirthDate ?>
		<th class="<?php echo $clientpartners->BirthDate->headerCellClass() ?>"><span id="elh_clientpartners_BirthDate" class="clientpartners_BirthDate"><?php echo $clientpartners->BirthDate->caption() ?></span></th>
<?php } ?>
<?php if ($clientpartners->MaritalStatusID->Visible) { // MaritalStatusID ?>
		<th class="<?php echo $clientpartners->MaritalStatusID->headerCellClass() ?>"><span id="elh_clientpartners_MaritalStatusID" class="clientpartners_MaritalStatusID"><?php echo $clientpartners->MaritalStatusID->caption() ?></span></th>
<?php } ?>
<?php if ($clientpartners->CivilStatus23->Visible) { // CivilStatus# ?>
		<th class="<?php echo $clientpartners->CivilStatus23->headerCellClass() ?>"><span id="elh_clientpartners_CivilStatus23" class="clientpartners_CivilStatus23"><?php echo $clientpartners->CivilStatus23->caption() ?></span></th>
<?php } ?>
<?php if ($clientpartners->CivilStatusPlace->Visible) { // CivilStatusPlace ?>
		<th class="<?php echo $clientpartners->CivilStatusPlace->headerCellClass() ?>"><span id="elh_clientpartners_CivilStatusPlace" class="clientpartners_CivilStatusPlace"><?php echo $clientpartners->CivilStatusPlace->caption() ?></span></th>
<?php } ?>
<?php if ($clientpartners->IdCard23->Visible) { // IdCard# ?>
		<th class="<?php echo $clientpartners->IdCard23->headerCellClass() ?>"><span id="elh_clientpartners_IdCard23" class="clientpartners_IdCard23"><?php echo $clientpartners->IdCard23->caption() ?></span></th>
<?php } ?>
<?php if ($clientpartners->Nationality1->Visible) { // Nationality1 ?>
		<th class="<?php echo $clientpartners->Nationality1->headerCellClass() ?>"><span id="elh_clientpartners_Nationality1" class="clientpartners_Nationality1"><?php echo $clientpartners->Nationality1->caption() ?></span></th>
<?php } ?>
<?php if ($clientpartners->Nationality2->Visible) { // Nationality2 ?>
		<th class="<?php echo $clientpartners->Nationality2->headerCellClass() ?>"><span id="elh_clientpartners_Nationality2" class="clientpartners_Nationality2"><?php echo $clientpartners->Nationality2->caption() ?></span></th>
<?php } ?>
<?php if ($clientpartners->Extra23->Visible) { // Extra# ?>
		<th class="<?php echo $clientpartners->Extra23->headerCellClass() ?>"><span id="elh_clientpartners_Extra23" class="clientpartners_Extra23"><?php echo $clientpartners->Extra23->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$clientpartners_delete->RecCnt = 0;
$i = 0;
while (!$clientpartners_delete->Recordset->EOF) {
	$clientpartners_delete->RecCnt++;
	$clientpartners_delete->RowCnt++;

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

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

	// Render row
	$clientpartners_delete->renderRow();
?>
	<tr<?php echo $clientpartners->rowAttributes() ?>>
<?php if ($clientpartners->ClientID->Visible) { // ClientID ?>
		<td<?php echo $clientpartners->ClientID->cellAttributes() ?>>
<span id="el<?php echo $clientpartners_delete->RowCnt ?>_clientpartners_ClientID" class="clientpartners_ClientID">
<span<?php echo $clientpartners->ClientID->viewAttributes() ?>>
<?php echo $clientpartners->ClientID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($clientpartners->TitleID->Visible) { // TitleID ?>
		<td<?php echo $clientpartners->TitleID->cellAttributes() ?>>
<span id="el<?php echo $clientpartners_delete->RowCnt ?>_clientpartners_TitleID" class="clientpartners_TitleID">
<span<?php echo $clientpartners->TitleID->viewAttributes() ?>>
<?php echo $clientpartners->TitleID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($clientpartners->FirstName->Visible) { // FirstName ?>
		<td<?php echo $clientpartners->FirstName->cellAttributes() ?>>
<span id="el<?php echo $clientpartners_delete->RowCnt ?>_clientpartners_FirstName" class="clientpartners_FirstName">
<span<?php echo $clientpartners->FirstName->viewAttributes() ?>>
<?php echo $clientpartners->FirstName->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($clientpartners->MiddleName->Visible) { // MiddleName ?>
		<td<?php echo $clientpartners->MiddleName->cellAttributes() ?>>
<span id="el<?php echo $clientpartners_delete->RowCnt ?>_clientpartners_MiddleName" class="clientpartners_MiddleName">
<span<?php echo $clientpartners->MiddleName->viewAttributes() ?>>
<?php echo $clientpartners->MiddleName->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($clientpartners->LastName->Visible) { // LastName ?>
		<td<?php echo $clientpartners->LastName->cellAttributes() ?>>
<span id="el<?php echo $clientpartners_delete->RowCnt ?>_clientpartners_LastName" class="clientpartners_LastName">
<span<?php echo $clientpartners->LastName->viewAttributes() ?>>
<?php echo $clientpartners->LastName->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($clientpartners->JobTitle->Visible) { // JobTitle ?>
		<td<?php echo $clientpartners->JobTitle->cellAttributes() ?>>
<span id="el<?php echo $clientpartners_delete->RowCnt ?>_clientpartners_JobTitle" class="clientpartners_JobTitle">
<span<?php echo $clientpartners->JobTitle->viewAttributes() ?>>
<?php echo $clientpartners->JobTitle->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($clientpartners->Photo->Visible) { // Photo ?>
		<td<?php echo $clientpartners->Photo->cellAttributes() ?>>
<span id="el<?php echo $clientpartners_delete->RowCnt ?>_clientpartners_Photo" class="clientpartners_Photo">
<span>
<?php echo GetFileViewTag($clientpartners->Photo, $clientpartners->Photo->getViewValue()) ?>
</span>
</span>
</td>
<?php } ?>
<?php if ($clientpartners->BirthDate->Visible) { // BirthDate ?>
		<td<?php echo $clientpartners->BirthDate->cellAttributes() ?>>
<span id="el<?php echo $clientpartners_delete->RowCnt ?>_clientpartners_BirthDate" class="clientpartners_BirthDate">
<span<?php echo $clientpartners->BirthDate->viewAttributes() ?>>
<?php echo $clientpartners->BirthDate->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($clientpartners->MaritalStatusID->Visible) { // MaritalStatusID ?>
		<td<?php echo $clientpartners->MaritalStatusID->cellAttributes() ?>>
<span id="el<?php echo $clientpartners_delete->RowCnt ?>_clientpartners_MaritalStatusID" class="clientpartners_MaritalStatusID">
<span<?php echo $clientpartners->MaritalStatusID->viewAttributes() ?>>
<?php echo $clientpartners->MaritalStatusID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($clientpartners->CivilStatus23->Visible) { // CivilStatus# ?>
		<td<?php echo $clientpartners->CivilStatus23->cellAttributes() ?>>
<span id="el<?php echo $clientpartners_delete->RowCnt ?>_clientpartners_CivilStatus23" class="clientpartners_CivilStatus23">
<span<?php echo $clientpartners->CivilStatus23->viewAttributes() ?>>
<?php echo $clientpartners->CivilStatus23->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($clientpartners->CivilStatusPlace->Visible) { // CivilStatusPlace ?>
		<td<?php echo $clientpartners->CivilStatusPlace->cellAttributes() ?>>
<span id="el<?php echo $clientpartners_delete->RowCnt ?>_clientpartners_CivilStatusPlace" class="clientpartners_CivilStatusPlace">
<span<?php echo $clientpartners->CivilStatusPlace->viewAttributes() ?>>
<?php echo $clientpartners->CivilStatusPlace->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($clientpartners->IdCard23->Visible) { // IdCard# ?>
		<td<?php echo $clientpartners->IdCard23->cellAttributes() ?>>
<span id="el<?php echo $clientpartners_delete->RowCnt ?>_clientpartners_IdCard23" class="clientpartners_IdCard23">
<span<?php echo $clientpartners->IdCard23->viewAttributes() ?>>
<?php echo $clientpartners->IdCard23->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($clientpartners->Nationality1->Visible) { // Nationality1 ?>
		<td<?php echo $clientpartners->Nationality1->cellAttributes() ?>>
<span id="el<?php echo $clientpartners_delete->RowCnt ?>_clientpartners_Nationality1" class="clientpartners_Nationality1">
<span<?php echo $clientpartners->Nationality1->viewAttributes() ?>>
<?php echo $clientpartners->Nationality1->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($clientpartners->Nationality2->Visible) { // Nationality2 ?>
		<td<?php echo $clientpartners->Nationality2->cellAttributes() ?>>
<span id="el<?php echo $clientpartners_delete->RowCnt ?>_clientpartners_Nationality2" class="clientpartners_Nationality2">
<span<?php echo $clientpartners->Nationality2->viewAttributes() ?>>
<?php echo $clientpartners->Nationality2->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($clientpartners->Extra23->Visible) { // Extra# ?>
		<td<?php echo $clientpartners->Extra23->cellAttributes() ?>>
<span id="el<?php echo $clientpartners_delete->RowCnt ?>_clientpartners_Extra23" class="clientpartners_Extra23">
<span<?php echo $clientpartners->Extra23->viewAttributes() ?>>
<?php echo $clientpartners->Extra23->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$clientpartners_delete->Recordset->moveNext();
}
$clientpartners_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 $clientpartners_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$clientpartners_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
$clientpartners_delete->terminate();
?>
