<%= render "layouts/portlet-config" %> <%= render "layouts/theme-panel" %> <% if flash[:error] %>
× <%= flash[:error] %>
<% end %> <%= render "layouts/breadcrumbs" %>
 
<%= form_tag({:action=>'create'} ,:multipart=>true,:id=>'myForms' ) do %>
Expense No
File ID[*]
Employee Name [*]
Expense Dt.[*]
Place of survey
Type of Survey
Type of Trip
Type of Expense
Payment Mode
Expense Amount
<% myfilesid = '' fl = 1 c1 = 0; if @FileNomb!=nil myfilesid = @FileNomb end obfile = attached_survey_doc(myfilesid) if obfile!=nil && obfile.length >0 obfile.each do |fila| %> <% times = fila.created_at.to_s.split(" ") filsext = Rails.root.join "public", "images", "fsrfile",fila.fat_attachment.to_s if File.exist?(filsext) %> <% else %> <% end %> <% fl +=1 c1 +=1 end end %>
<%=fila.fat_attachment%> <%=formatted_date(fila.created_at)%> <%=times[1]%><%=fila.fat_attachment%> <%=formatted_date(fila.created_at)%> <%=times[1]%> Delete 
Delete Add More Files

 
 
SL.NO. File No Suveyor Name Expense Type Type of Trip Amount Action
1 001 Mr XYZ Travelling Local Rs 1000 -
<% end %>
<%=render "layouts/popupforms"%>