2013-12-19 14:47:14 +01:00
|
|
|
|
2013-04-05 10:16:33 +02:00
|
|
|
<div id="sspinner" class="alert alert-info lead"><i class="icon-spinner icon-spin icon-2x pull-left"></i><?php print $text_working; ?></div>
|
|
|
|
<div id="messagelistcontainer" class="boxlistcontent">
|
|
|
|
<?php if($n > 0) { ?>
|
|
|
|
<table id="results" class="table table-striped table-condensed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2013-07-30 10:05:47 +02:00
|
|
|
<th id="restore-header"><input type="checkbox" id="bulkcheck" name="bulkcheck" value="1" <?php if(SEARCH_RESULT_CHECKBOX_CHECKED == 1) { ?>checked="checked"<?php } ?> class="restorebox" onclick="Piler.toggle_bulk_check('');" /></th>
|
2013-04-05 10:16:33 +02:00
|
|
|
<th id="id-header"> </th>
|
|
|
|
<th id="date-header">
|
|
|
|
<?php print $text_date; ?>
|
2014-01-10 12:27:26 +01:00
|
|
|
<a xid="date" xorder="1" onclick="Piler.changeOrder(this);"><i class="icon-chevron-up<?php if($sort == 'date' && $order == 1) { ?> bottomborder<?php } ?>"></i></a>
|
|
|
|
<a xid="date" xorder="0" onclick="Piler.changeOrder(this);"><i class="icon-chevron-down<?php if($sort == 'date' && $order == 0) { ?> bottomborder<?php } ?>"></i></a>
|
2013-04-05 10:16:33 +02:00
|
|
|
</th>
|
|
|
|
<th id="from-header">
|
|
|
|
<?php print $text_from; ?>
|
2014-01-10 12:27:26 +01:00
|
|
|
<a xid="from" xorder="1" onclick="Piler.changeOrder(this);"><i class="icon-chevron-up<?php if($sort == 'from' && $order == 1) { ?> bottomborder<?php } ?>"></i></a>
|
|
|
|
<a xid="from" xorder="0" onclick="Piler.changeOrder(this);"><i class="icon-chevron-down<?php if($sort == 'from' && $order == 0) { ?> bottomborder<?php } ?>"></i></a>
|
2013-04-05 10:16:33 +02:00
|
|
|
</th>
|
|
|
|
<th id="to-header">
|
|
|
|
<?php print $text_to; ?>
|
|
|
|
<a xid="to" xorder="1" onclick="Piler.changeOrder(this);"><i class="icon-chevron-up"></i></a>
|
|
|
|
<a xid="to" xorder="0" onclick="Piler.changeOrder(this);"><i class="icon-chevron-down"></i></a>
|
|
|
|
</th>
|
|
|
|
<th id="subject-header">
|
|
|
|
<?php print $text_subject; ?>
|
2014-01-20 12:15:12 +01:00
|
|
|
<a xid="subj" xorder="1" onclick="Piler.changeOrder(this);"><i class="icon-chevron-up<?php if($sort == 'subj' && $order == 1) { ?> bottomborder<?php } ?>"></i></a>
|
|
|
|
<a xid="subj" xorder="0" onclick="Piler.changeOrder(this);"><i class="icon-chevron-down<?php if($sort == 'subj' && $order == 0) { ?> bottomborder<?php } ?>"></i></a>
|
2013-04-05 10:16:33 +02:00
|
|
|
</th>
|
|
|
|
<th id="size-header">
|
|
|
|
<?php print $text_size; ?>
|
2014-01-10 12:27:26 +01:00
|
|
|
<a xid="size" xorder="1" onclick="Piler.changeOrder(this);"><i class="icon-chevron-up<?php if($sort == 'size' && $order == 1) { ?> bottomborder<?php } ?>"></i></a>
|
|
|
|
<a xid="size" xorder="0" onclick="Piler.changeOrder(this);"><i class="icon-chevron-down<?php if($sort == 'size' && $order == 0) { ?> bottomborder<?php } ?>"></i></a>
|
2013-04-05 10:16:33 +02:00
|
|
|
</th>
|
|
|
|
<th id="spam-header"><i class="spam icon-warning-sign icon-large" title="<?php print $text_spam_flag; ?>"></i></th>
|
|
|
|
<th id="attachment-header"><i class="attachment icon-paper-clip icon-large" title="<?php print $text_attachment_flag; ?>"></i></th>
|
|
|
|
<th id="note-header"><i class="note icon-file-alt icon-large" title="<?php print $text_notes_flag; ?>"></i></th>
|
|
|
|
<th id="tag-header"><i class="tag icon-tags icon-large" title="<?php print $text_tag_flag; ?>"></i>
|
|
|
|
<?php if(ENABLE_ON_THE_FLY_VERIFICATION == 1) { ?>
|
|
|
|
<th id="verify-header"><i class="verified icon-ok-sign icon-large" title="<?php print $text_verified_flag; ?>"></i></th>
|
|
|
|
<?php } ?>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php $i=0; foreach ($messages as $message) { ?>
|
|
|
|
|
2015-07-09 13:56:11 +02:00
|
|
|
<tr onmouseover="Piler.current_message_id = <?php print $message['id']; ?>; return false;" id="e_<?php print $message['id']; ?>" class="resultrow new <?php if($message['deleted'] == 1) { ?>xxx<?php } ?>" onclick="Piler.view_message_by_pos(<?php print $i; ?>);">
|
2013-07-10 14:11:27 +02:00
|
|
|
<td id="c1_r<?php print $i; ?>" class="resultcell restore" onclick="Piler.stop_propagation(event);"><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 } ?> class="restorebox" /></td>
|
2013-04-05 10:16:33 +02:00
|
|
|
<td id="c2_r<?php print $i; ?>" class="resultcell id"><?php print ($page*$page_len) + $i + 1; ?></td>
|
|
|
|
<td id="c3_r<?php print $i; ?>" class="resultcell date"><?php print $message['date']; ?></td>
|
|
|
|
<td id="c4_r<?php print $i; ?>" class="resultcell from"><?php if($message['from'] != $message['shortfrom']) { ?><span title="<?php print $message['from']; ?>"><?php print $message['shortfrom']; ?></span><?php } else { print $message['from']; } ?></td>
|
|
|
|
<td id="c5_r<?php print $i; ?>" class="resultcell to"><?php if($message['to'] != $message['shortto']) { ?><span title="<?php print $message['to']; ?>"><?php print $message['shortto']; ?> <i class=" muted icon-group"></i></span><?php } else { print $message['to']; } ?></td>
|
2013-08-28 09:56:37 +02:00
|
|
|
|
2016-02-10 14:57:30 +01:00
|
|
|
<td id="c6_r<?php print $i; ?>" class="resultcell subject"><a href="#" <?php if($message['deleted'] == 1) { ?>class="xxx"<?php } ?>><?php print $message['subject']; ?></a><?php if(ENABLE_REFERENCES == 1 && $message['reference']) { ?> <a href="#" <?php if($message['deleted'] == 1) { ?>class="xxx"<?php } ?> title="<?php print $text_conversation_available; ?>" onclick="$('#ref').val('<?php print $message['reference']; ?>'); Piler.expert(this);">[+]</span></a><?php } ?><?php if($message['private'] == 1) { ?> <span class="private">P</span><?php } ?></td>
|
2013-08-28 09:56:37 +02:00
|
|
|
|
2013-04-05 10:16:33 +02:00
|
|
|
<td id="c7_r<?php print $i; ?>" class="resultcell size"><?php print $message['size']; ?></td>
|
|
|
|
<td id="c8_r<?php print $i; ?>" class="resultcell end"><?php if($message['spam'] == 1) { ?><i class="spam icon-warning-sign icon-large" title="<?php print $text_spam_flag; ?>"></i><?php } else { ?> <?php } ?></td>
|
|
|
|
<td id="c9_r<?php print $i; ?>" class="resultcell end"><?php if($message['attachments'] > 0) { ?><i class="attachment icon-paper-clip icon-large" title="<?php print $text_attachment_flag; ?>"></i><?php } else { ?> <?php } ?></td>
|
2013-04-06 11:32:17 +02:00
|
|
|
<td id="c10_r<?php print $i; ?>" class="resultcell end"><?php if($message['note']) { ?><i class="note icon-file-alt icon-large" title="<?php print $message['note']; ?>"></i><?php } else { ?> <?php } ?></td>
|
|
|
|
<td id="c11_r<?php print $i; ?>" class="resultcell end"><?php if($message['tag']) { ?><i class="tag icon-tags icon-large" title="<?php print $message['tag']; ?>"></i><?php } else { ?> <?php } ?></td>
|
2013-04-05 10:16:33 +02:00
|
|
|
<?php if(ENABLE_ON_THE_FLY_VERIFICATION == 1) { if ($message['verification'] == 1) {?>
|
|
|
|
<td id="c12_r<?php print $i; ?>" class="resultcell end"><i class="verified icon-ok-sign icon-large" title="<?php print $text_verified_flag; ?>"></i></td>
|
|
|
|
<?php } else { ?>
|
|
|
|
<td id="c12_r<?php print $i; ?>" class="resultcell end"><i class="unverified icon-remove-sign icon-large" title="<?php print $text_unverified_flag; ?>"></i></td>
|
|
|
|
<?php } } ?>
|
2013-03-29 18:05:58 +01:00
|
|
|
</tr>
|
2012-02-08 23:14:28 +01:00
|
|
|
|
2013-04-05 10:16:33 +02:00
|
|
|
<?php $i++; } ?>
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
2013-07-30 10:05:47 +02:00
|
|
|
<th id="restore-header"><input type="checkbox" id="bulkcheck2" name="bulkcheck2" value="1" <?php if(SEARCH_RESULT_CHECKBOX_CHECKED == 1) { ?>checked="checked"<?php } ?> class="restorebox" onclick="Piler.toggle_bulk_check('2');" /></th>
|
2013-04-05 10:16:33 +02:00
|
|
|
<th id="id-header"> </th>
|
|
|
|
<th id="date-header">
|
|
|
|
<?php print $text_date; ?>
|
|
|
|
<a xid="date" xorder="1" onclick="Piler.changeOrder(this);"><i class="icon-chevron-up"></i></a>
|
|
|
|
<a xid="date" xorder="0" onclick="Piler.changeOrder(this);"><i class="icon-chevron-down"></i></a>
|
|
|
|
</th>
|
|
|
|
<th id="from-header">
|
|
|
|
<?php print $text_from; ?>
|
|
|
|
<a xid="from" xorder="1" onclick="Piler.changeOrder(this);"><i class="icon-chevron-up"></i></a>
|
|
|
|
<a xid="from" xorder="0" onclick="Piler.changeOrder(this);"><i class="icon-chevron-down"></i></a>
|
|
|
|
</th>
|
|
|
|
<th id="to-header">
|
|
|
|
<?php print $text_to; ?>
|
|
|
|
<a xid="to" xorder="1" onclick="Piler.changeOrder(this);"><i class="icon-chevron-up"></i></a>
|
|
|
|
<a xid="to" xorder="0" onclick="Piler.changeOrder(this);"><i class="icon-chevron-down"></i></a>
|
|
|
|
</th>
|
|
|
|
<th id="subject-header">
|
|
|
|
<?php print $text_subject; ?>
|
|
|
|
<a xid="subj" xorder="1" onclick="Piler.changeOrder(this);"><i class="icon-chevron-up"></i></a>
|
|
|
|
<a xid="subj" xorder="0" onclick="Piler.changeOrder(this);"><i class="icon-chevron-down"></i></a>
|
|
|
|
</th>
|
|
|
|
<th id="size-header">
|
|
|
|
<?php print $text_size; ?>
|
|
|
|
<a xid="size" xorder="1" onclick="Piler.changeOrder(this);"><i class="icon-chevron-up"></i></a>
|
|
|
|
<a xid="size" xorder="0" onclick="Piler.changeOrder(this);"><i class="icon-chevron-down"></i></a>
|
|
|
|
</th>
|
|
|
|
<th id="spam-header"><i class="spam icon-warning-sign icon-large" title="<?php print $text_spam_flag; ?>"></i></th>
|
|
|
|
<th id="attachment-header"><i class="attachment icon-paper-clip icon-large" title="<?php print $text_attachment_flag; ?>"></i></th>
|
|
|
|
<th id="note-header"><i class="note icon-file-alt icon-large" title="<?php print $text_notes_flag; ?>"></i></th>
|
|
|
|
<th id="tag-header"><i class="tag icon-tags icon-large" title="<?php print $text_tag_flag; ?>"></i>
|
|
|
|
<?php if(ENABLE_ON_THE_FLY_VERIFICATION == 1) { ?>
|
|
|
|
<th id="verify-header"><i class="verified icon-ok-sign icon-large" title="<?php print $text_verified_flag; ?>"></i></th>
|
|
|
|
<?php } ?>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<?php } else if($n == 0) { ?>
|
|
|
|
<div class="alert alert-block alert-error lead"><i class="icon-exclamation-sign icon-2x pull-left"></i> <?php print $text_empty_search_result; ?></div>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="messagelistfooter" class="boxfooter">
|
2013-08-14 23:40:52 +02:00
|
|
|
<div class="row-fluid">
|
2013-08-28 09:56:37 +02:00
|
|
|
<div id="pagingrow" class="span4">
|
|
|
|
<div id="pagingbox">
|
2013-04-05 10:16:33 +02:00
|
|
|
<?php if($n > 0){ ?>
|
|
|
|
|
|
|
|
<?php if($page > 0) { ?><a href="#" class="navlink" onclick="Piler.navigation(0);"><i class="icon-double-angle-left icon-large"></i></a><?php } else { ?><span class="navlink"><i class="icon-double-angle-left icon-large muted"></i></span><?php } ?>
|
|
|
|
|
|
|
|
<?php if($page > 0) { ?><a href="#" class="navlink" onclick="Piler.navigation(<?php print $prev_page; ?>);"><i class="icon-angle-left icon-large"></i></a><?php } else { ?><span class="navlink"><i class="icon-angle-left icon-large muted"></i></span><?php } ?>
|
|
|
|
|
2015-08-11 15:16:13 +02:00
|
|
|
|
|
|
|
<?php print $hits_from; ?>-<?php print $hits_to; ?>, <?php print $text_total; ?>: <?php print $hits; ?><?php if($total_found > MAX_SEARCH_HITS) { ?> (<?php print $total_found; ?>)<?php } ?>
|
|
|
|
|
2013-04-05 10:16:33 +02:00
|
|
|
|
|
|
|
<?php if($next_page <= $total_pages){ ?><a href="#" class="navlink" onclick="Piler.navigation(<?php print $next_page; ?>);"><i class="icon-angle-right icon-large"></i></a> <?php } else { ?><span class="navlink"><i class="icon-angle-right icon-large muted"></i></span><?php } ?>
|
|
|
|
|
|
|
|
<?php if($page < $total_pages) { ?><a href="#" class="navlink" onclick="Piler.navigation(<?php print $total_pages; ?>);"><i class="icon-double-angle-right icon-large"></i></a><?php } else { ?> <span class="navlink"><i class="icon-double-angle-right icon-large muted"></i></span><?php } ?>
|
|
|
|
|
2013-12-19 14:47:14 +01:00
|
|
|
|
2015-07-09 14:00:35 +02:00
|
|
|
<?php if(ENABLE_DELETE == 1) { ?><i class="icon-exclamation-sign" title="<?php print $text_compliance_warning; ?>"></i><?php } ?>
|
2015-07-07 14:12:35 +02:00
|
|
|
|
2015-08-13 15:44:22 +02:00
|
|
|
<?php if(Registry::get('auditor_user') == 1 && $session->get("sphx_query")) { ?>
|
|
|
|
<span style="margin-left: 30px;"><a href="#" onclick="Piler.show_message('messagebox1', '<?php print $session->get("sphx_query"); ?>', 5);">sphinx</a></span>
|
|
|
|
<?php } ?>
|
|
|
|
|
2013-04-05 10:16:33 +02:00
|
|
|
<?php } else { print $text_none_found; } ?>
|
2013-08-28 09:56:37 +02:00
|
|
|
</div>
|
2013-03-29 18:05:58 +01:00
|
|
|
</div>
|
2015-07-07 14:12:35 +02:00
|
|
|
|
2013-08-28 09:56:37 +02:00
|
|
|
<div id="functionrow" class="span8">
|
2013-04-05 10:16:33 +02:00
|
|
|
<input type="hidden" id="tag_keys" name="tag_keys" value="<?php print $all_ids; ?>" />
|
|
|
|
<input type="hidden" id="_ref" name="_ref" value="<?php if(isset($_ref)) { print $_ref; } ?>" />
|
2013-08-28 09:56:37 +02:00
|
|
|
<div id="functionbox" class="input-prepend input-append pull-right">
|
2013-09-30 16:40:01 +02:00
|
|
|
|
2013-08-14 23:40:52 +02:00
|
|
|
<span class="add-on"><?php print $text_with_selected; ?>: </span>
|
2013-11-01 11:42:40 +01:00
|
|
|
<?php if(SMARTHOST || ENABLE_IMAP_AUTH == 1) { ?>
|
2014-06-25 13:56:24 +02:00
|
|
|
<a href="#" class="btn btn-custom btn-inverse<?php if(Registry::get('auditor_user') == 1) { ?> confirm-delete"><?php } else { ?>" onclick="Piler.bulk_restore_messages('<?php print $text_restored; ?>', '');" title="<?php print $text_bulk_restore_selected_emails; ?>"><?php } ?><i class="icon-share-alt"></i></a>
|
2013-11-01 11:42:40 +01:00
|
|
|
<?php } ?>
|
2013-08-14 23:40:52 +02:00
|
|
|
<a href="#" class="btn btn-custom btn-inverse" onclick="Piler.download_messages();" title="<?php print $text_bulk_download; ?>"><i class="icon-download-alt"></i></a>
|
2015-08-11 15:16:13 +02:00
|
|
|
<a href="#" class="btn btn-custom btn-inverse" onclick="Piler.download_selected_as_pdf();" title="<?php print $text_download_selected_hits_as_pdf; ?>"><i class="icon-file"></i></a>
|
2015-07-07 14:12:35 +02:00
|
|
|
<?php if(ENABLE_DELETE == 1 && isAuditorUser() == 1) { ?><a href="#" class="btn btn-custom btn-inverse" onclick="Piler.bulk_remove_messages('<?php print $text_successfully_removed; ?>');" title="<?php print $text_remove; ?>"><i class="icon-remove-sign"></i></a><?php } ?>
|
2013-04-05 10:16:33 +02:00
|
|
|
<input type="text" id="tag_value" name="tag_value" class="tagtext" />
|
2013-08-14 23:40:52 +02:00
|
|
|
<a href="#" class="btn btn-custom btn-inverse" onclick="Piler.tag_search_results('<?php print $text_tagged; ?>');" title="<?php print $text_tag_selected_messages; ?>"><i class="icon-tags" title="Tag"></i></a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-04-05 10:16:33 +02:00
|
|
|
</div>
|