14 lines
365 B
PHP
14 lines
365 B
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<div id="gMPTTTree">
|
|
<h2>
|
|
<?= t("MPTT Tree Visuallizer") ?>
|
|
</h2>
|
|
<div id="gMPTT">
|
|
<? if (empty($url)): ?>
|
|
<pre><?= $tree ?></pre>
|
|
<? else: ?>
|
|
<object type="image/svg+xml" data="<?= $url ?>" style="width: 100%" ><pre><?= $tree ?></pre></object>
|
|
<? endif ?>
|
|
</div>
|
|
</div>
|