- Removed method index, inbox, view and outbox from controller

system/Messages
- Removed views messageReply, messageView, messages, messagesInbox and
messagesOutbox
- Removed menu item "Nachrichten" from VileSci->Admin
- Controller system/Messages: method write also works for replying to a
message
- View system/messageWrite also worki for replying to a message
- Updated content/messages.js.php to call the system/Messages controller
with the new parameters
This commit is contained in:
Paolo
2017-04-11 12:03:15 +02:00
parent 7d4486d34a
commit de0ed58ba6
10 changed files with 79 additions and 340 deletions
+24 -4
View File
@@ -1,10 +1,13 @@
<?php $this->load->view("templates/header", array("title" => "MessageReply", "jquery" => true, "tinymce" => true)); ?>
<body>
<?php
$href = str_replace("/system/Messages/write", "/system/Messages/send", $_SERVER["REQUEST_URI"]);
?>
<form id="sendForm" method="post" action="<?php echo $href; ?>">
<table>
<tr>
<td>
@@ -33,15 +36,30 @@
<strong>Subject:</strong>&nbsp;
</td>
<td>
<input id="subject" type="text" value="" name="subject" size="70">
<?php
$subject = '';
if (isset($message))
{
$subject = 'Re: '.$message->subject;
}
?>
<input id="subject" type="text" value="<?php echo $subject; ?>" name="subject" size="70">
</td>
</tr>
</table>
<table width="100%">
<tr>
<td width="80%">
<strong>Message:</strong><br>
<textarea id="bodyTextArea" name="body"></textarea>
<?php
$body = '';
if (isset($message))
{
$body = $message->body;
}
?>
<textarea id="bodyTextArea" name="body"><?php echo $body; ?></textarea>
</td>
<td width="3%">&nbsp;</td>
<td width="17%">
@@ -143,7 +161,6 @@
?>
</form>
</body>
<script>
tinymce.init({
@@ -254,4 +271,7 @@
});
}
</script>
</html>
</body>
<?php $this->load->view("templates/footer"); ?>