OE-Unit in Abhängigkeit von der Sender-OE anzeigen

This commit is contained in:
ma0068
2022-12-13 10:58:52 +01:00
parent ac4b815596
commit 090345d6c0
3 changed files with 11 additions and 10 deletions
+3
View File
@@ -148,3 +148,6 @@ define('MSG_ERR_INVALID_SENDER', 45);
define('MSG_ERR_INVALID_RECIPIENTS', 46);
define('MSG_ERR_INVALID_OU', 47);
define('MSG_ERR_INVALID_TOKEN', 48);
// Message sender OE unit for reminder application Test
define('OU_SENDER_TEST_REMINDER', 'infocenter');
@@ -24,8 +24,6 @@ use \DB_Model as DB_Model;
class ReihungstestJob extends JOB_Controller
{
const OU_SENDER_TEST_REMINDER = 'infocenter';
/**
* Constructor
*/
@@ -473,7 +471,7 @@ class ReihungstestJob extends JOB_Controller
$this->CLMessagesModel->sendExplicitTemplateSenderId(
$sender_id,
$applicant->prestudent_id,
self::OU_SENDER_TEST_REMINDER,
OU_SENDER_TEST_REMINDER,
'Sancho_RemindApplicantsOfTest',
$mailcontent_data_arr
);
@@ -1164,4 +1162,3 @@ class ReihungstestJob extends JOB_Controller
}
}
}
@@ -6,18 +6,19 @@ $widthColumn = $msgExists === true ? 8 : 12;
<table id="msgtable" class="table table-bordered table-condensed tablesort-hover tablesort-active">
<thead>
<tr>
<th><?php echo ucfirst($this->p->t('global','gesendetAm')) ?></th>
<th><?php echo ucfirst($this->p->t('global','sender')) ?></th>
<th><?php echo ucfirst($this->p->t('global','empfaenger')) ?></th>
<th><?php echo ucfirst($this->p->t('global','betreff')) ?></th>
<th><?php echo ucfirst($this->p->t('global','gelesenAm')) ?></th>
<th><?php echo ucfirst($this->p->t('global', 'gesendetAm')) ?></th>
<th><?php echo ucfirst($this->p->t('global', 'sender')) ?></th>
<th><?php echo ucfirst($this->p->t('global', 'empfaenger')) ?></th>
<th><?php echo ucfirst($this->p->t('global', 'betreff')) ?></th>
<th><?php echo ucfirst($this->p->t('global', 'gelesenAm')) ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($messages as $message): ?>
<tr id="<?php echo $message->message_id.'_'.$message->repersonid ?>" style="cursor: pointer">
<td><?php echo isset($message->insertamum) ? date_format(date_create($message->insertamum), 'd.m.Y H:i:s') : '' ?></td>
<td><?php echo isset($message->oebezeichnung) ? $message->oebezeichnung : $message->sevorname.' '.$message->senachname ?></td>
<td><?php echo isset($message->oebezeichnung) && ($message->oe_kurzbz == OU_SENDER_TEST_REMINDER) ?
$message->oebezeichnung : $message->sevorname.' '.$message->senachname ?></td>
<td><?php echo $message->revorname.' '.$message->renachname ?></td>
<td><?php echo $message->subject ?></td>
<td><?php echo isset($message->statusamum) ? date_format(date_create($message->statusamum), 'd.m.Y H:i:s') : '' ?></td>