$fullnamelink = '<strong>'.$fullnamelink.' ('.$unread.')</strong>';
}
/// link to remove from contact list
- $strcontact .= message_contact_link($contact->id, 'remove', true);
+ $strcontact = message_contact_link($contact->id, 'remove', true);
+ $strhistory = message_contact_link($contact->id, 'history', true);
echo '<tr><td class="message_pix">';
print_user_picture($contact->id, SITEID, $contact->picture, 20, false, true, 'userwindow');
$fullnamelink, 500, 500, get_string('sendmessageto', 'message', $fullname),
'menubar=0,location=0,status,scrollbars,resizable,width=500,height=500');
echo '</td>';
- echo '<td class="message_link">'.$strcontact.'</td>';
+ echo '<td class="message_link">'.$strcontact.' '.$strhistory.'</td>';
echo '</tr>';
}
}
}
/// link to remove from contact list
$strcontact = message_contact_link($contact->id, 'remove', true);
+ $strhistory = message_contact_link($contact->id, 'history', true);
echo '<tr><td class="message_pix">';
print_user_picture($contact->id, SITEID, $contact->picture, 20, false, true, 'userwindow');
$fullnamelink, 500, 500, get_string('sendmessageto', 'message', $fullname),
'menubar=0,location=0,status,scrollbars,resizable,width=500,height=500');
echo '</td>';
- echo '<td class="message_link">'.$strcontact.'</td>';
+ echo '<td class="message_link">'.$strcontact.' '.$strhistory.'</td>';
echo '</tr>';
}
}
$strcontact = message_contact_link($messageuser->useridfrom, 'add', true);
$strblock = message_contact_link($messageuser->useridfrom, 'block', true);
+ $strhistory = message_contact_link($messageuser->useridfrom, 'history', true);
echo '<tr><td class="message_pix">';
print_user_picture($messageuser->useridfrom, SITEID, $messageuser->picture, 20, false, true, 'userwindow');
$fullnamelink, 500, 500, get_string('sendmessageto', 'message', $fullname),
'menubar=0,location=0,status,scrollbars,resizable,width=500,height=500');
echo '</td>';
- echo '<td class="message_link">'.$strcontact.' '.$strblock.'</td>';
+ echo '<td class="message_link"> '.$strcontact.' '.$strblock.' '.$strhistory.'</td>';
echo '</tr>';
}
}
$str->unblockcontact = get_string('unblockcontact', 'message');
$str->removecontact = get_string('removecontact', 'message');
$str->addcontact = get_string('addcontact', 'message');
+ $str->messagehistory = get_string('messagehistory', 'message');
}
switch ($linktype) {
+ case 'history':
+ $output = '<a target="message_history_'.$userid.'" title="'.$str->messagehistory.'" href="'.$CFG->wwwroot.'/message/history.php?user1='.$userid.'" onclick="return openpopup(\'/message/history.php?user1='.$userid.'\', \'message_history_'.$userid.'\', \'menubar=0,location=0,status,scrollbars,resizable,width=500,height=500\', 0);"><img src="'.$CFG->pixpath.'/t/log.gif" height="11" width="11" border="0"></a>';
+ break;
case 'block':
$output = '<a href="index.php?tab=contacts&blockcontact='.$userid.
'&sesskey='.$USER->sesskey.'" title="'.$str->blockcontact.'">'.
<input type="hidden" name="tab" value="search" />
-<table cellpadding="5" align="center">
+<table cellpadding="5" align="center" class="message_form">
<tr>
<input type="checkbox" name="includeblocked" alt="<?php print_string('includeblockedusers', 'message') ?>" /><?php print_string('includeblockedusers', 'message') ?></td>
</tr>
- <tr><td colspan="3"><input type="radio" name="keywordsoption" alt="<?php print_string('onlytome', 'message') ?>" value="tome" checked="checked" /><?php print_string('onlytome', 'message') ?></td></tr>
- <tr><td colspan="3"><input type="radio" name="keywordsoption" alt="<?php print_string('onlyfromme', 'message') ?>" value="fromme" /><?php print_string('onlyfromme', 'message') ?></td></tr>
- <tr><td colspan="3"><input type="radio" name="keywordsoption" alt="<?php print_string('allmine', 'message') ?>" value="allmine" /><?php print_string('allmine', 'message') ?></td></tr>
+ <tr><td> </td><td colspan="2"><input type="radio" name="keywordsoption" alt="<?php print_string('onlytome', 'message') ?>" value="tome" checked="checked" /><?php print_string('onlytome', 'message') ?></td></tr>
+ <tr><td> </td><td colspan="2"><input type="radio" name="keywordsoption" alt="<?php print_string('onlyfromme', 'message') ?>" value="fromme" /><?php print_string('onlyfromme', 'message') ?></td></tr>
+ <tr><td> </td><td colspan="2"><input type="radio" name="keywordsoption" alt="<?php print_string('allmine', 'message') ?>" value="allmine" /><?php print_string('allmine', 'message') ?></td></tr>
<?php if (isadmin()) { ?>
- <tr><td colspan="3"><input type="radio" name="keywordsoption" alt="<?php print_string('allusers', 'message') ?>" value="allusers" /><?php print_string('allusers', 'message') ?></td></tr>
+ <tr><td> </td><td colspan="2"><input type="radio" name="keywordsoption" alt="<?php print_string('allusers', 'message') ?>" value="allusers" /><?php print_string('allusers', 'message') ?></td></tr>
<?php } ?>
<?php
<input type="hidden" name="tab" value="settings" />
-<table cellpadding="5" align="center">
-
+<table cellpadding="5" align="center" class="message_form">
<tr valign="top">
<td align="right"><input type="checkbox" name="showmessagewindow" alt="<?php print_string('showmessagewindow', 'message') ?>" <?php echo $cbshowmessagewindow ?> /></td>
</tr>
- <tr><td colspan="3"><hr /></td></tr>
-
-
<tr valign="top">
- <td><input type="text" name="maxmessages" size="2" value="<?php echo $txmaxmessages ?>" alt="<?php print_string('maxmessages', 'message') ?>" /></td>
- <td colspan="2"><?php print_string('maxmessages', 'message') ?></td>
+ <td><input type="checkbox" name="emailmessages" alt="<?php print_string('emailmessages', 'message') ?>" <?php echo $cbemailmessages ?> /></td>
+ <td colspan="2"><?php print_string('emailmessages', 'message') ?></td>
</tr>
<tr valign="top">
- <td><input type="text" name="deletemessagesdays" size="2" value="<?php echo $txdeletemessagesdays ?>" alt="<?php print_string('deletemessagesdays', 'message') ?>" /></td>
- <td colspan="2"><?php print_string('deletemessagesdays', 'message') ?></td>
+ <td> </td>
+ <td align="right"><?php print_string('formorethan', 'message') ?>:</td>
+ <td><input type="text" name="emailtimenosee" size="2" value="<?php echo $txemailtimenosee ?>" alt="<?php print_string('timenosee', 'message') ?>" /> <?php print_string('mins') ?></td>
</tr>
-
-
- <tr><td colspan="3"><hr /></td></tr>
- <tr valign="top">
- <td><input type="checkbox" name="emailmessages" alt="<?php print_string('emailmessages', 'message') ?>" <?php echo $cbemailmessages ?> /></td>
- <td colspan="2"><?php print_string('emailmessages', 'message') ?></td>
- </tr>
<tr valign="top">
<td> </td>
<td align="right"><?php print_string('email') ?>:</td>
- <td><input type="text" name="emailaddress" size="30" value="<?php echo $txemailaddress ?>" alt="<?php print_string('email') ?>" /></td>
+ <td><input type="text" name="emailaddress" size="20" value="<?php echo $txemailaddress ?>" alt="<?php print_string('email') ?>" /></td>
</tr>
<tr valign="top">
<td> </td>
<td><?php echo $format_select ?>
</td>
</tr>
- <tr valign="top">
- <td> </td>
- <td align="right"><?php print_string('timenosee', 'message') ?>:</td>
- <td><input type="text" name="emailtimenosee" size="2" value="<?php echo $txemailtimenosee ?>" alt="<?php print_string('timenosee', 'message') ?>" /></td>
-
- <tr><td colspan="3"><hr /></td></tr>
-
-
<tr valign="top">
<td colspan="3" align="center"><input type="submit" value="<?php print_string('savemysettings', 'message') ?>" /></td>
</tr>