Exemple #1
0
    <div style="float: left; width: 330px; padding-top: 10px">
        <?php 
$this->beginWidget('zii.widgets.CPortlet', array('title' => "<i class='icon-share'></i>" . Yii::t('myBiobank', 'samplesReceptionActivity') . " -  {$model->identifier}"));
$this->widget('application.widgets.charting.CBarsChartWidget', array('id' => 'columnchart-count-month', 'theme' => 'Distinctive', 'title' => '', 'data' => StatTools::getCountReceptionByMonthAndBiobank($model->id), 'width' => 310, 'heigth' => 230, 'xAxisRotation' => 0));
$this->endWidget();
?>
    </div>

    <div
        style="float: left;
        width: 330px;
        padding-left: 10px;
        padding-top: 10px">
        <?php 
$this->beginWidget('zii.widgets.CPortlet', array('title' => "<i class = 'icon-share'></i>" . Yii::t('myBiobank', 'filesReceptionActivity') . " - {$model->identifier}"));
$this->widget('application.widgets.charting.CBarsChartWidget', array('id' => 'columnchart-filescount-month', 'theme' => 'Distinctive', 'title' => '', 'data' => StatTools::getCountFilesReceptionByMonthAndBiobank($model->id), 'width' => 310, 'heigth' => 230, 'xAxisRotation' => 0));
$this->endWidget();
?>


    </div>

    <div style="float:left;
         width:330px;
         padding-top: 10px;
         ">

        <?php 
$stats = BiobankStats::model()->findByAttributes(array('biobank_id' => $model->id), array('$sort' => array('date' => -1)));
if ($stats != null) {
    $complete = $stats->globalRate;