<% $: << File::dirname( ENV['PATH_TRANSLATED'] ) load "#{File::dirname( ENV['PATH_TRANSLATED'] )}/waste.conf" require 'waste.rb' waste = Waste::new print waste.header %> <%= @title %>(<%= waste.person %>)

<%= @title %>(<%= CGI::escapeHTML( waste.person ) %>)

[全員の<%= @sanzai %>一覧] [新しい<%= @sanzai %>を記録する] ] [ ]


<% yt = 0 waste.each_user_total do |month,total| yt += total %> <% end %>
<%= CGI::escapeHTML( waste.person ) %>の<%= waste.year %>年
<%= month %>月 <%= total.to_disp_str %><%= @currency %> <%= '*'*(total/20000) %>
Total <%= yt.to_disp_str %><%= @currency %>

<% waste.each_diary( waste.person ) do |diary| %>

<%= diary.date %> <%= CGI::escapeHTML( diary.name ) %> <% if waste.user == diary.name then %>[edit]<% end %>

<%= diary.note.make_link %>

<% diary.each_item do |item| %> <% end %>
<%= CGI::escapeHTML( item.name ) %> <%= item.price.to_disp_str %><%= @currency %> <%= item.note.make_link %>
Total<%= diary.total.to_disp_str %><%= @currency %>
<% end %>