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

$this->headTitle($this->projectName);
$this->placeholder('title')->set($this->t('zpravy-f'));
?>
<h1 class="page_title"><?=$this->t('zpravy-f')?></h1>
<h1 class="group_title"><?=$this->t('cteni-zpravy-f')?></h1>

	<div class="main_inner2">
    	<div class="main_inner">
        	<div class="left_column">
    	    	<div class="left_column_item">
    	        	<?=$this->action('messages-menu', 'layout', 'default', array('leftmenu' => $this->leftmenu)); ?>
    	        </div>
    	    </div>
        
	        <div class="main_text_right">
	            <h2 class="section_heading"><?=$this->t('cteni-zpravy-f')?></h2>
	            <h2><?=($this->recieved) ? $this->t('od-f') : $this->t('komu-f');?>: <?=($this->recieved) ? $this->data->sendername . ' ' . $this->data->sendersurname : $this->data->recievername . ' ' . $this->data->recieversurname;?></h2>
	            <h2><?=$this->t('cas-odeslani-f')?>: <?=$this->date($this->data->datetime)?>, <?=$this->time($this->data->datetime)?></h2>
	            
	            <br />
	            
	            <label><?=$this->t('predmet-f')?>: <?=$this->escape($this->data->subject)?></label>
	            <div class="message_detail_border">
	                <p><?=$this->escape($this->data->body)?></p>
	            </div>
	            
	            <p class="message_detail_buttons">
	            	[<a href="<?=$this->baseUrl()?>/messages/reply/id/<?=$this->data->id_message?>"><?=$this->t('odpovedet-AF')?></a>] 
	            	[<a href="<?=$this->baseUrl()?>/messages/forward/id/<?=$this->data->id_message?>"><?=$this->t('preposlat-AF')?></a>] 
	            	
	            	<?php if ($this->data->is_bin) : ?>
	            			[<a href="<?=$this->baseUrl()?>/messages/inbox/id/<?=$this->data->id_message?>"><?=($this->recieved) ? $this->t('vratit-z-kose-mezi-dorucene-AF') : $this->t('vratit-z-kose-mezi-odeslane-AF'); ?></a>]
	            	<?php else : ?>
	            		[<a href="<?=$this->baseUrl()?>/messages/trash/id/<?=$this->data->id_message?>"><?=$this->t('smazat-AF')?></a>]
	            	<?php endif; ?>
	            	
	            </p>
			</div>
		</div>
	</div>
			
