new widget CIS4 MA Widget

- db-update for new widget studstatus
- different view for stgL and stgA
- update phrases
This commit is contained in:
ma0068
2026-06-11 15:34:45 +02:00
parent 2f90112e4d
commit fe8cf9bc83
9 changed files with 498 additions and 1 deletions
+1
View File
@@ -95,6 +95,7 @@ require_once('dbupdate_3.4/71645_studvw_messagetab_ladezeit.php');
require_once('dbupdate_3.4/71566_studienordnungsdokument_neuer_organisationseinheitstyp_programm.php');
require_once('dbupdate_3.4/70376_lohnguide.php');
require_once('dbupdate_3.4/75888_reihungstest_mehrfachdurchfuehrung.php');
require_once('dbupdate_3.4/77048_cis4_mitarbeiter_studstatus_widget.php');
// *** Pruefung und hinzufuegen der neuen Attribute und Tabellen
echo '<H2>Pruefe Tabellen und Attribute!</H2>';
@@ -0,0 +1,44 @@
<?php
// neues widget mit widget_kurzbz = 'studstatus' als Zeile hinzufügen
if($result = @$db->db_query("SELECT 1 FROM dashboard.tbl_widget WHERE widget_kurzbz= 'studstatus';"))
{
if($db->db_num_rows($result) == 0)
{
$qry = "
INSERT INTO dashboard.tbl_widget (
widget_id,
widget_kurzbz,
beschreibung,
arguments,
setup
)
VALUES (
9,
'studstatus',
'Widget Todos Studierendenstatus',
'{
\"css\": \"d-flex justify-content-center align-items-center h-100\",
\"title\": \"Tasks Studstatus\"
}'::jsonb,
'{
\"file\": \"public/js/components/DashboardWidget/StudStatus.js\",
\"icon\": \"/skin/images/fh_technikum_wien_illustration_klein.png\",
\"name\": \"Studierendenstatus\",
\"width\": {
\"max\": 2,
\"min\": 1
},
\"height\": {
\"max\": 2,
\"min\": 1
},
\"hideFooter\": true
}'::jsonb
);";
if(!$db->db_query($qry))
echo '<strong>dashboard.tbl_widget: '.$db->db_last_error().'</strong><br>';
else
echo '<br>dashboard.tbl_widget: Widget studstatus hinzugefuegt!<br>';
}
}
+102
View File
@@ -58177,6 +58177,108 @@ I have been informed that I am under no obligation to consent to the transmissio
)
),
// ### Phrases Dashboard Admin END
// ### Phrases Dashboard Studstatus Widget START
array(
'app' => 'core',
'category' => 'dashboard',
'phrase' => 'antraegeToEdit',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'zu bearbeitende Studierendenanträge',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Student applications to be processed',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'dashboard',
'phrase' => 'antraegeOpen',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'offene Studierendenanträge',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'open student applications',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'dashboard',
'phrase' => 'antraegeNoOpen',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Keine offenen Studierendenanträge',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'No open student applications',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'dashboard',
'phrase' => 'linkVerwaltungStudstatus',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Zur Verwaltung des Studierendenstatus',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Link to the administration of the student status',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'dashboard',
'phrase' => 'noPermissionStudstatus',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Keine Berechtigung für Bearbeitung von Studierendenanträgen.',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'No permission to process student applications.',
'description' => '',
'insertvon' => 'system'
)
)
),
// ### Phrases Dashboard Studstatus Widget END
);