From ce2d60ad59819c3bbfb0254830fcedb05feebd51 Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 2 Jan 2005 14:33:17 +0000 Subject: [PATCH] Some tidy-ups and some styles --- message/lib.php | 15 +++++++++++---- message/search.html | 10 +++++----- message/settings.html | 32 +++++++------------------------- theme/standardxhtml/styles.php | 23 +++++++++++++++++++++++ 4 files changed, 46 insertions(+), 34 deletions(-) diff --git a/message/lib.php b/message/lib.php index 1ace85cf68..6196bb937c 100644 --- a/message/lib.php +++ b/message/lib.php @@ -58,7 +58,8 @@ function message_print_contacts() { $fullnamelink = ''.$fullnamelink.' ('.$unread.')'; } /// 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 ''; print_user_picture($contact->id, SITEID, $contact->picture, 20, false, true, 'userwindow'); @@ -68,7 +69,7 @@ function message_print_contacts() { $fullnamelink, 500, 500, get_string('sendmessageto', 'message', $fullname), 'menubar=0,location=0,status,scrollbars,resizable,width=500,height=500'); echo ''; - echo ''.$strcontact.''; + echo ''.$strcontact.' '.$strhistory.''; echo ''; } } @@ -94,6 +95,7 @@ function message_print_contacts() { } /// link to remove from contact list $strcontact = message_contact_link($contact->id, 'remove', true); + $strhistory = message_contact_link($contact->id, 'history', true); echo ''; print_user_picture($contact->id, SITEID, $contact->picture, 20, false, true, 'userwindow'); @@ -103,7 +105,7 @@ function message_print_contacts() { $fullnamelink, 500, 500, get_string('sendmessageto', 'message', $fullname), 'menubar=0,location=0,status,scrollbars,resizable,width=500,height=500'); echo ''; - echo ''.$strcontact.''; + echo ''.$strcontact.' '.$strhistory.''; echo ''; } } @@ -153,6 +155,7 @@ function message_print_contacts() { $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 ''; print_user_picture($messageuser->useridfrom, SITEID, $messageuser->picture, 20, false, true, 'userwindow'); @@ -162,7 +165,7 @@ function message_print_contacts() { $fullnamelink, 500, 500, get_string('sendmessageto', 'message', $fullname), 'menubar=0,location=0,status,scrollbars,resizable,width=500,height=500'); echo ''; - echo ''.$strcontact.' '.$strblock.''; + echo ' '.$strcontact.' '.$strblock.' '.$strhistory.''; echo ''; } } @@ -526,9 +529,13 @@ function message_contact_link($userid, $linktype='add', $return=false) { $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 = ''; + break; case 'block': $output = ''. diff --git a/message/search.html b/message/search.html index 404f6c7944..85c5edf5d7 100644 --- a/message/search.html +++ b/message/search.html @@ -2,7 +2,7 @@ - +
@@ -39,12 +39,12 @@ - - - + + + - + -
 
 
 
 
- +
@@ -15,29 +14,20 @@ - - - - - + + - - + + + - - - - - - - - + @@ -45,15 +35,7 @@ - - - - - - - - diff --git a/theme/standardxhtml/styles.php b/theme/standardxhtml/styles.php index 69cf7a8354..32d2e30c4e 100644 --- a/theme/standardxhtml/styles.php +++ b/theme/standardxhtml/styles.php @@ -808,4 +808,27 @@ TABLE.formtable TD { font-size: x-small; color: #555555; padding-left: 10px; + padding-bottom: 8px; +} + +.message_contact { + font-size: small; +} +.message_summary { + font-size: small; +} +.message_date { + font-size: small; +} +.message_small_note { + font-size: x-small; +} +.message_link { + font-size: x-small; +} +.message_pix { + font-size: x-small; +} +.message_form { + font-size: 0.78em; } -- 2.39.5
/>

/>
 :

/>
  :
 
 :