notifications.php
2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
use common\models\User;
use frontend\models\Report;
use yii\web\View;
/**
* @var View $this
* @var Report[] $table
* @var User $user
*/
$user = \Yii::$app->user->identity;
?>
<div class="style cab_content_list">
<div class="cab_content_list-dropdown">
<div class="style table-forms tables-1">
<div class="title_forms">Звіт про загальну суму винагороди (з кількістю сповіщень)</div>
<div class="style table-forms-wrapp">
<table class="table-1" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>№<br/>п/п</td>
<td>Назва використаного твору</td>
<td>Автор музики (П.І.Б.)</td>
<td>Автор тексту (П.І.Б.)</td>
<td width="150">Тривалість звучання<br/> (год.:хвил.: сек.)<br/>0:00:00</td>
<td>Роялті, грн</td>
<td>Кількість публічних сповіщень твору</td>
<td>Загальна Тривалість звучання твору<br/>(год.:хвил.: сек.) 0:00:00</td>
</tr>
<?php
$i = 1;
foreach ($table as $row) {
?>
<tr>
<td><?=$i?></td>
<td><span class="name-songs"><?=$row->intellectualProperty->title?></span></td>
<td>-</td>
<td>-</td>
<td>—</td>
<td><?php
if ($user->isAdmin()) {
echo $row->royalty;
} else {
echo $row->royalty * $row->intellectualProperty->creativeRoles[0]->part /100;
}
?></td>
<td><?=$row->count?></td>
<td>—</td>
</tr>
<?php
$i++;
}
?>
</table>
</div>
</div>
</div>
</div>