piler/webui/view/theme/mobile/templates/search/helper.tpl

127 lines
8.6 KiB
Smarty
Raw Normal View History

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 { ?>&nbsp;<?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>
<a xid="date" xorder="1" onclick="Piler.changeOrder(this);"><i class="icon-chevron-up sleek<?php if($sort == 'date' && $order == 1) { ?> bottomborder<?php } ?>"></i></a>
<a xid="date" xorder="0" onclick="Piler.changeOrder(this);"><i class="icon-chevron-down sleek<?php if($sort == 'date' && $order == 0) { ?> bottomborder<?php } ?>"></i></a>
2013-08-20 14:47:55 +02:00
</th>
<th data-resizable-column-id="from">
2013-04-05 10:16:33 +02:00
<strong><?php print $text_from; ?></strong>
<a xid="from" xorder="1" onclick="Piler.changeOrder(this);"><i class="icon-chevron-up sleek<?php if($sort == 'from' && $order == 1) { ?> bottomborder<?php } ?>"></i></a>
<a xid="from" xorder="0" onclick="Piler.changeOrder(this);"><i class="icon-chevron-down sleek<?php if($sort == 'from' && $order == 0) { ?> bottomborder<?php } ?>"></i></a>
2013-08-20 14:47:55 +02:00
</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>
2014-01-20 12:15:12 +01:00
<a xid="subj" xorder="1" onclick="Piler.changeOrder(this);"><i class="icon-chevron-up sleek<?php if($sort == 'subj' && $order == 1) { ?> bottomborder<?php } ?>"></i></a>
<a xid="subj" xorder="0" onclick="Piler.changeOrder(this);"><i class="icon-chevron-down sleek<?php if($sort == 'subj' && $order == 0) { ?> bottomborder<?php } ?>"></i></a>
2013-08-20 14:47:55 +02:00
</th>
<th data-resizable-column-id="size">
2013-04-05 10:16:33 +02:00
<strong><?php print $text_size; ?></strong>
<a xid="size" xorder="1" onclick="Piler.changeOrder(this);"><i class="icon-chevron-up sleek<?php if($sort == 'size' && $order == 1) { ?> bottomborder<?php } ?>"></i></a>
<a xid="size" xorder="0" onclick="Piler.changeOrder(this);"><i class="icon-chevron-down sleek<?php if($sort == 'size' && $order == 0) { ?> bottomborder<?php } ?>"></i></a>
2013-08-20 14:47:55 +02:00
</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) { ?>
<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-10-17 10:11:17 +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 || OUTLOOK == 1)) { print $message['shortsubject']; } else { print $message['subject']; } ?></a><?php if(ENABLE_REFERENCES == 1 && $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">
2013-11-16 20:23:15 +01:00
<form class="form-inline sleek" name="tagging" onsubmit="return false;">
2013-04-05 10:16:33 +02:00
<?php if($n >= $page_len){ ?>
<span class="piler-right-margin">
<?php if($page > 0) { ?><a href="#" onclick="Piler.navigation(0);">&lt;&lt;</a> &nbsp; <?php } else { ?><span class="navlink">&lt;&lt; &nbsp; </span><?php } ?>
<?php if($page > 0) { ?><a href="#" onclick="Piler.navigation(<?php print $prev_page; ?>);"> &lt; </a> <?php } else { ?><span class="navlink"> &lt; </span><?php } ?>
2013-12-23 12:12:18 +01:00
<?php print $hits_from; ?>-<?php print $hits_to; ?>, <?php print $text_total; ?>: <?php print $n; ?><?php if($total_found > $n) { ?> (<?php print $total_found; ?>)<?php } ?>
2013-04-05 10:16:33 +02:00
<?php if($next_page <= $total_pages){ ?><a href="#" onclick="Piler.navigation(<?php print $next_page; ?>);">&gt; </a> <?php } else { ?><span class="navlink">&gt; </span><?php } ?>
<?php if($page < $total_pages) { ?> &nbsp; <a href="#" onclick="Piler.navigation(<?php print $total_pages; ?>);"> &gt;&gt; </a><?php } else { ?> <span class="navlink"> &nbsp; &gt;&gt;</span><?php } ?>
<?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
</span>
2013-08-01 12:11:51 +02:00
2013-04-05 10:16:33 +02:00
<?php } else { ?>&nbsp;<?php } ?>
<?php if(SMARTHOST || ENABLE_IMAP_AUTH == 1) { ?>
2015-08-11 15:16:13 +02:00
<a href="#" <?php if(Registry::get('auditor_user') == 1) { ?>class="confirm-delete"<?php } ?> onclick="Piler.bulk_restore_messages('<?php print $text_restored; ?>', '');" title="<?php print $text_bulk_restore_selected_emails; ?>"><i class="icon-share-alt"></i></a>
<?php } ?>
2013-04-05 10:16:33 +02:00
2015-08-11 15:16:13 +02:00
<a href="#" onclick="Piler.download_messages();" title="<?php print $text_bulk_download; ?>"><i class="icon-download-alt"></i></a>
<a href="#" 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
2013-04-05 10:16:33 +02:00
<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