1 <table style="width:100%">
2 <tr>
3 <td colspan="2">
4 <h2><img src='plugins/goto/images/list_mime.png' class='center' alt='[M]'> {t}Generic{/t}</h2>
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 <input type="submit" name="update_icon" value="{t}Update{/t}"
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 <p class='seperator'> </p>
95 </td>
96 </tr>
97 <tr>
98 <td colspan="2">
99 <h2><img src='plugins/goto/images/mime_leftclick.png' class='center' alt='{t}Left click{/t}'> {t}Left click{/t}</h2>
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 <input type='submit' name='AddNewFilePattern' value='{msgPool type=addButton}' title='{t}Add a new file pattern{/t}'>
114 {/render}
115 </td>
116 <td style="border-left:1px solid #A0A0A0;vertical-align:top;">
117 {t}Applications{/t}
118 {render acl=$gotoMimeApplicationACL}
119 {$gotoMimeApplications}
120 {/render}
122 {render acl=$gotoMimeApplicationACL}
123 <select name="NewApplicationSelect">
124 <option value="">-</option>
125 {html_options options=$ApplicationList}
126 </select>
127 {/render}
128 {render acl=$gotoMimeApplicationACL}
129 <input type='text' name='NewApplication' value='' title='{t}Enter an application name here{/t}'>
130 {/render}
131 {render acl=$gotoMimeApplicationACL}
132 <input type='submit' name='AddNewApplication' value='{msgPool type=addButton}' title='{t}Add application{/t}'>
133 {/render}
134 </td>
135 </tr>
136 <tr>
137 <td colspan="2">
138 <p class='seperator'> </p>
139 </td>
140 </tr>
141 <tr>
142 <td colspan="2">
143 <h2><img src='images/mime_embedding.png' class='center' alt='{t}Embedding{/t}'> {t}Embedding{/t}</h2>
144 </td>
145 </tr>
146 <tr>
147 <td style='width:50%; vertical-align:top;' >
149 <table>
150 <tr>
151 <td style='vertical-align:top; '>
152 {render acl=$gotoMimeLeftClickActionACL}
153 <input type='radio' name='gotoMimeLeftClickAction_IE' value='I'
154 {if $gotoMimeLeftClickAction_I} checked {/if}>
155 {/render}
156 {t}Show file in embedded viewer{/t}
157 <br>
159 {render acl=$gotoMimeLeftClickActionACL}
160 <input type='radio' name='gotoMimeLeftClickAction_IE' value='E'
161 {if $gotoMimeLeftClickAction_E} checked {/if}>
162 {/render}
163 {t}Show file in external viewer{/t}
164 <br>
166 {render acl=$gotoMimeLeftClickActionACL}
167 <input type='checkbox' name='gotoMimeLeftClickAction_Q' value='1'
168 {if $gotoMimeLeftClickAction_Q} checked {/if}>
169 {/render}
170 {t}Ask whether to save to local disk{/t}
171 </td>
172 </tr>
173 </table>
175 </td>
176 <td style="border-left:1px solid #A0A0A0;vertical-align:top;">
177 {t}Applications{/t}
178 {render acl=$gotoMimeEmbeddedApplicationACL}
179 {$gotoMimeEmbeddedApplications}
180 {/render}
181 {render acl=$gotoMimeEmbeddedApplicationACL}
182 <select name="NewEmbeddedApplicationSelect">
183 <option value="">-</option>
184 {html_options options=$ApplicationList}
185 </select>
186 {/render}
187 {render acl=$gotoMimeEmbeddedApplicationACL}
188 <input type='text' name='NewEmbeddedApplication' value=''
189 title='{t}Enter an application name here{/t}'>
190 {/render}
191 {render acl=$gotoMimeEmbeddedApplicationACL}
192 <input type='submit' name='AddNewEmbeddedApplication' value='{msgPool type=addButton}'
193 title='{t}Add application{/t}'>
194 {/render}
195 </td>
196 </tr>
197 </table>
198 <input type="hidden" name="MimeGeneric" value="1">
199 <!-- Place cursor -->
200 <script language="JavaScript" type="text/javascript">
201 <!-- // First input field on page
202 focus_field('cn');
203 -->
204 </script>