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

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

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

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

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

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

// Form_CustomValidate event
ftitlesview.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
ftitlesview.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 (!$titles->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $titles_view->ExportOptions->render("body") ?>
<?php $titles_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $titles_view->showPageHeader(); ?>
<?php
$titles_view->showMessage();
?>
<?php if (!$titles_view->IsModal) { ?>
<?php if (!$titles->isExport()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($titles_view->Pager)) $titles_view->Pager = new PrevNextPager($titles_view->StartRec, $titles_view->DisplayRecs, $titles_view->TotalRecs, $titles_view->AutoHidePager) ?>
<?php if ($titles_view->Pager->RecordCount > 0 && $titles_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 ($titles_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $titles_view->pageUrl() ?>start=<?php echo $titles_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 ($titles_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $titles_view->pageUrl() ?>start=<?php echo $titles_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 $titles_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($titles_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $titles_view->pageUrl() ?>start=<?php echo $titles_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 ($titles_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $titles_view->pageUrl() ?>start=<?php echo $titles_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 $titles_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<?php } ?>
<form name="ftitlesview" id="ftitlesview" class="form-inline ew-form ew-view-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($titles_view->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $titles_view->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="titles">
<input type="hidden" name="modal" value="<?php echo (int)$titles_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($titles->TitleID->Visible) { // TitleID ?>
	<tr id="r_TitleID">
		<td class="<?php echo $titles_view->TableLeftColumnClass ?>"><span id="elh_titles_TitleID"><?php echo $titles->TitleID->caption() ?></span></td>
		<td data-name="TitleID"<?php echo $titles->TitleID->cellAttributes() ?>>
<span id="el_titles_TitleID">
<span<?php echo $titles->TitleID->viewAttributes() ?>>
<?php echo $titles->TitleID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($titles->Title->Visible) { // Title ?>
	<tr id="r_Title">
		<td class="<?php echo $titles_view->TableLeftColumnClass ?>"><span id="elh_titles_Title"><?php echo $titles->Title->caption() ?></span></td>
		<td data-name="Title"<?php echo $titles->Title->cellAttributes() ?>>
<span id="el_titles_Title">
<span<?php echo $titles->Title->viewAttributes() ?>>
<?php echo $titles->Title->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($titles->TitleEn->Visible) { // TitleEn ?>
	<tr id="r_TitleEn">
		<td class="<?php echo $titles_view->TableLeftColumnClass ?>"><span id="elh_titles_TitleEn"><?php echo $titles->TitleEn->caption() ?></span></td>
		<td data-name="TitleEn"<?php echo $titles->TitleEn->cellAttributes() ?>>
<span id="el_titles_TitleEn">
<span<?php echo $titles->TitleEn->viewAttributes() ?>>
<?php echo $titles->TitleEn->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($titles->Salutation->Visible) { // Salutation ?>
	<tr id="r_Salutation">
		<td class="<?php echo $titles_view->TableLeftColumnClass ?>"><span id="elh_titles_Salutation"><?php echo $titles->Salutation->caption() ?></span></td>
		<td data-name="Salutation"<?php echo $titles->Salutation->cellAttributes() ?>>
<span id="el_titles_Salutation">
<span<?php echo $titles->Salutation->viewAttributes() ?>>
<?php echo $titles->Salutation->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($titles->SalutationEn->Visible) { // SalutationEn ?>
	<tr id="r_SalutationEn">
		<td class="<?php echo $titles_view->TableLeftColumnClass ?>"><span id="elh_titles_SalutationEn"><?php echo $titles->SalutationEn->caption() ?></span></td>
		<td data-name="SalutationEn"<?php echo $titles->SalutationEn->cellAttributes() ?>>
<span id="el_titles_SalutationEn">
<span<?php echo $titles->SalutationEn->viewAttributes() ?>>
<?php echo $titles->SalutationEn->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($titles->Notes->Visible) { // Notes ?>
	<tr id="r_Notes">
		<td class="<?php echo $titles_view->TableLeftColumnClass ?>"><span id="elh_titles_Notes"><?php echo $titles->Notes->caption() ?></span></td>
		<td data-name="Notes"<?php echo $titles->Notes->cellAttributes() ?>>
<span id="el_titles_Notes">
<span<?php echo $titles->Notes->viewAttributes() ?>>
<?php echo $titles->Notes->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
<?php if (!$titles_view->IsModal) { ?>
<?php if (!$titles->isExport()) { ?>
<?php if (!isset($titles_view->Pager)) $titles_view->Pager = new PrevNextPager($titles_view->StartRec, $titles_view->DisplayRecs, $titles_view->TotalRecs, $titles_view->AutoHidePager) ?>
<?php if ($titles_view->Pager->RecordCount > 0 && $titles_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 ($titles_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $titles_view->pageUrl() ?>start=<?php echo $titles_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 ($titles_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $titles_view->pageUrl() ?>start=<?php echo $titles_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 $titles_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($titles_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $titles_view->pageUrl() ?>start=<?php echo $titles_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 ($titles_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $titles_view->pageUrl() ?>start=<?php echo $titles_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 $titles_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
<?php } ?>
</form>
<?php
$titles_view->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$titles->isExport()) { ?>
<script>

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

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