123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- $featuremap = $variables['node']->featuremap;
- $options = array('return_array' => 1);
- $featuremap = chado_expand_var($featuremap, 'table', 'featuremapprop', $options);
- $properties = $featuremap->featuremapprop;
- if(count($properties) > 0){
-
-
-
- $headers = array('Property Name', 'Value');
-
-
-
-
- $rows = array();
- foreach ($properties as $property){
- $property = chado_expand_var($property,'field','featuremapprop.value');
- $rows[] = array(
- ucfirst(preg_replace('/_/', ' ', $property->type_id->name)),
- urldecode($property->value)
- );
- }
-
-
-
-
- $table = array(
- 'header' => $headers,
- 'rows' => $rows,
- 'attributes' => array(
- 'id' => 'tripal_featuremap-table-properties',
- 'class' => 'tripal-data-table'
- ),
- 'sticky' => FALSE,
- 'caption' => '',
- 'colgroups' => array(),
- 'empty' => '',
- );
-
-
- print theme_table($table);
- }
|