diff --git a/fields_edit_new.php b/fields_edit_new.php
index 165b2cb..7dbc61e 100644
--- a/fields_edit_new.php
+++ b/fields_edit_new.php
@@ -9,7 +9,9 @@
*
* Parameters:
*
- * imf_id : ID of the item field that should be edited
+ * imf_id : ID of the item field that should be edited
+ * field_name : Name of the field that should be set
+ * redirect_to_import : If true, the user will be redirected to the import page after saving the field
*
***********************************************************************************************
*/
@@ -23,6 +25,8 @@
// Initialize and check the parameters
$getimfId = admFuncVariableIsValid($_GET, 'imf_id', 'int');
+$getFieldName = admFuncVariableIsValid($_GET, 'field_name', 'string', array('defaultValue' => "", 'directOutput' => true));
+$getRedirectToImport = admFuncVariableIsValid($_GET, 'redirect_to_import', 'bool', array('defaultValue' => false));
$pPreferences = new CConfigTablePIM();
$pPreferences->read();
@@ -47,6 +51,11 @@
}
}
+// Set the name of the field if it was passed as a parameter
+if ($getFieldName !== "") {
+ $itemField->setValue('imf_name', $getFieldName);
+}
+
if (isset($_SESSION['fields_request'])) {
// User returned to this form due to incorrect input, now write the previously entered content into the object
$itemField->setArray($_SESSION['fields_request']);
@@ -72,7 +81,7 @@ function setValueList() {
', true);
// show form
-$form = new HtmlForm('item_fields_edit_form', SecurityUtils::encodeUrl(ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER . '/fields_function.php', ['imf_id' => $getimfId, 'mode' => 1]), $page);
+$form = new HtmlForm('item_fields_edit_form', SecurityUtils::encodeUrl(ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER . '/fields_function.php', ['imf_id' => $getimfId, 'mode' => 1, 'redirect_to_import' => $getRedirectToImport]), $page);
$form->addInput('imf_name', $gL10n->get('SYS_NAME'), $itemField->getValue('imf_name', 'database'), array(
'maxLength' => 100,
diff --git a/fields_function.php b/fields_function.php
index c8cb45f..8ddced6 100644
--- a/fields_function.php
+++ b/fields_function.php
@@ -9,19 +9,20 @@
*
* Parameters:
*
- * imf_id : ID of the item field to be managed
- * mode : 1 - create or edit item field
- * 2 - delete item field
- * 4 - change sequence of item field
- * sequence : direction to move the item field, values are TableUserField::MOVE_UP, TableUserField::MOVE_DOWN
+ * imf_id : ID of the item field to be managed
+ * mode : 1 - create or edit item field
+ * 2 - delete item field
+ * 4 - change sequence of item field
+ * sequence : direction to move the item field, values are TableUserField::MOVE_UP, TableUserField::MOVE_DOWN
+ * redirect_to_import : If true, the user will be redirected to the import page after saving the field
*
* Methods:
*
- * handleCreateOrUpdate($itemField) : Handles the creation or update of an item field
- * handleDelete($itemField) : Handles the deletion of an item field
- * handleChangeSequence($itemField, $getSequence): Handles changing the sequence of an item field
- * validateRequiredFields($itemField) : Validates the required fields for an item field
- * checkFieldExists($itemField) : Checks if an item field already exists
+ * handleCreateOrUpdate($itemField, $getRedirectToImport) : Handles the creation or update of an item field
+ * handleDelete($itemField) : Handles the deletion of an item field
+ * handleChangeSequence($itemField, $getSequence) : Handles changing the sequence of an item field
+ * validateRequiredFields($itemField) : Validates the required fields for an item field
+ * checkFieldExists($itemField) : Checks if an item field already exists
***********************************************************************************************
*/
@@ -36,6 +37,7 @@
$getimfId = admFuncVariableIsValid($_GET, 'imf_id', 'int');
$getMode = admFuncVariableIsValid($_GET, 'mode', 'int', array('requireValue' => true));
$getSequence = admFuncVariableIsValid($_GET, 'sequence', 'string', array('validValues' => array(TableUserField::MOVE_UP, TableUserField::MOVE_DOWN)));
+$getRedirectToImport = admFuncVariableIsValid($_GET, 'redirect_to_import', 'bool', array('defaultValue' => false));
$pPreferences = new CConfigTablePIM();
$pPreferences->read();
@@ -60,7 +62,7 @@
switch ($getMode) {
case 1:
- handleCreateOrUpdate($itemField);
+ handleCreateOrUpdate($itemField, $getRedirectToImport);
break;
case 2:
handleDelete($itemField);
@@ -74,7 +76,7 @@
* Handles the creation or update of an item field.
* @param TableAccess $itemField The item field object to be created or updated.
*/
-function handleCreateOrUpdate($itemField) {
+function handleCreateOrUpdate($itemField, $redirectToImport = false) {
global $gMessage, $gL10n, $gDb, $gCurrentOrgId;
$_SESSION['fields_request'] = $_POST;
@@ -84,7 +86,7 @@ function handleCreateOrUpdate($itemField) {
// Check if the field already exists
if (isset($_POST['imf_name']) && $itemField->getValue('imf_name') !== $_POST['imf_name']) {
- checkFieldExists($itemField);
+ checkFieldExists($_POST['imf_name']);
}
// Make HTML in description secure
@@ -122,7 +124,11 @@ function handleCreateOrUpdate($itemField) {
unset($_SESSION['fields_request']);
- $gMessage->setForwardUrl(ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER . '/fields.php', 1000);
+ if ($redirectToImport) {
+ $gMessage->setForwardUrl(ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER . '/import/import_column_config.php', 1000);
+ } else {
+ $gMessage->setForwardUrl(ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER . '/fields.php', 1000);
+ }
$gMessage->show($gL10n->get('SYS_SAVE_DATA'));
// => EXIT
}
@@ -200,7 +206,7 @@ function validateRequiredFields($itemField) {
/**
* Checks if an item field already exists.
- * @param TableAccess $itemField The item field object to be checked.
+ * @param string $itemField The item field string to be checked.
*/
function checkFieldExists($itemField) {
global $gMessage, $gL10n, $gDb, $gCurrentOrgId, $getimfId;
@@ -210,7 +216,7 @@ function checkFieldExists($itemField) {
AND (imf_org_id = ? -- $gCurrentOrgId
OR imf_org_id IS NULL)
AND imf_id <> ? -- $getimfId;';
- $statement = $gDb->queryPrepared($sql, array($_POST['imf_name'], $gCurrentOrgId, $getimfId));
+ $statement = $gDb->queryPrepared($sql, array($itemField, $gCurrentOrgId, $getimfId));
if ((int) $statement->fetchColumn() > 0) {
$gMessage->show($gL10n->get('ORG_FIELD_EXIST'));
diff --git a/import.php b/import/import.php
similarity index 95%
rename from import.php
rename to import/import.php
index a7ac75b..84d7d3f 100644
--- a/import.php
+++ b/import/import.php
@@ -9,11 +9,11 @@
***********************************************************************************************
*/
-require_once(__DIR__ . '/../../adm_program/system/common.php');
-require_once(__DIR__ . '/common_function.php');
+require_once(__DIR__ . '/../../../adm_program/system/common.php');
+require_once(__DIR__ . '/../common_function.php');
// Access only with valid login
-require_once(__DIR__ . '/../../adm_program/system/login_valid.php');
+require_once(__DIR__ . '/../../../adm_program/system/login_valid.php');
// only authorized user are allowed to start this module
if (!isUserAuthorizedForPreferences()) {
@@ -59,7 +59,7 @@
$page = new HtmlPage('admidio-items-import', $headline);
// show form
-$form = new HtmlForm('import_items_form', ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER . '/import_read_file.php', $page, array('enableFileUpload' => true));
+$form = new HtmlForm('import_items_form', ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER . '/import/import_read_file.php', $page, array('enableFileUpload' => true));
$formats = array(
'AUTO' => $gL10n->get('SYS_AUTO_DETECT'),
'XLSX' => $gL10n->get('SYS_EXCEL_2007_365'),
diff --git a/import_column_config.php b/import/import_column_config.php
similarity index 77%
rename from import_column_config.php
rename to import/import_column_config.php
index 9d7d1a9..8f9ad00 100644
--- a/import_column_config.php
+++ b/import/import_column_config.php
@@ -9,12 +9,12 @@
***********************************************************************************************
*/
-require_once(__DIR__ . '/../../adm_program/system/common.php');
-require_once(__DIR__ . '/common_function.php');
-require_once(__DIR__ . '/classes/items.php');
+require_once(__DIR__ . '/../../../adm_program/system/common.php');
+require_once(__DIR__ . '/../common_function.php');
+require_once(__DIR__ . '/../classes/items.php');
// Access only with valid login
-require_once(__DIR__ . '/../../adm_program/system/login_valid.php');
+require_once(__DIR__ . '/../../../adm_program/system/login_valid.php');
// only authorized user are allowed to start this module
if (!isUserAuthorizedForPreferences()) {
@@ -52,9 +52,6 @@
*/
function getColumnAssignmentHtml(array $arrayColumnList, array $arrayCsvColumns): string
{
- global $gL10n;
-
- $categoryName = null;
$html = '';
foreach ($arrayColumnList as $field) {
@@ -98,13 +95,13 @@ function getColumnAssignmentHtml(array $arrayColumnList, array $arrayCsvColumns)
// create html page object
$page = new HtmlPage('admidio-items-import-csv', $headline);
-
-//page->addHtml('
'.$gL10n->get('SYS_ASSIGN_FIELDS_DESC').'
');
+$page->addHtml(''.$gL10n->get('PLG_INVENTORY_MANAGER_IMPORT_ASSIGN_FIELDS').'
');
// show form
-$form = new HtmlForm('import_assign_fields_form', ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER . '/import_items.php', $page, array('type' => 'vertical'));
+$form = new HtmlForm('import_assign_fields_form', ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER . '/import/import_items.php', $page, array('type' => 'vertical'));
$form->addCheckbox('first_row', $gL10n->get('SYS_FIRST_LINE_COLUMN_NAME'), $formValues['first_row']);
-$form->addHtml(''.$gL10n->get('SYS_IMPORT_UNUSED_HEAD').'
-
');
+$form->addHtml(''.$gL10n->get('PLG_INVENTORY_MANAGER_IMPORT_UNUSED_HEAD').'
-
');
+
$page->addJavascript(
'
$(".admidio-import-field").change(function() {
@@ -120,9 +117,18 @@ function getColumnAssignmentHtml(array $arrayColumnList, array $arrayCsvColumns)
used.push($(this).text());
}
});
- var outstr = $(available).not(used).get().join(", ");
+ var outstr = "";
+ $(available).not(used).each(function(index, value) {
+ if (value === "Nr.") {
+ outstr += "" + value + " | |
";
+ } else {
+ outstr += "" + value + " | ' . $gL10n->get('PLG_INVENTORY_MANAGER_ITEMFIELD_CREATE') . ' |
";
+ }
+ });
if (outstr == "") {
outstr = "-";
+ } else {
+ outstr = "";
}
$("#admidio-import-unused #admidio-import-unused-fields").html(outstr);
});
@@ -130,11 +136,12 @@ function getColumnAssignmentHtml(array $arrayColumnList, array $arrayCsvColumns)
true
);
+
$htmlFieldTable = '
- '.$gL10n->get('SYS_PROFILE_FIELD').' |
+ '.$gL10n->get('PLG_INVENTORY_MANAGER_ITEMFIELDS').' |
'.$gL10n->get('SYS_FILE_COLUMN').' |
';
@@ -152,9 +159,14 @@ function getColumnAssignmentHtml(array $arrayColumnList, array $arrayCsvColumns)
$row = array();
foreach ($items->mItemFields as $columnKey => $columnValue) {
$imfName = $columnValue->GetValue('imf_name');
- $row = array(
- $columnValue->GetValue('imf_name_intern') => $gL10n->get($imfName)
- );
+
+ // If the field name starts with 'PIM_', it is a language key
+ if (strpos($imfName, 'PIM_') !== false) {
+ $row = array($columnValue->GetValue('imf_name_intern') => $gL10n->get($imfName));
+ } else {
+ $row = array($columnValue->GetValue('imf_name_intern') => $imfName);
+ }
+
$arrayImportableFields[] = $row;
}
diff --git a/import_items.php b/import/import_items.php
similarity index 96%
rename from import_items.php
rename to import/import_items.php
index 597fed7..72c15b0 100644
--- a/import_items.php
+++ b/import/import_items.php
@@ -10,12 +10,12 @@
***********************************************************************************************
*/
-require_once(__DIR__ . '/../../adm_program/system/common.php');
-require_once(__DIR__ . '/common_function.php');
-require_once(__DIR__ . '/classes/items.php');
+require_once(__DIR__ . '/../../../adm_program/system/common.php');
+require_once(__DIR__ . '/../common_function.php');
+require_once(__DIR__ . '/../classes/items.php');
// Access only with valid login
-require_once(__DIR__ . '/../../adm_program/system/login_valid.php');
+require_once(__DIR__ . '/../../../adm_program/system/login_valid.php');
// only authorized user are allowed to start this module
if (!isUserAuthorizedForPreferences()) {
@@ -83,7 +83,6 @@
}
}
-
$valueList = array();
foreach ($assignedFieldColumn as $row => $values) {
foreach ($items->mItemFields as $fields){
@@ -162,9 +161,10 @@
}
if (count($assignedFieldColumn) > 0) {
+
// save item
$_POST['redirect'] = 0;
- require_once(__DIR__ . '/items_save.php');
+ require(__DIR__ . '/../items_save.php');
$importSuccess = true;
unset($_POST);
}
diff --git a/import_read_file.php b/import/import_read_file.php
similarity index 94%
rename from import_read_file.php
rename to import/import_read_file.php
index 5d104b0..bb9910a 100644
--- a/import_read_file.php
+++ b/import/import_read_file.php
@@ -9,12 +9,12 @@
***********************************************************************************************
*/
-require_once(__DIR__ . '/../../adm_program/system/common.php');
-require_once(__DIR__ . '/common_function.php');
-require_once(__DIR__ . '/classes/items.php');
+require_once(__DIR__ . '/../../../adm_program/system/common.php');
+require_once(__DIR__ . '/../common_function.php');
+require_once(__DIR__ . '/../classes/items.php');
// Access only with valid login
-require_once(__DIR__ . '/../../adm_program/system/login_valid.php');
+require_once(__DIR__ . '/../../../adm_program/system/login_valid.php');
// Initialize and check the parameters
$postImportFormat = admFuncVariableIsValid(
@@ -145,5 +145,5 @@
}
}
-admRedirect(ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER . '/import_column_config.php');
+admRedirect(ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER . '/import/import_column_config.php');
// => EXIT
diff --git a/inventory_manager.php b/inventory_manager.php
index 339eb79..f504dcc 100644
--- a/inventory_manager.php
+++ b/inventory_manager.php
@@ -305,7 +305,7 @@
}
if (isUserAuthorizedForPreferences()) {
- $page->addPageFunctionsMenuItem('menu_preferences', $gL10n->get('SYS_SETTINGS'), SecurityUtils::encodeUrl(ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER .'/preferences.php'), 'fa-cog');
+ $page->addPageFunctionsMenuItem('menu_preferences', $gL10n->get('SYS_SETTINGS'), SecurityUtils::encodeUrl(ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER .'/preferences/preferences.php'), 'fa-cog');
$page->addPageFunctionsMenuItem('itemcreate_form_btn', $gL10n->get('PLG_INVENTORY_MANAGER_ITEM_CREATE'), SecurityUtils::encodeUrl(ADMIDIO_URL.FOLDER_PLUGINS . PLUGIN_FOLDER .'/items_edit_new.php', array('item_id' => 0)), 'fas fa-plus-circle');
}
diff --git a/languages/de-DE.xml b/languages/de-DE.xml
index 2d9f4eb..3e32d57 100644
--- a/languages/de-DE.xml
+++ b/languages/de-DE.xml
@@ -4,7 +4,9 @@
Hier kann man, zusätzlich zur Rolle "Administrator", weitere Rollen für den Zugriff auf das Modul "Einstellungen" berechtigen.
Datum anfügen
Soll an eine Exportdatei ein Datum im Format JJJJ-MM-TT angefügt werden, so ist der Haken zu setzen.
+ Kategorie
Konfiguration
+ Es konnte keine Verbindung zur GitHub-Relaseseite hergestellt werden! Bitte prüfen Sie Ihre Internetverbindung oder versuchn Sie es zu einem späteren Zeitpunkt nocheinmal. Alternativ können Sie auch manuell auf der Webseite von #VAR1# prüfen ob ein Update vorliegt.
Einstellungen für das Kopieren eines Gegenstandes:
erstellt mit dem Plugin InventoryManager der Online-Mitgliederverwaltung Admidio
Nur Daten der aktuellen Organisation löschen.
@@ -23,8 +25,8 @@
Dokumentation
Dokumentation öffnen
Hiermit kann die Dokumentation zum Plugin geöffnet werden (Eine bestehende Internetverbindung wird vorausgesetzt, da sich die Daten auf admidio.org befinden).
+ Gehe zur GitHub-Relaseseite
Export
- Import
Export und Filter
Feld einer lfd. Nr.
Hier kann ein Feld einer laufenden Nummer ausgewählt werden. Bei einer Auswahl wird die aktuelle Nummer ausgelesen und entsprechend der angegebenen Anzahl erhöht.\n\nHINWEIS: InventoryManager kann nur erkennen, ob ein Datenfeld vom Typ "Zahl" ist. Ob in diesem Datenfeld eine laufende Nummer gespeichert ist, kann nicht erkannt werden.
@@ -32,8 +34,14 @@
Der Dateiname der Exportdatei (ohne Endung).
Aussondern
Allgemeiner Filter - Mehrere Filterbegriffe sind durch Kommas zu trennen. Um Wörter auszuschließen muß ein - davorgesetzt werden. Beispiel: Meier, Huber, -Notenschrank
+ Import
+ In der linken Spalte der nachfolgenden Tabelle werden alle Eigenschaftsfelder angezeigt. In der rechten Spalte werden in einer Auswahlliste die Spalten aus der zu importierenden Datei angezeigt. Alle Spalten aus der Datei, die Sie importieren möchten, sollten Sie nun einem Eigenschaftsfeld zuordnen.
+ Gegenstände importieren
+ Der Gegenstand #VAR1_BOLD# wurde #VAR2_BOLD# importiert.
+ Folgenden Spalten der Importdatei sind keine Felder im InventoryManager zugeordnet:
Interface zum Plugin FormFiller
Hier besteht die Möglichkeit, bei installiertem Plugin FormFiller, eine FormFiller-Konfiguration auszuwählen. Anhand dieser kann ein Gegenstandsaus- oder Gegenstandsübergabebeleg erstellt werden. InventoryManager liefert hierbei die Werte, FormFiller die Positionen für den Druck.
+ Inventarverwaltung
Gegenstand
Gegenstand kopieren
Neuen Gegenstand anlegen
@@ -54,13 +62,20 @@
Eigenschaftsfelder
Felder pflegen
In der Felderpflege können Eigenschaftsfelder für Gegenstände angelegt und bearbeitet werden.
- Gegenstandsliste
- Inventarverwaltung
+ Gegenstandsliste
Gegenstandsname
- Kategorie
+ Verwalter
Die Authorisierungsprüfung des Plugins ist fehlgeschlagen. Es ist mehr als ein Menüpunkt mit derselben URL definiert.\n\n=> #VAR1_BOLD#
InventoryManager (basierend auf KeyManager %s)
Neu
+ Der Gegenstand #VAR1_BOLD# wurde von #VAR2_BOLD# geändert:
+ Der Gegenstand #VAR1_BOLD# wurde von #VAR2_BOLD# angelegt:
+ Der Gegenstand #VAR1_BOLD# wurde von #VAR2_BOLD# gelöscht:
+ Der Gegenstand #VAR1_BOLD# wurde von #VAR2_BOLD# ausgesondert:
+ Ein Gegenstand im Inventar wurde geändert
+ Ein Gegenstand im Inventar wurde hinzugefügt
+ Ein Gegenstand im Inventar wurde gelöscht
+ Ein Gegenstand im Inventar wurde ausgesondert
Anzahl
Anzahl der anzufügenden Gegenstände
Anzahl der Gegenstände
@@ -73,7 +88,6 @@
Einstellungen für die Profilansicht
In der Profilansicht eines Mitglieds können ausgegebene Gegenstände angezeigt werden. Standardmäßig wird nur der Gegenstandsname angezeigt. Hier kann, zusätzlich zum Gegenstandsnamen, ein weiteres Eigenschaftsfeld ausgewählt und angezeigt werden.
Damit in der Profilansicht Gegenstände angezeigt werden, muss folgende Zeile in die profile.php eingefügt werden: "require_once(ADMIDIO_PATH . FOLDER_PLUGINS .'/inventory/inventory_manager_profile_addin.php');".\n\nWeitere Infos dazu finden sich in der Datei inventory_manager_profile_addin.php.
- Verwalter
Alle Gegenstände anzeigen
Sonderfall: Aktueller Benutzer oder Administrator
Benutzer mit Empfänger abgleichen
@@ -82,30 +96,20 @@
Alle Benutzer sind Empfänger eines Gegenstandes, es kann kein Abgleich durchgeführt werden.
Dies ist nur eine Übersicht des Abgleichs, es wurde noch nichts gespeichert.\n\n Benutzer können nur zu Ehemaligen gemacht werden, wenn die Anzahl der Gegenstände 0 beträgt und sie nicht Administrator oder der aktuelle Benutzer sind.
Die aufgelisteten Benutzer sind jetzt Ehemalige.
- Ein Gegenstand im Inventar wurde hinzugefügt
- Der Gegenstand #VAR1_BOLD# wurde von #VAR2_BOLD# angelegt:
- Ein Gegenstand im Inventar wurde geändert
- Der Gegenstand #VAR1_BOLD# wurde von #VAR2_BOLD# geändert:
- Ein Gegenstand im Inventar wurde gelöscht
- Der Gegenstand #VAR1_BOLD# wurde von #VAR2_BOLD# gelöscht:
- Ein Gegenstand im Inventar wurde ausgesondert
- Der Gegenstand #VAR1_BOLD# wurde von #VAR2_BOLD# ausgesondert:
- Gehe zur GitHub-Relaseseite
Du benutzt eine aktuelle #VAR1#Version von InventoryManager!
- Es konnte keine Verbindung zur GitHub-Relaseseite hergestellt werden! Bitte prüfen Sie Ihre Internetverbindung oder versuchn Sie es zu einem späteren Zeitpunkt nocheinmal. Alternativ können Sie auch manuell auf der Webseite von #VAR1# prüfen ob ein Update vorliegt.
- Gegenstandsname
- Der Name des Gegenstandes
Kategorie
Die Kategorie des Gegenstandes
- Verwalter
- Der Verwalter des Gegenstandes
im Inventar
Gegenstand befindet sich im Inventar
+ Gegenstandsname
+ Der Name des Gegenstandes
+ Verwalter
+ Der Verwalter des Gegenstandes
letzter Empfänger
Der letzte Empfänger des Gegenstandes
- empfangen am
- Das Empfangsdatum des Gegenstandes durch den letzten Empfänger
zurückerhalten am
Das Empfangsdatum des Gegenstandes durch den Verwalter
+ empfangen am
+ Das Empfangsdatum des Gegenstandes durch den letzten Empfänger
\ No newline at end of file
diff --git a/languages/de.xml b/languages/de.xml
index 2d9f4eb..3e32d57 100644
--- a/languages/de.xml
+++ b/languages/de.xml
@@ -4,7 +4,9 @@
Hier kann man, zusätzlich zur Rolle "Administrator", weitere Rollen für den Zugriff auf das Modul "Einstellungen" berechtigen.
Datum anfügen
Soll an eine Exportdatei ein Datum im Format JJJJ-MM-TT angefügt werden, so ist der Haken zu setzen.
+ Kategorie
Konfiguration
+ Es konnte keine Verbindung zur GitHub-Relaseseite hergestellt werden! Bitte prüfen Sie Ihre Internetverbindung oder versuchn Sie es zu einem späteren Zeitpunkt nocheinmal. Alternativ können Sie auch manuell auf der Webseite von #VAR1# prüfen ob ein Update vorliegt.
Einstellungen für das Kopieren eines Gegenstandes:
erstellt mit dem Plugin InventoryManager der Online-Mitgliederverwaltung Admidio
Nur Daten der aktuellen Organisation löschen.
@@ -23,8 +25,8 @@
Dokumentation
Dokumentation öffnen
Hiermit kann die Dokumentation zum Plugin geöffnet werden (Eine bestehende Internetverbindung wird vorausgesetzt, da sich die Daten auf admidio.org befinden).
+ Gehe zur GitHub-Relaseseite
Export
- Import
Export und Filter
Feld einer lfd. Nr.
Hier kann ein Feld einer laufenden Nummer ausgewählt werden. Bei einer Auswahl wird die aktuelle Nummer ausgelesen und entsprechend der angegebenen Anzahl erhöht.\n\nHINWEIS: InventoryManager kann nur erkennen, ob ein Datenfeld vom Typ "Zahl" ist. Ob in diesem Datenfeld eine laufende Nummer gespeichert ist, kann nicht erkannt werden.
@@ -32,8 +34,14 @@
Der Dateiname der Exportdatei (ohne Endung).
Aussondern
Allgemeiner Filter - Mehrere Filterbegriffe sind durch Kommas zu trennen. Um Wörter auszuschließen muß ein - davorgesetzt werden. Beispiel: Meier, Huber, -Notenschrank
+ Import
+ In der linken Spalte der nachfolgenden Tabelle werden alle Eigenschaftsfelder angezeigt. In der rechten Spalte werden in einer Auswahlliste die Spalten aus der zu importierenden Datei angezeigt. Alle Spalten aus der Datei, die Sie importieren möchten, sollten Sie nun einem Eigenschaftsfeld zuordnen.
+ Gegenstände importieren
+ Der Gegenstand #VAR1_BOLD# wurde #VAR2_BOLD# importiert.
+ Folgenden Spalten der Importdatei sind keine Felder im InventoryManager zugeordnet:
Interface zum Plugin FormFiller
Hier besteht die Möglichkeit, bei installiertem Plugin FormFiller, eine FormFiller-Konfiguration auszuwählen. Anhand dieser kann ein Gegenstandsaus- oder Gegenstandsübergabebeleg erstellt werden. InventoryManager liefert hierbei die Werte, FormFiller die Positionen für den Druck.
+ Inventarverwaltung
Gegenstand
Gegenstand kopieren
Neuen Gegenstand anlegen
@@ -54,13 +62,20 @@
Eigenschaftsfelder
Felder pflegen
In der Felderpflege können Eigenschaftsfelder für Gegenstände angelegt und bearbeitet werden.
- Gegenstandsliste
- Inventarverwaltung
+ Gegenstandsliste
Gegenstandsname
- Kategorie
+ Verwalter
Die Authorisierungsprüfung des Plugins ist fehlgeschlagen. Es ist mehr als ein Menüpunkt mit derselben URL definiert.\n\n=> #VAR1_BOLD#
InventoryManager (basierend auf KeyManager %s)
Neu
+ Der Gegenstand #VAR1_BOLD# wurde von #VAR2_BOLD# geändert:
+ Der Gegenstand #VAR1_BOLD# wurde von #VAR2_BOLD# angelegt:
+ Der Gegenstand #VAR1_BOLD# wurde von #VAR2_BOLD# gelöscht:
+ Der Gegenstand #VAR1_BOLD# wurde von #VAR2_BOLD# ausgesondert:
+ Ein Gegenstand im Inventar wurde geändert
+ Ein Gegenstand im Inventar wurde hinzugefügt
+ Ein Gegenstand im Inventar wurde gelöscht
+ Ein Gegenstand im Inventar wurde ausgesondert
Anzahl
Anzahl der anzufügenden Gegenstände
Anzahl der Gegenstände
@@ -73,7 +88,6 @@
Einstellungen für die Profilansicht
In der Profilansicht eines Mitglieds können ausgegebene Gegenstände angezeigt werden. Standardmäßig wird nur der Gegenstandsname angezeigt. Hier kann, zusätzlich zum Gegenstandsnamen, ein weiteres Eigenschaftsfeld ausgewählt und angezeigt werden.
Damit in der Profilansicht Gegenstände angezeigt werden, muss folgende Zeile in die profile.php eingefügt werden: "require_once(ADMIDIO_PATH . FOLDER_PLUGINS .'/inventory/inventory_manager_profile_addin.php');".\n\nWeitere Infos dazu finden sich in der Datei inventory_manager_profile_addin.php.
- Verwalter
Alle Gegenstände anzeigen
Sonderfall: Aktueller Benutzer oder Administrator
Benutzer mit Empfänger abgleichen
@@ -82,30 +96,20 @@
Alle Benutzer sind Empfänger eines Gegenstandes, es kann kein Abgleich durchgeführt werden.
Dies ist nur eine Übersicht des Abgleichs, es wurde noch nichts gespeichert.\n\n Benutzer können nur zu Ehemaligen gemacht werden, wenn die Anzahl der Gegenstände 0 beträgt und sie nicht Administrator oder der aktuelle Benutzer sind.
Die aufgelisteten Benutzer sind jetzt Ehemalige.
- Ein Gegenstand im Inventar wurde hinzugefügt
- Der Gegenstand #VAR1_BOLD# wurde von #VAR2_BOLD# angelegt:
- Ein Gegenstand im Inventar wurde geändert
- Der Gegenstand #VAR1_BOLD# wurde von #VAR2_BOLD# geändert:
- Ein Gegenstand im Inventar wurde gelöscht
- Der Gegenstand #VAR1_BOLD# wurde von #VAR2_BOLD# gelöscht:
- Ein Gegenstand im Inventar wurde ausgesondert
- Der Gegenstand #VAR1_BOLD# wurde von #VAR2_BOLD# ausgesondert:
- Gehe zur GitHub-Relaseseite
Du benutzt eine aktuelle #VAR1#Version von InventoryManager!
- Es konnte keine Verbindung zur GitHub-Relaseseite hergestellt werden! Bitte prüfen Sie Ihre Internetverbindung oder versuchn Sie es zu einem späteren Zeitpunkt nocheinmal. Alternativ können Sie auch manuell auf der Webseite von #VAR1# prüfen ob ein Update vorliegt.
- Gegenstandsname
- Der Name des Gegenstandes
Kategorie
Die Kategorie des Gegenstandes
- Verwalter
- Der Verwalter des Gegenstandes
im Inventar
Gegenstand befindet sich im Inventar
+ Gegenstandsname
+ Der Name des Gegenstandes
+ Verwalter
+ Der Verwalter des Gegenstandes
letzter Empfänger
Der letzte Empfänger des Gegenstandes
- empfangen am
- Das Empfangsdatum des Gegenstandes durch den letzten Empfänger
zurückerhalten am
Das Empfangsdatum des Gegenstandes durch den Verwalter
+ empfangen am
+ Das Empfangsdatum des Gegenstandes durch den letzten Empfänger
\ No newline at end of file
diff --git a/languages/en.xml b/languages/en.xml
index 1f0caed..b7d7c1c 100644
--- a/languages/en.xml
+++ b/languages/en.xml
@@ -3,49 +3,57 @@
Access permission for preferences
Here, in addition to the role "Administrator", you can authorize additional roles for access to the "Preferences" module.
Append date
- If a date in the format YYYY-MM-DD is to be added to an export file, the checkmark must be set.
+ If a date in the format YYYY-MM-DD is to be added to an export file, the checkmark must be set.
+ Category
Configuration
+ Could not connect to the GitHub release page! Please check your internet connection or try again later. Alternatively, you can manually check on the #VAR1# website if an update is available.
Settings for copying a item:
- created with the Plugin InventoryManager of the online member administration Admidio
+ created with the Plugin InventoryManager of the online member administration Admidio
Delete only data of the current organization.
Delete data in all organizations.
- - The table #VAR1_BOLD# could not be deleted because it still contains data from another organization or another plug-in.\n
- - Data in table #VAR1_BOLD# deleted.\n
+ - The table #VAR1_BOLD# could not be deleted because it still contains data from another organization or another plug-in.\n
+ - Data in table #VAR1_BOLD# deleted.\n
- An error occurred while deleting the data in table #VAR1_BOLD#.\n
\nTo completely remove the plugin the program files and the menu entry must be removed.
The following deletions were performed:\n\n
- - An error occurred while deleting table #VAR1_BOLD#.\n
- - The table #VAR1_BOLD# could not be deleted because it still contains data from another organization.\n
- - Table #VAR1_BOLD# deleted.\n
+ - An error occurred while deleting table #VAR1_BOLD#.\n
+ - The table #VAR1_BOLD# could not be deleted because it still contains data from another organization.\n
+ - Table #VAR1_BOLD# deleted.\n
Uninstall
About the uninstall generated by the plugin entries can be deleted from the database.
Choose from the scope of the installation.\n\n***ATTENTION: This routine deletes only the entries in the Admidio database. Program files and the link in the menu will not be deleted! ***
Documentation
Open documentation
Allows the documentation of the plugin can be opened (An existing Internet connection is required because the data is located on admidio.org).
+ Go to GitHub release page
Export
- Import
Export and filter
Field of a running no.
Here a field of a consecutive number can be selected. In a selection, the current number is read out and increased according to the specified number.\n\nNOTE: InventoryManager can only tell if a data field is of type "number". Whether a serial number is stored in this data field can not be recognized.
Filename
The file name of the export file (without extension).
- Make to former
- General filter - Multiple filter terms are to be separated by commas. To exclude words, a - must be placed in front of them. Example: Meier, Huber, -Item case
+ Make to former
+ General filter - Multiple filter terms are to be separated by commas. To exclude words, a - must be placed in front of them. Example: Meier, Huber, -Item case
+ Import
+ In the left column of the following table all item fields are displayed. In the right column the columns from the file to be imported are displayed in a selection list. You should now assign all columns from the file you want to import to a item field.
+ Import items
+ The item #VAR1_BOLD# was imported #VAR2_BOLD#.
+ The following columns of the import file are not assigned to any item fields in InventoryManager:
Interface to the plugin formfiller
Here you have the possibility to select a FormFiller configuration if the Plugin FormFiller is installed. This can be used to create a item issue or item transfer document. InventoryManager supplies the values, FormFiller the positions for the print.
+ InventoryManager
Item
Copy the item
Create a item
- Individual items can be generated here.\n\nNote: In the "Change the item" view, you can use the "Copy the item" menu item to copy an existing item once or several times.
+ Individual items can be generated here.\n\nNote: In the "Change the item" view, you can use the "Copy the item" menu item to copy an existing item once or several times.
Delete the item
Should this item be deleted?
Item deleted
Change the item
- Item is made to the former
+ Item is made to the former
You can make the item to the former. This has the advantage that the data is preserved and you can see again later who has borrowed this item. If you select Delete, the record is irrevocably removed from the database, and it is no longer possible to view the data of this item.
Print the item
- Item field
+ Item field
Create a item field
Delete the item field
Should this item field and the associated item data be deleted?
@@ -55,57 +63,53 @@
Maintain itemfields
Item fields can be created and edited in item field maintenance.
Item list
- InventoryManager
Item name
- Category
- The authorization check of the plugin failed. There is more than one menu item with the same URL defined.\n\n=> #VAR1_BOLD#
+ Keeper
+ The authorization check of the plugin failed. There is more than one menu item with the same URL defined.\n\n=> #VAR1_BOLD#
InventoryManager(based on KeyManager %s)
New
+ The item #VAR1_BOLD# was changed by #VAR2_BOLD#:
+ The item #VAR1_BOLD# was created by #VAR2_BOLD#:
+ The item #VAR1_BOLD# was deleted by #VAR2_BOLD#:
+ The item #VAR1_BOLD# was made to former by #VAR2_BOLD#:
+ An item in the inventory has been changed
+ An item has been added to the inventory
+ An item in the inventory has been deleted
+ An item in the inventory has been made to former
Number
- Number of items to be added
+ Number of items to be added
Number of items
Organizational choice
- Cannot print using FormFiller. The saved FormFiller configuration does not exist.
+ Cannot print using FormFiller. The saved FormFiller configuration does not exist.
Situation
Plug-in informations
Plug-in name
Version
Profile view settings
- Issued items can be viewed in a member's profile view. By default, only the item name is displayed. In addition to the item name, another item field can be selected and displayed here.
+ Issued items can be viewed in a member's profile view. By default, only the item name is displayed. In addition to the item name, another item field can be selected and displayed here.
In order for items to be displayed in the profile view, the following line must be added to profile.php: "require_once(ADMIDIO_PATH . FOLDER_PLUGINS .'/inventory/inventory_manager_profile_addin.php');".\n\nFurther information can be found in the inventory_manager_profile_addin.php file.
- Keeper
Display all items
- Special case: current user or administrator
+ Special case: current user or administrator
Synchronize users with recipients
- This allows users to be made without a item to a former user.\n\n A T T E N T I O N\n\n This feature should only be used if InventoryManager is operated in its own organization.
+ This allows users to be made without a item to a former user.\n\n A T T E N T I O N\n\n This feature should only be used if InventoryManager is operated in its own organization.
A mistake happened! Users with #VAR1# could not be deleted.
All users are recipients of a item, no reconciliation can be performed.
This is just an overview of the comparison, nothing has been saved yet.\n\n Users can only be made to a former if the number of items is 0 and they are not administrator or the current user.
The listed users are now former.
- An item has been added to the inventory
- The item #VAR1_BOLD# was created by #VAR2_BOLD#:
- An item in the inventory has been changed
- The item #VAR1_BOLD# was changed by #VAR2_BOLD#:
- An item in the inventory has been deleted
- The item #VAR1_BOLD# was deleted by #VAR2_BOLD#:
- An item in the inventory has been made to former
- The item #VAR1_BOLD# was made to former by #VAR2_BOLD#:
- Go to GitHub release page
You are using the current #VAR1# version of InventoryManager!
- Could not connect to the GitHub release page! Please check your internet connection or try again later. Alternatively, you can manually check on the #VAR1# website if an update is available.
- Itemname
- Name of the item
Category
Category of the item
- Keeper
- Keeper of the item
in inventory
Item is in inventory
+ Itemname
+ Name of the item
+ Keeper
+ Keeper of the item
last receiver
Last receiver of the item
- received on
- Date of receive of the item by the last receiver
received back on
Date of receive of the item by the keeper
+ received on
+ Date of receive of the item by the last receiver
\ No newline at end of file
diff --git a/languages/fr.xml b/languages/fr.xml
index b61f63a..b596445 100644
--- a/languages/fr.xml
+++ b/languages/fr.xml
@@ -4,7 +4,9 @@
Ici, en plus du rôle "Administrateur", vous pouvez autoriser d'autres rôles pour accéder au module "Paramétrages".
Ajouter la date
Si une date au format AAAA-MM-JJ doit être ajoutée à un fichier d'exportation, la coche doit être cochée.
+ Catégorie
Configuration
+ Impossible de se connecter à la page de publication GitHub! Veuillez vérifier votre connexion Internet ou réessayer plus tard. Alternativement, vous pouvez vérifier manuellement sur le site Web de #VAR1# s'il y a une mise à jour.
Paramètres de copie d'une objet:
créé avec le Plugin InventoryManager de l'administration des membres en ligne Admidio
Supprimer uniquement les données de l\'organisation actuelle.
@@ -23,8 +25,8 @@
Documentation
Ouvrir la documentation
Cela ouvre la documentation pour le plugin (une connexion Internet existante est nécessaire, car les données se trouvent sur admidio.org).
+ Aller à la page de publication GitHub
Exporter
- Importer
Exporter et filtrer
Champ de course non.
Ici, un champ d'un nombre consécutif peut être sélectionné. Dans une sélection, le numéro actuel est lu et augmenté en fonction du nombre spécifié.\n\nREMARQUE: InventoryManager peut seulement dire si un champ de données est de type "numéro". Si un numéro de série est stocké dans ce champ de données ne peut pas être reconnu.
@@ -32,8 +34,14 @@
Le nom de fichier du fichier d'exportation (sans extension).
Retirer
Filtre général - Plusieurs termes de filtre doivent être séparés par des virgules. Pour exclure des mots, un - doit être placé devant eux. Exemple : Meier, Huber, -Porte-objets
+ Importer
+ Dans la colonne de gauche du tableau suivant, tous les champs de propriétés sont affichés. Dans la colonne de droite, les colonnes du fichier à importer sont affichées dans une liste déroulante. Toutes les colonnes du fichier que vous souhaitez importer doivent maintenant être associées à un champ de propriété.
+ Importer des objets
+ L'objet #VAR1_BOLD# a été importé #VAR2_BOLD#.
+ Les colonnes suivantes du fichier d'importation ne sont associées à aucun champ dans InventoryManager :
Interface avec le Plug-in FormFiller
Ici, il est possible de sélectionner une configuration FormFiller avec le plug-in FormFiller installé. Un récépissé de remise de objet ou un récépissé de remise de objet peut être créé sur cette base. InventoryManager fournit les valeurs, FormFiller les positions pour l\'impression.
+ InventoryManager
Objet
Copier l'objet
Générer l'objet
@@ -55,12 +63,19 @@
Gérer les champs objets
Les champs objets peuvent être créées et traitées dans la gestion des champs objets.
Liste des objets
- InventoryManager
Nom objet
- Catégorie
+ Propriétaire
Le contrôle d\'autorisation du plug-in a échoué. Plus d\'un élément de menu est défini avec la même URL.\n\n=> #VAR1_BOLD#
InventoryManager (basé sur KeyManager %s)
Nouveau
+ L'objet #VAR1_BOLD# a été modifié par #VAR2_BOLD# :
+ L'objet #VAR1_BOLD# a été créé par #VAR2_BOLD# :
+ L'objet #VAR1_BOLD# a été supprimé par #VAR2_BOLD# :
+ L'objet #VAR1_BOLD# a été retiré par #VAR2_BOLD# :
+ Un objet dans l'inventaire a été modifié
+ Un objet a été ajouté à l'inventaire
+ Un objet dans l'inventaire a été supprimé
+ Un objet dans l'inventaire a été retiré
Nombre
Nombre de objets à ajouter
Nombre de objets
@@ -73,7 +88,6 @@
Paramètres d'affichage du profil
Les objets émises peuvent être consultées dans la vue du profil d'un membre. Par défaut, seul le nom de l'objet est affiché. Outre le nom de l'objet, un autre champ objet peut être sélectionné et affiché ici.
Pour que les objets soient affichées dans la vue de profil, la ligne suivante doit être ajoutée à profile.php: "require_once(ADMIDIO_PATH . FOLDER_PLUGINS .'/inventory/inventory_manager_profile_addin.php');".\n\nDe plus amples informations peuvent être trouvées dans le fichier inventory_manager_profile_addin.php.
- Propriétaire
Afficher toutes les objets
Cas particulier: utilisateur actuel ou administrateur
Synchroniser les utilisateurs avec les destinataires
@@ -82,30 +96,20 @@
Tous les utilisateurs sont les destinataires d'une objet, aucune réconciliation ne peut être effectuée.
Ceci est juste un aperçu de la comparaison, rien n'a encore été enregistré.\n\n Les utilisateurs ne peuvent devenir des anciens que si le nombre de objets est 0 et qu'il ne s'agit ni de l'administrateur ni de l'utilisateur actuel.
Les utilisateurs listés sont maintenant des anciens.
- Un objet a été ajouté à l'inventaire
- L'objet #VAR1_BOLD# a été créé par #VAR2_BOLD# :
- Un objet dans l'inventaire a été modifié
- L'objet #VAR1_BOLD# a été modifié par #VAR2_BOLD# :
- Un objet dans l'inventaire a été supprimé
- L'objet #VAR1_BOLD# a été supprimé par #VAR2_BOLD# :
- Un objet dans l'inventaire a été retiré
- L'objet #VAR1_BOLD# a été retiré par #VAR2_BOLD# :
- Aller à la page de publication GitHub
Vous utilisez une #VAR1#version actuelle d'InventoryManager!
- Impossible de se connecter à la page de publication GitHub! Veuillez vérifier votre connexion Internet ou réessayer plus tard. Alternativement, vous pouvez vérifier manuellement sur le site Web de #VAR1# s'il y a une mise à jour.
- Nom de l'objet
- Le nom de l'objet
Catégorie
La catégorie de l'objet
- Propriétaire
- Le propriétaire de l'objet
- en inventaire
+ en inventaire
l'objet est en inventaire
- dernier destinataire
+ Nom de l'objet
+ Le nom de l'objet
+ Propriétaire
+ Le propriétaire de l'objet
+ dernier destinataire
Le dernier destinataire de l'objet
- reçu le
- La date à laquelle l'objet a été reçu par le dernier destinataire
rendue le
La date à laquelle l'objet a été rendu au propriétaire
+ reçu le
+ La date à laquelle l'objet a été reçu par le dernier destinataire
\ No newline at end of file
diff --git a/preferences.php b/preferences/preferences.php
similarity index 89%
rename from preferences.php
rename to preferences/preferences.php
index 158f9d2..28d024a 100644
--- a/preferences.php
+++ b/preferences/preferences.php
@@ -14,13 +14,13 @@
***********************************************************************************************
*/
-require_once(__DIR__ . '/../../adm_program/system/common.php');
-require_once(__DIR__ . '/common_function.php');
-require_once(__DIR__ . '/classes/items.php');
-require_once(__DIR__ . '/classes/configtable.php');
+require_once(__DIR__ . '/../../../adm_program/system/common.php');
+require_once(__DIR__ . '/../common_function.php');
+require_once(__DIR__ . '/../classes/items.php');
+require_once(__DIR__ . '/../classes/configtable.php');
// Access only with valid login
-require_once(__DIR__ . '/../../adm_program/system/login_valid.php');
+require_once(__DIR__ . '/../../../adm_program/system/login_valid.php');
/**
* Adds a new preference panel to the given page.
@@ -94,7 +94,7 @@ function addPreferencePanel($page, $id, $title, $icon, $content) {
var PIMVersionContent = $("#inventory_manager_version");
PIMVersionContent.html("").show();
- $.get("'.ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER. '/check_for_update.php", {mode: "2", PIMVersion: "' .$pPreferences->config['Plugininformationen']['version']. '", PIMBetaVersion: "' .$pPreferences->config['Plugininformationen']['beta-version']. '"}, function(htmlVersion) {
+ $.get("'.ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER. '/preferences/preferences_check_for_update.php", {mode: "2", PIMVersion: "' .$pPreferences->config['Plugininformationen']['version']. '", PIMBetaVersion: "' .$pPreferences->config['Plugininformationen']['beta-version']. '"}, function(htmlVersion) {
PIMVersionContent.html(htmlVersion);
});
return false;
@@ -120,7 +120,7 @@ function addPreferencePanel($page, $id, $title, $icon, $content) {
// PANEL: INTERFACE_PFF
if ($pPreferences->isPffInst()) {
- $formInterfacePFF = new HtmlForm('interface_pff_form', SecurityUtils::encodeUrl(ADMIDIO_URL.FOLDER_PLUGINS . PLUGIN_FOLDER .'/preferences_function.php', array('form' => 'interface_pff')), $page, array('class' => 'form-preferences'));
+ $formInterfacePFF = new HtmlForm('interface_pff_form', SecurityUtils::encodeUrl(ADMIDIO_URL.FOLDER_PLUGINS . PLUGIN_FOLDER .'/preferences/preferences_function.php', array('form' => 'interface_pff')), $page, array('class' => 'form-preferences'));
$formInterfacePFF->addSelectBox('interface_pff', $gL10n->get('PLG_INVENTORY_MANAGER_CONFIGURATION'), $pPreferences->configPff['Formular']['desc'], array('defaultValue' => $pPreferences->config['Optionen']['interface_pff'], 'showContextDependentFirstEntry' => false));
$formInterfacePFF->addCustomContent('', $gL10n->get('PLG_INVENTORY_MANAGER_INTERFACE_PFF_DESC'));
$formInterfacePFF->addSubmitButton('btn_save_interface_pff', $gL10n->get('SYS_SAVE'), array('icon' => 'fa-check', 'class' => ' offset-sm-3'));
@@ -128,7 +128,7 @@ function addPreferencePanel($page, $id, $title, $icon, $content) {
}
// PANEL: PROFILE ADDIN
-$formProfileAddin = new HtmlForm('profile_addin_form', SecurityUtils::encodeUrl(ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER .'/preferences_function.php', array('form' => 'profile_addin')), $page, array('class' => 'form-preferences'));
+$formProfileAddin = new HtmlForm('profile_addin_form', SecurityUtils::encodeUrl(ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER .'/preferences/preferences_function.php', array('form' => 'profile_addin')), $page, array('class' => 'form-preferences'));
$items = new CItems($gDb, $gCurrentOrgId);
$valueList = array();
foreach ($items->mItemFields as $itemField) {
@@ -141,7 +141,7 @@ function addPreferencePanel($page, $id, $title, $icon, $content) {
addPreferencePanel($page, 'profile_addin', $gL10n->get('PLG_INVENTORY_MANAGER_PROFILE_ADDIN'), 'fas fa-users-cog', $formProfileAddin->show());
// PANEL: EXPORT
-$formExport = new HtmlForm('export_form', SecurityUtils::encodeUrl(ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER .'/preferences_function.php', array('form' => 'export')), $page, array('class' => 'form-preferences'));
+$formExport = new HtmlForm('export_form', SecurityUtils::encodeUrl(ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER .'/preferences/preferences_function.php', array('form' => 'export')), $page, array('class' => 'form-preferences'));
$formExport->addInput('file_name', $gL10n->get('PLG_INVENTORY_MANAGER_FILE_NAME'), $pPreferences->config['Optionen']['file_name'], array('helpTextIdLabel' => 'PLG_INVENTORY_MANAGER_FILE_NAME_DESC', 'property' => HtmlForm::FIELD_REQUIRED));
$formExport->addCheckbox('add_date', $gL10n->get('PLG_INVENTORY_MANAGER_ADD_DATE'), $pPreferences->config['Optionen']['add_date'], array('helpTextIdInline' => 'PLG_INVENTORY_MANAGER_ADD_DATE_DESC'));
$formExport->addSubmitButton('btn_save_configurations', $gL10n->get('SYS_SAVE'), array('icon' => 'fa-check', 'class' => ' offset-sm-3'));
@@ -149,17 +149,17 @@ function addPreferencePanel($page, $id, $title, $icon, $content) {
// PANEL: IMPORT
$formImport = new HtmlForm('import_form',null, $page, array('class' => 'form-preferences'));
-$formImport->addButton('btn_save_configurations', $gL10n->get('SYS_IMPORT'),array('icon' => 'fa-arrow-circle-right', 'class' => 'offset-sm-3', 'link' => '' . ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER . '/import.php'));
+$formImport->addButton('btn_save_configurations', $gL10n->get('SYS_IMPORT'),array('icon' => 'fa-arrow-circle-right', 'class' => 'offset-sm-3', 'link' => '' . ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER . '/import/import.php'));
addPreferencePanel($page, 'import', $gL10n->get('PLG_INVENTORY_MANAGER_IMPORT'), 'fas fa-file-import', $formImport->show());
// PANEL: DEINSTALLATION
-$formDeinstallation = new HtmlForm('deinstallation_form', SecurityUtils::encodeUrl(ADMIDIO_URL.FOLDER_PLUGINS . PLUGIN_FOLDER .'/preferences_function.php', array('mode' => 2)), $page);
+$formDeinstallation = new HtmlForm('deinstallation_form', SecurityUtils::encodeUrl(ADMIDIO_URL.FOLDER_PLUGINS . PLUGIN_FOLDER .'/preferences/preferences_function.php', array('mode' => 2)), $page);
$formDeinstallation->addSubmitButton('btn_save_deinstallation', $gL10n->get('PLG_INVENTORY_MANAGER_DEINSTALLATION'), array('icon' => 'fa-trash-alt', 'class' => 'offset-sm-3'));
$formDeinstallation->addCustomContent('', ''.$gL10n->get('PLG_INVENTORY_MANAGER_DEINSTALLATION_DESC'));
addPreferencePanel($page, 'deinstallation', $gL10n->get('PLG_INVENTORY_MANAGER_DEINSTALLATION'), 'fas fa-trash-alt', $formDeinstallation->show());
// PANEL: ACCESS_PREFERENCES
-$formAccessPreferences = new HtmlForm('access_preferences_form', SecurityUtils::encodeUrl(ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER .'/preferences_function.php', array('form' => 'access_preferences')), $page, array('class' => 'form-preferences'));
+$formAccessPreferences = new HtmlForm('access_preferences_form', SecurityUtils::encodeUrl(ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER .'/preferences/preferences_function.php', array('form' => 'access_preferences')), $page, array('class' => 'form-preferences'));
$sql = 'SELECT rol.rol_id, rol.rol_name, cat.cat_name FROM '.TBL_CATEGORIES.' AS cat, '.TBL_ROLES.' AS rol
WHERE cat.cat_id = rol.rol_cat_id
AND (cat.cat_org_id = '.$gCurrentOrgId.'
diff --git a/check_for_update.php b/preferences/preferences_check_for_update.php
similarity index 98%
rename from check_for_update.php
rename to preferences/preferences_check_for_update.php
index ebc8e0f..b235493 100644
--- a/check_for_update.php
+++ b/preferences/preferences_check_for_update.php
@@ -22,8 +22,8 @@
* it with the latest stable and beta release versions
***********************************************************************************************
*/
-require_once(__DIR__ . '/../../adm_program/system/common.php');
-require_once(__DIR__ . '/common_function.php');
+require_once(__DIR__ . '/../../../adm_program/system/common.php');
+require_once(__DIR__ . '/../common_function.php');
// Initialize and check the parameters
$getMode = admFuncVariableIsValid($_GET, 'mode', 'int', array('defaultValue' => 1, 'directOutput' => true));
diff --git a/preferences_function.php b/preferences/preferences_function.php
similarity index 93%
rename from preferences_function.php
rename to preferences/preferences_function.php
index a8218c8..9d5d80e 100644
--- a/preferences_function.php
+++ b/preferences/preferences_function.php
@@ -16,12 +16,12 @@
***********************************************************************************************
*/
-require_once(__DIR__ . '/../../adm_program/system/common.php');
-require_once(__DIR__ . '/common_function.php');
-require_once(__DIR__ . '/classes/configtable.php');
+require_once(__DIR__ . '/../../../adm_program/system/common.php');
+require_once(__DIR__ . '/../common_function.php');
+require_once(__DIR__ . '/../classes/configtable.php');
// Access only with valid login
-require_once(__DIR__ . '/../../adm_program/system/login_valid.php');
+require_once(__DIR__ . '/../../../adm_program/system/login_valid.php');
$pPreferences = new CConfigTablePIM();
$pPreferences->read();
@@ -112,7 +112,7 @@ function showDeinstallationDialog() {
$page->addHtml('' . $gL10n->get('PLG_INVENTORY_MANAGER_DEINSTALLATION_FORM_DESC') . '
');
// show form
- $form = new HtmlForm('deinstallation_form', SecurityUtils::encodeUrl(ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER . '/preferences_function.php', array('mode' => 3)), $page);
+ $form = new HtmlForm('deinstallation_form', SecurityUtils::encodeUrl(ADMIDIO_URL . FOLDER_PLUGINS . PLUGIN_FOLDER . '/preferences/preferences_function.php', array('mode' => 3)), $page);
$radioButtonEntries = array('0' => $gL10n->get('PLG_INVENTORY_MANAGER_DEINST_ACTORGONLY'), '1' => $gL10n->get('PLG_INVENTORY_MANAGER_DEINST_ALLORG'));
$form->addRadioButton('deinst_org_select', $gL10n->get('PLG_INVENTORY_MANAGER_ORG_CHOICE'), $radioButtonEntries, array('defaultValue' => '0'));
$form->addSubmitButton('btn_deinstall', $gL10n->get('PLG_INVENTORY_MANAGER_DEINSTALLATION'), array('icon' => 'fa-trash-alt', 'class' => 'offset-sm-3'));
diff --git a/version.php b/version.php
index 2fa1668..947690d 100644
--- a/version.php
+++ b/version.php
@@ -12,7 +12,7 @@
class CPluginInfoPIM {
protected const PLUGIN_VERSION = '1.0.4';
protected const PLUGIN_VERSION_BETA = 'n/a';
- protected const PLUGIN_STAND = '28.12.2024';
+ protected const PLUGIN_STAND = '29.12.2024';
/**
* Current version of plugin InventoryManager