Qiang Xue
11 years ago
4 changed files with 70 additions and 63 deletions
@ -0,0 +1,24 @@ |
|||||||
|
<?php |
||||||
|
use yii\helpers\Html; |
||||||
|
|
||||||
|
if (empty($values)): ?> |
||||||
|
<h3><?php echo $caption; ?></h3>
|
||||||
|
<p>Empty.</p> |
||||||
|
<?php else: ?> |
||||||
|
<h3><?php echo $caption; ?></h3>
|
||||||
|
<table class="table table-condensed table-bordered table-striped table-hover" style="table-layout: fixed;"> |
||||||
|
<thead> |
||||||
|
<tr> |
||||||
|
<th style="width: 200px;">Name</th> |
||||||
|
<th>Value</th> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
<?php foreach($values as $name => $value): ?> |
||||||
|
<tr> |
||||||
|
<th style="width: 200px;"><?php echo Html::encode($name); ?></th>
|
||||||
|
<td style="overflow:auto"><?php echo Html::encode($value); ?></td>
|
||||||
|
</tr> |
||||||
|
<?php endforeach; ?> |
||||||
|
</tbody> |
||||||
|
</table> |
||||||
|
<?php endif; ?> |
@ -0,0 +1,14 @@ |
|||||||
|
<?php
|
||||||
|
use yii\helpers\Html; |
||||||
|
?> |
||||||
|
<h1>Configuration</h1> |
||||||
|
<?php |
||||||
|
echo $this->context->renderPartial('panels/config/_data_table',[ 'caption' => 'Application Configuration', 'values' => $app]); |
||||||
|
|
||||||
|
if (!empty($extensions)) { |
||||||
|
echo $this->context->renderPartial('panels/config/_data_table',[ 'caption' => 'Installed Extensions', 'values' => $extensions]); |
||||||
|
} |
||||||
|
|
||||||
|
echo $this->context->renderPartial('panels/config/_data_table',[ 'caption' => 'PHP Configuration', 'values' => $php]); |
||||||
|
?> |
||||||
|
<div><?php echo Html::a('Show phpinfo »', ['phpinfo'], ['class' => 'btn btn-primary']); ?></div>
|
@ -0,0 +1,9 @@ |
|||||||
|
<div class="yii-debug-toolbar-block"> |
||||||
|
<a href="<?php echo $panel->getUrl(); ?>">
|
||||||
|
<img width="29" height="30" alt="" src="<?php echo $panel->getYiiLogo();?>">
|
||||||
|
<span><?php echo $data['application']['yii'];?></span>
|
||||||
|
</a> |
||||||
|
</div> |
||||||
|
<div class="yii-debug-toolbar-block"> |
||||||
|
<a href="<?php echo $this->context->createUrl('phpinfo');?>" title="Show phpinfo()">PHP <?php echo $data['php']['version'];?></a>
|
||||||
|
</div> |
Loading…
Reference in new issue