my-index.php
1.78 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
<?php
use yii\helpers\Url;
use domain\manufacturer\ManufacturerRepository;
$this->title = '修改资料';
$this->params['breadcrumbs'][] = '账号设置';
$this->params['breadcrumbs'][] = $this->title;
?>
<form action="<?php echo Url::toRoute(['/my/default/do-update']); ?>" name="userForm" id="userForm" method="post">
<div class="panel panel-default">
<div class="panel-body">
<table class="panel-box-tb">
<thead>
<tr>
<th width="150"></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td class="text-right">
<b>厂商名称:</b>
</td>
<td>
<?= $model->profile ? $model->profile->realname : '' ?>
</td>
</tr>
<tr>
<td class="text-right">
<b>账号:</b>
</td>
<td>
<?= $model->username ?>
</td>
</tr>
<tr>
<td class="text-right">
<b>密码:</b>
</td>
<td>
<?= $model->password ? ManufacturerRepository::substr_cut($model->password) : '' ?>
</td>
</tr>
<tr>
<td></td>
<td>
<a class="btn btn-primary" href="<?php echo Url::toRoute(['/my/default/password']); ?>">修改密码</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</form>