@@ -1,7 +1,7 @@ |
||
1 | 1 | <div class="input-group"> |
2 | 2 | <select class="form-control" id="adminer-dbname-select"> |
3 | 3 | <option value=""></option> |
4 | -<?php foreach($this->databases as $database): ?> |
|
4 | +<?php foreach ($this->databases as $database): ?> |
|
5 | 5 | <option value="<?php echo $database ?>"><?php echo $database ?></option> |
6 | 6 | <?php endforeach ?> |
7 | 7 | </select> |
@@ -14,22 +14,22 @@ discard block |
||
14 | 14 | </button> |
15 | 15 | </div> |
16 | 16 | </div> |
17 | -<?php $i = 0; foreach($this->options['values'] as $value): ?> |
|
17 | +<?php $i = 0; foreach ($this->options['values'] as $value): ?> |
|
18 | 18 | <div class="form-group" id="<?php echo $this->formId ?>-item-<?php echo $i ?>"> |
19 | 19 | <div class="col-md-4"> |
20 | 20 | <select name="where[<?php echo $i ?>][col]" class="form-control"> |
21 | - <option value="" <?php if($value['col'] == ''): ?>selected<?php |
|
21 | + <option value="" <?php if ($value['col'] == ''): ?>selected<?php |
|
22 | 22 | endif ?>>(<?php echo $this->trans->lang('anywhere') ?>)</option> |
23 | -<?php foreach($this->options['columns'] as $column): ?> |
|
24 | - <option <?php if($value['col'] == $column): ?>selected<?php |
|
23 | +<?php foreach ($this->options['columns'] as $column): ?> |
|
24 | + <option <?php if ($value['col'] == $column): ?>selected<?php |
|
25 | 25 | endif ?>><?php echo $column ?></option> |
26 | 26 | <?php endforeach ?> |
27 | 27 | </select> |
28 | 28 | </div> |
29 | 29 | <div class="col-md-2"> |
30 | 30 | <select name="where[<?php echo $i ?>][op]" class="form-control"> |
31 | -<?php foreach($this->options['operators'] as $operator): ?> |
|
32 | - <option <?php if($value['op'] == $operator): ?>selected<?php |
|
31 | +<?php foreach ($this->options['operators'] as $operator): ?> |
|
32 | + <option <?php if ($value['op'] == $operator): ?>selected<?php |
|
33 | 33 | endif ?>><?php echo $operator ?></option> |
34 | 34 | <?php endforeach ?> |
35 | 35 | </select> |
@@ -51,14 +51,14 @@ discard block |
||
51 | 51 | <div class="col-md-4"> |
52 | 52 | <select name="where[__index__][col]" class="form-control"> |
53 | 53 | <option value="" selected>(<?php echo $this->trans->lang('anywhere') ?>)</option> |
54 | -<?php foreach($this->options['columns'] as $column): ?> |
|
54 | +<?php foreach ($this->options['columns'] as $column): ?> |
|
55 | 55 | <option><?php echo $column ?></option> |
56 | 56 | <?php endforeach ?> |
57 | 57 | </select> |
58 | 58 | </div> |
59 | 59 | <div class="col-md-2"> |
60 | 60 | <select name="where[__index__][op]" class="form-control"> |
61 | -<?php foreach($this->options['operators'] as $operator): ?> |
|
61 | +<?php foreach ($this->options['operators'] as $operator): ?> |
|
62 | 62 | <option><?php echo $operator ?></option> |
63 | 63 | <?php endforeach ?> |
64 | 64 | </select> |
@@ -14,12 +14,12 @@ discard block |
||
14 | 14 | </button> |
15 | 15 | </div> |
16 | 16 | </div> |
17 | -<?php $i = 0; foreach($this->options['values'] as $value): ?> |
|
17 | +<?php $i = 0; foreach ($this->options['values'] as $value): ?> |
|
18 | 18 | <div class="form-group" id="<?php echo $this->formId ?>-item-<?php echo $i ?>"> |
19 | 19 | <div class="col-md-6"> |
20 | 20 | <select name="order[<?php echo $i ?>]" class="form-control"> |
21 | -<?php foreach($this->options['columns'] as $column): ?> |
|
22 | - <option <?php if($value['col'] == $column): ?>selected<?php |
|
21 | +<?php foreach ($this->options['columns'] as $column): ?> |
|
22 | + <option <?php if ($value['col'] == $column): ?>selected<?php |
|
23 | 23 | endif ?>><?php echo $column ?></option> |
24 | 24 | <?php endforeach ?> |
25 | 25 | </select> |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | <div class="input-group"> |
29 | 29 | <span class="input-group-addon"> |
30 | 30 | <input type="checkbox" name="desc[<?php echo $i ?>]"<?php |
31 | - if($value['desc']): ?> checked<?php endif ?> value="1" /> |
|
31 | + if ($value['desc']): ?> checked<?php endif ?> value="1" /> |
|
32 | 32 | </span> |
33 | 33 | <label for="desc[<?php echo $i ?>]" class="form-control"><?php |
34 | 34 | echo $this->trans->lang('descending') ?></label> |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | <div class="form-group" id="<?php echo $this->formId ?>-item-__index__"> |
47 | 47 | <div class="col-md-6"> |
48 | 48 | <select name="order[__index__]" class="form-control"> |
49 | -<?php foreach($this->options['columns'] as $column): ?> |
|
49 | +<?php foreach ($this->options['columns'] as $column): ?> |
|
50 | 50 | <option><?php echo $column ?></option> |
51 | 51 | <?php endforeach ?> |
52 | 52 | </select> |
@@ -1,13 +1,13 @@ discard block |
||
1 | 1 | <table class="table table-bordered"> |
2 | 2 | <thead> |
3 | 3 | <tr> |
4 | -<?php foreach($this->headers as $header): ?> |
|
5 | - <th><?php if(is_array($header)) echo $header['key'] ?></th> |
|
4 | +<?php foreach ($this->headers as $header): ?> |
|
5 | + <th><?php if (is_array($header)) echo $header['key'] ?></th> |
|
6 | 6 | <?php endforeach ?> |
7 | 7 | </tr> |
8 | 8 | </thead> |
9 | 9 | <tbody> |
10 | -<?php $rowId = 0; foreach($this->rows as $row): ?> |
|
10 | +<?php $rowId = 0; foreach ($this->rows as $row): ?> |
|
11 | 11 | <tr> |
12 | 12 | <th> |
13 | 13 | <div class="btn-group" role="group" data-row-id="<?php echo $rowId++ ?>"> |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | echo $this->btnDeleteRowClass ?>"><span class="glyphicon glyphicon-remove"></span></button> |
18 | 18 | </div> |
19 | 19 | </th> |
20 | -<?php foreach($row['cols'] as $col): ?> |
|
20 | +<?php foreach ($row['cols'] as $col): ?> |
|
21 | 21 | <td><?php echo $col['value'] ?></td> |
22 | 22 | <?php endforeach ?> |
23 | 23 | </tr> |
@@ -2,12 +2,15 @@ |
||
2 | 2 | <thead> |
3 | 3 | <tr> |
4 | 4 | <?php foreach($this->headers as $header): ?> |
5 | - <th><?php if(is_array($header)) echo $header['key'] ?></th> |
|
5 | + <th><?php if(is_array($header)) { |
|
6 | + echo $header['key'] ?></th> |
|
6 | 7 | <?php endforeach ?> |
7 | 8 | </tr> |
8 | 9 | </thead> |
9 | 10 | <tbody> |
10 | -<?php $rowId = 0; foreach($this->rows as $row): ?> |
|
11 | +<?php $rowId = 0; |
|
12 | +} |
|
13 | +foreach($this->rows as $row): ?> |
|
11 | 14 | <tr> |
12 | 15 | <th> |
13 | 16 | <div class="btn-group" role="group" data-row-id="<?php echo $rowId++ ?>"> |
@@ -14,20 +14,20 @@ discard block |
||
14 | 14 | </button> |
15 | 15 | </div> |
16 | 16 | </div> |
17 | -<?php $i = 0; foreach($this->options['values'] as $value): ?> |
|
17 | +<?php $i = 0; foreach ($this->options['values'] as $value): ?> |
|
18 | 18 | <div class="form-group" id="<?php echo $this->formId ?>-item-<?php echo $i ?>"> |
19 | 19 | <div class="col-md-6"> |
20 | 20 | <select name="columns[<?php echo $i ?>][fun]" class="form-control"> |
21 | - <option value="" <?php if($value['fun'] == ''): ?>selected<?php endif ?>></option> |
|
21 | + <option value="" <?php if ($value['fun'] == ''): ?>selected<?php endif ?>></option> |
|
22 | 22 | <optgroup label="<?php echo $this->trans->lang('Functions') ?>"> |
23 | -<?php foreach($this->options['functions'] as $function): ?> |
|
24 | - <option <?php if($value['fun'] == $function): ?>selected<?php |
|
23 | +<?php foreach ($this->options['functions'] as $function): ?> |
|
24 | + <option <?php if ($value['fun'] == $function): ?>selected<?php |
|
25 | 25 | endif ?>><?php echo $function ?></option> |
26 | 26 | <?php endforeach ?> |
27 | 27 | </optgroup> |
28 | 28 | <optgroup label="<?php echo $this->trans->lang('Aggregation') ?>"> |
29 | -<?php foreach($this->options['grouping'] as $grouping): ?> |
|
30 | - <option <?php if($value['fun'] == $grouping): ?>selected<?php |
|
29 | +<?php foreach ($this->options['grouping'] as $grouping): ?> |
|
30 | + <option <?php if ($value['fun'] == $grouping): ?>selected<?php |
|
31 | 31 | endif ?>><?php echo $grouping ?></option> |
32 | 32 | <?php endforeach ?> |
33 | 33 | </optgroup> |
@@ -35,8 +35,8 @@ discard block |
||
35 | 35 | </div> |
36 | 36 | <div class="col-md-5"> |
37 | 37 | <select name="columns[<?php echo $i ?>][col]" class="form-control"> |
38 | -<?php foreach($this->options['columns'] as $column): ?> |
|
39 | - <option <?php if($value['col'] == $column): ?>selected<?php |
|
38 | +<?php foreach ($this->options['columns'] as $column): ?> |
|
39 | + <option <?php if ($value['col'] == $column): ?>selected<?php |
|
40 | 40 | endif ?>><?php echo $column ?></option> |
41 | 41 | <?php endforeach ?> |
42 | 42 | </select> |
@@ -55,12 +55,12 @@ discard block |
||
55 | 55 | <select name="columns[__index__][fun]" class="form-control"> |
56 | 56 | <option value="" selected></option> |
57 | 57 | <optgroup label="<?php echo $this->trans->lang('Functions') ?>"> |
58 | -<?php foreach($this->options['functions'] as $function): ?> |
|
58 | +<?php foreach ($this->options['functions'] as $function): ?> |
|
59 | 59 | <option><?php echo $function ?></option> |
60 | 60 | <?php endforeach ?> |
61 | 61 | </optgroup> |
62 | 62 | <optgroup label="<?php echo $this->trans->lang('Aggregation') ?>"> |
63 | -<?php foreach($this->options['grouping'] as $grouping): ?> |
|
63 | +<?php foreach ($this->options['grouping'] as $grouping): ?> |
|
64 | 64 | <option><?php echo $grouping ?></option> |
65 | 65 | <?php endforeach ?> |
66 | 66 | </optgroup> |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | </div> |
69 | 69 | <div class="col-md-5"> |
70 | 70 | <select name="columns[__index__][col]" class="form-control"> |
71 | -<?php foreach($this->options['columns'] as $column): ?> |
|
71 | +<?php foreach ($this->options['columns'] as $column): ?> |
|
72 | 72 | <option><?php echo $column ?></option> |
73 | 73 | <?php endforeach ?> |
74 | 74 | </select> |
@@ -6,23 +6,23 @@ discard block |
||
6 | 6 | <div class="col-md-3 adminer-edit-table-name"> |
7 | 7 | <input type="text" name="name" class="form-control" placeholder="Name" /> |
8 | 8 | </div> |
9 | -<?php if($this->engines): ?> |
|
9 | +<?php if ($this->engines): ?> |
|
10 | 10 | <div class="col-md-2 adminer-edit-table-engine"> |
11 | 11 | <select name="engine" class="form-control"> |
12 | 12 | <option value="">(engine)</option> |
13 | -<?php foreach($this->engines as $group => $engine): ?> |
|
13 | +<?php foreach ($this->engines as $group => $engine): ?> |
|
14 | 14 | <option><?php echo $engine ?></option> |
15 | 15 | <?php endforeach ?> |
16 | 16 | </select> |
17 | 17 | </div> |
18 | 18 | <?php endif ?> |
19 | -<?php if($this->collations): ?> |
|
19 | +<?php if ($this->collations): ?> |
|
20 | 20 | <div class="col-md-3 adminer-edit-table-collation"> |
21 | 21 | <select name="collation" class="form-control"> |
22 | 22 | <option value="" selected>(collation)</option> |
23 | -<?php foreach($this->collations as $group => $collations): ?> |
|
23 | +<?php foreach ($this->collations as $group => $collations): ?> |
|
24 | 24 | <optgroup label="<?php echo $group ?>"> |
25 | -<?php foreach($collations as $collation): ?> |
|
25 | +<?php foreach ($collations as $collation): ?> |
|
26 | 26 | <option><?php echo $collation ?></option> |
27 | 27 | <?php endforeach ?> |
28 | 28 | </optgroup> |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | </select> |
31 | 31 | </div> |
32 | 32 | <?php endif ?> |
33 | -<?php if($this->support['comment']): ?> |
|
33 | +<?php if ($this->support['comment']): ?> |
|
34 | 34 | <div class="col-md-4 adminer-table-column-middle"> |
35 | 35 | <input name="comment" class="form-control" value="" placeholder="<?php |
36 | 36 | echo $this->trans->lang('Comment') ?>" /> |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | </label> |
45 | 45 | <label class="col-md-7 adminer-table-column-middle"><?php echo $this->trans->lang('Options') ?></label> |
46 | 46 | <div class="col-md-1 adminer-table-column-buttons-header"> |
47 | -<?php if($this->support['columns']): ?> |
|
47 | +<?php if ($this->support['columns']): ?> |
|
48 | 48 | <button type="button" class="btn btn-primary btn-sm" id="adminer-table-column-add"> |
49 | 49 | <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> |
50 | 50 | </button> |
@@ -1,6 +1,6 @@ |
||
1 | -<?php if(isset($this->mainActions)): ?> |
|
1 | +<?php if (isset($this->mainActions)): ?> |
|
2 | 2 | <div class="btn-group" role="group" style="padding:10px;"> |
3 | -<?php foreach($this->mainActions as $id => $label): ?> |
|
3 | +<?php foreach ($this->mainActions as $id => $label): ?> |
|
4 | 4 | <button type="button" class="btn btn-default" id="adminer-main-action-<?php echo $id ?>"><?php echo $label ?></button> |
5 | 5 | <?php endforeach ?> |
6 | 6 | </div> |
@@ -1,28 +1,28 @@ discard block |
||
1 | 1 | <div class="table-responsive"> |
2 | 2 | <table class="table table-bordered"> |
3 | -<?php if(is_array($this->headers)): ?> |
|
3 | +<?php if (is_array($this->headers)): ?> |
|
4 | 4 | <thead> |
5 | 5 | <tr> |
6 | -<?php if(isset($this->checkbox)): ?> |
|
6 | +<?php if (isset($this->checkbox)): ?> |
|
7 | 7 | <th class="adminer-table-checkbox"><input id="adminer-table-<?php |
8 | 8 | echo $this->checkbox ?>-all" type="checkbox" /></th> |
9 | 9 | <?php endif ?> |
10 | -<?php foreach($this->headers as $header): ?> |
|
10 | +<?php foreach ($this->headers as $header): ?> |
|
11 | 11 | <th><?php echo $header ?></th> |
12 | 12 | <?php endforeach ?> |
13 | 13 | </tr> |
14 | 14 | </thead> |
15 | 15 | <?php endif ?> |
16 | 16 | <tbody> |
17 | -<?php foreach($this->details as $details): ?> |
|
17 | +<?php foreach ($this->details as $details): ?> |
|
18 | 18 | <tr> |
19 | -<?php if(isset($this->checkbox)): ?> |
|
19 | +<?php if (isset($this->checkbox)): ?> |
|
20 | 20 | <td><input type="checkbox" class="adminer-table-<?php echo |
21 | 21 | $this->checkbox ?>" name="<?php echo $this->checkbox ?>[]" /></td> |
22 | 22 | <?php endif ?> |
23 | -<?php foreach($details as $detail): ?> |
|
24 | -<?php if(is_array($detail)): ?> |
|
25 | - <td<?php foreach($detail['props'] as $name => $value): ?> <?php |
|
23 | +<?php foreach ($details as $detail): ?> |
|
24 | +<?php if (is_array($detail)): ?> |
|
25 | + <td<?php foreach ($detail['props'] as $name => $value): ?> <?php |
|
26 | 26 | echo $name ?>="<?php echo $value ?>"<?php |
27 | 27 | endforeach ?>><?php echo $detail['label'] ?></td> |
28 | 28 | <?php else: ?> |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | </tbody> |
35 | 35 | </table> |
36 | 36 | </div> |
37 | -<?php if(isset($this->checkbox)): ?> |
|
37 | +<?php if (isset($this->checkbox)): ?> |
|
38 | 38 | <div class="panel panel-default"> |
39 | 39 | <div class="panel-body"> |
40 | 40 | Selected (<span id="adminer-table-<?php echo $this->checkbox ?>-count">0</span>) |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <ol class="breadcrumb"> |
2 | -<?php foreach($this->breadcrumbs as $breadcrumb): ?> |
|
2 | +<?php foreach ($this->breadcrumbs as $breadcrumb): ?> |
|
3 | 3 | <li class="active"><?php echo $breadcrumb ?></li> |
4 | 4 | <?php endforeach ?> |
5 | 5 | </ol> |