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

$this->headTitle($this->projectName);
$this->placeholder('title')->set($this->t('verze-f'));
?>
<h1 class="page_title"><?=$this->t('verze-f')?></h1>
        <h1 class="group_title"><?=$this->t('potvrzeni-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('verze-k-potvrzeni-f')?></h2>

  						<?php if (isset($this->data) && $this->data->count()) : ?>
		                <table>
		                	<?php foreach ($this->data as $i) : ?>
		                    <tr class="<?=$this->evod('odd', 'even');?>">
		                        <td><a href="<?=$this->baseUrl()?>/messages/detail/id/<?=$i->id_document?>"><?=$i->doc_name?></a></td>
		                        <td><?=$this->t('verze')?>: <?=number_format($i->ver_number, 1, '.', '')?></td>
		                        <td class="actions">
		                            <a class="action_read" href="<?=$this->baseUrl()?>/confirmations/version-confirm/id/<?=$i->id_version_confirm?>"><?=$this->t('potvrdit-AF')?></a>
		                        </td>
		                    </tr>
		                    <?php endforeach; ?>
		                    <?php $this->evod('','', 1);?>
		                </table>
                        
                        <div class="paging">
                            <?=$this->paginationControl($this->data, 'Sliding', 'confirmations/paging.phtml', array('action' => 'versions')); ?>
                        </div>
                        <?php else : ?>
                        	<div class="info_box"><?=$this->t('zadne-nove-verze-k-potvrzeni-f')?>.</div>
                        <?php endif; ?>
                        
                    </div>
    			
    			</div>
			</div>