mirror of
				https://bitbucket.org/jsuto/piler.git
				synced 2025-11-04 16:42:27 +01:00 
			
		
		
		
	merging new gui part #1
This commit is contained in:
		
							
								
								
									
										1
									
								
								webui/view/theme/orig/templates/message/bulkrestore.tpl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								webui/view/theme/orig/templates/message/bulkrestore.tpl
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
<p><?php print $text_restored; ?>: <?php print $restored; ?></p>
 | 
			
		||||
							
								
								
									
										24
									
								
								webui/view/theme/orig/templates/message/headers.tpl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								webui/view/theme/orig/templates/message/headers.tpl
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,24 @@
 | 
			
		||||
<div id="restorebox">
 | 
			
		||||
<?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="restore_to_mailbox_button" 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="restore_to_mailbox_button" onclick="$('#restorebox').hide();" />
 | 
			
		||||
<?php } ?>
 | 
			
		||||
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
   <a class="messagelink" href="index.php?route=message/download&id=<?php print $id; ?>"><?php print $text_download_message; ?></a> |
 | 
			
		||||
<?php if(Registry::get('auditor_user') == 1) { ?>
 | 
			
		||||
   <a class="messagelink" href="#" onclick="$('#restorebox').show();"><?php print $text_restore_to_mailbox; ?></a> |
 | 
			
		||||
<?php } else { ?>
 | 
			
		||||
   <a class="messagelink" href="#" onclick="Piler.restore_message(<?php print $id; ?>);"><?php print $text_restore_to_mailbox; ?></a> |
 | 
			
		||||
<?php } ?>
 | 
			
		||||
   <a class="messagelink" href="#" onclick="Piler.view_message(<?php print $id; ?>);"><?php print $text_view_message; ?></a>
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<pre><?php print $data; ?></pre>
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										21
									
								
								webui/view/theme/orig/templates/message/restore.tpl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								webui/view/theme/orig/templates/message/restore.tpl
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
<html>
 | 
			
		||||
<head>
 | 
			
		||||
   <link rel="stylesheet" type="text/css" href="/view/theme/default/stylesheet/style-<?php print THEME; ?>.css" />
 | 
			
		||||
</head>
 | 
			
		||||
 | 
			
		||||
<body>
 | 
			
		||||
 | 
			
		||||
<div id="messagepopup">
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
   <a class="messagelink" href="index.php?route=message/download&id=<?php print $id; ?>"><?php print $text_download_message; ?></a> |
 | 
			
		||||
   <a class="messagelink" href="#" onclick="Piler.view_message(<?php print $id; ?>);"><?php print $text_view_message; ?></a> |
 | 
			
		||||
   <a class="messagelink" href="#" onclick="Piler.view_headers(<?php print $id; ?>);"><?php print $text_view_headers; ?></a>
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p><?php print $data; ?></p>
 | 
			
		||||
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
							
								
								
									
										39
									
								
								webui/view/theme/orig/templates/message/view.tpl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								webui/view/theme/orig/templates/message/view.tpl
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,39 @@
 | 
			
		||||
<div id="restorebox">
 | 
			
		||||
<?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="restore_to_mailbox_button" 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="restore_to_mailbox_button" onclick="$('#restorebox').hide();" />
 | 
			
		||||
<?php } ?>
 | 
			
		||||
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
   <a class="messagelink" href="index.php?route=message/download&id=<?php print $id; ?>"><?php print $text_download_message; ?></a> |
 | 
			
		||||
<?php if(Registry::get('auditor_user') == 1) { ?>
 | 
			
		||||
   <a class="messagelink" href="#" onclick="$('#restorebox').show();"><?php print $text_restore_to_mailbox; ?></a> |
 | 
			
		||||
<?php } else { ?>
 | 
			
		||||
   <a class="messagelink" href="#" onclick="Piler.restore_message(<?php print $id; ?>);"><?php print $text_restore_to_mailbox; ?></a> |
 | 
			
		||||
<?php } ?>
 | 
			
		||||
   <a class="messagelink" href="#" onclick="Piler.view_headers(<?php print $id; ?>);"><?php print $text_view_headers; ?></a>
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<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 />
 | 
			
		||||
 | 
			
		||||
<form class="form-inline" name="view">
 | 
			
		||||
 | 
			
		||||
<strong><?php print $text_notes; ?></strong>: <input type="text" size="60" id="note" name="note" class="input-medium" value="<?php print preg_replace("/\"/", """, $message['note']); ?>" /> <input type="button" value="<?php print $text_save; ?>" class="btn btn-warning" onclick="Piler.add_note_to_message(<?php print $id; ?>, '<?php print $text_saved; ?>'); " />
 | 
			
		||||
 | 
			
		||||
</form>
 | 
			
		||||
 | 
			
		||||
<?php foreach($attachments as $a) { ?>
 | 
			
		||||
   <span><img src="<?php print ICON_ATTACHMENT; ?>" /><a href="index.php?route=message/attachment&id=<?php print $a['id']; ?>"><?php print $a['name']; ?></a></span>
 | 
			
		||||
<?php } ?>
 | 
			
		||||
 | 
			
		||||
<hr />
 | 
			
		||||
<?php print $message['message']; ?><br />
 | 
			
		||||
		Reference in New Issue
	
	Block a user