mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:57:03 +02:00
automated search support
This commit is contained in:
99
webui/view/theme/default/templates/message/auto.tpl
Normal file
99
webui/view/theme/default/templates/message/auto.tpl
Normal file
@ -0,0 +1,99 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title><?php print $title; ?></title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<?php if(SITE_KEYWORDS) { ?><meta name="keywords" content="<?php print SITE_KEYWORDS; ?>" /><?php } ?>
|
||||
<?php if(SITE_DESCRIPTION) { ?><meta name="description" content="<?php print SITE_DESCRIPTION; ?>" /><?php } ?>
|
||||
<?php if(PROVIDED_BY) { ?><meta name="author" content="<?php print PROVIDED_BY; ?>" /><?php } ?>
|
||||
|
||||
<base href="<?php print SITE_URL; ?>" />
|
||||
|
||||
<link href="/view/theme/default/assets/css/metro-bootstrap.css" rel="stylesheet">
|
||||
|
||||
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
|
||||
<!-- original location: http://html5shim.googlecode.com/svn/trunk/html5.js -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="/view/theme/default/assets/js/html5.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!-- Fav and touch icons -->
|
||||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/view/theme/default/assets/ico/apple-touch-icon-144-precomposed.png">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/view/theme/default/assets/ico/apple-touch-icon-114-precomposed.png">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/view/theme/default/assets/ico/apple-touch-icon-72-precomposed.png">
|
||||
<link rel="apple-touch-icon-precomposed" href="/view/theme/default/assets/ico/apple-touch-icon-57-precomposed.png">
|
||||
<?php if(BRANDING_FAVICON) { ?><link rel="shortcut icon" href="<?php print BRANDING_FAVICON; ?>" /><?php } ?>
|
||||
|
||||
<script type="text/javascript" src="/view/javascript/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/view/javascript/jquery-ui-custom.min.js"></script>
|
||||
<!--script type="text/javascript" src="/view/javascript/rc-splitter.js"></script-->
|
||||
<script type="text/javascript" src="/view/theme/default/assets/js/bootstrap.js"></script>
|
||||
<script type="text/javascript" src="/view/javascript/piler.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="piler1" class="container">
|
||||
|
||||
<div class="messageheader">
|
||||
|
||||
<p>
|
||||
<a class="messagelink" href="index.php?route=message/download&id=<?php print $id; ?>"><i class="icon-cloud-download"></i> <?php print $text_download_message; ?></a> |
|
||||
<?php if(SMARTHOST || ENABLE_IMAP_AUTH == 1) { if(Registry::get('auditor_user') == 1) { ?>
|
||||
<a class="messagelink" href="#" onclick="$('#restorebox').show();"><i class="icon-reply"></i> <?php print $text_restore_to_mailbox; ?></a> |
|
||||
<?php } else { ?>
|
||||
<!--a class="messagelink" href="#" onclick="Piler.restore_message(<?php print $id; ?>);"><i class="icon-reply"></i> <?php print $text_restore_to_mailbox; ?></a--> |
|
||||
<?php } } ?>
|
||||
<a class="messagelink" href="#" onclick="Piler.view_headers(<?php print $id; ?>);"><i class="icon-envelope-alt"></i> <?php print $text_view_headers; ?></a>
|
||||
<?php if($message['has_journal'] == 1 && Registry::get('auditor_user') == 1 && SHOW_ENVELOPE_JOURNAL == 1) { ?>
|
||||
| <a class="messagelink" href="#" onclick="Piler.view_journal(<?php print $id; ?>);"><i class="icon-envelope-alt"></i> <?php print $text_view_journal_envelope; ?></a>
|
||||
<?php } ?>
|
||||
<?php if($spam == 1) { ?>
|
||||
| <a class="messagelink" href="#" onclick="Piler.not_spam(<?php print $id; ?>);"><i class="icon-exclamation-sign"></i> <?php print $text_not_spam; ?></a>
|
||||
<?php } ?>
|
||||
| <a href="#" onclick="Piler.print_div('messageblock');"><i class="icon-print"></i> <?php print $text_print_message; ?></a>
|
||||
|
||||
<?php if(ENABLE_ON_THE_FLY_VERIFICATION == 0) {
|
||||
if ($message['verification'] == 1) { ?><?php print $text_verified_flag; ?> <i class="verified icon-ok-sign icon-large" title="<?php print $text_verified_flag; ?>"></i><?php } else { ?><?php print $text_unverified_flag; ?> <i class="unverified icon-remove-sign icon-large" title="<?php print $text_unverified_flag; ?>"></i><?php }
|
||||
} ?>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="notesbox" class="input-prepend input-append">
|
||||
<span class="add-on"><i class="icon-file-alt icon-large"></i> <?php print $text_notes; ?>:</span>
|
||||
<input type="text" size="60" id="note" name="note" class="mynote" value="<?php print preg_replace("/\"/", """, $message['note']); ?>" />
|
||||
<input type="button" class="btn btn-info" value="<?php print $text_save; ?>" class="message_button" onclick="Piler.add_note_to_message(<?php print $id; ?>, '<?php print $text_saved; ?>'); " />
|
||||
</div>
|
||||
|
||||
|
||||
<div id="messageblock">
|
||||
|
||||
<div class="messageheader">
|
||||
<strong><?php if($message['subject'] == "" || $message['subject'] == "Subject:") { print "<" . $text_no_subject . ">"; } else { print $message['subject']; } ?></strong><br />
|
||||
<strong><?php print $message['from']; ?></strong><br />
|
||||
<strong><?php print $message['to']; ?></strong><br />
|
||||
<strong><?php print $message['date']; ?></strong><br />
|
||||
<?php foreach($attachments as $a) { ?>
|
||||
<span><i class="attachment icon-paper-clip icon-large" title="Message Attachment"></i> <a href="index.php?route=message/attachment&id=<?php print $a['id']; ?>"><?php print $a['name']; ?></a></span>
|
||||
<?php } ?><?php if(count($attachments) > 1) { ?>| <a href="index.php?route=message/attachments&id=<?php print $id; ?>"><i class="icon-briefcase"></i></a><?php } ?><br/>
|
||||
</div>
|
||||
<div class="messagecontents">
|
||||
<?php print $message['message']; ?>
|
||||
</div>
|
||||
|
||||
<?php foreach($images as $img) { ?>
|
||||
<p><img src="<?php print SITE_URL; ?>/tmp/<?php print $img['name']; ?>" alt="" /></p>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
68
webui/view/theme/default/templates/search/auto.tpl
Normal file
68
webui/view/theme/default/templates/search/auto.tpl
Normal file
@ -0,0 +1,68 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title><?php print $title; ?></title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<?php if(SITE_KEYWORDS) { ?><meta name="keywords" content="<?php print SITE_KEYWORDS; ?>" /><?php } ?>
|
||||
<?php if(SITE_DESCRIPTION) { ?><meta name="description" content="<?php print SITE_DESCRIPTION; ?>" /><?php } ?>
|
||||
<?php if(PROVIDED_BY) { ?><meta name="author" content="<?php print PROVIDED_BY; ?>" /><?php } ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<p style="font-weight: bold; font-size: 18px;"><?php print $text_search_expression; ?>: <?php print $search_expression; ?><br />
|
||||
<?php print $text_date; ?>: <?php print $a['date1']; ?></p>
|
||||
|
||||
<?php if($n > 0) { ?>
|
||||
<table id="results" class="table table-striped table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="left" id="id-header"> </th>
|
||||
<th align="left" id="date-header">
|
||||
<?php print $text_date; ?>
|
||||
</th>
|
||||
<th align="left" id="from-header">
|
||||
<?php print $text_from; ?>
|
||||
</th>
|
||||
<th align="left" id="to-header">
|
||||
<?php print $text_to; ?>
|
||||
</th>
|
||||
<th align="left" id="subject-header">
|
||||
<?php print $text_subject; ?>
|
||||
</th>
|
||||
<th align="left" id="size-header">
|
||||
<?php print $text_size; ?>
|
||||
</th>
|
||||
<th align="left" id="spam-header"><?php print $text_spam; ?></th>
|
||||
<th align="left" id="attachment-header"><?php print $text_attachment; ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i=0; foreach ($messages as $message) { ?>
|
||||
|
||||
<tr id="e_<?php print $message['id']; ?>" class="resultrow new">
|
||||
<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>
|
||||
|
||||
<td id="c6_r<?php print $i; ?>" class="resultcell subject"><a href="<?php print SITE_URL; ?>/message.php/a<?php print $message['id']; ?>"><?php print $message['subject']; ?></a></td>
|
||||
|
||||
<td id="c7_r<?php print $i; ?>" class="resultcell size"><?php print $message['size']; ?></td>
|
||||
<td align="center" id="c8_r<?php print $i; ?>" class="resultcell end"><?php if($message['spam'] == 1) { ?>!<?php } else { ?> <?php } ?></td>
|
||||
<td align="center" id="c9_r<?php print $i; ?>" class="resultcell end"><?php if($message['attachments'] > 0) { ?>+<?php } else { ?> <?php } ?></td>
|
||||
</tr>
|
||||
|
||||
<?php $i++; } ?>
|
||||
</tbody>
|
||||
|
||||
</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 } ?>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user