56 lines
1.2 KiB
Smarty
56 lines
1.2 KiB
Smarty
<table class="title">
|
|
<tr>
|
|
<td class="header">
|
|
<img class="icon" src="images/settings.png" alt="" />
|
|
Import
|
|
</td>
|
|
<td align="right">
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table class="info">
|
|
<tr>
|
|
<td class="header">
|
|
IP Reg import module
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
<form method="post" action="import.php">
|
|
<table class="info">
|
|
<tr>
|
|
<td class="label">
|
|
Configuration file
|
|
</td>
|
|
<td>
|
|
{$xmlfile} of type {$xmlfiletype} ({$xmltmp})
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">
|
|
Data
|
|
</td>
|
|
<td><table>
|
|
<tr>
|
|
<th><input type="checkbox" onclick="toggle(this)"></th>
|
|
<th>From</th><th>To</th><th>Description</th>
|
|
</tr>
|
|
{foreach item=nat from=$natlist}
|
|
<tr>
|
|
<td><input type="checkbox" name="rule" value="{$nat.id}"></td>
|
|
<td>{$nat.ext|long2ip}:{$nat.ext_port}</td>
|
|
<td>{$nat.int|long2ip}:{$nat.int_port}</td>
|
|
<td>{$nat.description}</td>
|
|
<td>{$nat.dupe}</td>
|
|
</tr>
|
|
{/foreach}
|
|
</table>
|
|
<input type="submit" name="submit[exec-pfsense]" value="Import">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|