File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 54
54
<label class="control-label" for="inputEmail">Database: </label>
55
55
<div class="controls">
56
56
<select name="dbIdx" id="dbIdx">
57
+ <?php if (isset ($ this ->app ->current ['dbs ' ]) && !empty ($ this ->app ->current ['dbs ' ])): ?>
57
58
<?php for ($ x =0 ; $ x < $ this ->app ->current ['max_databases ' ]; $ x ++): ?>
58
59
<?php if (!array_key_exists ($ x , $ this ->app ->current ['dbs ' ])): ?>
59
60
<option value='<?= $ x?> '>DB <?= $ x?> </option>
60
61
<?php endif ; ?>
61
- <?php endfor ; ?>
62
+ <?php endfor ; ?>
63
+ <?php endif ; ?>
62
64
</select>
63
65
</div>
64
66
</div>
Original file line number Diff line number Diff line change 8
8
</ul>
9
9
<div class="tabbable tabs-left" id="dbTabs">
10
10
<ul class="nav nav-tabs">
11
+ <?php if (isset ($ this ->app ->current ['dbs ' ]) && !empty ($ this ->app ->current ['dbs ' ])): ?>
11
12
<?php foreach ($ this ->app ->current ['dbs ' ] as $ database ): ?>
12
13
<li class="database <?= ($ database ['id ' ] == $ this ->app ->current ['database ' ] ? 'active ' :null ) ?> ">
13
14
<a href="<?= $ this ->router ->url ?> /welcome/index/<?= $ this ->app ->current ['serverId ' ] . '/ ' . $ database ['id ' ] ?> ">
14
15
<?= ($ database ['name ' ] !== null ? $ database ['name ' ] : "DB " .$ database ['id ' ]) ?>
15
16
<span class="label pull-right" title="Number of keys"><?= $ database ['keys ' ] ?> </span>
16
17
</a>
17
18
</li>
18
- <?php endforeach ; if ($ this ->app ->current ['newDB ' ]): ?>
19
+ <?php endforeach ; endif ; if ($ this ->app ->current ['newDB ' ]): ?>
19
20
<li class="database active">
20
21
<a href="<?= $ this ->router ->url ?> /welcome/index/<?= $ this ->app ->current ['serverId ' ] . '/ ' . $ this ->app ->current ['database ' ] ?> ">
21
22
<i class="icon-plus"></i> DB <?= $ this ->app ->current ['database ' ]?>
You can’t perform that action at this time.
0 commit comments