<?php
use yii\helpers\Url;
use common\models\User;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use qcbase\models\Version;
use qcbase\assets\MainAsset;

/* @var $this yii\web\View */
$version = Version::VERSION;

$this->registerJsFile('http://auth.u-bo.cn/check-version.php?version=' . $version, ['depends' => [MainAsset::className()]]);
?>

<?php $form = ActiveForm::begin([
	'id' => 'main-form',
	'fieldConfig' => [
		'options' => ['tag' => 'tr'],
		'template' => "<th width='120'>{label}</th><td>{input}{hint}{error}</td>",
	]
]); ?>

	<div class="h_a">个人信息</div>
	<div class="table_full">
		<table width="100%">
               <col class="th" />
		<col width="400" />
		<col />
            <?php foreach ($user as $key => $item): ?>
         <tr>
            <th><?php echo $key;?></th>
            <td>
                <?php echo $item;?>
            </td>
        </tr>      
        <?php endforeach; ?>
            
		</table>
	</div>
    
<div class="h_a">授权信息</div>
	<div class="table_full">
		<table width="100%">
              <col class="th" />
		<col width="400" />
		<col />
            <?php foreach ($copyright as $key => $item): ?>
         <tr>
            <th><?php echo $key;?></th>
            <td <?= $key == '版本号' ? 'id = "version-td"' : '' ?>>
                <?php echo $item;?>
            </td>
        </tr>      
        <?php endforeach; ?>
    
		</table>
	</div>
<div class="h_a">开发团队</div>
	<div class="table_full">
		<table width="100%">
                   <col class="th" />
		<col width="400" />
		<col />
            <?php foreach ($office as $key => $item): ?>
         <tr>
            <th><?php echo $key;?></th>
            <td>
                <?php echo $item;?>
            </td>
        </tr>      
        <?php endforeach; ?>
		</table>
	</div>
<?php ActiveForm::end(); ?>
