mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-14 04:11:58 +01:00
107 lines
6.4 KiB
Smarty
107 lines
6.4 KiB
Smarty
|
|
||
|
<div id="messagelistcontainer" class="boxlistcontent">
|
||
|
|
||
|
<div id="results">
|
||
|
|
||
|
<?php if($n > 0) { ?>
|
||
|
<table class="table table-striped table-condensed" style="border: 0px solid blue; width: 98%;">
|
||
|
<thead>
|
||
|
|
||
|
<tr>
|
||
|
<td><input type="checkbox" id="bulkcheck" name="bulkcheck" value="1" <?php if(SEARCH_RESULT_CHECKBOX_CHECKED == 1) { ?>checked="checked"<?php } ?> onclick="Piler.toggle_bulk_check();" /></td>
|
||
|
<td><a href="#"><img class="download_icon" src="<?php print ICON_DOWNLOAD; ?>" width="18" height="18" alt="aaa" border="0" onclick="Piler.download_messages();" /></a></td>
|
||
|
<td>
|
||
|
<strong><?php print $text_date; ?></strong>
|
||
|
<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>
|
||
|
</td>
|
||
|
<td>
|
||
|
<strong><?php print $text_from; ?></strong>
|
||
|
<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>
|
||
|
</td>
|
||
|
<td>
|
||
|
<strong><?php print $text_to; ?></strong>
|
||
|
</td>
|
||
|
<td>
|
||
|
<strong><?php print $text_subject; ?><strong>
|
||
|
<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>
|
||
|
</td>
|
||
|
<td>
|
||
|
<strong><?php print $text_size; ?></strong>
|
||
|
<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>
|
||
|
</td>
|
||
|
<td><i class="attachment icon-paper-clip icon-large" title="<?php print $text_attachment_flag; ?>"></i></div>
|
||
|
<td> </div>
|
||
|
<td><i class="icon-tag"></i></div>
|
||
|
<?php if(ENABLE_ON_THE_FLY_VERIFICATION == 1) { ?>
|
||
|
<td> </td>
|
||
|
<?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 } ?>">
|
||
|
<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><?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['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><?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['note']) { ?><a href="#" title="<?php print $message['note']; ?>"><img src="<?php print ICON_NOTES; ?>" alt="akakaka" width="16" height="16" /></a><?php } else { ?> <?php } ?></td>
|
||
|
<td><?php if($message['tag']) { ?><a href="#" title="<?php print $message['tag']; ?>"><img src="<?php print ICON_TAG; ?>" alt="" /></a><?php } else { ?> <?php } ?></td>
|
||
|
<?php if(ENABLE_ON_THE_FLY_VERIFICATION == 1) { ?>
|
||
|
<td><img src="<?php if($message['verification'] == 1){ print ICON_GREEN_OK; } else { print ICON_RED_X; } ?>" alt="verification status" /></td>
|
||
|
<?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>
|
||
|
<?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>
|
||
|
|