<?php

/**
 * @author Lukas Havlicek
 * @version 1.0
 */

$this->headTitle($this->projectName);
$this->placeholder('title')->set($this->t('revize-f'));
?>

<h1 class="page_title"><?=$this->t('revize-f')?></h1>
        <h1 class="group_title"><?=$this->t('prehled-f')?></h1>
            <div class="main_inner2">
    			<div class="main_inner">
    			
    				<div class="left_column">
    	                <div class="left_column_item">
    	                    <?=$this->action('confirmations-menu', 'layout', 'default', array('leftmenu' => $this->leftmenu)); ?>
    	                </div>
    	            </div>
    	            
    				<div class="main_text_right">
                        <h2 class="section_heading"><?=$this->t('prehled-potvrzenych-revizi-f')?></h2>

  						<?php if (isset($this->data) && $this->data->count()) : ?>
		                <table>
		                	<?php foreach ($this->data as $i) : ?>
		                    <tr class="<?=$this->evod('odd', 'even');?>">
								<td><?=$this->date($i->revision_confirm_confirmed)?></td>	                    
								<td><?=$this->time($i->revision_confirm_confirmed, true)?></td>	                    
		                        <td><a href="<?=$this->baseUrl()?>/messages/detail/id/<?=$i->id_document?>"><?=$i->doc_name?></a></td>
		                        <td><?=$this->t('revize')?>: <?=$i->ver_number . '.' . $i->rev_number?></td>
		                    </tr>
		                    <?php endforeach; ?>
		                    <?php $this->evod('','', 1);?>
		                </table>
                        
                        <div class="paging">
                            <?=$this->paginationControl($this->data, 'Sliding', 'confirmations/paging.phtml', array('action' => 'done-revisions')); ?>
                        </div>
                        <?php else : ?>
                        	<div class="info_box"><?=$this->t('zadne-zaznamy-h')?></div>
                        <?php endif; ?>
                        
                    </div>
    			
    			</div>
			</div>