Beispiel #1
0
<?php

$conversation = ConversationData::getById($_GET["id"]);
$frs = MessageData::getAllByConversationId($_GET["id"]);
?>
<div class="container">
<div class="row">
    <div class="col-md-3">
<?php 
Action::execute("_userbadge", array("user" => Session::$user, "profile" => Session::$profile, "from" => "logged"));
Action::execute("_mainmenu", array());
?>
    </div>
    <div class="col-md-7">
    <h2>Conversacion</h2>
    <?php 
if (count($frs) > 0) {
    ?>
      <table class="table table-bordered">
      <thead>
        <th>Mensajes</th>
      </thead>
      <tr>
        <td>
          <form role="form" method="post" action="./?action=sendmsg">
<div class="form-group">
    <textarea class="form-control" name="content" required placeholder="Mensaje" rows="3"></textarea>
  </div>
  <input type="hidden" name="ref" value="conversation">
  <input type="hidden" name="conversation_id" value="<?php 
    echo $conversation->id;