{include file="header99.tpl"}
<!-- Banner Start -->
	<section class="main-banner inner-banner" id="main-banner">
		<div class="banner-animate">
			<span class="stars">
				<img src="assets/images/stars.png" alt="Stars">
			</span>
			<span class="smoke smoke1">
				<img src="assets/images/smoke-img1.png" alt="Smoke">
			</span>
			<span class="smoke smoke2">
				<img src="assets/images/smoke-img2.png" alt="Smoke">
			</span>
			<span class="planet planet1 animate-this">
				<img src="assets/images/planet1.png" alt="Planet">
			</span>
			<span class="planet planet2 animate-this">
				<img src="assets/images/planet2.png" alt="Planet">
			</span>
			<span class="planet planet3 animate-this">
				<img src="assets/images/planet3.png" alt="Planet">
			</span>
			<span class="planet planet4 animate-this">
				<img src="assets/images/planet4.png" alt="Planet">
			</span>
			<span class="planet planet5 animate-this">
				<img src="assets/images/planet4.png" alt="Planet">
			</span>
			<span class="shooting-star shooting-star1">
				<img src="assets/images/shooting-star.png" alt="Shooting Star">
			</span>
			<span class="shooting-star shooting-star2">
				<img src="assets/images/shooting-star.png" alt="Shooting Star">
			</span>
			<span class="shooting-star shooting-star3">
				<img src="assets/images/shooting-star.png" alt="Shooting Star">
			</span>
			<span class="shooting-star shooting-star4">
				<img src="assets/images/shooting-star.png" alt="Shooting Star">
			</span>
			<span class="shooting-star shooting-star5">
				<img src="assets/images/shooting-star.png" alt="Shooting Star">
			</span>
		</div>
		<div class="container">
			<div class="row justify-content-center">
				<div class="col-12">
					<div class="banner-content">
						<h1 class="h1-title wow fadeup-animation" data-wow-delay="0.2s">News</h1>
						<div class="breadcrumb-box wow fadeup-animation" data-wow-delay="0.4s">
							<ul>
								<li><a href="/" title="Home">Home</a></li>
								<li>Company News</li>
							</ul>
						</div>
					</div>
				</div>
			</div>
		</div>
	</section>
	<!-- Banner End -->
{if $frm.id}

{loaddata name="news_item" id=$frm.id var=new}
{if $new}
<h3>{$new.title}</h3>
{$new.full_text}
{else}
Not Found
{/if}

{else}
<!-- Portfolio Details Start -->
	<section class="main-portfolio-details">
		<div class="container">
{loaddata name="news" var=news page=$frm.p limit=20 pages_var=pages}
{foreach from=$news item=n}

			<div class="row">
				<div class="col-lg-9">
					<div class="portfolio-detail-content wow right-animation" data-wow-delay="0.2s">
						<h3 class="h3-title"><a name="{$n.id}"></a><a href="{"?a=news&id=`$n.i`"|encurl}">{$n.title}</a></h3>
						<p>{$n.full_text}</p>
					</div>
				</div>
				<div class="col-lg-3">
					<div class="portfolio-detail-info wow left-animation" data-wow-delay="0.2s">
						<div class="portfolio-detail-info-box">
							<p>Name:</p>
							<h3 class="h3-title">Admin</h3>
						</div>
						<div class="portfolio-detail-info-box">
							<p>Company Name:</p>
							<h3 class="h3-title">COMPANY NAME LIMITED</h3>
						</div>
						<div class="portfolio-detail-info-box">
							<p>Date:</p>
							<h3 class="h3-title">{$n.date}</h3>
						</div>
						
					</div>
				</div>
			
			
			
			
		






<div class="col-lg-12">
{foreachelse}

			<P><b>No news found</b></P>	
			
{/foreach}



<center>
{paginator col=$pages.col cur=$pages.cur url="?a=news&p=%s"|encurl}
</center>
	</div>
	</div>
		</div>
	</section>
	<!-- Portfolio Details End -->



{/if}

{include file="footer99.tpl"}