2009-09-01 14:23:05 +02:00
|
|
|
<h1><%= t :mailbox %></h1>
|
2009-01-07 20:27:12 +01:00
|
|
|
<div id="header">
|
|
|
|
<ul id="primary">
|
2009-09-01 14:23:05 +02:00
|
|
|
<li><span><%= t :folders %></span>
|
2009-01-07 20:27:12 +01:00
|
|
|
<ul id="secondary">
|
|
|
|
<li><%=link_refresh%></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li><%=link_send_mail%></li>
|
|
|
|
<li><%=link_mail_prefs%></li>
|
|
|
|
<li><%=link_mail_filters%></li>
|
|
|
|
<li><%=link_main%></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div id="tab_main">
|
|
|
|
<div id="tab_content">
|
|
|
|
|
2009-02-07 20:01:59 +01:00
|
|
|
<% content_for('sidebar') { %>
|
|
|
|
<%= render :partial => 'shared/folders' %>
|
2009-01-07 20:27:12 +01:00
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<div id="messages">
|
|
|
|
<div id="msglist">
|
|
|
|
<h2><%= @folder_name %></h2>
|
2009-02-07 20:24:23 +01:00
|
|
|
<%= form_tag({:controller=>'webmail', :action=>'messages'})%>
|
2009-09-01 14:23:05 +02:00
|
|
|
<div class='notviscode'><input type="submit" name="op" value="<%= t :search %>" /></div>
|
2009-01-07 20:27:12 +01:00
|
|
|
<input type="hidden" name="page" value="<%=@page%>"/>
|
|
|
|
|
|
|
|
<a href='#' onclick='toggle_msg_operations(true);'>
|
2011-03-31 22:59:22 +02:00
|
|
|
<%=t :operations%><img id='img_msgops' alt='open' src='../images/list_<%=@ops_img_src%>.gif'/>
|
2009-01-07 20:27:12 +01:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<div id="msgops" class='<%=@ops_class%>'>
|
2009-09-01 14:23:05 +02:00
|
|
|
<h4><%= t :operations_txt %></h4>
|
2009-01-07 20:27:12 +01:00
|
|
|
<span id="opch">
|
2009-09-01 14:23:05 +02:00
|
|
|
<%= submit_tag(t(:delete), :name=>'op')%>
|
|
|
|
<%= submit_tag(t(:copy), :name=> 'op')%>
|
|
|
|
<%= submit_tag(t(:move), :name=>'op')%>
|
|
|
|
<%= submit_tag(t(:mark_read), :name=>'op')%>
|
|
|
|
<%= submit_tag(t(:mark_unread), :name=>'op')%>
|
2009-01-07 20:27:12 +01:00
|
|
|
</span><br/>
|
|
|
|
<span id="destp">
|
2009-09-01 14:23:05 +02:00
|
|
|
<%= t :destination_txt %>
|
2009-01-07 20:27:12 +01:00
|
|
|
<select name="cpdest" size="1">
|
|
|
|
<% for folder in @folders %>
|
|
|
|
<option value="<%=folder.name%>"><%=folder.name%></option>
|
|
|
|
<% end %>
|
|
|
|
</select>
|
|
|
|
</span>
|
|
|
|
</div>
|
2009-01-07 21:37:17 +01:00
|
|
|
<%= render :partial => "search" %>
|
2009-01-07 20:27:12 +01:00
|
|
|
<%= page_navigation_webmail @pages if @pages.page_count > 1 %>
|
|
|
|
<table width='98%'>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th width="1%"><input type="checkbox" name="allbox" onclick="checkAll(this.form)" style="margin: 0 0 0 4px" /></th>
|
|
|
|
<% if @folder_name == CDF::CONFIG[:mail_sent] %>
|
2011-03-29 02:59:28 +02:00
|
|
|
<th width="20%"><%= link_to(t(:to), :controller=>:webmail, :action=>:messages, :op=>'SORT', :page=>@page, :scc=>'to_flat')%></th>
|
2009-01-07 20:27:12 +01:00
|
|
|
<% else %>
|
2011-03-29 02:59:28 +02:00
|
|
|
<th width="20%"><%= link_to(t(:from), :controller=>:webmail, :action=>:messages, :op=>'SORT', :page=>@page, :scc=>'from_flat')%></th>
|
2009-01-07 20:27:12 +01:00
|
|
|
<% end%>
|
2011-03-29 02:59:28 +02:00
|
|
|
<th width='60%'><%= link_to(t(:subject), :controller=>:webmail, :action=>:messages, :op=>'SORT', :page=>@page, :scc=>'subject')%></th>
|
|
|
|
<th><%= link_to(t(:date), :controller=>:webmail, :action=>:messages, :op=>'SORT', :page=>@page, :scc=>'date')%></th>
|
|
|
|
<th><%= link_to(t(:size), :controller=>:webmail, :action=>:messages, :op=>'SORT', :page=>@page, :scc=>'size')%></th>
|
2009-01-07 20:27:12 +01:00
|
|
|
<th> </th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% for message in @messages %>
|
2009-01-07 21:37:17 +01:00
|
|
|
<%= render :partial => 'message_row', :object => message %>
|
2009-01-07 20:27:12 +01:00
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<%= page_navigation_webmail @pages if @pages.page_count > 1 %>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|