PHP Classes

File: Template/analytic/custom_field_totals.php

Recommend this page to a friend!
  Classes of kiran  >  MetaMagik  >  Template/analytic/custom_field_totals.php  >  Download  
File: Template/analytic/custom_field_totals.php
Role: Example script
Content type: text/plain
Description: Example script
Class: MetaMagik
Plugin to add custom form fields for Kanboard
Author: By
Last change:
Date: 1 year ago
Size: 995 bytes


Class file image Download
<?php if (! $is_ajax): ?>
<div class="page-header">
        <h2><?= t('Custom Field Total distribution') ?></h2>
<?php endif ?>

<?php if (empty($metrics)): ?>
<p class="alert"><?= t('Not enough data to show the graph.') ?></p>
<?php else: ?>
<?= $this->app->component('chart-project-task-distribution', array(
'metrics' => $metrics,

    <table class="table-striped">
            <th><?= t('Custom Field') ?></th>
            <th><?= t('Total Value') ?></th>
            <th><?= t('Percentage') ?></th>
        <?php foreach ($metrics as $metric): ?>
                <?= $this->text->e($metric['column_title']) ?>
                <?= $metric['nb_tasks'] ?>
                <?= n($metric['percentage']) ?>%
        <?php endforeach ?>
<?php endif ?>

For more information send a message to info at phpclasses dot org.