~joebordes/chive/chive_lib_upgrade

« back to all changes in this revision

Viewing changes to yii/gii/generators/crud/templates/default/_view.php

  • Committer: Joe Bordes
  • Date: 2011-08-22 18:24:26 UTC
  • Revision ID: joe@tsolucio.com-20110822182426-zrvpiuyvm20ybjki
Update yii framework 1.1.8 and associated libraries.
Update About page to reflect changes.
Basic testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * The following variables are available in this template:
 
4
 * - $this: the CrudCode object
 
5
 */
 
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
{
 
15
        if($column->isPrimaryKey)
 
16
                continue;
 
17
        if(++$count==7)
 
18
                echo "\t<?php /*\n";
 
19
        echo "\t<b><?php echo CHtml::encode(\$data->getAttributeLabel('{$column->name}')); ?>:</b>\n";
 
20
        echo "\t<?php echo CHtml::encode(\$data->{$column->name}); ?>\n\t<br />\n\n";
 
21
}
 
22
if($count>=7)
 
23
        echo "\t*/ ?>\n";
 
24
?>
 
25
 
 
26
</div>
 
 
b'\\ No newline at end of file'