ACC SHELL

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

<script type="text/javascript"><!--
var scrollercontent=new Array(); <?php

$buf = array();

foreach ($scroll_news as $news) : $article = $news['Article'];
	$date = en2czMonth(date('j. F Y', strtotime($article['created_d'])));
	$content = ssubstr(strip_tags($article['title'] . ' - ' . $article['perex']), 0, 150) . '..';
	$link = $html->link('', ($article['article_type'] ? '/vystavy-konference-seminare/' : '/novinky/') . join('/',
		explode('-', $article['title_idx'], 2)), array('class' => 'news-rotate'));
	$url = $html->url(($article['article_type'] ? '/vystavy-konference-seminare/' : '/novinky/') . join('/',
		explode('-', $article['title_idx'], 2)));


	$buf[] = <<<EOT
<div class="news-date">$date</div>
<a href="$url"><p style="padding-bottom: 0; margin-bottom: 0">$content</p></a>
<div class="news-more">$link</div>
EOT;

endforeach;

$i = 0;
foreach ($buf as $tmp) {
    $tmp = str_replace("'", "\\'", $tmp);
    $tmp = str_replace("\r", '', $tmp);

    e("scrollercontent[$i]='" . str_replace("\n", "\\\n", $tmp) . "';\n");
    $i++;
}

?>// --></script>

ACC SHELL 2018