summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e4cdaf0)
raw | patch | inline | side by side (parent: e4cdaf0)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 16 Apr 2007 13:02:59 +0000 (13:02 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 16 Apr 2007 13:02:59 +0000 (13:02 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6056 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 108022afb0baafcc15c38200a29151d38423db3f..cc5527e6c72b9a88e59241d0ff0c651253ac3599 100644 (file)
if(isset($_POST['import_gotomass_csv']) && isset($_FILES['mass_file'])){
$str = @file_get_contents($_FILES['mass_file']['tmp_name']);
if(empty($str)){
- print_red(_("Uploaded file seams to be empty, import aborted."));
+ print_red(_("The uploaded file seams to be empty, import aborted."));
}else{
$this->load_csv_data($str);
}
}
-
+
+ /* Add a new empty entry to the list */
if(isset($_POST['add_new_entry'])){
$this->contents[] = array("MAC" => "", "OG" => "");
}
-
/* Call parent execute */
plugin::execute();
function load_csv_data($data = NULL)
{
-
if($data == NULL){
if(!file_exists($this->file_to_read) || !is_readable($this->file_to_read)){
print_red(sprintf(_("Can't locate or read goto masses csv storage file '%s'."),$this->file_to_read));
"plDepends" => array(),
"plPriority" => 0,
"plSection" => array("addon"),
- "plCategory" => array("mass_machines" => array("objectClass" => "none", "description" => _("Mass machine deployment"))),
+ "plCategory" => array("gotomasses" => array("objectClass" => "none", "description" => _("Mass machine deployment"))),
"plProvidedAcls" => array()
));
}
index ac756ee785275c6d5bdfc12bb19af50fe60a903a..ef8afc478e46465a251867d3935fcfa7a2670561 100644 (file)
<table summary="" width="100%" class="contentboxb" style="border-top:1px solid #B0B0B0; padding:0px;">
<tr>
<td>
- <input type='submit' name='export_gotomass_csv' value='{t}Export{/t}'>
- <input type='file' name='mass_file'>
+ {t}Export{/t}
+ <input type='submit' name='export_gotomass_csv' value='{t}Export{/t}'>
+ </td>
+ <td style='width:20px;'>
+ </td>
+ <td>
+ {t}Import{/t}
+
+ <input type='file' name='mass_file'>
- <input type='submit' name='import_gotomass_csv' value='{t}Import{/t}'>
- </td>
- </tr>
+ <input type='submit' name='import_gotomass_csv' value='{t}Import{/t}'>
+ </td>
+ </tr>
</table>
</div>
<table summary="" width="100%" class="contentboxb">