diff options
Diffstat (limited to 'html/widgets/host.tmpl')
| -rw-r--r-- | html/widgets/host.tmpl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/html/widgets/host.tmpl b/html/widgets/host.tmpl new file mode 100644 index 0000000..cf90c8a --- /dev/null +++ b/html/widgets/host.tmpl @@ -0,0 +1,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 = 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> |
