<td align="left" class="normalblack_12" width="10%"><strong>Date</strong></td> <td align="left" class="normalblack_12" width="65%"><strong>Subject</strong></td> <td align="left" class="normalblack_12" width="35%"><strong>To User</strong></td>'; #<td class="normalblack_12" width="5%" align="center" style="text-align:center;"><strong>Delete</strong></td>'; echo '</tr>'; $count = "1"; for ($i = 0; $i < $db->num_rows(); $i++) { $mail_id = $func->output_fun($db->f('mail_id')); $Subject = $func->output_fun($db->f('Subject')); //Date Format $sentdate = $func->output_fun($db->f('SentDate')); $sentdate = date('m-j-Y', strtotime($sentdate)); #Inbox - From $varUserTo = $func->output_fun($db->f('UserTo')); $varUserTypeTo = $func->output_fun($db->f('Usertypeto')); $urlUserTo = $func2->GetUserProfileURL($varUserTo, $varUserTypeTo); // echo '<tr>'; // echo '<td align="left" class="normalblack_12" ><a href=Athmessage.php?action=veiwsent&mail_id='.$mail_id.'>'.$Subject.'</a></td>'; // echo '<td align="center" class="normalblack_12" style="text-align:center;"><a href="Athmessage.php?action=deletesentconfirm&id='.$mail_id.'"><img src="images/b_drop.png" border="0" title="Delete"></a></td>'; // echo '</tr>'; echo '<tr>'; echo '<td align="left" class="normalblack_12" >' . $sentdate . '</td>'; echo '<td align="left" class="normalblack_12" ><a href="Athmessage.php?action=veiwsent&mail_id=' . $mail_id . '" title="Read Message">' . $Subject . '</a></td>'; echo '<td align="left" class="normalblack_12" >' . $urlUserTo . ' - (' . $varUserTypeTo . ')</td>'; #echo '<td align="center" class="normalblack_12" style="text-align:center;"><a href="Athmessage.php?action=deletesentconfirm&id='.$mail_id.'" onclick="return confirm(\'Are you sure you want to Permanently Delete Message? This cannot be undone.\')"><img src="images/b_drop.png" border="0" title="Delete"></a></td>'; echo '</tr>'; $db->next_record(); $count++; } echo "</table>"; }