summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 91d4f93)
raw | patch | inline | side by side (parent: 91d4f93)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 8 Sep 2006 04:35:14 +0000 (04:35 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 8 Sep 2006 04:35:14 +0000 (04:35 +0000) |
Not tested yet
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4619 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4619 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/plugins/admin/mimetypes/class_divListMimeTypes.inc b/plugins/admin/mimetypes/class_divListMimeTypes.inc
index da7850468fe0c8e31c25cb70be7881352c9d9e4e..0914cf8190d2aa9f4f1b074eca67a41dca7acab2 100755 (executable)
$ui = get_userinfo();
$acl = $ui->get_permissions("cn=dummy,ou=mimetypes,".$this->selectedBase,"mimetypes/mimetype");
- print_a($list);
foreach($list as $key => $val){
/* Create action icons */
diff --git a/plugins/admin/mimetypes/class_mimetypeGeneric.inc b/plugins/admin/mimetypes/class_mimetypeGeneric.inc
index f200bca2650920c6a1669f73ab33c576892f773e..8f0594aec21b2d012b3acf97518946fdad33a54b 100644 (file)
if(isset($_POST['MimeGeneric'])){
plugin::save_object();
- print_a($this);
-
/* Only save base if we are not in release mode */
if(!$this->isReleaseMimeType){
if(isset($_POST['base'])){
diff --git a/plugins/admin/mimetypes/class_mimetypeManagement.inc b/plugins/admin/mimetypes/class_mimetypeManagement.inc
index c18cae801722f1206d8f4b7d6310ee231423cc03..87b34ccb73ec042255c6f7104ab5be20f064a025 100755 (executable)
$this->dn= "new";
/* Create new usertab object */
- $this->mimetabs= new mimetabs($this->config, $this->config->data['TABS']['MIMETABS'], $this->dn,"mimetypes/mimetype");
+ $this->mimetabs= new mimetabs($this->config, $this->config->data['TABS']['MIMETABS'], $this->dn,"mimetypes");
$this->mimetabs->set_acl_base($this->DivListMimeTypes->selectedBase);
}
/* Get results and create index */
$res= get_list($Filter, "mimetypes", $use_base, array("cn","description","dn","objectClass"), $Flags);
- echo $Filter;
- print_a(array($res));
foreach ($res as $val){
$tmp[strtolower($val['cn'][0]).$val['cn'][0]]=$val;
}
index f1e13c763f155e297e8b461d1727b589f49beb78..e913e977b7f85c92c8f384673ef1dc1e6bf918d6 100644 (file)
<table style="width:100%">
<tr>
<td colspan="2">
- <h2><img src='images/list_mime.png' class='center'> {t}Generic{/t}</h2>
+ <h2><img src='images/list_mime.png' class='center' alt='[M]'> {t}Generic{/t}</h2>
</td>
</tr>
<tr>
{t}Mime type{/t}{$must}
</td>
<td>
- <input type="text" name='cn' value="{$cn}" {$cnACL} title='{t}Please enter a name for the mime type here{/t}'>
+{render acl=$gotoMimeGroupACL}
+ <input type="text" name='cn' value="{$cn}" title='{t}Please enter a name for the mime type here{/t}'>
+{/render}
</td>
</tr>
<tr>
{t}Mime group{/t}
</td>
<td>
- <select name='gotoMimeGroup' {$gotoMimeGroupACL} title='{t}Categorize this mime type{/t}'>
+{render acl=$gotoMimeGroupACL}
+ <select name='gotoMimeGroup' title='{t}Categorize this mime type{/t}'>
{html_options output=$gotoMimeGroups values=$gotoMimeGroups selected=$gotoMimeGroup}
</select>
+{/render}
</td>
</tr>
<tr>
{t}Description{/t}
</td>
<td>
- <input type="text" name='description' value="{$description}" {$descriptionACL} title='{t}Please specify a description{/t}'>
+{render acl=$descriptionACL}
+ <input type="text" name='description' value="{$description}" title='{t}Please specify a description{/t}'>
+{/render}
</td>
</tr>
<tr>
<td><LABEL for="base">{t}Base{/t}{$must}</LABEL></td>
<td>
- <select size="1" id="base" name="base" title="{t}Choose subtree to place application in{/t}"
- {if $isReleaseMimeType} disabled {/if} {$baseACL}>
- {html_options options=$bases selected=$base_select}
- </select>
- {if $baseACL == "" && !$isReleaseMimeType}
- <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
- {else}
- <img src="images/folder_gray.png" class="center" title="{t}Select a base{/t}">
- {/if}
- </td>
+{render acl=$baseACL}
+ <select size="1" id="base" name="base" title="{t}Choose subtree to place application in{/t}"
+ {if $isReleaseMimeType} disabled {/if}>
+ {html_options options=$bases selected=$base_select}
+ </select>
+{/render}
+
+{render acl=$baseACL disable_picture='images/folder_gray.png'}
+ <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
+{/render}
+ </td>
</tr>
</table>
<tr>
<td>
<LABEL for="picture_file">{t}Icon{/t}</LABEL><br>
- <img src="{$gotoMimeIcon}" border=1 style="width:48px; height:48; background-color:white; vertical-align:bottom;">
+ <img src="{$gotoMimeIcon}" border=1 alt='{t}Mime icon{/t}'
+ style="width:48px; height:48; background-color:white; vertical-align:bottom;">
</td>
<td style="vertical-align:top">
<br>
<input type="hidden" name="MAX_FILE_SIZE" value="100000">
- <input name="picture_file" type="file" size="20" maxlength="255" accept="image/*.png" id="picture_file" {$gotoMimeIconACL}>
- <input type="submit" name="update_icon" value="{t}Update{/t}" title="{t}Update mime type icon{/t}" {$gotoMimeIconACL}>
+{render acl=$gotoMimeIconACL}
+ <input name="picture_file" type="file" size="20" maxlength="255"
+ accept="image/*.png" id="picture_file">
+{/render}
+{render acl=$gotoMimeIconACL}
+ <input type="submit" name="update_icon" value="{t}Update{/t}"
+ title="{t}Update mime type icon{/t}">
+{/render}
</td>
</tr>
</table>
</tr>
<tr>
<td colspan="2">
- <h2><img src='images/mime_leftclick.png' class='center'> {t}Left click{/t}</h2>
+ <h2><img src='images/mime_leftclick.png' class='center' alt='{t}Left click{/t}'> {t}Left click{/t}</h2>
</td>
</tr>
<tr>
<td style='width:50%; vertical-align:top;' >
{t}File patterns{/t}{$must}
- {$gotoMimeFilePatterns}
- <input type='text' name='NewFilePattern' value='' title='{t}Please specify a new file pattern{/t}' {$gotoMimeFilePatternACL}>
- <input type='submit' name='AddNewFilePattern' value='{t}Add{/t}' title='{t}Add a new file pattern{/t}' {$gotoMimeFilePatternACL}>
+{render acl=$gotoMimeFilePatternACL}
+ {$gotoMimeFilePatterns}
+{/render}
+
+{render acl=$gotoMimeFilePatternACL}
+ <input type='text' name='NewFilePattern' value='' title='{t}Please specify a new file pattern{/t}'>
+{/render}
+{render acl=$gotoMimeFilePatternACL}
+ <input type='submit' name='AddNewFilePattern' value='{t}Add{/t}' title='{t}Add a new file pattern{/t}'>
+{/render}
</td>
<td style="border-left:1px solid #A0A0A0;vertical-align:top;">
{t}Applications{/t}
+{render acl=$gotoMimeApplicationACL}
{$gotoMimeApplications}
- <input type='text' name='NewApplication' value='' title='{t}Enter an application name here{/t}' {$gotoMimeApplicationACL}>
- <input type='submit' name='AddNewApplication' value='{t}Add{/t}' title='{t}Add application{/t}' {$gotoMimeApplicationACL}>
+{/render}
+{render acl=$gotoMimeApplicationACL}
+ <input type='text' name='NewApplication' value='' title='{t}Enter an application name here{/t}'>
+{/render}
+{render acl=$gotoMimeApplicationACL}
+ <input type='submit' name='AddNewApplication' value='{t}Add{/t}' title='{t}Add application{/t}'>
+{/render}
</td>
</tr>
<tr>
</tr>
<tr>
<td colspan="2">
- <h2><img src='images/mime_embedding.png' class='center'> {t}Embedding{/t}</h2>
+ <h2><img src='images/mime_embedding.png' class='center' alt='{t}Embedding{/t}'> {t}Embedding{/t}</h2>
</td>
</tr>
<tr>
<table>
<tr>
<td style='vertical-align:top; '>
+{render acl=$gotoMimeLeftClickActionACL}
<input type='radio' name='gotoMimeLeftClickAction_IE' value='I'
- {if $gotoMimeLeftClickAction_I} checked {/if} {$gotoMimeLeftClickActionACL}>
+ {if $gotoMimeLeftClickAction_I} checked {/if}>
+{/render}
{t}Show file in embedded viewer{/t}
<br>
+{render acl=$gotoMimeLeftClickActionACL}
<input type='radio' name='gotoMimeLeftClickAction_IE' value='E'
- {if $gotoMimeLeftClickAction_E} checked {/if} {$gotoMimeLeftClickActionACL}>
+ {if $gotoMimeLeftClickAction_E} checked {/if}>
+{/render}
{t}Show file in external viewer{/t}
<br>
+{render acl=$gotoMimeLeftClickActionACL}
<input type='checkbox' name='gotoMimeLeftClickAction_Q' value='1'
- {if $gotoMimeLeftClickAction_Q} checked {/if} {$gotoMimeLeftClickActionACL}>
+ {if $gotoMimeLeftClickAction_Q} checked {/if}>
+{/render}
{t}Ask whether to save to local disk{/t}
</td>
</tr>
</td>
<td style="border-left:1px solid #A0A0A0;vertical-align:top;">
{t}Applications{/t}
+{render acl=$gotoMimeEmbeddedApplicationACL}
{$gotoMimeEmbeddedApplications}
- <input type='text' name='NewEmbeddedApplication' value='' title='{t}Enter an application name here{/t}' {$gotoMimeEmbeddedApplicationACL}>
- <input type='submit' name='AddNewEmbeddedApplication' value='{t}Add{/t}' title='{t}Add application{/t}' {$gotoMimeEmbeddedApplicationACL}>
+{/render}
+{render acl=$gotoMimeEmbeddedApplicationACL}
+ <input type='text' name='NewEmbeddedApplication' value=''
+ title='{t}Enter an application name here{/t}'>
+{/render}
+{render acl=$gotoMimeEmbeddedApplicationACL}
+ <input type='submit' name='AddNewEmbeddedApplication' value='{t}Add{/t}'
+ title='{t}Add application{/t}'>
+{/render}
</td>
</tr>
</table>