1 <table style="width:100%">
2 <tr>
3 <td colspan="2">
4 <h2><img src='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=$gotoMimeGroupACL}
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/folder_gray.png'}
53 <input type="image" name="chooseBase" src="images/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 <img src="{$gotoMimeIcon}" border=1 alt='{t}Mime icon{/t}'
69 style="width:48px; height:48; background-color:white; vertical-align:bottom;">
70 </td>
71 <td style="vertical-align:top">
72 <br>
73 <input type="hidden" name="MAX_FILE_SIZE" value="100000">
74 {render acl=$gotoMimeIconACL}
75 <input name="picture_file" type="file" size="20" maxlength="255"
76 accept="image/*.png" id="picture_file">
77 {/render}
78 {render acl=$gotoMimeIconACL}
79 <input type="submit" name="update_icon" value="{t}Update{/t}"
80 title="{t}Update mime type icon{/t}">
81 {/render}
82 </td>
83 </tr>
84 </table>
85 </td>
86 </tr>
87 <tr>
88 <td colspan="2">
89 <p class='seperator'> </p>
90 </td>
91 </tr>
92 <tr>
93 <td colspan="2">
94 <h2><img src='images/mime_leftclick.png' class='center' alt='{t}Left click{/t}'> {t}Left click{/t}</h2>
95 </td>
96 </tr>
97 <tr>
98 <td style='width:50%; vertical-align:top;' >
99 {t}File patterns{/t}{$must}
100 {render acl=$gotoMimeFilePatternACL}
101 {$gotoMimeFilePatterns}
102 {/render}
104 {render acl=$gotoMimeFilePatternACL}
105 <input type='text' name='NewFilePattern' value='' title='{t}Please specify a new file pattern{/t}'>
106 {/render}
107 {render acl=$gotoMimeFilePatternACL}
108 <input type='submit' name='AddNewFilePattern' value='{t}Add{/t}' title='{t}Add a new file pattern{/t}'>
109 {/render}
110 </td>
111 <td style="border-left:1px solid #A0A0A0;vertical-align:top;">
112 {t}Applications{/t}
113 {render acl=$gotoMimeApplicationACL}
114 {$gotoMimeApplications}
115 {/render}
116 {render acl=$gotoMimeApplicationACL}
117 <input type='text' name='NewApplication' value='' title='{t}Enter an application name here{/t}'>
118 {/render}
119 {render acl=$gotoMimeApplicationACL}
120 <input type='submit' name='AddNewApplication' value='{t}Add{/t}' title='{t}Add application{/t}'>
121 {/render}
122 </td>
123 </tr>
124 <tr>
125 <td colspan="2">
126 <p class='seperator'> </p>
127 </td>
128 </tr>
129 <tr>
130 <td colspan="2">
131 <h2><img src='images/mime_embedding.png' class='center' alt='{t}Embedding{/t}'> {t}Embedding{/t}</h2>
132 </td>
133 </tr>
134 <tr>
135 <td style='width:50%; vertical-align:top;' >
137 <table>
138 <tr>
139 <td style='vertical-align:top; '>
140 {render acl=$gotoMimeLeftClickActionACL}
141 <input type='radio' name='gotoMimeLeftClickAction_IE' value='I'
142 {if $gotoMimeLeftClickAction_I} checked {/if}>
143 {/render}
144 {t}Show file in embedded viewer{/t}
145 <br>
147 {render acl=$gotoMimeLeftClickActionACL}
148 <input type='radio' name='gotoMimeLeftClickAction_IE' value='E'
149 {if $gotoMimeLeftClickAction_E} checked {/if}>
150 {/render}
151 {t}Show file in external viewer{/t}
152 <br>
154 {render acl=$gotoMimeLeftClickActionACL}
155 <input type='checkbox' name='gotoMimeLeftClickAction_Q' value='1'
156 {if $gotoMimeLeftClickAction_Q} checked {/if}>
157 {/render}
158 {t}Ask whether to save to local disk{/t}
159 </td>
160 </tr>
161 </table>
163 </td>
164 <td style="border-left:1px solid #A0A0A0;vertical-align:top;">
165 {t}Applications{/t}
166 {render acl=$gotoMimeEmbeddedApplicationACL}
167 {$gotoMimeEmbeddedApplications}
168 {/render}
169 {render acl=$gotoMimeEmbeddedApplicationACL}
170 <input type='text' name='NewEmbeddedApplication' value=''
171 title='{t}Enter an application name here{/t}'>
172 {/render}
173 {render acl=$gotoMimeEmbeddedApplicationACL}
174 <input type='submit' name='AddNewEmbeddedApplication' value='{t}Add{/t}'
175 title='{t}Add application{/t}'>
176 {/render}
177 </td>
178 </tr>
179 </table>
180 <input type="hidden" name="MimeGeneric" value="1">
181 <!-- Place cursor -->
182 <script language="JavaScript" type="text/javascript">
183 <!-- // First input field on page
184 document.mainform.cn.focus();
185 -->
186 </script>