|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | <table id= "" class="owa_dataGrid<?php //echo $class; ?>" summary=""> <!-- <CAPTION>Result set for <?php echo $rs->timePeriod['label'];?>.</CAPTION> --> <thead> <tr> <? if ($rs->resultsRows):?> <?php foreach ($rs->resultsRows[0] as $k => $v):?> <th class="<?php if($v['result_type'] === 'dimension') { echo 'dimensionColumn';} else { echo 'metricColumn';}?>"><?php echo $v['label'];?></th> <?php endforeach;?> <?php endif;?> </tr> </thead> <tfoot> </tfoot> <tbody> <? if ($rs->resultsRows):?> <?php foreach ($rs->resultsRows as $row):?> <tr> <?php foreach ($row as $k => $v):?> <td class="<?php if($v['result_type'] === 'dimension') { echo 'dimensionColumn';} else { echo 'metricColumn';}?>"> <?php if (array_key_exists('link', $v)):?> <a href="<?php echo $v['link'];?>"><?php echo $v['value'];?></a> <?php else: ?> <?php echo $v['value'];?> <?php endif;?> </td> <?php endforeach;?> </tr> <?php endforeach;?> <?php endif;?> </tbody> </table> |