ok

Mini Shell

Direktori : /home2/selectio/public_html/bharath/application/views/admin/chat/
Upload File :
Current File : /home2/selectio/public_html/bharath/application/views/admin/chat/_chatupdate.php

<?php
if (!empty($updated_chat)) {

    foreach ($updated_chat as $chat_key => $chat_value) {

        $chat_type = ($chat_value->chat_user_id == $chat_user_id) ? 'replies' : 'sent';
        $date_time = ($chat_value->chat_user_id == $chat_user_id) ? 'time_date_send' : 'time_date';
        ?>

        <li class="<?php echo $chat_type; ?>">
            <p><?php echo $chat_value->message; ?></p>
            <span class="<?php echo $date_time; ?>"> <?php echo date('d M Y, h:i A', strtotime($chat_value->created_at)); ?></span>
        </li>


        <?php
    }
}
?>

Zerion Mini Shell 1.0