<th><?php echo lang('informedconsent'); ?> </th> <td><?php echo $experiment->informedconsent . ' ' . anchor(array('experiment/download_attachment', $experiment->id, 'informedconsent'), lang('download')); ?> </td> </tr> <tr> <th><?php echo lang('experiment_color'); ?> </th> <td><?php echo stripslashes(get_colored_label($experiment)); ?> </td> </tr> </table> </div> <?php if ($nr_participations > 0) { ?> <div id="chart_div" style="width: 50%; height: 300px; float: right; margin-bottom: 10px;"></div> <?php echo heading(lang('month_overview'), 2); ?> <table class="pure-table">
/** * Generates the content of the legend tooltip */ private function generate_legend($exps = NULL, $title = NULL) { if (!$exps) { $exps = $this->experimentModel->get_all_experiments(); } if (!$title) { $title = heading(lang('experiment_color'), 3); } $colors = ''; foreach ($exps as $e) { $colors .= get_colored_label($e); } return $title . $colors; }