mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
Task #404: GUI zum Schreiben von Nachrichten im FAS: 2nd part
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user