ACC SHELL

Path : /var/lib/ntp/proc/self/root/srv/www/vhosts/tsisystem/app/views/pages/
File Upload :
Current File : //var/lib/ntp/proc/self/root/srv/www/vhosts/tsisystem/app/views/pages/publications.thtml

<?php if (empty($single)) : ?>
  <div id="main" class="subpage">
  <div id="left">
<?php else: ?>
  <div id="main">
	<div style="padding: 30px 50px 10px 50px">
<?php endif; ?>


		<?php if (! empty($single)) : $article = $news['Article']; ?>
		<h1><?php e($article['title']); ?></h1>


		<div id="navigation">
		  Informace &raquo; Publikace, inzerce &raquo; 
		  <?php echo $html->link($y, '/publikace-inzerce?y=' . $y); ?> &raquo;
		  <?php e($article['title']); ?>
		</div>

		<div class="news-date"><?php echo en2czMonth(date('j. F Y', strtotime($article['created_d']))); ?></div>
		<div style="text-align: justify" class="content">
		  <?php e($article['perex']) ?>
		  <?php e($article['content']) ?>
		  <div class="clear"></div>
		</div>
		<?php 
		   $downloads = '';
		   foreach ($files as $file) {
			  if (! $file['id']) continue;
		      $downloads .= $html->link($file['name'], '/file/' . $file['id'])
		         . ' <span class="light">(' . round($file['size'] / 1024, 1) . 'kB)<br />';

		   }
		  if ($downloads) { ?>
		  <p style="clear: both; padding-top: 0.5em; margin: 0;">
		  Podrobnosti:
		  </p>
		  <div style="padding-left: 2em;">
		  <?php echo $downloads; ?>
		  </div>
		  <?php } ?>

		<?php else:  ?>

		<h1>Publikace, inzerce</h1>
		<div id="navigation">
              Informace &raquo; Publikace, inzerce &raquo; <?php echo $y; ?>
		</div>

		<?php foreach ($news as $article) : $article = $article['Article']; ?>
		
		<h4><?php e($article['title']); ?></h4>

		<div class="news-date"><?php echo en2czMonth(date('j. F Y', strtotime($article['created_d']))); ?></div>


		<p style="text-align: justify">
		<?php if ($article['icon']) : ?>
		  <img style="vertical-align: top" class="icon" src="<?php echo $article['icon']; ?>" alt="Icon" />
		  <?php endif; ?>

		  <?php e(strip_tags($article['perex'])); ?>
		</p>


		<div class="news-more">
		  <?php 
          echo $html->link('celá zpráva', '/publikace-inzerce/' . join('/', explode('-', $article['title_idx'], 2)));
		  ?>
		</div>
		<br style="clear: both" />

		<?php endforeach; ?>

		<?php endif; ?>
  </div>

  <?php if (empty($single)) : ?>
  <div id="right">
	<div id="right-menu-providers">publikace, inzerce</div>
	<ul class="right-menu right-menu-1">
	  <?php
	  for ($i = date('Y'); $i > 2001; $i--) {
	  printf('<li class="menu-1"><a href="%s" %s>%d</a></li>',
	      $html->url('/publikace-inzerce?y=' . $i),
          $i == $y ? 'class="current"' : '',
	  $i);
      }
	  ?>
	</ul>
  </div>
  <?php endif; ?>
  <div class="clear"></div>
</div>

ACC SHELL 2018