summaryrefslogtreecommitdiff
path: root/html/widgets/dir.tmpl
blob: fa41e1b7845a3917d3efc3ad6c31869f2cd30ed9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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>