3 if ($row = mysql_fetch_assoc($this->result_messages)) {
7 <div class="forum-post-author">
8 <a href="profile.php?id=<?php echo $row['to_member_id']; ?>" class="title"><?php echo get_display_name($row['to_member_id']); ?></a><br />
9 <?php print_profile_img($row['to_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?forward=<?php echo $_GET['view']; ?>"><?php echo _AT('forward'); ?></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>
24 <div style="clear: both; font-size:0.1em"></div>
32 <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
33 <div class="table-surround">
37 <th scope="col"> </th>
38 <th scope="col" ><?php echo _AT('to'); ?></th>
39 <th scope="col" ><?php echo _AT('subject');?></th>
40 <th scope="col" ><?php echo _AT('date'); ?></th>
46 <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>"/>
47 <input type="submit" name="move" value="<?php echo _AT('move_to_inbox'); ?>"/>
52 <?php if ($row = mysql_fetch_assoc($this->result)): ?>
54 <?php if ($row['message_id'] == $_GET['view']): ?>
57 <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">
59 <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>
62 $name = get_display_name($row['to_member_id']);
64 echo '<td align="left" valign="middle">';
66 if ($_GET['view'] != $row['message_id']) {
69 echo '<strong>'.$name.'</strong>';
73 echo '<td><label for="m'.$row['message_id'].'">';
74 if ($_GET['view'] != $row['message_id']) {
75 echo '<a href="'.$_SERVER['PHP_SELF'].'?view='.$row['message_id'].'">'.AT_print($row['subject'], 'messages.subject').'</a>';
77 echo '<strong>'.AT_print($row['subject'], 'messages.subject').'</strong>';
81 echo '<td valign="middle" align="left" nowrap="nowrap">';
82 echo AT_date(_AT('forum_date_format'), $row['date_sent'], AT_DATE_MYSQL_DATETIME);
85 } while ($row = mysql_fetch_assoc($this->result)); ?>
88 <td colspan="4"><?php echo _AT('none_found'); ?></td>