## This file is subject to the terms and conditions defined in ## file 'LICENSE', which is part of this source code package. ## Copyright (c) 2009 SKR Farms (P) LTD. <%inherit file="/base/basic1.html"/> <%namespace name="elements" file="/component/elements.html"/> <%namespace name="forms" file="/component/forms.html"/> <%namespace name="charts" file="/component/charts.html"/> <%! page_tooltips = [ [ 'Help', """Charts are plotted for """ ], [ 'Timeline', """Log of updates done to all attachments.""" ], ] chartoptions = [ 'chart2', 'chart3', 'chart4', 'chart5' ] %> <%def name="hd_script()"> ${parent.hd_script()} <%def name="bd_body()"> <% pagebartext = "Charts & Analytics" attachs = '
' +\ 'Attachments
' % h.url_attachments addattachs = '
' +\ 'Add
' % h.url_addattachment tline = capture( elements.iconlink, h.url_attachtline, 'timeline', title="Attachment Timeline" ) %> ${elements.pagebar( pagebartext, [ attachs, addattachs ], rspans=[ tline ], tooltips=page_tooltips )}
% if c.userpanes :
% else :
% endif ${charts.selectcharts( chartoptions, 'chart2' )} ${charts.chart2( c.chart2_data, c.chart2_payld, c.chart2_fcnt )} ${charts.chart3( c.chart3_data )} ${charts.chart4( c.chart4_data, c.chart4_tags )} ${charts.chart5( c.chart5_data, c.chart5_frmdt )}
% if c.userpanes :
${elements.user_panes( c.userpanes )}
% endif
<%def name="bd_script()"> ${parent.bd_script()}