Task #404: GUI zum Schreiben von Nachrichten im FAS

This commit is contained in:
bison-paolo
2016-09-23 17:38:02 +02:00
parent 0ae8b4d8fa
commit 1fe6ec5ccc
10 changed files with 258 additions and 212 deletions
+55 -49
View File
@@ -1,51 +1,57 @@
<?php
$this->load->view('templates/header', array('title' => 'MessagesList', 'tablesort' => true, 'tableid' => 't1', 'headers' => '4:{sorter:false}'));
?>
<div class="row">
<div class="span4">
<h2>Inbox <?php if (empty($person))
echo $uid;
else
echo ' -> Person '.$person->person_id.' ('.$person->vorname.')';
?><br /><br />
<form method="post" action="outbox">
<button type="submit">Outbox</button>
</form></h2>
<?php $this->load->view('templates/header', array('title' => 'MessagesList', 'tablesort' => true, 'tableid' => 't1', 'headers' => '4:{sorter:false}')); ?>
<form method="post" action="">
Person <input name="person_id"></input>
<button type="submit">show Mails</button>
</form>
<table id="t1" class="tablesorter">
<thead>
<tr><th>MessageID</th>
<th class='table-sortable:default'>Sender</th>
<th>Erstellt</th>
<th>Priorität</th>
<th>Status</th>
<th>StatusInfo</th>
<th>OE</th>
<th>Relation</th>
<th></th>
</tr>
</thead>
<tbody>
<?php foreach ($messages as $m): ?>
<tr><td><a href="view/<?php echo $m->message_id; ?>" target="MessagesBottom"><?php echo $m->message_id; ?></a></td>
<td><?php echo $m->titelpost.' '.$m->vorname.' '.$m->nachname.' '.$m->titelpre; ?></td>
<td><?php echo $m->insertamum; ?></td>
<td><?php echo $m->priority; ?></td>
<td><?php echo $m->status; ?></td>
<td><?php echo $m->statusinfo; ?></td>
<td><?php echo $m->oe_kurzbz; ?></td>
<td><?php echo $m->relationmessage_id; ?></td>
<td><a href="view/<?php echo $m->message_id; ?>">View</a></td>
</tr>
<?php endforeach ?>
</tbody>
</table>
</div>
</div>
</body>
<div class="row">
<div class="span4">
<h2>
Inbox <?php echo $person->vorname . " " . $person->nachname; ?>
<br />
<br />
<button type="submit" onClick="parent.document.getElementById('MessagesTop').src = 'Messages/outbox/<?php echo $person->person_id; ?>'">
Outbox
</button>
<br />
<br />
</h2>
<form method="post" action="">
Person <input name="person_id"></input>
<button type="submit">show Mails</button>
</form>
<table id="t1" class="tablesorter">
<thead>
<tr>
<th>MessageID</th>
<th class='table-sortable:default'>Sender</th>
<th>Erstellt</th>
<th>Priorität</th>
<th>Status</th>
<th>StatusInfo</th>
<th>OE</th>
<th>Relation</th>
<th></th>
</tr>
</thead>
<tbody>
<?php foreach ($messages as $m): ?>
<?php
$href = str_replace("/system/Messages/inbox", "/system/Messages/view", $_SERVER["REQUEST_URI"]);
$href = substr($href, 0, strrpos($href, "/") - strlen($href));
$href .= "/" . $m->message_id . "/" . $person->person_id;
?>
<tr>
<td><a href="<?php echo $href; ?>" target="MessagesBottom"><?php echo $m->message_id; ?></a></td>
<td><?php echo $m->titelpost.' '.$m->vorname.' '.$m->nachname.' '.$m->titelpre; ?></td>
<td><?php echo $m->insertamum; ?></td>
<td><?php echo $m->priority; ?></td>
<td><?php echo $m->status; ?></td>
<td><?php echo $m->statusinfo; ?></td>
<td><?php echo $m->oe_kurzbz; ?></td>
<td><?php echo $m->relationmessage_id; ?></td>
<td><a href="<?php echo $href; ?>" target="MessagesBottom">View</a></td>
</tr>
<?php endforeach ?>
</tbody>
</table>
</div>
</div>
</body>
</html>