HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
_view.php
Go to the documentation of this file.
1 <?php
6 ?>
7 <div class="view">
8 
9  <?php
10  echo "\t<b><?php echo CHtml::encode(\$data->getAttributeLabel('{$this->tableSchema->primaryKey}')); ?>:</b>\n";
11  echo "\t<?php echo CHtml::link(CHtml::encode(\$data->{$this->tableSchema->primaryKey}),array('view','id'=>\$data->{$this->tableSchema->primaryKey})); ?>\n\t<br />\n\n";
12  $count = 0;
13  foreach ($this->tableSchema->columns as $column) {
14  if ($column->isPrimaryKey) {
15  continue;
16  }
17  if (++$count == 7) {
18  echo "\t<?php /*\n";
19  }
20  echo "\t<b><?php echo CHtml::encode(\$data->getAttributeLabel('{$column->name}')); ?>:</b>\n";
21  echo "\t<?php echo CHtml::encode(\$data->{$column->name}); ?>\n\t<br />\n\n";
22  }
23  if ($count >= 7) {
24  echo "\t*/ ?>\n";
25  }
26  ?>
27 
28 </div>