summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8d8ff16)
raw | patch | inline | side by side (parent: 8d8ff16)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 17 Apr 2007 08:02:35 +0000 (08:02 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 17 Apr 2007 08:02:35 +0000 (08:02 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6063 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/addons/gotomasses/class_gotomasses.inc | patch | blob | history | |
plugins/addons/gotomasses/contents.tpl | patch | blob | history |
diff --git a/plugins/addons/gotomasses/class_gotomasses.inc b/plugins/addons/gotomasses/class_gotomasses.inc
index 113cbcd738283b3b486c34191d725566a1ec43bd..61d729e8af433a6ee2129d298e6dd45a5140e13b 100644 (file)
$this->contents_initially_loaded = TRUE;
}
- if(isset($_POST['export_gotomass_csv'])){
+ if(isset($_POST['export_gotomass_csv']) && $this->acl_is_writeable("something")){
$data = "";
foreach($this->contents as $val){
$data .= $val['MAC'].", ".$val['OG']."\n";
index e578eebf390f2224566d4c2887161ab88944537b..ea264dbace86660e989317ae9233a24c5d75e1cc 100644 (file)
<tr>
<td>
{t}Export{/t}
- <input type='submit' name='export_gotomass_csv' value='{t}Export{/t}'>
+ {if $is_readable}
+ <input type='submit' name='export_gotomass_csv' value='{t}Export{/t}'>
+ {else}
+ <input type='button' name='empty_1' value='{t}Export{/t}' disabled>
+ {/if}
</td>
<td style='width:20px;'>
</td>
<input type='file' name='mass_file'>
<input type='submit' name='import_gotomass_csv' value='{t}Import{/t}'>
{else}
- <input type='file' name='mass_file' disabled>
- <input type='submit' name='import_gotomass_csv' value='{t}Import{/t}' disabled>
+ <input type='file' name='epmpty_file' disabled>
+ <input type='button' name='empty_2' value='{t}Import{/t}' disabled>
{/if}
</td>
</tr>
{/if}
<input type='submit' name='reload_gotomass_data' value='{t}Cancel{/t}'>
{else}
- <input type='submit' name='save_gotomass_changes' value='{t}Apply{/t}' disabled>
- <input type='submit' name='reload_gotomass_data' value='{t}Cancel{/t}' disabled>
+ <input type='button' name='empty_3' value='{t}Apply{/t}' disabled>
+ <input type='button' name='empty_4' value='{t}Cancel{/t}' disabled>
{/if}
</p>
</div>