Your IP : 216.73.216.26


Current Path : /home2/wtmwscom/public_html/admin/
Upload File :
Current File : /home2/wtmwscom/public_html/admin/full_message.php

<?php
$title = "Full Message";
include 'header.php';
include_once('lib/ps_pagination.php');
if (!isset($_GET['id'])) {
    redirect('./inbox.php');
    die();
}
$id = $_GET['id'];
$row = mysqli_fetch_object(mysqli_query($connection, "SELECT * FROM `message` WHERE `id`='$id' ORDER BY `datetime` DESC"));
if (!$row) {
    redirect('./inbox.php');
    die();
} else {
    mysqli_query($connection, "UPDATE `message` SET `read`=1 WHERE `id`='" . $id . "'");
    $name = mysqli_fetch_object(mysqli_query($connection, "SELECT login_id, name FROM user WHERE uid='" . $row->by . "'"));
}
?>

<div class="container-fluid">

    <div class="row">
        <div class="col-sm-12">
            <div class="page-title-box">
                <h4 class="page-title">Outbox</h4>
                <ol class="breadcrumb">
                    <li class="breadcrumb-item"><a href="javascript:void(0);">Lexa</a></li>
                    <li class="breadcrumb-item"><a href="javascript:void(0);">Support</a></li>
                    <li class="breadcrumb-item active">Outbox</li>
                </ol>

                <!--                                    <div class="state-information d-none d-sm-block">
                                                        <div class="state-graph">
                                                            <div id="header-chart-1"></div>
                                                            <div class="info">Balance $ 2,317</div>
                                                        </div>
                                                        <div class="state-graph">
                                                            <div id="header-chart-2"></div>
                                                            <div class="info">Item Sold 1230</div>
                                                        </div>
                                                    </div>-->
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="card m-b-20">
                <div class="card-body">

                    <!--                                        <h4 class="mt-0 header-title">Basic example</h4>
                                                            <p class="text-muted m-b-30">For basic styling—light padding and
                                                                only horizontal dividers—add the base class <code>.table</code> to any
                                                                <code>&lt;table&gt;</code>.
                                                            </p>-->

                    <table class="table mb-0 table-bordered table-striped">
                        <thead>

                            <tr>
                                <td>Sender</td>
                                <td><?php echo $name->name . " (" . $name->login_id . ")"; ?></td>
                            </tr>
                            <tr>
                                <td>Date</td>
                                <td><?php echo date("d M, Y h:i A", strtotime($row->datetime)); ?></td>
                            </tr>
                            <tr>
                                <td>Subject</td>
                                <td><?php echo $row->subject; ?></td>
                            </tr>
                            <tr>
                                <td>Message</td>
                                <td><?php echo $row->message; ?></td>
                            </tr>
                            <tr>
                                <td>Attach File</td>
                                <td>
                                    <?php if (file_exists("../static/backend/user-resource/uploads/attachment/" . $row->filename) && $row->filename != '') { ?>
                                        <img src="../static/backend/user-resource/uploads/attachment/<?php echo $row->filename; ?>" />
                                    <?php } ?>
                                </td>
                            </tr>
                        </thead>
                        <tbody>

                        </tbody>
                    </table>
                    <?php //echo $pager->renderFullNav();       ?>  
                </div>
            </div>
        </div> <!-- end col -->
    </div>
    <!--table content ends here-->
</div>
<?php include 'footer.php'; ?>