Task #404: GUI zum Schreiben von Nachrichten im FAS: 2nd part

This commit is contained in:
bison-paolo
2016-09-26 12:10:31 +02:00
parent 1fe6ec5ccc
commit 3009a03eac
10 changed files with 400 additions and 281 deletions
+30 -20
View File
@@ -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>