mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 00:24:35 +00:00
Task #404: GUI zum Schreiben von Nachrichten im FAS
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
<script type="text/javascript" src="<?php echo base_url('vendor/tinymce/tinymce/tinymce.min.js');?>"></script>
|
||||
|
||||
<div class="row">
|
||||
<div class="span4">
|
||||
<h2>Nachricht <?php echo $message->message_id,': ',$message->subject; ?></h2>
|
||||
|
||||
Absender: <?php echo $message->person_id; ?><br/>
|
||||
Betreff: <?php echo $message->subject; ?><br/>
|
||||
Text: <?php echo $message->body; ?><br/>
|
||||
<?php
|
||||
// This is an example to show that you can load stuff from inside the template file
|
||||
echo $this->templatelib->widget("organisationseinheit_widget", array('title' => 'Organisationseinheit', 'oe_kurzbz' => $message->oe_kurzbz));
|
||||
?>
|
||||
|
||||
<h2>
|
||||
Subject: <?php echo $message->subject; ?>
|
||||
</h2>
|
||||
Sender: <?php echo $message->person_id; ?><br/>
|
||||
Body: <?php echo $message->body; ?><br/>
|
||||
<?php
|
||||
echo $this->templatelib->widget("organisationseinheit_widget", array('title' => 'Organisationseinheit', 'oe_kurzbz' => $message->oe_kurzbz));
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,20 +1,21 @@
|
||||
<script type="text/javascript" src="<?php echo base_url('vendor/tinymce/tinymce/tinymce.min.js');?>"></script>
|
||||
|
||||
<div class="row">
|
||||
<div class="span4">
|
||||
<h2>Neue Nachricht</h2>
|
||||
<form method="post" action="send">
|
||||
Absender: <?php //echo $message->person_id; ?><br/>
|
||||
<?php
|
||||
// This is an example to show that you can load stuff from inside the template file
|
||||
//echo $this->template->widget("organisationseinheit_widget", array('title' => 'Organisationseinheit', 'oe_kurzbz' => $message->oe_kurzbz));
|
||||
?>
|
||||
Betreff: <input type="text" name="subject" value="<?php echo $subject; ?>" /></input>
|
||||
<?php
|
||||
// This is an example to show that you can load stuff from inside the template file
|
||||
echo $this->template->widget("tinymce_widget", array());
|
||||
?>
|
||||
<textarea name="body" style="width:100%"><?php echo $body; ?></textarea>
|
||||
<button type="submit">send Message!</button>
|
||||
</form>
|
||||
</div>
|
||||
<h2>Neue Nachricht</h2>
|
||||
<form method="post" action="send">
|
||||
Absender: <?php //echo $message->person_id; ?><br/>
|
||||
<?php
|
||||
// This is an example to show that you can load stuff from inside the template file
|
||||
//echo $this->template->widget("organisationseinheit_widget", array('title' => 'Organisationseinheit', 'oe_kurzbz' => $message->oe_kurzbz));
|
||||
?>
|
||||
Betreff: <input type="text" name="subject" value="<?php echo $subject; ?>" /></input>
|
||||
<?php
|
||||
// This is an example to show that you can load stuff from inside the template file
|
||||
echo $this->template->widget("tinymce_widget", array());
|
||||
?>
|
||||
<textarea name="body" style="width:100%"><?php echo $body; ?></textarea>
|
||||
<button type="submit">send Message!</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
|
||||
<html lang="de_AT">
|
||||
|
||||
<head>
|
||||
<title>VileSci - Messages</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
</head>
|
||||
<head>
|
||||
<title>VileSci - Messages</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
</head>
|
||||
|
||||
<frameset rows="30%,*">
|
||||
<frame src="Messages/inbox<?php if (! empty($person_id)) echo '/'.$person_id; ?>" id="MessagesTop" name="MessagesTop" frameborder="0" />
|
||||
<frame src="Messages/edit" id="MessagesBottom" name="MessagesBottom" frameborder="0" />
|
||||
<noframes>
|
||||
<body bgcolor="#FFFFFF">
|
||||
This application works only with a frames-enabled browser.<br />
|
||||
<a href="MessagesList">Use without frames</a>
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
<frameset rows="30%,*">
|
||||
<frame src="Messages/inbox/<?php echo $person_id; ?>" id="MessagesTop" name="MessagesTop" frameborder="0" />
|
||||
<frame src="" id="MessagesBottom" name="MessagesBottom" frameborder="0" />
|
||||
<noframes>
|
||||
<body bgcolor="#FFFFFF">
|
||||
This application works only with a frames-enabled browser.<br />
|
||||
<a href="MessagesList">Use without frames</a>
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>Outbox <?php if (empty($person))
|
||||
echo $uid;
|
||||
else
|
||||
echo ' -> Person '.$person->person_id.' ('.$person->vorname.')';
|
||||
?><br /><br />
|
||||
<form method="post" action="inbox">
|
||||
<button type="submit">Inbox</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>
|
||||
Outbox <?php echo $person->vorname . " " . $person->nachname; ?>
|
||||
<br />
|
||||
<br />
|
||||
<button type="submit" onClick="parent.document.getElementById('MessagesTop').src = 'Messages/inbox/<?php echo $person->person_id; ?>'">
|
||||
Inbox
|
||||
</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/outbox", "/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>
|
||||
|
||||
Reference in New Issue
Block a user