<div class="form-wrap">
	<h1>{{ lang.nsm['list.news'] }} <a href="{{ addURL }}" class="button" style="float:right;">{{ lang.nsm['add.news'] }}</a></h1>
	<table class="nsm" width="100%">
		<tr align="center">
			<td width="40">{{ lang.nsm['status.news'] }}</td>
			<td width="60">{{ lang.nsm['data.news.published'] }}</td>
			<td>&nbsp;</td>
			<td>{{ lang.nsm['add.news.title'] }}</td>
		</tr>
		{% for entry in entries %}
			<tr>
				<td width="25" align="center">
					{% if (entry.state == 1) %}
						<img src="{{ skins_url }}/images/yes.png" alt="{{ lang.nsm['state.published'] }}" />
					{% elseif (entry.state == 0) %}
						<img src="{{ skins_url }}/images/no.png" alt="{{ lang.nsm['state.unpublished'] }}" />
					{% else %}
						<img src="{{ skins_url }}/images/no_plug.png" alt="{{ lang.nsm['state.draft'] }}" />
					{% endif %}
				</td>
				<td width="60">
					{% if entry.flags.canEdit %}
						<a href="{{ entry.editlink }}">{% endif %}{{ entry.itemdate }}{% if entry.flags.canView %}</a>
					{% endif %}
				</td>
				<td width="65" cellspacing=0 cellpadding=0 align="center">
					{% if entry.flags.mainpage %}<img src="{{ skins_url }}/images/mainpage.png" border="0" width="16" height="16" title="{{ lang.nsm['entry.main'] }}"/> {% endif %}
					{% if (entry.attach_count > 0) %}<img src="{{ skins_url }}/images/attach.png" border="0" width="16" height="16" title="{{ lang.nsm['entry.files'] }}: {{ entry.attach_count }}"/> {% endif %}
					{% if (entry.images_count > 0) %}<img src="{{ skins_url }}/images/img_group.png" border="0" width="16" height="16" title="{{ lang.nsm['entry.img'] }}: {{ entry.images_count }}"/> {% endif %}
				</td>
				<td>
					{% if entry.flags.status %}
						<a href="{{ entry.link }}">{% endif %}{{ entry.title }}{% if entry.flags.status %}</a>
					{% endif %}
				</td>
			</tr>
		{% else %}
			<tr>
				<td colspan="4">{{ lang.nsm['err.news_not'] }}</td>
			</tr>
		{% endfor %}
	</table>
</div>
{% if pagination %}
	<div class="bottom-nav clr ignore-select" id="bottom-nav">
		<div class="pagi-nav clearfix">
			<span class="pprev"></span>
			<span class="navigation">{{ pagination }}</span>
			<span class="pnext"></span>
		</div>
	</div>
{% endif %}