summaryrefslogtreecommitdiff
path: root/skins/stone/widgets/file.tmpl
blob: fad45b5ff867671f4dc605e00692102d0167517c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!-- file -->
<?% global.widgetcount = global.widgetcount + 1 %?>
<tr<?% ' class="two"' IF global.widgetcount mod 2 == 0 %?>>
    <?% INCLUDE widgets/topic.inc abbr=data.msg %?>
    <td>
        <?% val = cgi.param(data.NAME) || data.def %?>
        <?% TRY %?>
            <?% USE File(reentities(val), root => reentities(realbin)) %?>
            <input style="width:395px;" size="<?% val.length + 3 %?>" type="text" name="<?% data.NAME %?>" value="<?% val %?>" />
        <?% CATCH File %?>
            <input style="width:395px;" size="<?% val.length + 3 %?>" type="text" name="<?% data.NAME %?>" value="<?% val %?>" class="error" /><br />
            <font class="error"><?% gettext("File '%s' does not exist!") | replace('%s',val)%?></font>
        <?% END %?>
    </td>
</tr>