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

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

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

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

// Page Rendering event
$lawyertype_view->Page_Render();
?>
<?php include_once "header.php" ?>
<?php if (!$lawyertype->isExport()) { ?>
<script>

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

// Form_CustomValidate event
flawyertypeview.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
flawyertypeview.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 } ?>
<?php if (!$lawyertype->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $lawyertype_view->ExportOptions->render("body") ?>
<?php $lawyertype_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $lawyertype_view->showPageHeader(); ?>
<?php
$lawyertype_view->showMessage();
?>
<?php if (!$lawyertype_view->IsModal) { ?>
<?php if (!$lawyertype->isExport()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($lawyertype_view->Pager)) $lawyertype_view->Pager = new PrevNextPager($lawyertype_view->StartRec, $lawyertype_view->DisplayRecs, $lawyertype_view->TotalRecs, $lawyertype_view->AutoHidePager) ?>
<?php if ($lawyertype_view->Pager->RecordCount > 0 && $lawyertype_view->Pager->Visible) { ?>
<div class="ew-pager">
<span><?php echo $Language->Phrase("Page") ?>&nbsp;</span>
<div class="ew-prev-next"><div class="input-group input-group-sm">
<div class="input-group-prepend">
<!-- first page button -->
	<?php if ($lawyertype_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $lawyertype_view->pageUrl() ?>start=<?php echo $lawyertype_view->Pager->FirstButton->Start ?>"><i class="icon-first ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerFirst") ?>"><i class="icon-first ew-icon"></i></a>
	<?php } ?>
<!-- previous page button -->
	<?php if ($lawyertype_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $lawyertype_view->pageUrl() ?>start=<?php echo $lawyertype_view->Pager->PrevButton->Start ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerPrevious") ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } ?>
</div>
<!-- current page number -->
	<input class="form-control" type="text" name="<?php echo TABLE_PAGE_NO ?>" value="<?php echo $lawyertype_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($lawyertype_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $lawyertype_view->pageUrl() ?>start=<?php echo $lawyertype_view->Pager->NextButton->Start ?>"><i class="icon-next ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerNext") ?>"><i class="icon-next ew-icon"></i></a>
	<?php } ?>
<!-- last page button -->
	<?php if ($lawyertype_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $lawyertype_view->pageUrl() ?>start=<?php echo $lawyertype_view->Pager->LastButton->Start ?>"><i class="icon-last ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerLast") ?>"><i class="icon-last ew-icon"></i></a>
	<?php } ?>
</div>
</div>
</div>
<span>&nbsp;<?php echo $Language->Phrase("of") ?>&nbsp;<?php echo $lawyertype_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<?php } ?>
<form name="flawyertypeview" id="flawyertypeview" class="form-inline ew-form ew-view-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($lawyertype_view->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $lawyertype_view->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="lawyertype">
<input type="hidden" name="modal" value="<?php echo (int)$lawyertype_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($lawyertype->LawyerTypeID->Visible) { // LawyerTypeID ?>
	<tr id="r_LawyerTypeID">
		<td class="<?php echo $lawyertype_view->TableLeftColumnClass ?>"><span id="elh_lawyertype_LawyerTypeID"><?php echo $lawyertype->LawyerTypeID->caption() ?></span></td>
		<td data-name="LawyerTypeID"<?php echo $lawyertype->LawyerTypeID->cellAttributes() ?>>
<span id="el_lawyertype_LawyerTypeID">
<span<?php echo $lawyertype->LawyerTypeID->viewAttributes() ?>>
<?php echo $lawyertype->LawyerTypeID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($lawyertype->LawyerType->Visible) { // LawyerType ?>
	<tr id="r_LawyerType">
		<td class="<?php echo $lawyertype_view->TableLeftColumnClass ?>"><span id="elh_lawyertype_LawyerType"><?php echo $lawyertype->LawyerType->caption() ?></span></td>
		<td data-name="LawyerType"<?php echo $lawyertype->LawyerType->cellAttributes() ?>>
<span id="el_lawyertype_LawyerType">
<span<?php echo $lawyertype->LawyerType->viewAttributes() ?>>
<?php echo $lawyertype->LawyerType->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($lawyertype->LawyerTypeEn->Visible) { // LawyerTypeEn ?>
	<tr id="r_LawyerTypeEn">
		<td class="<?php echo $lawyertype_view->TableLeftColumnClass ?>"><span id="elh_lawyertype_LawyerTypeEn"><?php echo $lawyertype->LawyerTypeEn->caption() ?></span></td>
		<td data-name="LawyerTypeEn"<?php echo $lawyertype->LawyerTypeEn->cellAttributes() ?>>
<span id="el_lawyertype_LawyerTypeEn">
<span<?php echo $lawyertype->LawyerTypeEn->viewAttributes() ?>>
<?php echo $lawyertype->LawyerTypeEn->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($lawyertype->Notes->Visible) { // Notes ?>
	<tr id="r_Notes">
		<td class="<?php echo $lawyertype_view->TableLeftColumnClass ?>"><span id="elh_lawyertype_Notes"><?php echo $lawyertype->Notes->caption() ?></span></td>
		<td data-name="Notes"<?php echo $lawyertype->Notes->cellAttributes() ?>>
<span id="el_lawyertype_Notes">
<span<?php echo $lawyertype->Notes->viewAttributes() ?>>
<?php echo $lawyertype->Notes->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
<?php if (!$lawyertype_view->IsModal) { ?>
<?php if (!$lawyertype->isExport()) { ?>
<?php if (!isset($lawyertype_view->Pager)) $lawyertype_view->Pager = new PrevNextPager($lawyertype_view->StartRec, $lawyertype_view->DisplayRecs, $lawyertype_view->TotalRecs, $lawyertype_view->AutoHidePager) ?>
<?php if ($lawyertype_view->Pager->RecordCount > 0 && $lawyertype_view->Pager->Visible) { ?>
<div class="ew-pager">
<span><?php echo $Language->Phrase("Page") ?>&nbsp;</span>
<div class="ew-prev-next"><div class="input-group input-group-sm">
<div class="input-group-prepend">
<!-- first page button -->
	<?php if ($lawyertype_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $lawyertype_view->pageUrl() ?>start=<?php echo $lawyertype_view->Pager->FirstButton->Start ?>"><i class="icon-first ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerFirst") ?>"><i class="icon-first ew-icon"></i></a>
	<?php } ?>
<!-- previous page button -->
	<?php if ($lawyertype_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $lawyertype_view->pageUrl() ?>start=<?php echo $lawyertype_view->Pager->PrevButton->Start ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerPrevious") ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } ?>
</div>
<!-- current page number -->
	<input class="form-control" type="text" name="<?php echo TABLE_PAGE_NO ?>" value="<?php echo $lawyertype_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($lawyertype_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $lawyertype_view->pageUrl() ?>start=<?php echo $lawyertype_view->Pager->NextButton->Start ?>"><i class="icon-next ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerNext") ?>"><i class="icon-next ew-icon"></i></a>
	<?php } ?>
<!-- last page button -->
	<?php if ($lawyertype_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $lawyertype_view->pageUrl() ?>start=<?php echo $lawyertype_view->Pager->LastButton->Start ?>"><i class="icon-last ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerLast") ?>"><i class="icon-last ew-icon"></i></a>
	<?php } ?>
</div>
</div>
</div>
<span>&nbsp;<?php echo $Language->Phrase("of") ?>&nbsp;<?php echo $lawyertype_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
<?php } ?>
</form>
<?php
$lawyertype_view->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$lawyertype->isExport()) { ?>
<script>

// Write your table-specific startup script here
// document.write("page loaded");

</script>
<?php } ?>
<?php include_once "footer.php" ?>
<?php
$lawyertype_view->terminate();
?>
