<?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, "utf-8");

// Create page object
$attachments_preview = new attachments_preview();

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

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

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

// Page Rendering event
$attachments_preview->Page_Render();
?>
<?php $attachments_preview->showPageHeader(); ?>
<div class="card ew-grid attachments"><!-- .card -->
<?php if ($attachments_preview->TotalRecs > 0) { ?>
<div class="<?php if (IsResponsiveLayout()) { ?>table-responsive <?php } ?>card-body ew-grid-middle-panel"><!-- .table-responsive -->
<table class="table ew-table ew-preview-table"><!-- .table -->
	<thead><!-- Table header -->
		<tr class="ew-table-header">
<?php

// Render list options
$attachments_preview->renderListOptions();

// Render list options (header, left)
$attachments_preview->ListOptions->render("header", "left");
?>
<?php if ($attachments->AttachmentID->Visible) { // AttachmentID ?>
	<?php if ($attachments->SortUrl($attachments->AttachmentID) == "") { ?>
		<th class="<?php echo $attachments->AttachmentID->headerCellClass() ?>"><?php echo $attachments->AttachmentID->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $attachments->AttachmentID->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $attachments->AttachmentID->Name ?>" data-sort-order="<?php echo $attachments_preview->SortField == $attachments->AttachmentID->Name && $attachments_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $attachments->AttachmentID->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($attachments_preview->SortField == $attachments->AttachmentID->Name) { ?><?php if ($attachments_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($attachments_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($attachments->AttachmentSource_ID->Visible) { // AttachmentSource_ID ?>
	<?php if ($attachments->SortUrl($attachments->AttachmentSource_ID) == "") { ?>
		<th class="<?php echo $attachments->AttachmentSource_ID->headerCellClass() ?>"><?php echo $attachments->AttachmentSource_ID->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $attachments->AttachmentSource_ID->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $attachments->AttachmentSource_ID->Name ?>" data-sort-order="<?php echo $attachments_preview->SortField == $attachments->AttachmentSource_ID->Name && $attachments_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $attachments->AttachmentSource_ID->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($attachments_preview->SortField == $attachments->AttachmentSource_ID->Name) { ?><?php if ($attachments_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($attachments_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($attachments->CaseID->Visible) { // CaseID ?>
	<?php if ($attachments->SortUrl($attachments->CaseID) == "") { ?>
		<th class="<?php echo $attachments->CaseID->headerCellClass() ?>"><?php echo $attachments->CaseID->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $attachments->CaseID->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $attachments->CaseID->Name ?>" data-sort-order="<?php echo $attachments_preview->SortField == $attachments->CaseID->Name && $attachments_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $attachments->CaseID->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($attachments_preview->SortField == $attachments->CaseID->Name) { ?><?php if ($attachments_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($attachments_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($attachments->EmployeeID->Visible) { // EmployeeID ?>
	<?php if ($attachments->SortUrl($attachments->EmployeeID) == "") { ?>
		<th class="<?php echo $attachments->EmployeeID->headerCellClass() ?>"><?php echo $attachments->EmployeeID->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $attachments->EmployeeID->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $attachments->EmployeeID->Name ?>" data-sort-order="<?php echo $attachments_preview->SortField == $attachments->EmployeeID->Name && $attachments_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $attachments->EmployeeID->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($attachments_preview->SortField == $attachments->EmployeeID->Name) { ?><?php if ($attachments_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($attachments_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($attachments->AttachID->Visible) { // AttachID ?>
	<?php if ($attachments->SortUrl($attachments->AttachID) == "") { ?>
		<th class="<?php echo $attachments->AttachID->headerCellClass() ?>"><?php echo $attachments->AttachID->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $attachments->AttachID->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $attachments->AttachID->Name ?>" data-sort-order="<?php echo $attachments_preview->SortField == $attachments->AttachID->Name && $attachments_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $attachments->AttachID->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($attachments_preview->SortField == $attachments->AttachID->Name) { ?><?php if ($attachments_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($attachments_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($attachments->AttachFilename->Visible) { // AttachFilename ?>
	<?php if ($attachments->SortUrl($attachments->AttachFilename) == "") { ?>
		<th class="<?php echo $attachments->AttachFilename->headerCellClass() ?>"><?php echo $attachments->AttachFilename->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $attachments->AttachFilename->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $attachments->AttachFilename->Name ?>" data-sort-order="<?php echo $attachments_preview->SortField == $attachments->AttachFilename->Name && $attachments_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $attachments->AttachFilename->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($attachments_preview->SortField == $attachments->AttachFilename->Name) { ?><?php if ($attachments_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($attachments_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($attachments->AttachFilenameInitial->Visible) { // AttachFilenameInitial ?>
	<?php if ($attachments->SortUrl($attachments->AttachFilenameInitial) == "") { ?>
		<th class="<?php echo $attachments->AttachFilenameInitial->headerCellClass() ?>"><?php echo $attachments->AttachFilenameInitial->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $attachments->AttachFilenameInitial->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $attachments->AttachFilenameInitial->Name ?>" data-sort-order="<?php echo $attachments_preview->SortField == $attachments->AttachFilenameInitial->Name && $attachments_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $attachments->AttachFilenameInitial->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($attachments_preview->SortField == $attachments->AttachFilenameInitial->Name) { ?><?php if ($attachments_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($attachments_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($attachments->AttachExtension->Visible) { // AttachExtension ?>
	<?php if ($attachments->SortUrl($attachments->AttachExtension) == "") { ?>
		<th class="<?php echo $attachments->AttachExtension->headerCellClass() ?>"><?php echo $attachments->AttachExtension->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $attachments->AttachExtension->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $attachments->AttachExtension->Name ?>" data-sort-order="<?php echo $attachments_preview->SortField == $attachments->AttachExtension->Name && $attachments_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $attachments->AttachExtension->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($attachments_preview->SortField == $attachments->AttachExtension->Name) { ?><?php if ($attachments_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($attachments_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($attachments->AttachDescription->Visible) { // AttachDescription ?>
	<?php if ($attachments->SortUrl($attachments->AttachDescription) == "") { ?>
		<th class="<?php echo $attachments->AttachDescription->headerCellClass() ?>"><?php echo $attachments->AttachDescription->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $attachments->AttachDescription->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $attachments->AttachDescription->Name ?>" data-sort-order="<?php echo $attachments_preview->SortField == $attachments->AttachDescription->Name && $attachments_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $attachments->AttachDescription->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($attachments_preview->SortField == $attachments->AttachDescription->Name) { ?><?php if ($attachments_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($attachments_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($attachments->AttachFilepath->Visible) { // AttachFilepath ?>
	<?php if ($attachments->SortUrl($attachments->AttachFilepath) == "") { ?>
		<th class="<?php echo $attachments->AttachFilepath->headerCellClass() ?>"><?php echo $attachments->AttachFilepath->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $attachments->AttachFilepath->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $attachments->AttachFilepath->Name ?>" data-sort-order="<?php echo $attachments_preview->SortField == $attachments->AttachFilepath->Name && $attachments_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $attachments->AttachFilepath->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($attachments_preview->SortField == $attachments->AttachFilepath->Name) { ?><?php if ($attachments_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($attachments_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($attachments->AttachPath->Visible) { // AttachPath ?>
	<?php if ($attachments->SortUrl($attachments->AttachPath) == "") { ?>
		<th class="<?php echo $attachments->AttachPath->headerCellClass() ?>"><?php echo $attachments->AttachPath->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $attachments->AttachPath->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $attachments->AttachPath->Name ?>" data-sort-order="<?php echo $attachments_preview->SortField == $attachments->AttachPath->Name && $attachments_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $attachments->AttachPath->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($attachments_preview->SortField == $attachments->AttachPath->Name) { ?><?php if ($attachments_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($attachments_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($attachments->_Case->Visible) { // Case ?>
	<?php if ($attachments->SortUrl($attachments->_Case) == "") { ?>
		<th class="<?php echo $attachments->_Case->headerCellClass() ?>"><?php echo $attachments->_Case->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $attachments->_Case->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $attachments->_Case->Name ?>" data-sort-order="<?php echo $attachments_preview->SortField == $attachments->_Case->Name && $attachments_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $attachments->_Case->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($attachments_preview->SortField == $attachments->_Case->Name) { ?><?php if ($attachments_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($attachments_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php

// Render list options (header, right)
$attachments_preview->ListOptions->render("header", "right");
?>
		</tr>
	</thead>
	<tbody><!-- Table body -->
<?php
$attachments_preview->RecCount = 0;
$attachments_preview->RowCnt = 0;
while ($attachments_preview->Recordset && !$attachments_preview->Recordset->EOF) {

	// Init row class and style
	$attachments_preview->RecCount++;
	$attachments_preview->RowCnt++;
	$attachments_preview->CssStyle = "";
	$attachments_preview->loadListRowValues($attachments_preview->Recordset);

	// Render row
	$attachments_preview->RowType = ROWTYPE_PREVIEW; // Preview record
	$attachments_preview->resetAttributes();
	$attachments_preview->renderListRow();

	// Render list options
	$attachments_preview->renderListOptions();
?>
	<tr<?php echo $attachments_preview->rowAttributes() ?>>
<?php

// Render list options (body, left)
$attachments_preview->ListOptions->render("body", "left", $attachments_preview->RowCnt);
?>
<?php if ($attachments->AttachmentID->Visible) { // AttachmentID ?>
		<!-- AttachmentID -->
		<td<?php echo $attachments->AttachmentID->cellAttributes() ?>>
<span<?php echo $attachments->AttachmentID->viewAttributes() ?>>
<?php echo $attachments->AttachmentID->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($attachments->AttachmentSource_ID->Visible) { // AttachmentSource_ID ?>
		<!-- AttachmentSource_ID -->
		<td<?php echo $attachments->AttachmentSource_ID->cellAttributes() ?>>
<span<?php echo $attachments->AttachmentSource_ID->viewAttributes() ?>>
<?php echo $attachments->AttachmentSource_ID->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($attachments->CaseID->Visible) { // CaseID ?>
		<!-- CaseID -->
		<td<?php echo $attachments->CaseID->cellAttributes() ?>>
<span<?php echo $attachments->CaseID->viewAttributes() ?>>
<?php echo $attachments->CaseID->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($attachments->EmployeeID->Visible) { // EmployeeID ?>
		<!-- EmployeeID -->
		<td<?php echo $attachments->EmployeeID->cellAttributes() ?>>
<span<?php echo $attachments->EmployeeID->viewAttributes() ?>>
<?php echo $attachments->EmployeeID->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($attachments->AttachID->Visible) { // AttachID ?>
		<!-- AttachID -->
		<td<?php echo $attachments->AttachID->cellAttributes() ?>>
<span<?php echo $attachments->AttachID->viewAttributes() ?>>
<?php echo $attachments->AttachID->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($attachments->AttachFilename->Visible) { // AttachFilename ?>
		<!-- AttachFilename -->
		<td<?php echo $attachments->AttachFilename->cellAttributes() ?>>
<span<?php echo $attachments->AttachFilename->viewAttributes() ?>>
<?php echo GetFileViewTag($attachments->AttachFilename, $attachments->AttachFilename->getViewValue()) ?>
</span>
</td>
<?php } ?>
<?php if ($attachments->AttachFilenameInitial->Visible) { // AttachFilenameInitial ?>
		<!-- AttachFilenameInitial -->
		<td<?php echo $attachments->AttachFilenameInitial->cellAttributes() ?>>
<span<?php echo $attachments->AttachFilenameInitial->viewAttributes() ?>>
<?php echo $attachments->AttachFilenameInitial->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($attachments->AttachExtension->Visible) { // AttachExtension ?>
		<!-- AttachExtension -->
		<td<?php echo $attachments->AttachExtension->cellAttributes() ?>>
<span<?php echo $attachments->AttachExtension->viewAttributes() ?>>
<?php echo $attachments->AttachExtension->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($attachments->AttachDescription->Visible) { // AttachDescription ?>
		<!-- AttachDescription -->
		<td<?php echo $attachments->AttachDescription->cellAttributes() ?>>
<span<?php echo $attachments->AttachDescription->viewAttributes() ?>>
<?php echo $attachments->AttachDescription->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($attachments->AttachFilepath->Visible) { // AttachFilepath ?>
		<!-- AttachFilepath -->
		<td<?php echo $attachments->AttachFilepath->cellAttributes() ?>>
<span<?php echo $attachments->AttachFilepath->viewAttributes() ?>>
<?php echo $attachments->AttachFilepath->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($attachments->AttachPath->Visible) { // AttachPath ?>
		<!-- AttachPath -->
		<td<?php echo $attachments->AttachPath->cellAttributes() ?>>
<span<?php echo $attachments->AttachPath->viewAttributes() ?>>
<?php echo $attachments->AttachPath->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($attachments->_Case->Visible) { // Case ?>
		<!-- Case -->
		<td<?php echo $attachments->_Case->cellAttributes() ?>>
<span<?php echo $attachments->_Case->viewAttributes() ?>>
<?php echo $attachments->_Case->getViewValue() ?></span>
</td>
<?php } ?>
<?php

// Render list options (body, right)
$attachments_preview->ListOptions->render("body", "right", $attachments_preview->RowCnt);
?>
	</tr>
<?php
	$attachments_preview->Recordset->MoveNext();
}
?>
	</tbody>
</table><!-- /.table -->
</div><!-- /.table-responsive -->
<?php } ?>
<div class="card-footer ew-grid-lower-panel ew-preview-lower-panel"><!-- .card-footer -->
<?php if ($attachments_preview->TotalRecs > 0) { ?>
<?php if (!isset($attachments_preview->Pager)) $attachments_preview->Pager = new PrevNextPager($attachments_preview->StartRec, $attachments_preview->DisplayRecs, $attachments_preview->TotalRecs) ?>
<?php if ($attachments_preview->Pager->RecordCount > 0 && $attachments_preview->Pager->Visible) { ?>
<div class="ew-pager"><div class="ew-prev-next"><div class="btn-group btn-group-sm ew-btn-group">
<!--first page button-->
	<?php if ($attachments_preview->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" data-start="<?php echo $attachments_preview->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 ($attachments_preview->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" data-start="<?php echo $attachments_preview->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 } ?>
<!--next page button-->
	<?php if ($attachments_preview->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" data-start="<?php echo $attachments_preview->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 ($attachments_preview->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" data-start="<?php echo $attachments_preview->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>
<div class="ew-pager ew-rec">
	<span><?php echo $Language->phrase("Record") ?>&nbsp;<?php echo $attachments_preview->Pager->FromIndex ?>&nbsp;<?php echo $Language->phrase("To") ?>&nbsp;<?php echo $attachments_preview->Pager->ToIndex ?>&nbsp;<?php echo $Language->phrase("Of") ?>&nbsp;<?php echo $attachments_preview->Pager->RecordCount ?></span>
</div>
<?php } ?>
<?php } else { ?>
<div class="ew-detail-count"><?php echo $Language->Phrase("NoRecord") ?></div>
<?php } ?>
<div class="ew-preview-other-options">
<?php
	foreach ($attachments_preview->OtherOptions as &$option)
		$option->render("body");
?>
</div>
<div class="clearfix"></div>
</div><!-- /.card-footer -->
</div><!-- /.card -->
<?php
$attachments_preview->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php
if ($attachments_preview->Recordset)
	$attachments_preview->Recordset->Close();

// Output
$content = ob_get_contents();
ob_end_clean();
echo ConvertToUtf8($content);
?>
<?php
$attachments_preview->terminate();
?>
