<?php 
	$pageTitle 	= 'Архив задач';
	
	if(!isset($_GET['view']) AND !isset($_GET['edit'])){$filters = '1';}
	
	require_once(ROOT . 'templates/header.php'); 
	
	require_once(ROOT . 'modules/tasks/list-tasks-archive.php'); 
	
	require_once(ROOT . 'templates/main-menu.php');
?>
<div class="container<?php global $designView; echo $designView; ?>">
	<div class="row">
		<?php if ($GroupCheck != 'guest') { ?>
		<div class="col-lg-3 col-lg-push-9 col-md-4 col-md-push-8 col-sm-12">
			<?php require_once(ROOT . 'templates/side-block.php'); ?>
		</div>
		<div class="col-lg-9 col-lg-pull-3 col-md-8 col-md-pull-4 col-sm-12">
		
			<h1><a href="javascript: ;" onclick="history.go(-1)"><i class="fa fa-fw fa-angle-double-left" aria-hidden="true" title="Вернуться к списку"></i></a> <?php echo $pageTitle; ?><span class="list-num"><i class="fa fa-fw fa-angle-double-down" aria-hidden="true"></i> <?php echo $countTaskStatusDone; ?></span></h1>
			
			<?php require_once(ROOT . 'templates/search-form.php'); ?>
			
			<div class="table-responsive">
				<table id="archive-tasks" class="table table-hover all-tasks tasks-done">
					<thead> 
						<tr> 
							<th width="6%"></th> 
							<th>Наименование</th> 
							<th width="6%" title="Время выполнения, дней"><i class="fa fa-hourglass-half" aria-hidden="true"></i></th>
							<th width="15%" data-sorter="shortDate" data-date-format="yyyymmdd">Добавление</th>
							<th width="15%" data-sorter="shortDate" data-date-format="yyyymmdd">Завершение</th>
							<th width="6%"></th>
							<th width="6%"></th>
						</tr> 
					</thead> 
					<tbody>
						<?php require_once(ROOT . 'modules/tasks/list-tasks-m.php'); ?>
					</tbody>
				</table>
			</div>
			<?php require_once(ROOT . 'templates/table-pager.php'); ?>
		</div>
		<?php } else { include_once(ROOT . 'modules/access-denied.php'); } ?>
	</div>
</div>
<?
	require_once(ROOT . 'templates/modal-wind.php');
	require_once(ROOT . 'templates/footer.php');
?>
	</body>
</html>