Exemplo n.º 1
0
  <th>Pvm</th>
  <?php 
if ($kausi == 'pvm') {
    ?>
  <th>Laji</th>
  <th>Lisätietoja</th>
  <?php 
}
?>

  <?php 
$arr = $this->LiikenneUserArray();
$k1 = new LiikuntaUser();
foreach ($arr as $key) {
    $otsikko = '';
    if ($k1->getAttributeLabel($key)) {
        $otsikko = $k1->getAttributeLabel($key);
    }
    echo '<th>' . $otsikko . '</th>';
}
?>
  </tr>
 </thead>
  <?php 
foreach ($data as $model) {
    $return = array();
    $pvm = date("d.m.Y", strtotime($model->pvm));
    $vko = (int) date("YW", strtotime($model->pvm));
    $kk = (int) date("Ym", strtotime($model->pvm));
    echo '<tr>';
    if ($kausi == 'pvm') {