]> git.mjollnir.org Git - moodle.git/commitdiff
Some tidy-ups and some styles
authormoodler <moodler>
Sun, 2 Jan 2005 14:33:17 +0000 (14:33 +0000)
committermoodler <moodler>
Sun, 2 Jan 2005 14:33:17 +0000 (14:33 +0000)
message/lib.php
message/search.html
message/settings.html
theme/standardxhtml/styles.php

index 1ace85cf68df5b2593e3ea6f2af449fc2b774c0f..6196bb937c3578321109c0131bd326aee3fd0411 100644 (file)
@@ -58,7 +58,8 @@ function message_print_contacts() {
                 $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');
@@ -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 '</td>';
-            echo '<td class="message_link">'.$strcontact.'</td>';
+            echo '<td class="message_link">'.$strcontact.'&nbsp;'.$strhistory.'</td>';
             echo '</tr>';
         }
     }
@@ -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 '<tr><td class="message_pix">';
             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 '</td>';
-            echo '<td class="message_link">'.$strcontact.'</td>';
+            echo '<td class="message_link">'.$strcontact.'&nbsp;'.$strhistory.'</td>';
             echo '</tr>';
         }
     }
@@ -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 '<tr><td class="message_pix">';
             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 '</td>';
-            echo '<td class="message_link">'.$strcontact.'&nbsp;'.$strblock.'</td>';
+            echo '<td class="message_link">&nbsp;'.$strcontact.'&nbsp;'.$strblock.'&nbsp;'.$strhistory.'</td>';
             echo '</tr>';
         }
     }
@@ -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 = '<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&amp;blockcontact='.$userid.
                    '&amp;sesskey='.$USER->sesskey.'" title="'.$str->blockcontact.'">'.
index 404f6c7944be9fd9c47d00bc430862143dc8e0f1..85c5edf5d7f142828689f551ddf7c246a2aab138 100644 (file)
@@ -2,7 +2,7 @@
 <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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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
index bd771dd93eb115663c57342e3832c813e6152f46..2fa133b0012a2c72873ff5f75d4d7dfd59af2b56 100644 (file)
@@ -2,8 +2,7 @@
 <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>&nbsp;</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>&nbsp;</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>&nbsp;</td>
         <td><?php echo $format_select ?>
         </td>
     </tr>
-    <tr valign="top">
-        <td>&nbsp;</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>
index 69cf7a83548fabf2a09fc51c22b37e5021d429cd..32d2e30c4e712f81d8de355f4a3f8548dde65a38 100644 (file)
@@ -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;
 }