mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-19 07:52:16 +00:00
f6e0f58b3d
- Added new view system/messages/htmlError.php - Renamed view system/messages/messageWrite.php to system/messages/htmlWriteTemplate.php - Added new widget views: widgets/Dropdown_widget.php and widgets/MultipleDropdown_widget.php - Added new CSS public/css/Widgets.css - Controller system/FASMessages: - Renamed method write to writeTemplate and method writeReply to writeReplyTemplate - Removed all the private methods and moved all the logic to model CL/Messages_model - Methods writeTemplate and writeReplyTemplate do not need anymore the sender id as parameter - Controller system/Messages: - Renamed method write to writeTemplate - Renamed method send to sendImplicitTemplate - Renamed method sendJson to sendExplicitTemplateJson - Moved all the logic to model CL/Messages_model - Adapted php and JS code to use these new methods names and interfaces - Removed public method getIsAdmin from MessageLib - Method _sendMessage of MessageLib now returns the saved message ids - Added new package olifolkerd/tabulator to composer - Added new parameter widgets to view templates/FHC-Header.php - Added new HTML widget widgets/Dropdown_widget and widgets/MultipleDropdown_widget - Added constants REPLY_SUBJECT_PREFIX and REPLY_BODY_PREFIX to model CL/Messages_model - Added new public methods prepareHtmlWriteTemplatePersons, prepareHtmlWriteTemplatePrestudents, sendImplicitTemplate, sendExplicitTemplate, getVorlage, parseMessageText and getMessageFromIds to model CL/Messages_model - Added new private methods _getAuthUser, _lowerReplaceSpaceArrayKeys, _addOeToPrestudents, _personLog and _prepareHtmlWriteTemplate to model CL/Messages_model
168 lines
4.0 KiB
PHP
168 lines
4.0 KiB
PHP
<?php
|
|
$this->load->view(
|
|
'templates/FHC-Header',
|
|
array(
|
|
'title' => 'Write a message',
|
|
'jquery' => true,
|
|
'jqueryui' => true,
|
|
'bootstrap' => true,
|
|
'ajaxlib' => true,
|
|
'fontawesome' => true,
|
|
'tinymce' => true,
|
|
'sbadmintemplate' => true,
|
|
'widgets' => true,
|
|
'customCSSs' => array('public/css/sbadmin2/admintemplate_contentonly.css', 'public/css/messaging/messageWrite.css'),
|
|
'customJSs' => array('public/js/bootstrapper.js', 'public/js/messaging/messageWrite.js')
|
|
)
|
|
);
|
|
?>
|
|
<body>
|
|
<div id="wrapper">
|
|
<div id="page-wrapper">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<h3 class="page-header">
|
|
|
|
<?php echo ucfirst($this->p->t('ui', 'nachrichtSenden')); ?>
|
|
|
|
</h3>
|
|
</div>
|
|
</div>
|
|
<form id="sendForm" method="post" action="<?php echo site_url('/system/Messages/sendImplicitTemplate'); ?>">
|
|
<div class="row">
|
|
<div class="form-group">
|
|
<div class="col-lg-1 msgfieldcol-left">
|
|
<label>
|
|
|
|
<?php echo ucfirst($this->p->t('global', 'empfaenger')).':'; ?>
|
|
|
|
</label>
|
|
</div>
|
|
<div class="col-lg-11 msgfieldcol-right">
|
|
<?php echo $recipientsList; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="form-group">
|
|
<div class="col-lg-1 msgfield msgfieldcol-left">
|
|
<label>
|
|
|
|
<?php echo ucfirst($this->p->t('global', 'betreff')).':'; ?>
|
|
|
|
</label>
|
|
</div>
|
|
|
|
<div class="col-lg-7">
|
|
<input id="subject" class="form-control" type="text" value="<?php echo $subject; ?>" name="subject">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
<div class="row">
|
|
<div class="col-lg-10">
|
|
<label>
|
|
|
|
<?php echo ucfirst($this->p->t('global', 'nachricht')).':'; ?>
|
|
|
|
</label>
|
|
<textarea id="bodyTextArea" name="body">
|
|
|
|
<?php echo $body; ?>
|
|
|
|
</textarea>
|
|
</div>
|
|
<div class="col-lg-2">
|
|
<div class="form-group">
|
|
<label>
|
|
|
|
<?php echo ucfirst($this->p->t('ui', 'felder')).':'; ?>
|
|
|
|
</label>
|
|
|
|
<?php
|
|
echo $this->widgetlib->widget(
|
|
'MultipleDropdown_widget',
|
|
array('elements' => success($variables)),
|
|
array(
|
|
'name' => 'variables[]',
|
|
'id' => 'variables',
|
|
'size' => 14,
|
|
'multiple' => true
|
|
)
|
|
);
|
|
?>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
<div class="row">
|
|
<div class="col-xs-3">
|
|
|
|
<?php
|
|
echo $this->widgetlib->widget(
|
|
'Vorlage_widget',
|
|
array('oe_kurzbz' => $organisationUnits, 'isAdmin' => $senderIsAdmin),
|
|
array('name' => 'vorlage', 'id' => 'vorlageDnD')
|
|
);
|
|
?>
|
|
|
|
</div>
|
|
<div class="col-lg-7 col-xs-9 text-right">
|
|
<button id="sendButton" class="btn btn-default" type="button">
|
|
|
|
<?php echo $this->p->t('ui', 'senden'); ?>
|
|
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<hr>
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<label>
|
|
|
|
<?php echo ucfirst($this->p->t('global', 'vorschau')).':'; ?>
|
|
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="well">
|
|
<div class="row">
|
|
<div class="col-lg-3">
|
|
<div class="form-grop form-inline">
|
|
|
|
<?php
|
|
echo $this->widgetlib->widget(
|
|
'Dropdown_widget',
|
|
array('elements' => success($recipientsArray), 'emptyElement' => 'Select...'),
|
|
array(
|
|
'title' => ucfirst($this->p->t('global', 'empfaenger')).': ',
|
|
'name' => 'recipients[]',
|
|
'id' => 'recipients'
|
|
)
|
|
);
|
|
?>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-1 valign-middle">
|
|
<strong><a href="#" id="refresh">Refresh</a></strong>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
<textarea id="tinymcePreview"></textarea>
|
|
</div>
|
|
|
|
<?php echo $persons; ?>
|
|
<?php echo $relationmessage_id; ?>
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
<?php $this->load->view("templates/FHC-Footer"); ?>
|