mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-26 00:54:27 +00:00
Task #404: GUI zum Schreiben von Nachrichten im FAS: 2nd part
This commit is contained in:
@@ -1,14 +1,34 @@
|
||||
<?php $this->load->view('templates/header'); ?>
|
||||
|
||||
<script type="text/javascript" src="<?php echo base_url('vendor/tinymce/tinymce/tinymce.min.js');?>"></script>
|
||||
|
||||
<div class="row">
|
||||
<div class="span4">
|
||||
<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>
|
||||
<body>
|
||||
<div class="row">
|
||||
<div class="span4">
|
||||
<h2>
|
||||
From: <?php echo $message->uid . " " . $message->vorname . " " . $message->nachname . " " . $message->kontakt; ?><br/>
|
||||
Subject: <?php echo $message->subject; ?><br/>
|
||||
</h2>
|
||||
<textarea id="bodyTextArea"><?php echo $message->body; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="span4">
|
||||
<button type="submit" onClick="parent.document.getElementById('MessagesBottom').src = 'Messages/write/<?php echo $message->message_id; ?>/<?php echo $message->person_id; ?>'">
|
||||
Reply
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
tinymce.init({
|
||||
selector: '#bodyTextArea',
|
||||
readonly : 1,
|
||||
statusbar: false,
|
||||
toolbar: false,
|
||||
menubar: false
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,21 +1,31 @@
|
||||
<script type="text/javascript" src="<?php echo base_url('vendor/tinymce/tinymce/tinymce.min.js');?>"></script>
|
||||
<?php $this->load->view('templates/header'); ?>
|
||||
|
||||
<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>
|
||||
</div>
|
||||
<script type="text/javascript" src="<?php echo base_url('vendor/tinymce/tinymce/tinymce.min.js');?>"></script>
|
||||
|
||||
<body>
|
||||
<div class="row">
|
||||
<div class="span4">
|
||||
<?php
|
||||
$href = str_replace("/system/Messages/write", "/system/Messages/send", $_SERVER["REQUEST_URI"]);
|
||||
/*$href = substr($href, 0, strrpos($href, "/") - strlen($href));
|
||||
$href = substr($href, 0, strrpos($href, "/") - strlen($href));*/
|
||||
/*$href .= "/" . $m->message_id . "/" . $person->person_id;*/
|
||||
?>
|
||||
<form id="sendForm" method="post" action="<?php echo $href; ?>">
|
||||
<div class="span4">
|
||||
To: <?php echo $message->uid . " " . $message->vorname . " " . $message->nachname . " " . $message->kontakt; ?><br/>
|
||||
Subject: <input type="text" value="Re: <?php echo $message->subject; ?>" name="subject"><br/>
|
||||
<textarea id="bodyTextArea" name="body"><?php echo $message->body; ?></textarea>
|
||||
</div>
|
||||
<button type="submit">Send</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
tinymce.init({
|
||||
selector: '#bodyTextArea'
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
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; ?>'">
|
||||
<button type="button" onClick="parent.document.getElementById('MessagesTop').src = 'Messages/outbox/<?php echo $person->person_id; ?>'">
|
||||
Outbox
|
||||
</button>
|
||||
<br />
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
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; ?>'">
|
||||
<button type="button" onClick="parent.document.getElementById('MessagesTop').src = 'Messages/inbox/<?php echo $person->person_id; ?>'">
|
||||
Inbox
|
||||
</button>
|
||||
<br />
|
||||
|
||||
Reference in New Issue
Block a user