public function printFilesInCatByMonth() { ?> <fieldset><legend>By month</legend> <script type="text/javascript"> <?php echo MonthBarGraph($this->filesInCatByMonth, 'Count', 'Upload count by month', 'bar_div_b'); ?> </script> <div id="bar_div_b" style="float:right"></div> <p><strong>Total : </strong><?php echo $this->catfiles; ?> files.<p> </fieldset> <?php }
public function PrintUploadsSummary() { $str_descsize = ''; $str_desccount = ''; foreach ($this->array_total_size as $type => $somme) { $str_descsize .= '<p><strong>' . $type . ' :</strong> ' . octets($somme) . '</p>'; } foreach ($this->array_total_count as $type => $compte) { $str_desccount .= '<p><strong>' . $type . ' :</strong> ' . $compte . ' files.</p>'; } ?> <fieldset><legend>Size</legend> <script type="text/javascript"> <?php echo PieChart($this->array_total_size, 'Size', 'Size of file types', 'chart_div_a'); ?> </script> <div id="chart_div_a" style="float:right"></div> <?php echo $str_descsize; ?> <p><strong>Total : </strong><?php echo octets($this->user_uploadsize); ?> <p> </fieldset> <fieldset><legend>Count</legend> <script type="text/javascript"> <?php echo PieChart($this->array_total_count, 'Count', 'Count of file types', 'chart_div_b'); ?> <div id="chart_div_b" style="float:right"></div> <?php echo $str_desccount; ?> <p><strong>Total : </strong><?php echo $this->user_uploadcount; ?> files.<p> </fieldset> <fieldset><legend>Month size</legend> <script type="text/javascript"> <?php echo MonthBarGraph($this->array_month_size, 'Size', 'Upload size by month for ' . $this->user_name, 'bar_div_a'); ?> </script> <div id="bar_div_a" style="float:right"></div> <p><strong>Total : </strong><?php echo octets($this->user_uploadsize); ?> <p> </fieldset> <fieldset><legend>Month count</legend> <script type="text/javascript"> <?php echo MonthBarGraph($this->array_month_count, 'Count', 'Upload count by month for ' . $this->user_name, 'bar_div_b'); ?> </script> <div id="bar_div_b" style="float:right"></div> <p><strong>Total : </strong><?php echo $this->user_uploadcount; ?> files.<p> </fieldset> <?php }