mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:47:02 +02:00
added ldap type + journal view
This commit is contained in:
@ -274,6 +274,13 @@ var Piler =
|
||||
},
|
||||
|
||||
|
||||
view_journal:function(id)
|
||||
{
|
||||
Piler.log("[view_journal]");
|
||||
Piler.load_url_to_preview_pane('/index.php?route=message/journal&id=' + id);
|
||||
},
|
||||
|
||||
|
||||
restore_message:function(id)
|
||||
{
|
||||
Piler.log("[restore_message]");
|
||||
|
@ -6,6 +6,17 @@
|
||||
|
||||
<form method="post" name="add1" action="index.php?route=ldap/list" class="form-horizontal">
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="ldap_type"><?php print $text_ldap_type; ?>:</label>
|
||||
<div class="controls">
|
||||
<select name="ldap_type" id="ldap_type">
|
||||
<option value="AD">AD</option>
|
||||
<option value="iredmail">iredmail</option>
|
||||
<option value="lotus">lotus</option>
|
||||
<option value="zimbra">zimbra</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="description"><?php print $text_description; ?>:</label>
|
||||
<div class="controls">
|
||||
@ -53,6 +64,7 @@
|
||||
<table id="ss1" class="table table-striped table-condensed">
|
||||
<tr>
|
||||
<th class="domaincell"><?php print $text_description; ?></th>
|
||||
<th class="domaincell"><?php print $text_ldap_type; ?></th>
|
||||
<th class="domaincell"><?php print $text_ldap_host; ?></th>
|
||||
<td class="domaincell"><?php print $text_ldap_base_dn; ?></td>
|
||||
<td class="domaincell"><?php print $text_ldap_bind_dn; ?></td>
|
||||
@ -62,6 +74,7 @@
|
||||
<?php foreach($entries as $e) { ?>
|
||||
<tr>
|
||||
<td class="domaincell"><?php print $e['description']; ?></td>
|
||||
<td class="domaincell"><?php print $e['ldap_type']; ?></td>
|
||||
<td class="domaincell"><?php print $e['ldap_host']; ?></td>
|
||||
<td class="domaincell"><?php print $e['ldap_base_dn']; ?></td>
|
||||
<td class="domaincell"><?php print $e['ldap_bind_dn']; ?></td>
|
||||
|
@ -20,9 +20,13 @@
|
||||
<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_message(<?php print $id; ?>);"><i class="icon-envelope"></i> <?php print $text_view_message; ?></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 } ?>
|
||||
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<pre class="messagesmtpheaders"><?php print $data; ?></pre>
|
||||
<pre class="messagesmtpheaders"><?php print $message['headers']; ?></pre>
|
||||
|
||||
|
30
webui/view/theme/default/templates/message/journal.tpl
Normal file
30
webui/view/theme/default/templates/message/journal.tpl
Normal file
@ -0,0 +1,30 @@
|
||||
<div id="restorebox" class="alert alert-general">
|
||||
<?php if(Registry::get('auditor_user') == 1 && count($rcpt) > 0) { ?>
|
||||
<?php foreach($rcpt as $r) { ?>
|
||||
<input type="checkbox" class="restorebox" id="rcpt_<?php print $r; ?>" name="rcpt_<?php print $r; ?>" value="1" /> <?php print $r; ?><br />
|
||||
<?php } ?>
|
||||
<br />
|
||||
<input type="button" id="restore_button" name="restore_button" value="<?php print $text_restore; ?>" class="btn btn-primary" onclick="Piler.restore_message_for_recipients(<?php print $id; ?>, '<?php print $text_restored; ?>', '<?php print $text_select_recipients; ?>');" />
|
||||
<input type="button" value="<?php print $text_cancel; ?>" class="btn btn-inverse" onclick="$('#restorebox').hide();" />
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
<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(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"></i> <?php print $text_view_headers; ?></a>
|
||||
<a class="messagelink" href="#" onclick="Piler.view_message(<?php print $id; ?>);"><i class="icon-envelope-alt"></i> <?php print $text_view_message; ?></a>
|
||||
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<pre class="messagesmtpheaders"><?php print $data; ?></pre>
|
||||
|
@ -8,4 +8,5 @@
|
||||
|
||||
<div class="messagecontents">
|
||||
<?php print $data; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -20,6 +20,9 @@
|
||||
<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"></i> <?php print $text_view_journal_envelope; ?></a>
|
||||
<?php } ?>
|
||||
</p>
|
||||
|
||||
<strong><?php if($message['subject'] == "" || $message['subject'] == "Subject:") { print "<" . $text_no_subject . ">"; } else { print $message['subject']; } ?></strong><br />
|
||||
|
@ -137,6 +137,8 @@
|
||||
<input type="button" class="btn btn-info" onclick="Piler.tag_search_results('<?php print $text_tagged; ?>');" value="Tag" />
|
||||
</span>
|
||||
<input type="button" class="btn btn-custom btn-inverse" value="<?php print $text_bulk_restore_selected_emails; ?>" onclick="Piler.bulk_restore_messages('<?php print $text_restored; ?>'); " />
|
||||
<?php if(Registry::get('auditor_user') == 1 || BULK_DOWNLOAD_FOR_USERS == 1) { ?>
|
||||
<input type="button" class="btn btn-custom btn-inverse" value="<?php print $text_bulk_download; ?>" onclick="Piler.download_messages();" />
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -9,7 +9,10 @@
|
||||
|
||||
<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>
|
||||
<?php if(Registry::get('auditor_user') == 1 || BULK_DOWNLOAD_FOR_USERS == 1) { ?>
|
||||
<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>
|
||||
<?php } ?>
|
||||
<td>
|
||||
<strong><?php print $text_date; ?></strong>
|
||||
<a xid="date" xorder="1" onclick="Piler.changeOrder(this);"><i class="icon-chevron-up"></i></a>
|
||||
|
Reference in New Issue
Block a user