mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-18 14:20:08 +00:00
first commit
This commit is contained in:
25
tpl/dev/debug_panel/var_panel.php
Executable file
25
tpl/dev/debug_panel/var_panel.php
Executable file
@@ -0,0 +1,25 @@
|
||||
|
||||
<a href="javascript:DebugPanel_Toggle('<?= $link?>')"><?= $head?> <span>(<?= count($arr)?>)</span></a>
|
||||
|
||||
<div id="<?= $link?>" style="display: none">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>key</th>
|
||||
<th>value</th>
|
||||
</tr>
|
||||
<?php if (count($arr)):?>
|
||||
<?php $i = 0; foreach ($arr as $k => $v):?>
|
||||
<tr>
|
||||
<td class="num"><?= ++$i?></td>
|
||||
<td><?= $k?></td>
|
||||
<td><?= VarDump($v)?></td>
|
||||
</tr>
|
||||
<?php endforeach?>
|
||||
<?php else:?>
|
||||
<tr>
|
||||
<td colspan="3" class="center">Empty</td>
|
||||
</tr>
|
||||
<?php endif?>
|
||||
</table>
|
||||
</div>
|
||||
Reference in New Issue
Block a user