bcast-bridge/web/smarty/templates/forward.tpl

40 lines
1.3 KiB
Smarty

<table cellspacing="10">
<tr><td valign="top">
<table class="lgraybox">
<caption>IP/UDP Forwards</caption>
<tr><td class="head" width="50">active</td>
<td class="head" width="200">Port(s)</td>
<td class="head" width="200">Description</td>
<td class="head"></td>
</tr>
{foreach from=$forwards item=forward}
{cycle values="data1,data2" assign=tdclass}
<tr>
{if $forward->isActive()}
<td align="center" bgcolor="#A0FFA0">
<input type="checkbox" checked="checked" onChange="javascript:window.location.href='{$smarty.server.PHP_SELF}?action=toggle_forward&forwardid={$forward->id}'">
</td>
{else}
<td align="center" bgcolor="#FFA0A0">
<input type="checkbox" onChange="javascript:window.location.href='{$smarty.server.PHP_SELF}?action=toggle_forward&forwardid={$forward->id}'">
</td>
{/if}
<td class="{$tdclass}">{$forward->portlo}{if $forward->porthi != 0} - {$forward->porthi}{/if}</td>
<td class="{$tdclass}">{$forward->name|escape}</td>
<td class="{$tdclass}"></td>
</tr>
{/foreach}
<form action="{$smarty.server.PHP_SELF}?action=add_forward" method="post">
<tr><td class="head"></td>
<td class="head"><input type="text" name="ports"></td>
<td class="head"><input type="text" name="name"></td>
<td class="head"><input type="submit" value="add"></td>
</tr>
</form>
</table>
</table>