1 <table style="width:100%">
2 <tr>
3 <td colspan="2">
4 <h3>{t}Generic{/t}</h3>
5 </td>
6 </tr>
7 <tr>
8 <td style='width:50%; vertical-align:top;' >
9 <table>
10 <tr>
11 <td>
12 {t}Mime type{/t}{$must}
13 </td>
14 <td>
15 {render acl=$cnACL}
16 <input type="text" name='cn' value="{$cn}" title='{t}Please enter a name for the mime type here{/t}'>
17 {/render}
18 </td>
19 </tr>
20 <tr>
21 <td>
22 {t}Mime group{/t}
23 </td>
24 <td>
25 {render acl=$gotoMimeGroupACL}
26 <select name='gotoMimeGroup' title='{t}Categorize this mime type{/t}'>
27 {html_options output=$gotoMimeGroups values=$gotoMimeGroups selected=$gotoMimeGroup}
28 </select>
29 {/render}
30 </td>
31 </tr>
32 <tr>
33 <td>
34 {t}Description{/t}
35 </td>
36 <td>
37 {render acl=$descriptionACL}
38 <input type="text" name='description' value="{$description}" title='{t}Please specify a description{/t}'>
39 {/render}
40 </td>
41 </tr>
42 {if !$isReleaseMimeType}
43 <tr>
44 <td><LABEL for="base">{t}Base{/t}{$must}</LABEL></td>
45 <td>
46 {render acl=$baseACL}
47 <select size="1" id="base" name="base" title="{t}Choose subtree to place application in{/t}">
48 {html_options options=$bases selected=$base_select}
49 </select>
50 {/render}
51 {if !$isReleaseMimeType}
52 {render acl=$baseACL disable_picture='images/lists/folder_grey.png'}
53 <input type="image" name="chooseBase" src="images/lists/folder.png" class="center" title="{t}Select a base{/t}">
54 {/render}
55 {/if}
56 </td>
57 </tr>
59 {/if}
60 </table>
62 </td>
63 <td style="border-left:1px solid #A0A0A0;vertical-align:top;">
64 <table summary="">
65 <tr>
66 <td>
67 <LABEL for="picture_file">{t}Icon{/t}</LABEL><br>
68 {if $IconReadable}
69 <img src="{$gotoMimeIcon}" border=1 alt='{t}Mime icon{/t}'
70 style="width:48px; height:48; background-color:white; vertical-align:bottom;">
71 {else}
72 <img src="images/empty.png" border=1 alt='{t}Mime icon{/t}'
73 style="width:48px; height:48; background-color:white; vertical-align:bottom;">
74 {/if}
75 </td>
76 <td style="vertical-align:top">
77 <br>
78 <input type="hidden" name="MAX_FILE_SIZE" value="100000">
79 {render acl=$gotoMimeIconACL}
80 <input name="picture_file" type="file" size="20" maxlength="255"
81 accept="image/*.png" id="picture_file">
82 {/render}
83 {render acl=$gotoMimeIconACL}
84 <button type='submit' name='update_icon'>{t}Update{/t}</button>
85 title="{t}Update mime type icon{/t}">
86 {/render}
87 </td>
88 </tr>
89 </table>
90 </td>
91 </tr>
92 <tr>
93 <td colspan="2">
94 <hr>
95 </td>
96 </tr>
97 <tr>
98 <td colspan="2">
99 <h3>{t}Left click{/t}</h3>
100 </td>
101 </tr>
102 <tr>
103 <td style='width:50%; vertical-align:top;' >
104 {t}File patterns{/t}{$must}
105 {render acl=$gotoMimeFilePatternACL}
106 {$gotoMimeFilePatterns}
107 {/render}
109 {render acl=$gotoMimeFilePatternACL}
110 <input type='text' name='NewFilePattern' value='' title='{t}Please specify a new file pattern{/t}'>
111 {/render}
112 {render acl=$gotoMimeFilePatternACL}
113 <button type='submit' name='AddNewFilePattern' title="{t}Add a new file pattern{/t}">{msgPool type=addButton}</button>
115 {/render}
116 </td>
117 <td style="border-left:1px solid #A0A0A0;vertical-align:top;">
118 {t}Applications{/t}
119 {render acl=$gotoMimeApplicationACL}
120 {$gotoMimeApplications}
121 {/render}
123 {render acl=$gotoMimeApplicationACL}
124 <select name="NewApplicationSelect">
125 <option value="">-</option>
126 {html_options options=$ApplicationList}
127 </select>
128 {/render}
129 {render acl=$gotoMimeApplicationACL}
130 <input type='text' name='NewApplication' value='' title='{t}Enter an application name here{/t}'>
131 {/render}
132 {render acl=$gotoMimeApplicationACL}
133 <button type='submit' name='AddNewApplication' title="{t}Add application{/t}">{msgPool type=addButton}</button>
135 {/render}
136 </td>
137 </tr>
138 <tr>
139 <td colspan="2">
140 <hr>
141 </td>
142 </tr>
143 <tr>
144 <td colspan="2">
145 <h3>{t}Embedding{/t}</h3>
146 </td>
147 </tr>
148 <tr>
149 <td style='width:50%; vertical-align:top;' >
151 <table>
152 <tr>
153 <td style='vertical-align:top; '>
154 {render acl=$gotoMimeLeftClickActionACL}
155 <input type='radio' name='gotoMimeLeftClickAction_IE' value='I'
156 {if $gotoMimeLeftClickAction_I} checked {/if}>
157 {/render}
158 {t}Show file in embedded viewer{/t}
159 <br>
161 {render acl=$gotoMimeLeftClickActionACL}
162 <input type='radio' name='gotoMimeLeftClickAction_IE' value='E'
163 {if $gotoMimeLeftClickAction_E} checked {/if}>
164 {/render}
165 {t}Show file in external viewer{/t}
166 <br>
168 {render acl=$gotoMimeLeftClickActionACL}
169 <input type='checkbox' name='gotoMimeLeftClickAction_Q' value='1'
170 {if $gotoMimeLeftClickAction_Q} checked {/if}>
171 {/render}
172 {t}Ask whether to save to local disk{/t}
173 </td>
174 </tr>
175 </table>
177 </td>
178 <td style="border-left:1px solid #A0A0A0;vertical-align:top;">
179 {t}Applications{/t}
180 {render acl=$gotoMimeEmbeddedApplicationACL}
181 {$gotoMimeEmbeddedApplications}
182 {/render}
183 {render acl=$gotoMimeEmbeddedApplicationACL}
184 <select name="NewEmbeddedApplicationSelect">
185 <option value="">-</option>
186 {html_options options=$ApplicationList}
187 </select>
188 {/render}
189 {render acl=$gotoMimeEmbeddedApplicationACL}
190 <input type='text' name='NewEmbeddedApplication' value=''
191 title='{t}Enter an application name here{/t}'>
192 {/render}
193 {render acl=$gotoMimeEmbeddedApplicationACL}
194 <button type='submit' name='AddNewEmbeddedApplication'>{msgPool type=addButton}</button>
195 title='{t}Add application{/t}'>
196 {/render}
197 </td>
198 </tr>
199 </table>
200 <input type="hidden" name="MimeGeneric" value="1">
201 <!-- Place cursor -->
202 <script language="JavaScript" type="text/javascript">
203 <!-- // First input field on page
204 focus_field('cn');
205 -->
206 </script>