summaryrefslogtreecommitdiff
path: root/html/widgets/dir.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'html/widgets/dir.tmpl')
-rw-r--r--html/widgets/dir.tmpl20
1 files changed, 20 insertions, 0 deletions
diff --git a/html/widgets/dir.tmpl b/html/widgets/dir.tmpl
new file mode 100644
index 0000000..fa41e1b
--- /dev/null
+++ b/html/widgets/dir.tmpl
@@ -0,0 +1,20 @@
+<!-- dir -->
+<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 %?>Dir()"><br>
+ <span id='id<?% param.count %?>'></span>
+ </td>
+</tr>
+<script>
+function check<?% data.NAME %?>Dir () {
+ checkValue(document.forms[0].<?% data.NAME %?>, 'id<?% param.count %?>', "isdir",
+ '<?% gettext("Directory does not exist!") %?>',
+ '<?% gettext("Directory exists!") %?>');
+}
+window.setTimeout("check<?% data.NAME %?>Dir()", 500);
+</script>