Advertisement
Guest User

Untitled

a guest
Mar 8th, 2012
2,572
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.89 KB | None | 0 0
  1. <div class="grid_8">
  2.        
  3.         <div id="tab-panel-1" class="box">
  4.        
  5.             <div class="header">
  6.                 <img src="<?php echo base_url() ?>assets/img/icons/packs/fugue/16x16/shadeless/table-excel.png" width="16" height="16" />
  7.                 <h3>Inbox</h3><span></span>
  8.                 <ul>
  9.                     <li><a href="#tab-1">Inbox</a></li>
  10.                     <li><a href="#tab-2">Sent Messages</a></li>
  11.                 </ul>
  12.             </div>
  13.             <div class="content">
  14.                 <div id="tab-1" class="tab-content">
  15.                     <table id="inbox" class="table dataTable">
  16.                         <thead>
  17.                             <tr>
  18.                                 <th></th>
  19.                                 <th>Date</th>
  20.                                 <th>Subject</th>
  21.                                 <th>From</th>
  22.                                 <th></th>
  23.                             </tr>
  24.                         </thead>
  25.                         <tbody>
  26.                             <?php
  27.                            foreach ($messages AS $message)
  28.                            {
  29.                                echo '<tr>';
  30.                                     echo '<td style="text-align: center">';
  31.                                     if ($message->message_read == 1)
  32.                                     {
  33.                                         echo '<img src='.base_url().'assets/img/icons/packs/fugue/16x16/mail-open.png />';
  34.                                     }
  35.                                     else
  36.                                     {
  37.                                         echo '<img src='.base_url().'assets/img/icons/packs/fugue/16x16/mail.png />';
  38.                                     }
  39.                                     echo '</td>';
  40.                                     echo '<td>'.date('F d, Y', strtotime($message->date_sent)).'</td>';
  41.                                     echo '<td>'.$message->subject.'</td>';
  42.                                     echo '<td>'.$message->first_name.' '.$message->last_name.'</td>';
  43.                                     echo '<td></td>';
  44.                                 echo '</tr>';
  45.                             }
  46.                             ?>
  47.                         </tbody>
  48.                     </table>
  49.                 </div>
  50.                
  51.                 <div id="tab-2" class="tab-content">
  52.                     <table id="sent" class="table dataTable">
  53.                         <thead>
  54.                             <tr>
  55.                                 <th></th>
  56.                                 <th>Date</th>
  57.                                 <th>Subject</th>
  58.                                 <th>From</th>
  59.                                 <th></th>
  60.                             </tr>
  61.                         </thead>
  62.                         <tbody>
  63.                             <?php
  64.                            foreach ($messages AS $message)
  65.                            {
  66.                                echo '<tr>';
  67.                                     echo '<td style="text-align: center">';
  68.                                     if ($message->message_read == 1)
  69.                                     {
  70.                                         echo '<img src='.base_url().'assets/img/icons/packs/fugue/16x16/mail-open.png />';
  71.                                     }
  72.                                     else
  73.                                     {
  74.                                         echo '<img src='.base_url().'assets/img/icons/packs/fugue/16x16/mail.png />';
  75.                                     }
  76.                                     echo '</td>';
  77.                                     echo '<td>'.date('F d, Y', strtotime($message->date_sent)).'</td>';
  78.                                     echo '<td>'.$message->subject.'</td>';
  79.                                     echo '<td>'.$message->first_name.' '.$message->last_name.'</td>';
  80.                                     echo '<td></td>';
  81.                                 echo '</tr>';
  82.                             }
  83.                             ?>
  84.                         </tbody>
  85.                     </table>
  86.                 </div>
  87.                
  88.             </div> <!-- End of .content -->
  89.            
  90.             <div class="clear"></div>
  91.            
  92.         </div>
  93.        
  94.     </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement