1 <table style="width:100%">
2 <tr>
3 <td colspan="2">
4 <h2><img src='images/head.png' class='center'> {t}Generic{/t}</h2>
5 </td>
6 </tr>
7 <tr>
8 <td style='width:50%; vertical-align:top;' >
10 <table>
11 <tr>
12 <td>
13 {t}Mime type{/t}
14 </td>
15 <td>
16 <input type="text" name='cn' value="{$cn}" {$cnACL} title='{t}Please enter a name for the mime type here{/t}'>
17 </td>
18 </tr>
19 <tr>
20 <td>
21 {t}Mime group{/t}
22 </td>
23 <td>
24 <select name='gotoMimeGroup' {$gotoMimeGroupACL} title='{t}Categorize this mime type{/t}'>
25 {html_options output=$gotoMimeGroups values=$gotoMimeGroups selected=$gotoMimeGroup}
26 </select>
27 </td>
28 </tr>
29 <tr>
30 <td>
31 {t}Description{/t}
32 </td>
33 <td>
34 <input type="text" name='description' value="{$description}" {$descriptionACL} title='{t}Please sepecify a description{/t}'>
35 </td>
36 </tr>
37 </table>
39 </td>
40 <td style="border-left:1px solid #A0A0A0;vertical-align:top;">
41 <table summary="">
42 <tr>
43 <td>
44 <LABEL for="picture_file">{t}Icon{/t}</LABEL><br>
45 <img src="{$gotoMimeIcon}" border=1 style="width:48px; height:48; background-color:white; vertical-align:bottom;">
46 </td>
47 <td style="vertical-align:top">
48 <br>
49 <input type="hidden" name="MAX_FILE_SIZE" value="100000">
50 <input name="picture_file" type="file" size="20" maxlength="255" accept="image/*.png" id="picture_file" {$gotoMimeIconACL}>
51 <input type="submit" name="update_icon" value="{t}Update{/t}" title="{t}Update mime type icon{/t}" {$gotoMimeIconACL}>
52 </td>
53 </tr>
54 </table>
55 </td>
56 </tr>
57 <tr>
58 <td colspan="2">
59 <p class='seperator'> </p>
60 </td>
61 </tr>
62 <tr>
63 <td colspan="2">
64 <h2><img src='images/mime_leftclick.png' class='center'> {t}Left click{/t}</h2>
65 </td>
66 </tr>
67 <tr>
68 <td style='width:50%; vertical-align:top;' >
69 {t}File patterns{/t}
70 {$gotoMimeFilePatterns}
71 <br>
72 <input type='text' name='NewFilePattern' value='' title='{t}Please specify a new file pattern{/t}' {$gotoMimeFilePatternACL}>
73 <input type='submit' name='AddNewFilePattern' value='{t}Add{/t}' title='{t}Add a new file pattern{/t}' {$gotoMimeFilePatternACL}>
74 </td>
75 <td style="border-left:1px solid #A0A0A0;vertical-align:top;">
76 {t}Applications{/t}
77 {$gotoMimeApplications}
78 <br>
79 <input type='text' name='NewApplication' value='' title='{t}Enter an application name here{/t}' {$gotoMimeApplicationACL}>
80 <input type='submit' name='AddNewApplication' value='{t}Add{/t}' title='{t}Add application{/t}' {$gotoMimeApplicationACL}>
81 </td>
82 </tr>
83 <tr>
84 <td colspan="2">
85 <p class='seperator'> </p>
86 </td>
87 </tr>
88 <tr>
89 <td colspan="2">
90 <h2><img src='images/mime_embedding.png' class='center'> {t}Embedding{/t}</h2>
91 </td>
92 </tr>
93 <tr>
94 <td style='width:50%; vertical-align:top;' >
96 <table>
97 <tr>
98 <td style='vertical-align:top; '>
99 <input type='radio' name='gotoMimeLeftClickAction_IE' value='I'
100 {if $gotoMimeLeftClickAction_I} checked {/if} {$gotoMimeLeftClickActionACL}>
101 {t}Show file in embedded viewer{/t}
102 <br>
104 <input type='radio' name='gotoMimeLeftClickAction_IE' value='E'
105 {if $gotoMimeLeftClickAction_E} checked {/if} {$gotoMimeLeftClickActionACL}>
106 {t}Show file in external viewer{/t}
107 <br>
109 <input type='checkbox' name='gotoMimeLeftClickAction_Q' value='1'
110 {if $gotoMimeLeftClickAction_Q} checked {/if} {$gotoMimeLeftClickActionACL}>
111 {t}Ask wheter to save to local disk{/t}
112 </td>
113 </tr>
114 </table>
116 </td>
117 <td style="border-left:1px solid #A0A0A0;vertical-align:top;">
118 {t}Applications{/t}
119 {$gotoMimeEmbeddedApplications}
120 <br>
121 <input type='text' name='NewEmbeddedApplication' value='' title='{t}Enter an application name here{/t}' {$gotoMimeEmbeddedApplicationACL}>
122 <input type='submit' name='AddNewEmbeddedApplication' value='{t}Add{/t}' title='{t}Add application{/t}' {$gotoMimeEmbeddedApplicationACL}>
123 </td>
124 </tr>
125 </table>
126 <input type="hidden" name="MimeGeneric" value="1">