예제 #1
0
파일: addpoint.php 프로젝트: Kapodastr/grow
		<input type="hidden" name="Points[by]" value="<?php 
echo Yii::app()->my->id;
?>
">

	<?php 
$this->endWidget();
?>


<hr>

<h4>Все поинты студента</h4>

<?php 
$points = Points::model()->findAllByAttributes(array("student" => $student->id));
?>

<!-- Выведем ранее полученные поинты и бонусы -->

<table class="table">

	<?php 
foreach ($points as $point) {
    ?>

		<tr>
			<td><span class="label <?php 
    if ($point->earned > 0) {
        ?>
label-success<?php