f3b68830ce6063e1b3774d68558de663e0d6e985
1 <h2><img class="center" alt="" align="middle" src="images/network.png"> {t}Network settings{/t}</h2>
4 <table summary="" width="100%" cellspacing=0 cellpadding=0>
5 <tr>
6 <td style="width:50%; vertical-align: top;">
7 <table summary="">
8 <tr>
9 <td><LABEL for="ipHostNumber">{t}IP-address{/t}{if $IPisMust}{$staticAddress}{/if}</LABEL></td>
10 <td><input id="ipHostNumber" name="ipHostNumber" size=25 maxlength=80 value="{$ipHostNumber}" {$ipHostNumberACL}></td>
11 </tr>
12 <tr>
13 <td><LABEL for="macAddress">{t}MAC-address{/t}</LABEL>{$staticAddress}</td>
14 <td><input name="macAddress" id="macAddress" size=25 maxlength=80 value="{$macAddress}" {$macAddressACL}></td>
15 </tr>
16 {if $autonet==true}
17 <tr>
18 <td> </td>
19 <td><input type="submit" name="autonet" value="{t}Autodetect{/t}"
20 {if ($ipHostNumberACL !="" || $macAddressACL!= "")} disabled {/if}></td>
21 </tr>
22 {/if}
23 </table>
24 </td>
25 {if $DNS_is_account==true}
26 <td style="width:50%;vertical-align:top;border-left:1px solid #b0b0b0;" valign="top">
27 <input type="checkbox" name="enableDNS" value="1" {$DNSaccountACL}
28 {if $DNSAccount == true}checked="checked"
29 onclick="toggle('test2');
30 changeState('zoneName');
31 changeState('dNSTTL');
32 changeState('AddNewRecord');
33 {$changeStateForRecords}
34 "/>
35 {else}
36 onclick="toggle('test2');
37 changeState('zoneName');
38 changeState('dNSTTL');
39 changeState('AddNewRecord');
40 "/>
41 {/if}
42 {t}Enable DNS for this device{/t}
43 <input type="submit" name="reloadThisDNSStuff" value="{t}Refresh{/t}" {$DNSaccountACL}/>
44 {if $DNSAccount == true}
45 <div style="padding-left:20px;visibility:visible;" id="test2">
46 {else}
47 <div style="padding-left:20px;visibility:hidden;" id="test2">
48 {/if}
49 <table summary="">
50 <tr>
51 <td><LABEL for="zoneName">{t}Zone{/t}</LABEL></td>
52 <td>
53 <select name="zoneName" id="zoneName" {if $DNSAccount == false} disabled='disabled' {/if} {$zoneNameACL}>
54 {html_options values=$ZoneKeys output=$Zones selected=$zoneName}
55 </select>
56 </td>
57 </tr>
58 <tr>
59 <td>{t}TTL{/t}</td>
60 <td><input type="text" name="dNSTTL" value="{$dNSTTL}" id="dNSTTL" {if $DNSAccount == false} disabled='disabled' {/if} {$dNSTTLACL}>
61 </td>
62 </tr>
63 <tr>
64 <td valign="top">{t}Dns records{/t}</td>
65 <td>
66 {if $DNSAccount == true}{$records}{/if}
67 </td>
68 </tr>
69 </table>
70 </div>
71 </td>
72 {/if}
74 </tr>
75 </table>
76 <input type="hidden" name="network_tpl_posted" value="1">
78 <!--
79 vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
80 -->