<!-- /.item --> <? endforeach ?> </div> <div class="box-footer" id="comment"> </div> <?php echo Html::form_begin('comments/add?next=post/read/' . $post['id']); ?> <? if (Ngaji\Http\Request::is_authenticated()) : ?> <input type="text" name="post_id" value="<?php echo $post['id']; ?> " hidden="hidden"> <input type="text" name="member_id" value="<?php echo Ngaji\Http\Request::user()->id; ?> " hidden="hidden"> <textarea class="form-control" name="comment" rows="3" placeholder="Write a comment ..." required></textarea> <br/> <button type="submit" class="btn btn-primary btn-flat">Post</button> <? else: ?> <textarea class="form-control" name="comment" rows="3" placeholder="Write a comment ..." required disabled></textarea> <br/> <button type="submit" class="btn btn-primary btn-flat" disabled>Post</button> <?php echo Html::anchor('login?next=post/read/' . $post['id'] . '#comment', 'You must login to post a comment!'); ?>
echo date_format_en($message['created_at']); ?> </cite> </small> </blockquote> <? else : ?> <article> <?php echo $message['text']; ?> </article> <? endif; ?> </div> <!-- /.box-body --> <div class="box-footer" id="reply"> <? if (Ngaji\Http\Request::user()->id != $message['from_account']): ?> <?php echo Html::form_begin('mail/compose'); ?> <input name="to_account" value="<?php echo $message['from_account']; ?> " hidden/> <div class="form-group"> <textarea id="compose-textarea" class="form-control" placeholder="Write a reply..." name="text" style="height: 120px"></textarea> </div> <button type="submit" class="btn btn-primary btn-flat">Send</button> <?php echo Html::form_end();
<div class="col-md-9"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">Compose New Message</h3> </div> <!-- /.box-header --> <?php echo Html::form_begin('mail/compose'); ?> <div class="box-body"> <div class="form-group"> <label for="compose-textarea">TO:</label> <select class="form-control" name="to_account"> <option value="">---</option> <? foreach ($users as $user):?> <? if ($user['id'] == Ngaji\Http\Request::user()->id or '1' == $user['type'] ) continue ?> <option value="<?php echo $user['id']; ?> "><?php echo $user['name']; ?> </option> <? endforeach; ?> </select> </div> <div class="form-group"> <input class="form-control" name="subject" placeholder="Subject:"/>