summaryrefslogtreecommitdiff
path: root/skins/html/widgets/host.tmpl
blob: 0a3d11adaebe0853439e815ca1f9bf2299808db3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!-- host -->
<tr>
    <td class="<?% (param.count mod 2) == 0 ? 'light' : 'dark' %?>" >
        <?% data.msg %?>
    </td>
    <td class="<?% (param.count mod 2) == 0 ? 'light' : 'dark' %?>" >
        <?% val = cgi.param(data.NAME) || data.def %?>
        <input
            type="text"
            name="<?% data.NAME %?>"
            value="<?% val %?>"
            <?% FOREACH p IN param.tags; "$p ";END %?>
            onBlur="check<?% data.NAME %?>Host()"
        ><br/>
        <span id='id<?% param.count %?>'></span>
    </td>
</tr>
<script>
function check<?% data.NAME %?>Host () {
    checkValue(document.forms[0].<?% data.NAME %?>, 'id<?% param.count %?>', 'getip', '<?% gettext("Host does not exist!") %?>', 'IP: %s');
}
window.setTimeout("check<?% data.NAME %?>Host()", 500);
</script>