Exemple #1
0
    <td><?php 
echo CHtml::encode($model->pub_time);
?>
&nbsp;</td>
  </tr>
  <tr>
    <td>唱片公司</td>
    <td><?php 
echo CHtml::encode($model->company);
?>
&nbsp;</td>
  </tr>
  <tr>
    <td>标签</td>
    <td><?php 
$rows = ItemsTags::returnTags(ItemsTags::ALBUM_TYPE, $model->id);
echo '<pre>';
foreach ($rows as $row) {
    echo CHtml::link(CHtml::encode($row['name']), array('tag/view', 'id' => $row['id']), array('target' => '_blank')) . "&nbsp;";
}
?>
&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3"><p>专辑介绍:</p><?php 
echo $model->introduction;
?>
&nbsp;</td>
  </tr>
</table>
<h2>所有歌曲</h2>
Exemple #2
0
    <td>出生地</td>
    <td><?php 
echo CHtml::encode($model->native_place);
?>
&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2"><?php 
echo $model->intro;
?>
&nbsp;</td>
  </tr>
  <tr>
    <td>标签&nbsp;</td>
    <td><?php 
$rows = ItemsTags::returnTags(ItemsTags::ARTIST_TYPE, $model->id);
foreach ($rows as $row) {
    echo CHtml::link(CHtml::encode($row['name']), array('tag/view', 'id' => $row['id']), array('target' => '_blank')) . "&nbsp;";
}
?>
&nbsp;
    </td>
  </tr>
</table>
<h2>热门歌曲</h2>
<?php 
$dataProvider = new CActiveDataProvider('Music', array('criteria' => array('condition' => 't.proved=' . Music::STATUS_PROVED . ' AND t.artist_id=' . $model->id, 'with' => array('album')), 'pagination' => array('pageSize' => 8)));
$this->widget('zii.widgets.CListView', array('dataProvider' => $dataProvider, 'itemView' => '_music', 'summaryText' => ''));
?>
<h2>所有专辑</h2>
<?php