<div class="comments-area" style=" margin-bottom: 30px;">
	<div class="row mb-2">
		<div class="col-sm-6 d-none d-md-block ">
			<h3>
				{{ lang.ipban['hdr.list'] }}</h3>
		</div>
		<!-- /.col -->
		<div class="col-sm-6">
			<ol class="breadcrumb float-sm-right">
				<li class="breadcrumb-item">
					<a href="{{ php_self }}">
						<i class="fa fa-home"></i>
					</a>
				</li>
				<li class="breadcrumb-item active" aria-current="page">
					<a href="{{ php_self }}?mod=ipban">{{ lang.ipban['hdr.list'] }}</a>
				</li>
			</ol>
		</div>
		<!-- /.col -->
	</div>
	<!-- /.row -->
</div>
<div class="comments-area">
<table class="content" border="0" cellspacing="0" cellpadding="2" align="center">
<tr>
<td width="66%" style="padding-right:10px;" valign="top">
<table border="0" width="100%" cellpadding="0" cellspacing="0">


<tr align="left" class="contHead">
<td>{{ lang.ipban['hdr.ip'] }}</td>
<td>{{ lang.ipban['hdr.counter'] }}</td>
<td>{{ lang.ipban['hdr.type'] }}</td>
<td>{{ lang.ipban['hdr.reason'] }}</td>
<td>&nbsp;</td>
</tr>

{% for entry in entries %}
				<tr>
					<td nowrap>
						{{ entry.ip }} <a href="http://www.nic.ru/whois/?ip={{ entry.whoisip }}" target="_blank"><i class="fa fa-external-link"></i></a>
					</td>
					<td>{{ entry.hitcount }}</td>
					<td>{{ entry.type }}</td>
					<td nowrap>{{ entry.descr }}</td>
					<td class="text-right">
						{% if flags.permModify %}
							<a href="{{ php_self }}?mod=ipban&action=del&id={{ entry.id }}&token={{ token }}" class="btn btn-sm btn-outline-danger" title="{{ lang.ipban['act.unblock'] }}">
								<i class="fa fa-trash"></i>
							</a>
						{% endif %}
					</td>
				</tr>
			{% else %}
				<tr>
					<td colspan="5" class="text-center">---</td>
				</tr>
			{% endfor %}


</table>
</td>
<td width="33%" style="padding-left:5px;" valign="top">
{% if flags.permModify %}
<form name="form" method="post" action="{{ php_self }}?mod=ipban">
<input type="hidden" name="token" value="{{ token }}"/>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width=100% colspan="2" class="contentHead">{{ lang.ipban['hdr.block'] }}</td>
</tr>
<tr><td class="contentEntry2">{{ lang.ipban['add.ip'] }}:</td><td><input type="text" name="ip" value="{{ iplock }}" size="31" /></td></tr>
<tr><td class="contentEntry2">{{ lang.ipban['add.block.open'] }}:</td><td><select disabled="disabled" name="lock:open"><option value="0">--</option><option value="1" style="color: blue;">{{ lang.ipban['lock.block'] }}</option><option value="2" style="color: red;">{{ lang.ipban['lock.silent'] }}</option></select></tr>
<tr><td class="contentEntry2">{{ lang.ipban['add.block.reg'] }}:</td><td><select name="lock:reg"><option value="0">--</option><option value="1" style="color: blue;">{{ lang.ipban['lock.block'] }}</option><option value="2" style="color: red;">{{ lang.ipban['lock.silent'] }}</option></select></tr>
<tr><td class="contentEntry2">{{ lang.ipban['add.block.login'] }}:</td><td><select name="lock:login"><option value="0">--</option><option value="1" style="color: blue;">{{ lang.ipban['lock.block'] }}</option><option value="2" style="color: red;">{{ lang.ipban['lock.silent'] }}</option></select></tr>
<tr><td class="contentEntry2">{{ lang.ipban['add.block.comm'] }}:</td><td><select name="lock:comm"><option value="0">--</option><option value="1" style="color: blue;">{{ lang.ipban['lock.block'] }}</option><option value="2" style="color: red;">{{ lang.ipban['lock.silent'] }}</option></select></tr>
<tr><td class="contentEntry2">{{ lang.ipban['add.block.rsn'] }}</td><td><input type="text" name="lock:rsn" size="30" /></td></tr>
<tr>
<td width=100% class="contentEntry" colspan="2" valign="middle" align="center">
<input type="submit" value="{{ lang.ipban['add.submit'] }}" class="button" />
<input type="hidden" name="action" value="add" />
</td>
</tr>
</table>
</form>
{% endif %}
</td>
</tr>
</table>
<br/>
<br/>
{{ lang.ipban['info.descr'] }}
</div>
