cabinet.php
13 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<?php
use frontend\assets\CabinetAsset;
use yii\helpers\Html;
use yii\widgets\Menu;
/**
* @var \yii\web\View $this
* @var string $content
*/
CabinetAsset::register($this);
$this->beginContent('@frontend/views/layouts/main.php');
?>
<div class="section-box-header">
<?php
echo Html::a(
Html::img(
'/images/cabinet/logo.png',
[
'width' => 129,
'height' => 52,
]
),
[ 'cabinet/index' ],
[
'class' => 'logo-cab',
]
)
?>
<div class="cabinet_header-title"><span>Система обліку використання інтелектуальної власності</span></div>
<div class="checkbox-header-cabinet">
<form action="">
<div class="custom-buttons-slide">
<a href="#">Автор</a>
<input type="checkbox" class="custom-check-slide" name="q2">
<a href="#">Видавець</a>
</div>
</form>
<?php
$js = <<<EOT
var widthCheckSlider = ($('.checkbox-header-cabinet')
.width()) / 2
$('.checkbox-header-cabinet')
.css({marginLeft: -widthCheckSlider})
$(".custom-check-slide")
.iosCheckbox();
$('.custom-buttons-slide a')
.click(
function(e) {
e.preventDefault();
var label = $(this)
.siblings('.check-slide');
var closerInput = $(this)
.siblings('input[type="checkbox"]');
if (label.hasClass('checked')) {
label.removeClass('checked');
closerInput.prop('checked', false);
} else {
label.addClass('checked');
closerInput.prop('checked', true);
}
}
);
EOT;
$this->registerJs($js);
?>
</div>
<div class="head-wr-login">
<a href="#" class="btn_mails"><span>23</span></a>
<div class="name-wrapp-login">
<span class="name_" style="background: url('/images/cabinet/ico/ico-5.png')0 50% no-repeat">Дмитро (фізична особа)</span>
<div id="hidden_list_head" class="_off">
<ul>
<li><span class="s_">Киев</span></li>
</ul>
</div>
</div>
</div>
</div>
<div class="section-box-content">
<div class="sidebar-cab">
<?php
echo Menu::widget(
[
'options' => [
'class' => 'list-cab',
],
'encodeLabels' => false,
'activeCssClass' => 'active-li',
'items' => [
[
'label' => Html::tag('span', '', [
'style' => "background: url('/images/cabinet/icon-menu/ico-1.png') 50% 50% no-repeat",
]).Html::tag('span', '', [
'class' => 'act_bg',
'style' => "background: url('/images/cabinet/icon-menu/ico-1-act.png') 50% 50% no-repeat",
]).'Особисті дані',
'url' => ['cabinet/index'],
],
[
'label' => Html::tag('span', '', [
'style' => "background: url('/images/cabinet/icon-menu/ico-2.png') 50% 50% no-repeat",
]).Html::tag('span', '', [
'class' => 'act_bg',
'style' => "background: url('/images/cabinet/icon-menu/ico-2-act.png') 50% 50% no-repeat",
]).'Мої соавтори',
'url' => ['cabinet/authors'],
'options' => [
'class' => 'disabled',
],
],
[
'label' => Html::tag('span', '', [
'style' => "background: url('/images/cabinet/icon-menu/ico-3.png') 50% 50% no-repeat",
]).Html::tag('span', '', [
'class' => 'act_bg',
'style' => "background: url('/images/cabinet/icon-menu/ico-3-act.png') 50% 50% no-repeat",
]).'Рахунки',
'url' => ['cabinet/bills'],
'options' => [
'class' => 'disabled',
],
],
[
'label' => Html::tag('span', '', [
'style' => "background: url('/images/cabinet/icon-menu/ico-4.png') 50% 50% no-repeat",
]).Html::tag('span', '', [
'class' => 'act_bg',
'style' => "background: url('/images/cabinet/icon-menu/ico-4-act.png') 50% 50% no-repeat",
]).'Адреси',
'url' => ['cabinet/addresses'],
'options' => [
'class' => 'disabled',
],
],
[
'label' => Html::tag('span', '', [
'style' => "background: url('/images/cabinet/icon-menu/ico-5.png') 50% 50% no-repeat",
]).Html::tag('span', '', [
'class' => 'act_bg',
'style' => "background: url('/images/cabinet/icon-menu/ico-5-act.png') 50% 50% no-repeat",
]).'Додадково',
'url' => ['cabinet/additional'],
'options' => [
'class' => 'disabled',
],
],
[
'label' => Html::tag('span', '', [
'style' => "background: url('/images/cabinet/icon-menu/ico-6.png') 50% 50% no-repeat",
]).Html::tag('span', '', [
'class' => 'act_bg',
'style' => "background: url('/images/cabinet/icon-menu/ico-6-act.png') 50% 50% no-repeat",
]).'Каталог ОІВ',
'url' => ['cabinet/properties'],
'items' => [
[
'label' => Html::tag('span', '', [
'style' => "background: url('/images/cabinet/icon-menu/ico-6-1.png') 50% 50% no-repeat",
]).Html::tag('span', '', [
'class' => 'act_bg',
'style' => "background: url('/images/cabinet/icon-menu/ico-6-1-act.png') 50% 50% no-repeat",
]).'продаж ОІВ',
'url' => ['cabinet/sales'],
'options' => [
'class' => 'second-list',
],
],
[
'label' => Html::tag('span', '', [
'style' => "background: url('/images/cabinet/icon-menu/ico-6-2.png') 50% 50% no-repeat",
]).Html::tag('span', '', [
'class' => 'act_bg',
'style' => "background: url('/images/cabinet/icon-menu/ico-6-2-act.png') 50% 50% no-repeat",
]).'список ОІВ',
'url' => ['cabinet/list'],
'options' => [
'class' => 'second-list',
],
]
]
],
[
'label' => Html::tag('span', '', [
'style' => "background: url('/images/cabinet/icon-menu/ico-7.png') 50% 50% no-repeat",
]).Html::tag('span', '', [
'class' => 'act_bg',
'style' => "background: url('/images/cabinet/icon-menu/ico-7-act.png') 50% 50% no-repeat",
]).'Мої надходження',
'url' => ['cabinet/arrivals'],
],
[
'label' => Html::tag('span', '', [
'style' => "background: url('/images/cabinet/icon-menu/ico-8.png') 50% 50% no-repeat",
]).Html::tag('span', '', [
'class' => 'act_bg',
'style' => "background: url('/images/cabinet/icon-menu/ico-8-act.png') 50% 50% no-repeat",
]).'Звіти',
'url' => ['cabinet/reports'],
'items' => [
[
'label' => Html::tag('span', '', [
'style' => "background: url('/images/cabinet/icon-menu/ico-8-1.png') 50% 50% no-repeat",
]).Html::tag('span', '', [
'class' => 'act_bg',
'style' => "background: url('/images/cabinet/icon-menu/ico-8-1-act.png') 50% 50% no-repeat",
]).'звіт з кількістью сповіщень',
'url' => ['cabinet/notifications'],
'options' => [
'class' => 'second-list',
],
],
[
'label' => Html::tag('span', '', [
'style' => "background: url('/images/cabinet/icon-menu/ico-8-2.png') 50% 50% no-repeat",
]).Html::tag('span', '', [
'class' => 'act_bg',
'style' => "background: url('/images/cabinet/icon-menu/ico-8-2-act.png') 50% 50% no-repeat",
]).'звіт у розрізі користувачів',
'url' => ['cabinet/users'],
'options' => [
'class' => 'second-list',
],
]
]
],
[
'label' => Html::tag('span', '', [
'style' => "background: url('/images/cabinet/icon-menu/ico-9.png') 50% 50% no-repeat",
]).Html::tag('span', '', [
'class' => 'act_bg',
'style' => "background: url('/images/cabinet/icon-menu/ico-9-act.png') 50% 50% no-repeat",
]).'допомога',
'url' => ['cabinet/help'],
'options' => [
'class' => 'disabled',
],
],
],
]
);
?>
</div>
<div class="content-forms">
<?php
echo $content;
?>
</div>
</div>
<div class="section-box-footer">
<a class="btn_create_footer" href="#">Створити</a>
<a class="btn_remove_footer" href="#">Видалити</a>
</div>
<?php
$this->endContent();
?>