mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 08:00:12 +01:00
added blue background for messages you sent
This commit is contained in:
parent
a1d11d01b9
commit
fbf5bc8b2c
@ -15,7 +15,6 @@ require_once("config.php");
|
|||||||
|
|
||||||
require(DIR_SYSTEM . "/startup.php");
|
require(DIR_SYSTEM . "/startup.php");
|
||||||
|
|
||||||
|
|
||||||
$request = new Request();
|
$request = new Request();
|
||||||
Registry::set("request", $request);
|
Registry::set("request", $request);
|
||||||
|
|
||||||
|
@ -513,6 +513,8 @@ class ModelSearchSearch extends Model {
|
|||||||
$m['date'] = date(SEARCH_HIT_DATE_FORMAT, $m['sent']);
|
$m['date'] = date(SEARCH_HIT_DATE_FORMAT, $m['sent']);
|
||||||
$m['size'] = nice_size($m['size']);
|
$m['size'] = nice_size($m['size']);
|
||||||
|
|
||||||
|
in_array($m['from'], $_SESSION['emails']) ? $m['yousent'] = 1 : $m['yousent'] = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* verifying 20 messages takes some time, still it's useful
|
* verifying 20 messages takes some time, still it's useful
|
||||||
*/
|
*/
|
||||||
|
@ -73,6 +73,7 @@
|
|||||||
.resultrow.new a.spam { color: #aaa; }
|
.resultrow.new a.spam { color: #aaa; }
|
||||||
.resultrow.selected { border: 2px solid black; }
|
.resultrow.selected { border: 2px solid black; }
|
||||||
.resultrow.spam { color: #aaa; }
|
.resultrow.spam { color: #aaa; }
|
||||||
|
.resultrow.sent { background: lightblue; }
|
||||||
|
|
||||||
.tcell { display: table-cell; }
|
.tcell { display: table-cell; }
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<div id="results">
|
<div id="results">
|
||||||
|
|
||||||
<?php if($n > 0) { ?>
|
<?php if($n > 0) { ?>
|
||||||
<table class="table table-striped table-condensed" style="border: 0px solid blue; width: 98%;">
|
<table class="table table-condensed" style="border: 0px solid blue; width: 98%;">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
@ -45,13 +45,13 @@
|
|||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $i=0; foreach ($messages as $message) { ?>
|
<?php $i=0; foreach ($messages as $message) { ?>
|
||||||
<tr onmouseover="Piler.current_message_id = <?php print $message['id']; ?>; return false;" id="e_<?php print $message['id']; ?>" class="resultrow new<?php if($i % 2) { ?> odd<?php } ?><?php if($message['spam'] == 1) { ?> spam<?php } ?>">
|
<tr onmouseover="Piler.current_message_id = <?php print $message['id']; ?>; return false;" id="e_<?php print $message['id']; ?>" class="resultrow new<?php if($i % 2) { ?> odd<?php } ?><?php if($message['spam'] == 1) { ?> spam<?php } ?><?php if($message['yousent'] == 1) { ?> sent<?php } ?>">
|
||||||
<td><input type="checkbox" id="r_<?php print $message['id']; ?>" name="r_<?php print $message['id']; ?>" value="iiii" <?php if(SEARCH_RESULT_CHECKBOX_CHECKED == 1) { ?>checked="checked"<?php } ?> /></td>
|
<td><input type="checkbox" id="r_<?php print $message['id']; ?>" name="r_<?php print $message['id']; ?>" value="iiii" <?php if(SEARCH_RESULT_CHECKBOX_CHECKED == 1) { ?>checked="checked"<?php } ?> /></td>
|
||||||
<td><a href="#" onclick="Piler.view_message_by_pos(<?php print $i; ?>);"><?php print ($page*$page_len) + $i + 1; ?>.</a></td>
|
<td><a href="#" onclick="Piler.view_message_by_pos(<?php print $i; ?>);"><?php print ($page*$page_len) + $i + 1; ?>.</a></td>
|
||||||
<td><?php print $message['date']; ?></td>
|
<td><?php print $message['date']; ?></td>
|
||||||
<td><?php if($message['from'] != $message['shortfrom']) { ?><span title="<?php print $message['from']; ?>"><?php print $message['shortfrom']; ?></span><?php } else { print $message['from']; } ?></td>
|
<td><?php if($message['from'] != $message['shortfrom']) { ?><span title="<?php print $message['from']; ?>"><?php print $message['shortfrom']; ?></span><?php } else { print $message['from']; } ?></td>
|
||||||
<td><?php if($message['to'] != $message['shortto']) { ?><span title="<?php print $message['to']; ?>"><?php print $message['shortto']; ?><i class="icon-user"></i></span><?php } else { print $message['to']; } ?></td>
|
<td><?php if($message['to'] != $message['shortto']) { ?><span title="<?php print $message['to']; ?>"><?php print $message['shortto']; ?><i class="icon-user"></i></span><?php } else { print $message['to']; } ?></td>
|
||||||
<td><a href="#" <?php if($message['subject'] != $message['shortsubject']) { ?>title="<?php print $message['subject']; ?>"<?php } ?> onclick="Piler.view_message_by_pos(<?php print $i; ?>);"><?php if($message['subject'] != $message['shortsubject']) { print $message['shortsubject']; } else { print $message['subject']; } ?></a><?php if($message['reference']) { ?> <a href="#" title="<?php print $text_conversation_available; ?>" onclick="$('#ref').val('<?php print $message['reference']; ?>'); Piler.expert(this);">[+]</span></a><?php } ?></td>
|
<td><a href="#" <?php if($message['spam'] == 1) { ?>class="spam"<?php } ?> <?php if($message['subject'] != $message['shortsubject']) { ?>title="<?php print $message['subject']; ?>"<?php } ?> onclick="Piler.view_message_by_pos(<?php print $i; ?>);"><?php if($message['subject'] != $message['shortsubject']) { print $message['shortsubject']; } else { print $message['subject']; } ?></a><?php if($message['reference']) { ?> <a href="#" title="<?php print $text_conversation_available; ?>" onclick="$('#ref').val('<?php print $message['reference']; ?>'); Piler.expert(this);">[+]</span></a><?php } ?></td>
|
||||||
|
|
||||||
<td><?php print $message['size']; ?></td>
|
<td><?php print $message['size']; ?></td>
|
||||||
<td><?php if($message['attachments'] > 0) { ?><img src="<?php print ICON_ATTACHMENT; ?>" alt="" width="16" height="18" /><?php } else { ?> <?php } ?></td>
|
<td><?php if($message['attachments'] > 0) { ?><img src="<?php print ICON_ATTACHMENT; ?>" alt="" width="16" height="18" /><?php } else { ?> <?php } ?></td>
|
||||||
|
Loading…
Reference in New Issue
Block a user