3 if ($row = mysql_fetch_assoc($this->result_messages)) {
7 <div class="forum-post-author">
8 <a href="profile.php?id=<?php echo $row['from_member_id']; ?>" class="title"><?php echo get_display_name($row['from_member_id']); ?></a><br />
9 <?php print_profile_img($row['from_member_id']); ?>
12 <div class="forum-post-content">
13 <h3><?php echo AT_print($row['subject'], 'messages.subject'); ?></h3>
15 <div class="forum-post-ctrl">
16 <a href="inbox/send_message.php?reply=<?php echo $_GET['view']; ?>"><?php echo _AT('reply'); ?></a> | <a href="<?php echo $_SERVER['PHP_SELF']; ?>?delete=<?php echo $_GET['view']; ?>"><?php echo _AT('delete'); ?></a>
18 <p class="date"><?php echo AT_date(_AT('forum_date_format'), $row['date_sent'], AT_DATE_MYSQL_DATETIME); ?></p>
22 <p><?php echo AT_print($row['body'], 'messages.body'); ?></p>
32 <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form" >
33 <div class="table-surround">
34 <table class="data" summary="" >
37 <th scope="col"> </th>
38 <th scope="col"> </th>
39 <th scope="col" ><?php echo _AT('from'); ?></th>
40 <th scope="col" ><?php echo _AT('subject');?></th>
41 <th scope="col" ><?php echo _AT('date'); ?></th>
46 <td colspan="5"><input type="submit" name="delete" value="<?php echo _AT('delete'); ?>"/></td>
50 <?php if ($row = mysql_fetch_assoc($this->result)): ?>
52 <?php if ($row['message_id'] == $_GET['view']): ?>
55 <tr onmousedown="document.form['m<?php echo $row['message_id']; ?>'].checked = !document.form['m<?php echo $row['message_id']; ?>'].checked; rowselectbox(this, document.form['m<?php echo $row['message_id']; ?>'].checked, '');" id="r_<?php echo $row['message_id']; ?>_1">
57 <td><input type="checkbox" name="id[]" value="<?php echo $row['message_id']; ?>" id="m<?php echo $row['message_id']; ?>" <?php if (isset($_POST['id']) && in_array($row['message_id'], $_POST['id'])) { echo 'checked="checked"'; } ?> title="<?php echo _AT('delete').': '.AT_print($row['subject'], 'messages.subject');?>" onmouseup="this.checked=!this.checked" /></td>
60 if ($row['new'] == 1) {
62 } else if ($row['replied'] == 1) {
67 $name = get_display_name($row['from_member_id']);
69 echo '<td align="left" valign="middle">';
71 if ($_GET['view'] != $row['message_id']) {
74 echo '<strong>'.$name.'</strong>';
78 echo '<td><label for="m'.$row['message_id'].'">';
79 if ($_GET['view'] != $row['message_id']) {
80 echo '<a href="'.$_SERVER['PHP_SELF'].'?view='.$row['message_id'].'">'.AT_print($row['subject'], 'messages.subject').'</a>';
82 echo '<strong>'.AT_print($row['subject'], 'messages.subject').'</strong>';
86 echo '<td valign="middle" align="left" nowrap="nowrap">';
87 echo AT_date(_AT('forum_date_format'), $row['date_sent'], AT_DATE_MYSQL_DATETIME);
88 //echo AT_date(_AT('%D', $row['date_sent'], AT_DATE_MYSQL_DATETIME);
91 } while ($row = mysql_fetch_assoc($this->result)); ?>
94 <td colspan="5"><?php echo _AT('none_found'); ?></td>