<?php
/**
 * @author Lukas Havlicek
 * @version 1.0
 */

$this->headTitle($this->projectName);
$this->placeholder('title')->set($this->t('dokumenty-f'));
?>
<h1 class="page_title"><?=$this->t('dokumenty-f')?></h1>
        <h1 class="group_title"><?=($this->edit) ? $this->t('editovat-zaznam-f') : $this->t('pridat-zaznam-f')?></h1>
            <div class="main_inner2">
    			<div class="main_inner">
    			
    				 <div class="left_column">
    	                <div class="left_column_item">
    	                    <?=$this->action('documents-menu', 'layout', 'default', array('leftmenu' => $this->leftmenu)); ?>
    	                </div>
    	            </div>
    	            
    				<div class="main_text_right">
    				    
                        <h2 class="section_heading"><?=($this->version) ? $this->t('prehled-potvrzeni-verze-f') : $this->t('prehled-potvrzeni-revize-f')?>  <?=$this->t('cislo') . ' ' . $this->ver_number . '.' . $this->rev_number?> <?=$this->t('dokumentu') . ' ' . $this->doc_name?></h2>
                        
                        <div class="button_line">
                            <a href="<?=$this->baseUrl()?>/documents/detail/id/<?=$this->id_document?>#versrefs"><?=$this->t('zpet-AF')?></a>
                        </div>
                        
                        <?php if (isset($this->data) && $this->data->count()) : ?>
		                <table>
		                	<tr class="header">
		                		<td><?=$this->t('prijmeni-f')?> <?=$this->t('a')?> <?=$this->t('jmeno-f')?></td>
                        		<td><?=$this->t('uzivatelske-jmeno-f')?></td>
                        		<td colspan="2"><?=$this->t('potvrzeno-f')?></td>
                        	</tr>
		                	<?php foreach ($this->data as $i) : ?>
		                    <tr class="<?=$this->evod('odd', 'even');?>">
								<td><?=$this->escape($i->user_surname . ' ' . $i->user_firstname)?></td>	                    
								<td><?=$this->escape($i->login)?></td>	                    
								<?php if ($this->version) : ?>
								<td><?=$this->date($i->version_confirm_confirmed)?></td>
								<td><?=$this->time($i->version_confirm_confirmed, true)?></td>
								<?php else : ?>
								<td><?=$this->date($i->revision_confirm_confirmed)?></td>
								<td><?=$this->time($i->revision_confirm_confirmed, true)?></td>
								<?php endif; ?>
		                    </tr>
		                    <?php endforeach; ?>
		                    <?php $this->evod('','', 1);?>
		                </table>
                        
                        <?php else : ?>
                        	<div class="info_box"><?=$this->t('zadne-zaznamy-h')?></div>
                        <?php endif; ?>
                        
                    </div>
    			
    			</div>
			</div>