Пример #1
0
<div class="movie-item">
  <?php 
echo chtml::link(chtml::image($data->getcover(), $data->get('name'), array('class' => 'left')), array('movie/view', 'url_key' => $data->url_key));
?>
  <h3><?php 
echo $data->get('name');
?>
</h3>
  <?php 
echo $data->getReleaseYear();
?>
<br />
  <br />
  <ul>
    <li>Views: <?php 
echo $data->views;
?>
</li>
    <li>Comments: <?php 
echo count($data->comments);
?>
</li>
    <li>My Rating: <?php 
echo ($rate = $data->getMyRating()) ? $rate : 'unseen';
?>
</li>
  </ul>
</div>
Пример #2
0
	<?php 
}
?>

	<?php 
echo $form->fileFieldRow($model->certification, 'cert_image', array('class' => 'span5', 'maxlength' => 100, 'hint' => 'Note: Certification Logo or Image', 'placeholder' => 'Logo or Image'));
?>
	
	<?php 
if (!$model->certification->isNewRecord) {
    ?>

	<div class="control-group ">
		<div class="controls"><span class="label label-info"><i class="icon-info"></i> This is the current image.</span><br/><br/><a class="thumbnail"><?php 
    echo chtml::image($model->certification->getCertImageUrl(), 'certification image');
    ?>
</a></div>
	</div>
	<?php 
}
?>

	<div class="form-actions">
		<?php 
$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'label' => $model->certification->isNewRecord ? 'Create' : 'Save'));
?>
	</div>

<?php 
$this->endWidget();