summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: da2e175)
raw | patch | inline | side by side (parent: da2e175)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 23 Jun 2009 12:16:57 +0000 (12:16 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 23 Jun 2009 12:16:57 +0000 (12:16 +0000) |
- Add download button for logon scripts
- Change button label from "Import" to "Import script"
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13773 594d385d-05f5-0310-b6e9-bd551577e9d8
- Change button label from "Import" to "Import script"
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13773 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/trunk/gosa-plugins/goto/locale/de/LC_MESSAGES/messages.po b/trunk/gosa-plugins/goto/locale/de/LC_MESSAGES/messages.po
index da04eac747900a2100e529fe15ebfc70daf94df8..6a5a6c065b3acaea15ed6f21a0d9fec2207d0696 100644 (file)
msgstr ""
"Project-Id-Version: messages\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-06-22 14:24+0200\n"
+"POT-Creation-Date: 2009-06-23 11:22+0200\n"
"PO-Revision-Date: 2008-12-04 11:18+0100\n"
"Last-Translator: Cajus Pollmeier <pollmeier@gonicus.de>\n"
"Language-Team: deutsch <de@li.org>\n"
msgid "Import"
msgstr "Importieren"
+#: personal/environment/logonManagement.tpl:65
+msgid "Import script"
+msgstr "Skript importieren"
+
#: addons/goto/class_gotomasses.inc:380
msgid "Resume"
msgstr "Fortsetzen"
#: admin/systems/goto/class_printGeneric.inc:966
#: admin/systems/goto/workstation.tpl:19 admin/systems/goto/printer.tpl:16
#: admin/systems/goto/terminal.tpl:19
+#: personal/environment/class_logonManagementDialog.inc:125
msgid "Description"
msgstr "Beschreibung"
#: personal/environment/logonManagement.tpl:10
#: personal/environment/class_logonManagementDialog.inc:107
+#: personal/environment/class_logonManagementDialog.inc:121
msgid "Script name"
msgstr "Skriptname"
#: admin/systems/goto/class_printGeneric.inc:720
#: admin/systems/goto/class_printGeneric.inc:964
#: admin/groups/apps/edit_entry.tpl:43
+#: personal/environment/class_logonManagementDialog.inc:117
msgid "Name"
msgstr "Name"
msgstr "Platziere einen Eintrag in der Kontrollleiste der Gruppenmitglieder"
#: admin/applications/generic.tpl:144
+#: personal/environment/class_logonManagementDialog.inc:57
msgid "Download"
msgstr "Herunterladen"
diff --git a/trunk/gosa-plugins/goto/locale/messages.po b/trunk/gosa-plugins/goto/locale/messages.po
index be40fb55a089610d5337d301ea54992abe350390..3e0928720079d75e94cf1f9b590bf30589ba58de 100644 (file)
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-06-22 14:24+0200\n"
+"POT-Creation-Date: 2009-06-23 11:22+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Import"
msgstr ""
+#: personal/environment/logonManagement.tpl:65
+msgid "Import script"
+msgstr ""
+
#: addons/goto/class_gotomasses.inc:380
msgid "Resume"
msgstr ""
#: admin/systems/goto/class_printGeneric.inc:966
#: admin/systems/goto/workstation.tpl:19 admin/systems/goto/printer.tpl:16
#: admin/systems/goto/terminal.tpl:19
+#: personal/environment/class_logonManagementDialog.inc:125
msgid "Description"
msgstr ""
#: personal/environment/logonManagement.tpl:10
#: personal/environment/class_logonManagementDialog.inc:107
+#: personal/environment/class_logonManagementDialog.inc:121
msgid "Script name"
msgstr ""
#: admin/systems/goto/class_printGeneric.inc:720
#: admin/systems/goto/class_printGeneric.inc:964
#: admin/groups/apps/edit_entry.tpl:43
+#: personal/environment/class_logonManagementDialog.inc:117
msgid "Name"
msgstr ""
msgstr ""
#: admin/applications/generic.tpl:144
+#: personal/environment/class_logonManagementDialog.inc:57
msgid "Download"
msgstr ""
diff --git a/trunk/gosa-plugins/goto/personal/environment/class_logonManagementDialog.inc b/trunk/gosa-plugins/goto/personal/environment/class_logonManagementDialog.inc
index cd9522785171c47d8dc3cccff364eed9ee94028a..653324eb7ff6e5a0af1bd78655fd52efeef9474c 100644 (file)
@unlink($_FILES['importFile']['tmp_name']);
}
+ if(isset($_GET['getLogonData'])){
+ send_binary_content($this->LogonData, $this->real_LogonName);
+ }
+
+ /* Create download button*/
+ if($this->dn != "new" && $this->LogonData != ""){
+ $smarty->assign("DownMe","<a href='?plug=".$_GET['plug']."&getLogonData'>
+ <img src='images/save.png' alt='"._("Download")."' title='"._("Download")."' border=0 class='center'>
+ </a>");
+ }else{
+ $smarty->assign("DownMe","");
+ }
+
foreach($this->attributes as $attr){
$smarty->assign($attr,$this->$attr);
if($this->$attr){
diff --git a/trunk/gosa-plugins/goto/personal/environment/logonManagement.tpl b/trunk/gosa-plugins/goto/personal/environment/logonManagement.tpl
index 937f71f9db578716fe879194d14cc71437a764ec..73d36e84ae030f39d6dc3a89ee731d7621f733af 100644 (file)
<tr>
<td>
<input type="file" name="importFile" id="importFile">
- <input type="submit" value="{t}Import{/t}" name="StartImport" >
+ <input type="submit" value="{t}Import script{/t}" name="StartImport" >
+ {$DownMe}
</td>
</tr>
</table>