Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="grid_8">
- <div id="tab-panel-1" class="box">
- <div class="header">
- <img src="<?php echo base_url() ?>assets/img/icons/packs/fugue/16x16/shadeless/table-excel.png" width="16" height="16" />
- <h3>Inbox</h3><span></span>
- <ul>
- <li><a href="#tab-1">Inbox</a></li>
- <li><a href="#tab-2">Sent Messages</a></li>
- </ul>
- </div>
- <div class="content">
- <div id="tab-1" class="tab-content">
- <table id="inbox" class="table dataTable">
- <thead>
- <tr>
- <th></th>
- <th>Date</th>
- <th>Subject</th>
- <th>From</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <?php
- foreach ($messages AS $message)
- {
- echo '<tr>';
- echo '<td style="text-align: center">';
- if ($message->message_read == 1)
- {
- echo '<img src='.base_url().'assets/img/icons/packs/fugue/16x16/mail-open.png />';
- }
- else
- {
- echo '<img src='.base_url().'assets/img/icons/packs/fugue/16x16/mail.png />';
- }
- echo '</td>';
- echo '<td>'.date('F d, Y', strtotime($message->date_sent)).'</td>';
- echo '<td>'.$message->subject.'</td>';
- echo '<td>'.$message->first_name.' '.$message->last_name.'</td>';
- echo '<td></td>';
- echo '</tr>';
- }
- ?>
- </tbody>
- </table>
- </div>
- <div id="tab-2" class="tab-content">
- <table id="sent" class="table dataTable">
- <thead>
- <tr>
- <th></th>
- <th>Date</th>
- <th>Subject</th>
- <th>From</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <?php
- foreach ($messages AS $message)
- {
- echo '<tr>';
- echo '<td style="text-align: center">';
- if ($message->message_read == 1)
- {
- echo '<img src='.base_url().'assets/img/icons/packs/fugue/16x16/mail-open.png />';
- }
- else
- {
- echo '<img src='.base_url().'assets/img/icons/packs/fugue/16x16/mail.png />';
- }
- echo '</td>';
- echo '<td>'.date('F d, Y', strtotime($message->date_sent)).'</td>';
- echo '<td>'.$message->subject.'</td>';
- echo '<td>'.$message->first_name.' '.$message->last_name.'</td>';
- echo '<td></td>';
- echo '</tr>';
- }
- ?>
- </tbody>
- </table>
- </div>
- </div> <!-- End of .content -->
- <div class="clear"></div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement