my-index.php 1.78 KB
<?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>