2013-04-05 10:16:33 +02:00
|
|
|
|
|
|
|
<div id="messagelistcontainer" class="boxlistcontent">
|
|
|
|
|
|
|
|
<div id="results">
|
|
|
|
|
|
|
|
<?php if($n > 0) { ?>
|
2013-08-20 14:47:55 +02:00
|
|
|
|
2013-08-22 11:24:54 +02:00
|
|
|
<table class="table table-condensed<?php if(ENABLE_TABLE_RESIZE == 1) { ?> table-bordered<?php } ?>" data-resizable-columns-id="search-table">
|
2013-08-20 14:47:55 +02:00
|
|
|
|
2013-04-05 10:16:33 +02:00
|
|
|
<thead>
|
|
|
|
|
|
|
|
<tr>
|
2013-08-20 14:47:55 +02:00
|
|
|
<th data-resizable-column-id="chbox" id="chbox" data-noresize>
|
|
|
|
<input type="checkbox" id="bulkcheck" name="bulkcheck" value="1" <?php if(SEARCH_RESULT_CHECKBOX_CHECKED == 1) { ?>checked="checked"<?php } ?> onclick="Piler.toggle_bulk_check('');" />
|
|
|
|
</th>
|
|
|
|
<th data-resizable-column-id="download" id="download" data-noresize class="center">
|
2013-07-12 11:14:09 +02:00
|
|
|
<?php if(Registry::get('auditor_user') == 1 || BULK_DOWNLOAD_FOR_USERS == 1) { ?>
|
2013-08-20 14:47:55 +02:00
|
|
|
<a href="#" onclick="Piler.download_messages(); return false;" title="Download"><i class="icon-download-alt sleek"></i></a>
|
2013-08-15 14:34:25 +02:00
|
|
|
<?php } else { ?> <?php } ?>
|
2013-08-20 14:47:55 +02:00
|
|
|
</th>
|
|
|
|
<th data-resizable-column-id="date" id="date" class="sleek">
|
2013-04-05 10:16:33 +02:00
|
|
|
<strong><?php print $text_date; ?></strong>
|
2013-08-20 14:47:55 +02:00
|
|
|
<a xid="date" xorder="1" onclick="Piler.changeOrder(this);"><i class="icon-chevron-up sleek"></i></a>
|
|
|
|
<a xid="date" xorder="0" onclick="Piler.changeOrder(this);"><i class="icon-chevron-down sleek"></i></a>
|
|
|
|
</th>
|
|
|
|
<th data-resizable-column-id="from">
|
2013-04-05 10:16:33 +02:00
|
|
|
<strong><?php print $text_from; ?></strong>
|
2013-08-20 14:47:55 +02:00
|
|
|
<a xid="from" xorder="1" onclick="Piler.changeOrder(this);"><i class="icon-chevron-up sleek"></i></a>
|
|
|
|
<a xid="from" xorder="0" onclick="Piler.changeOrder(this);"><i class="icon-chevron-down sleek"></i></a>
|
|
|
|
</th>
|
|
|
|
<th data-resizable-column-id="to">
|
2013-04-05 10:16:33 +02:00
|
|
|
<strong><?php print $text_to; ?></strong>
|
2013-08-20 14:47:55 +02:00
|
|
|
</th>
|
|
|
|
<th data-resizable-column-id="subject">
|
2013-04-05 10:16:33 +02:00
|
|
|
<strong><?php print $text_subject; ?><strong>
|
2013-08-20 14:47:55 +02:00
|
|
|
<a xid="subj" xorder="1" onclick="Piler.changeOrder(this);"><i class="icon-chevron-up sleek"></i></a>
|
|
|
|
<a xid="subj" xorder="0" onclick="Piler.changeOrder(this);"><i class="icon-chevron-down sleek"></i></a>
|
|
|
|
</th>
|
|
|
|
<th data-resizable-column-id="size">
|
2013-04-05 10:16:33 +02:00
|
|
|
<strong><?php print $text_size; ?></strong>
|
2013-08-20 14:47:55 +02:00
|
|
|
<a xid="size" xorder="1" onclick="Piler.changeOrder(this);"><i class="icon-chevron-up sleek"></i></a>
|
|
|
|
<a xid="size" xorder="0" onclick="Piler.changeOrder(this);"><i class="icon-chevron-down sleek"></i></a>
|
|
|
|
</th>
|
|
|
|
<th data-resizable-column-id="attachment" id="attachment" data-noresize><i class="icon-file sleek"></i></th>
|
|
|
|
<th data-resizable-column-id="bookmark" id="bookmark" data-noresize><i class="icon-bookmark sleek"></i></th>
|
|
|
|
<th data-resizable-column-id="tag" id="tag" data-noresize><i class="icon-tag sleek"></i></th>
|
2013-04-05 10:16:33 +02:00
|
|
|
<?php if(ENABLE_ON_THE_FLY_VERIFICATION == 1) { ?>
|
2013-08-20 14:47:55 +02:00
|
|
|
<th data-resizable-column-id="verification" id="verification" data-noresize><i class="icon-sign sleek" title="verification status"></i></th>
|
2013-04-05 10:16:33 +02:00
|
|
|
<?php } ?>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
<?php $i=0; foreach ($messages as $message) { ?>
|
2013-06-29 17:03:23 +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($i % 2) { ?> odd<?php } ?><?php if($message['spam'] == 1) { ?> spam<?php } ?><?php if($message['yousent'] == 1) { ?> sent<?php } ?>">
|
2013-04-05 10:16:33 +02:00
|
|
|
<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>
|
2013-08-20 14:47:55 +02:00
|
|
|
<td class="center sleek"><a href="#" onclick="Piler.view_message_by_pos(<?php print $i; ?>);"><?php print ($page*$page_len) + $i + 1; ?>.</a></td>
|
|
|
|
<td class="center sleek"><?php print $message['date']; ?></td>
|
2013-04-05 10:16:33 +02:00
|
|
|
<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>
|
2013-08-20 14:47:55 +02:00
|
|
|
<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'] && MOBILE_DEVICE == 1) { 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);">[+]</a><?php } ?></td>
|
2013-04-05 10:16:33 +02:00
|
|
|
<td><?php print $message['size']; ?></td>
|
2013-08-20 14:47:55 +02:00
|
|
|
<td><?php if($message['attachments'] > 0) { ?><i class="icon-file sleek"></i><?php } ?></td>
|
|
|
|
<td><?php if($message['note']) { ?><i class="icon-bookmark sleek" title="<?php print $message['note']; ?>"></i><?php } ?></td>
|
|
|
|
<td><?php if($message['tag']) { ?><i class="icon-tag sleek" title="<?php print $message['tag']; ?>"></i><?php } ?></td>
|
2013-04-05 10:16:33 +02:00
|
|
|
<?php if(ENABLE_ON_THE_FLY_VERIFICATION == 1) { ?>
|
2013-08-20 14:47:55 +02:00
|
|
|
<td><i class="icon-<?php if($message['verification'] == 1){ ?>ok<?php } else { ?>remove<?php } ?>-sign sleek" title="verification status"></i></td>
|
2013-04-05 10:16:33 +02:00
|
|
|
<?php } ?>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<?php $i++; } ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php } else if($n == 0) { ?>
|
|
|
|
<div class="alert">
|
|
|
|
<strong><?php print $text_empty_search_result; ?></strong>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="boxfooter">
|
|
|
|
<form class="form-inline sleek" name="tagging">
|
|
|
|
|
|
|
|
<?php if($n >= $page_len){ ?>
|
|
|
|
<span class="piler-right-margin">
|
|
|
|
<?php if($page > 0) { ?><a href="#" onclick="Piler.navigation(0);"><<</a> <?php } else { ?><span class="navlink"><< </span><?php } ?>
|
|
|
|
<?php if($page > 0) { ?><a href="#" onclick="Piler.navigation(<?php print $prev_page; ?>);"> < </a> <?php } else { ?><span class="navlink"> < </span><?php } ?>
|
|
|
|
|
|
|
|
<?php print $hits_from; ?>-<?php print $hits_to; ?>, <?php print $text_total; ?>: <?php print $n; ?>
|
|
|
|
|
|
|
|
<?php if($next_page <= $total_pages){ ?><a href="#" onclick="Piler.navigation(<?php print $next_page; ?>);">> </a> <?php } else { ?><span class="navlink">> </span><?php } ?>
|
|
|
|
<?php if($page < $total_pages) { ?> <a href="#" onclick="Piler.navigation(<?php print $total_pages; ?>);"> >> </a><?php } else { ?> <span class="navlink"> >></span><?php } ?>
|
|
|
|
</span>
|
2013-08-01 12:11:51 +02:00
|
|
|
|
2013-04-05 10:16:33 +02:00
|
|
|
<?php } else { ?> <?php } ?>
|
|
|
|
|
|
|
|
<button class="btn piler-right-margin" onclick="Piler.bulk_restore_messages('<?php print $text_restored; ?>'); return false;"><?php print $text_bulk_restore_selected_emails; ?></button>
|
|
|
|
|
|
|
|
<input type="text" id="tag_value" name="tag_value" class="input-xlarge" placeholder="<?php print $text_tag_selected_messages; ?>" />
|
|
|
|
<button class="btn" onclick="Piler.tag_search_results('<?php print $text_tagged; ?>'); return false;" >OK</button>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2013-08-20 14:47:55 +02:00
|
|
|
|
|
|
|
|