mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 01:42:17 +00:00
Buttons und Menüpunkt zum Versenden und Antworten auf Messages hinzugefügt
This commit is contained in:
@@ -149,6 +149,7 @@ foreach($addon_obj->result as $addon)
|
||||
<command id="menu-dokumente-ausbildungsvertrag_englisch:command" oncommand="StudentPrintAusbildungsvertragEnglisch(event);"/>
|
||||
<command id="menu-cis-studienplan:command" oncommand="StudentCisStudienplan(event);"/>
|
||||
<command id="menu-cis-notenliste:command" oncommand="StudentCisNotenliste(event);"/>
|
||||
<command id="menu-messages-new:command" oncommand="MessageNew(event);"/>
|
||||
<command id="menu-extras-reihungstest:command" oncommand="ExtrasShowReihungstest();"/>
|
||||
<command id="menu-extras-firma:command" oncommand="ExtrasShowFirmenverwaltung();"/>
|
||||
<command id="menu-extras-lvverwaltung:command" oncommand="ExtrasShowLVverwaltung();"/>
|
||||
@@ -742,6 +743,17 @@ foreach($addon_obj->result as $addon)
|
||||
command = "menu-cis-notenliste:command"
|
||||
accesskey = "&menu-cis-notenliste.accesskey;"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
<!-- ***** CIS ***** -->
|
||||
<menu id="menu-messages" label="&menu-messages.label;" accesskey="&menu-messages.accesskey;">
|
||||
<menupopup id="menu-messages-popup">
|
||||
<menuitem
|
||||
id = "menu-messages-new"
|
||||
key = "menu-messages-new:key"
|
||||
label = "&menu-messages-new.label;"
|
||||
command = "menu-messages-new:command"
|
||||
accesskey = "&menu-messages-new.accesskey;"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
<!-- ***** Zusatzmenues inkludieren ***** -->
|
||||
<?php
|
||||
|
||||
@@ -1184,6 +1184,24 @@ function StatistikPrintStudentExportExtended()
|
||||
OpenWindowPost(action, data);
|
||||
}
|
||||
|
||||
// ****
|
||||
// * Zeigt HTML Seite zum Erstellen neuer Nachrichten
|
||||
// ****
|
||||
function MessageNew()
|
||||
{
|
||||
var tree = document.getElementById('student-tree');
|
||||
|
||||
if(tree.currentIndex==-1)
|
||||
{
|
||||
alert("Bitte markieren Sie zuerst eine Person");
|
||||
}
|
||||
else
|
||||
{
|
||||
var person_id = getTreeCellText(tree, 'student-treecol-person_id', tree.currentIndex);
|
||||
window.open('<?php echo APP_ROOT ?>/index.ci.php/system/Messages/outbox/'+person_id,'Outbox','');
|
||||
}
|
||||
}
|
||||
|
||||
// ****
|
||||
// * Zeigt HTML Seite zur Bearbeitung der Reihungstests an
|
||||
// ****
|
||||
@@ -1767,7 +1785,7 @@ function PrintStudienblatt(event)
|
||||
{
|
||||
var tree = document.getElementById('student-prestudent-tree-rolle');
|
||||
var ss = document.getElementById('statusbarpanel-semester').label;
|
||||
|
||||
|
||||
var items = tree.view.rowCount;
|
||||
|
||||
try
|
||||
|
||||
@@ -85,3 +85,29 @@ function loadMessages(person_id)
|
||||
tree.builder.addListener(MessagesTreeListener);
|
||||
|
||||
}
|
||||
|
||||
|
||||
// ****
|
||||
// * Zeigt HTML Seite zum Erstellen neuer Nachrichten
|
||||
// ****
|
||||
function MessagesNewMessage()
|
||||
{
|
||||
window.open('<?php echo APP_ROOT ?>/index.ci.php/system/Messages/outbox/'+MessagePersonID,'Outbox','');
|
||||
}
|
||||
|
||||
/**
|
||||
* Oeffnet Nachrichtenseite um eine Antwort auf eine Nachricht zu schicken
|
||||
*/
|
||||
function MessagesSendAnswer()
|
||||
{
|
||||
var tree=document.getElementById('messages-tree');
|
||||
if(tree.currentIndex==-1)
|
||||
{
|
||||
alert("Bitte markieren Sie zuerst eine Nachricht");
|
||||
}
|
||||
else
|
||||
{
|
||||
var MessageId = getTreeCellText(tree, 'messages-tree-message_id', tree.currentIndex);
|
||||
window.open('<?php echo APP_ROOT ?>/index.ci.php/system/Messages/outbox/'+MessagePersonID+'/'+MessageId,'Outbox','');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,6 +60,7 @@ echo ']>
|
||||
<vbox flex="1">
|
||||
<popupset>
|
||||
<menupopup id="messages-tree-popup">
|
||||
<menuitem label="Antwort" oncommand="MessagesSendAnswer();" id="messages-tree-popup-answer" hidden="false"/>
|
||||
<menuitem label="Entfernen" oncommand="messagesDelete();" id="messages-tree-popup-delete" hidden="false"/>
|
||||
</menupopup>
|
||||
</popupset>
|
||||
@@ -103,6 +104,11 @@ echo ']>
|
||||
</template>
|
||||
</tree>
|
||||
</hbox>
|
||||
<hbox>
|
||||
<button oncommand="MessagesNewMessage()" label="Neue Nachricht schicken"/>
|
||||
<button oncommand="MessagesSendAnswer()" label="Antworten"/>
|
||||
<spacer flex="1" />
|
||||
</hbox>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
</window>
|
||||
|
||||
+11
-2
@@ -1,5 +1,5 @@
|
||||
<!ENTITY window.title "FAS">
|
||||
<!ENTITY window.version "3.2a">
|
||||
<!ENTITY window.title "FAS">
|
||||
<!ENTITY window.version "3.2a">
|
||||
|
||||
<!-- MENUE -->
|
||||
|
||||
@@ -297,6 +297,15 @@
|
||||
<!ENTITY menu-cis-notenliste.label "Notenliste">
|
||||
<!ENTITY menu-cis-notenliste.accesskey "N">
|
||||
|
||||
<!-- MESSAGES -->
|
||||
<!ENTITY menu-messages.label "Nachrichten">
|
||||
<!ENTITY menu-messages.accesskey "N">
|
||||
|
||||
<!ENTITY menu-messages-new.key "N">
|
||||
<!ENTITY menu-messages-new.label "Neue Nachricht erstellen">
|
||||
<!ENTITY menu-messages-new.accesskey "N">
|
||||
|
||||
|
||||
<!-- Extras -->
|
||||
<!ENTITY menu-extras.label "Extras">
|
||||
<!ENTITY menu-extras.accesskey "X">
|
||||
|
||||
Reference in New Issue
Block a user