
PK 
<?php
ob_start();
//error_reporting(E_ALL ^ E_NOTICE);
@session_start();
ini_set('allow_url_include',1);
date_default_timezone_set("Asia/Kolkata");
set_time_limit(600);
ini_set('max_execution_time',600);
include '../includes/settings/constant.php';
require_once '../includes/settings/PDODB.php';
include '../includes/modules/functions.php';
$function = new FUNCTIONS();
$comments = $function->getTicketComments($id=NULL,$ticket_id=$_GET['ticket_id'],$orderBy='ASC');
$user = $function->getUsers($id=$_GET['uid'],$email=NULL,$password=NULL,$isactive=1);
$username = $user[0]['owner_name'];
?>
<div class="chat-activity-list">
<?php foreach($comments as $comment) {
if($comment['posted_by']==2){ ?>
<div class="chat-element right">
<a href="#" class="pull-right">
<img alt="image" class="img-circle" src="../img/a4.jpg">
</a>
<div class="media-body text-right ">
<strong>RWA Admin</strong>
<p class="m-b-xs"><?=html_entity_decode($comment['msg']);?></p>
<small class="text-muted"><?=date('F dS, Y g:ia', strtotime($comment['created']))?></small>
</div>
</div>
<?php }else{ ?>
<div class="chat-element">
<a href="#" class="pull-left">
<img alt="image" class="img-circle" src="../img/a2.jpg">
</a>
<div class="media-body ">
<strong><?=$username;?></strong>
<p class="m-b-xs"><?=html_entity_decode($comment['msg']);?></p>
<small class="text-muted"><?=date('F dS, Y g:ia', strtotime($comment['created']))?></small>
</div>
</div>
<?php }
} ?>
</div>


PK 99