@@ -11,9 +11,9 @@ |
||
11 | 11 | <div class="col-md-8"> |
12 | 12 | <select name="collation" class="form-control"> |
13 | 13 | <option value="" selected>(collation)</option> |
14 | -<?php foreach($this->collations as $group => $collations): ?> |
|
14 | +<?php foreach ($this->collations as $group => $collations): ?> |
|
15 | 15 | <optgroup label="<?php echo $group ?>"> |
16 | -<?php foreach($collations as $collation): ?> |
|
16 | +<?php foreach ($collations as $collation): ?> |
|
17 | 17 | <option><?php echo $collation ?></option> |
18 | 18 | <?php endforeach ?> |
19 | 19 | </optgroup> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <div class="list-group"> |
2 | -<?php foreach($this->menuActions as $id => $title): ?> |
|
2 | +<?php foreach ($this->menuActions as $id => $title): ?> |
|
3 | 3 | <a href="javascript:void(0)" class="adminer-menu-item list-group-item list-group-item-action menu-action-<?php |
4 | 4 | echo $id ?>" id="adminer-menu-action-<?php echo $id ?>"><?php echo $title ?></a> |
5 | 5 | <?php endforeach ?> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <div class="btn-group d-flex" role="group"> |
2 | -<?php foreach($this->sqlActions as $id => $title): ?> |
|
2 | +<?php foreach ($this->sqlActions as $id => $title): ?> |
|
3 | 3 | <button type="button" class="btn btn-outline-secondary w-100 adminer-menu-item" id="adminer-menu-action-<?php echo $id ?>"><?php echo $title ?></button> |
4 | 4 | <?php endforeach ?> |
5 | 5 | </div> |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <div class="input-group"> |
2 | -<?php if(isset($this->schemas) && ($this->schemas)): ?> |
|
2 | +<?php if (isset($this->schemas) && ($this->schemas)): ?> |
|
3 | 3 | <select class="form-control" id="adminer-schema-select"> |
4 | -<?php foreach($this->schemas as $schema): ?> |
|
4 | +<?php foreach ($this->schemas as $schema): ?> |
|
5 | 5 | <option value="<?php echo $schema ?>"><?php echo $schema ?></option> |
6 | 6 | <?php endforeach ?> |
7 | 7 | </select> |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <div class="input-group mb-3"> |
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> |
@@ -1,25 +1,25 @@ |
||
1 | 1 | <form id="<?php echo $this->formId ?>"> |
2 | -<?php foreach($this->fields as $name => $field): ?> |
|
2 | +<?php foreach ($this->fields as $name => $field): ?> |
|
3 | 3 | <div class="form-group row"> |
4 | 4 | <div class="col-md-3"> |
5 | 5 | <label title="<?php echo $field['type'] ?>"><?php echo $field['name'] ?></label> |
6 | 6 | </div> |
7 | 7 | <div class="col-md-2"> |
8 | -<?php if($field['functions']['type'] === 'name'): ?> |
|
8 | +<?php if ($field['functions']['type'] === 'name'): ?> |
|
9 | 9 | <label class=""><?php echo $field['functions']['name'] ?></label> |
10 | -<?php elseif($field['functions']['type'] === 'select'): ?> |
|
10 | +<?php elseif ($field['functions']['type'] === 'select'): ?> |
|
11 | 11 | <select name="<?php echo $field['functions']['name'] ?>" class="form-control"> |
12 | -<?php foreach($field['functions']['options'] as $function): ?> |
|
13 | - <option <?php if($function === $field['functions']['selected']): ?>selected<?php |
|
12 | +<?php foreach ($field['functions']['options'] as $function): ?> |
|
13 | + <option <?php if ($function === $field['functions']['selected']): ?>selected<?php |
|
14 | 14 | endif ?>><?php echo $function ?></option> |
15 | 15 | <?php endforeach ?> |
16 | 16 | </select> |
17 | 17 | <?php endif ?> |
18 | 18 | </div> |
19 | 19 | <div class="col-md-7"> |
20 | -<?php if($field['input']['type'] === 'radio' || $field['input']['type'] === 'checkbox'): ?> |
|
20 | +<?php if ($field['input']['type'] === 'radio' || $field['input']['type'] === 'checkbox'): ?> |
|
21 | 21 | <div class="<?php echo $field['input']['type'] ?>"> |
22 | -<?php foreach($field['input']['value'] as $value): ?> |
|
22 | +<?php foreach ($field['input']['value'] as $value): ?> |
|
23 | 23 | <?php echo $value ?> |
24 | 24 | <?php endforeach ?> |
25 | 25 | </div> |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php if(isset($this->class)): ?> |
|
1 | +<?php if (isset($this->class)): ?> |
|
2 | 2 | <div class="form-group row <?php echo $this->class ?>" data-index="<?php |
3 | 3 | echo $this->index ?>" id="<?php echo sprintf('%s-%02d', $this->class, $this->index) ?>"> |
4 | 4 | <?php endif ?> |
@@ -14,21 +14,21 @@ discard block |
||
14 | 14 | </div> |
15 | 15 | <label class="col-md-1 adminer-table-column-null" for="autoIncrementCol"> |
16 | 16 | <input type="radio" name="autoIncrementCol" value="<?php echo ($this->index + 1) ?>" <?php |
17 | - if($this->field->autoIncrement): ?>checked <?php endif ?>/> AI |
|
17 | + if ($this->field->autoIncrement): ?>checked <?php endif ?>/> AI |
|
18 | 18 | </label> |
19 | 19 | <div class="col-md-2 adminer-table-column-middle"> |
20 | 20 | <select class="form-control" name="<?php |
21 | 21 | echo $this->prefixFields ?>[collation]" data-field="collation"<?php |
22 | - if($this->field->collationHidden): ?> readonly<?php endif ?>> |
|
22 | + if ($this->field->collationHidden): ?> readonly<?php endif ?>> |
|
23 | 23 | <option value="">(<?php echo $this->trans->lang('collation') ?>)</option> |
24 | -<?php foreach($this->collations as $group => $collations): ?> |
|
25 | -<?php if(is_string($collations)): ?> |
|
26 | - <option <?php if($this->field->collation === $collations): ?>selected<?php |
|
24 | +<?php foreach ($this->collations as $group => $collations): ?> |
|
25 | +<?php if (is_string($collations)): ?> |
|
26 | + <option <?php if ($this->field->collation === $collations): ?>selected<?php |
|
27 | 27 | endif ?>><?php echo $collations ?></option> |
28 | 28 | <?php else: ?> |
29 | 29 | <optgroup label="<?php echo $group ?>"> |
30 | -<?php foreach($collations as $collation): ?> |
|
31 | - <option <?php if($this->field->collation === $collation): ?>selected<?php |
|
30 | +<?php foreach ($collations as $collation): ?> |
|
31 | + <option <?php if ($this->field->collation === $collation): ?>selected<?php |
|
32 | 32 | endif ?>><?php echo $collation ?></option> |
33 | 33 | <?php endforeach ?> |
34 | 34 | </optgroup> |
@@ -37,13 +37,13 @@ discard block |
||
37 | 37 | </select> |
38 | 38 | </div> |
39 | 39 | <div class="col-md-2 adminer-table-column-middle"> |
40 | -<?php if(true/*isset($this->field->onUpdate)*/): ?> |
|
40 | +<?php if (true/*isset($this->field->onUpdate)*/): ?> |
|
41 | 41 | <select class="form-control" name="<?php |
42 | 42 | echo $this->prefixFields ?>[onUpdate]" data-field="onUpdate"<?php |
43 | - if($this->field->onUpdateHidden): ?> readonly<?php endif ?>> |
|
43 | + if ($this->field->onUpdateHidden): ?> readonly<?php endif ?>> |
|
44 | 44 | <option value="">(<?php echo $this->trans->lang('ON UPDATE') ?>)</option> |
45 | -<?php foreach($this->options['onUpdate'] as $group => $option): ?> |
|
46 | - <option <?php if($this->field->onUpdate === $option): ?>selected<?php |
|
45 | +<?php foreach ($this->options['onUpdate'] as $group => $option): ?> |
|
46 | + <option <?php if ($this->field->onUpdate === $option): ?>selected<?php |
|
47 | 47 | endif ?>><?php echo $option ?></option> |
48 | 48 | <?php endforeach ?> |
49 | 49 | </select> |
@@ -60,10 +60,10 @@ discard block |
||
60 | 60 | <div class="col-md-2 adminer-table-column-left second-line"> |
61 | 61 | <select class="form-control" name="<?php |
62 | 62 | echo $this->prefixFields ?>[type]" data-field="type"> |
63 | -<?php foreach($this->field->types as $group => $types): ?> |
|
63 | +<?php foreach ($this->field->types as $group => $types): ?> |
|
64 | 64 | <optgroup label="<?php echo $group ?>"> |
65 | -<?php foreach($types as $type): ?> |
|
66 | - <option <?php if($this->field->type === $type): ?>selected<?php |
|
65 | +<?php foreach ($types as $type): ?> |
|
66 | + <option <?php if ($this->field->type === $type): ?>selected<?php |
|
67 | 67 | endif ?>><?php echo $type ?></option> |
68 | 68 | <?php endforeach ?> |
69 | 69 | </optgroup> |
@@ -74,35 +74,35 @@ discard block |
||
74 | 74 | <input class="form-control" name="<?php |
75 | 75 | echo $this->prefixFields ?>[length]" placeholder="<?php |
76 | 76 | echo $this->trans->lang('Length') ?>" data-field="length"<?php |
77 | - if($this->field->lengthRequired): ?> required<?php endif ?> value="<?php |
|
77 | + if ($this->field->lengthRequired): ?> required<?php endif ?> value="<?php |
|
78 | 78 | echo $this->field->length ?>" size="3"> |
79 | 79 | </div> |
80 | 80 | <label class="col-md-1 adminer-table-column-null second-line"> |
81 | 81 | <input type="checkbox" value="1" name="<?php |
82 | 82 | echo $this->prefixFields ?>[null]" data-field="null" <?php |
83 | - if($this->field->null): ?>checked <?php endif ?>/> Null |
|
83 | + if ($this->field->null): ?>checked <?php endif ?>/> Null |
|
84 | 84 | </label> |
85 | 85 | <div class="col-md-2 adminer-table-column-middle second-line"> |
86 | 86 | <select class="form-control" name="<?php |
87 | 87 | echo $this->prefixFields ?>[unsigned]" data-field="unsigned"<?php |
88 | - if($this->field->unsignedHidden): ?> readonly<?php endif ?>> |
|
88 | + if ($this->field->unsignedHidden): ?> readonly<?php endif ?>> |
|
89 | 89 | <option value=""></option> |
90 | -<?php if($this->unsigned): ?> |
|
91 | -<?php foreach($this->unsigned as $option): ?> |
|
92 | - <option <?php if($this->field->unsigned === $option): ?>selected<?php |
|
90 | +<?php if ($this->unsigned): ?> |
|
91 | +<?php foreach ($this->unsigned as $option): ?> |
|
92 | + <option <?php if ($this->field->unsigned === $option): ?>selected<?php |
|
93 | 93 | endif ?>><?php echo $option ?></option> |
94 | 94 | <?php endforeach ?> |
95 | 95 | <?php endif ?> |
96 | 96 | </select> |
97 | 97 | </div> |
98 | 98 | <div class="col-md-2 adminer-table-column-middle second-line"> |
99 | -<?php if(true/*$this->foreignKeys*/): ?> |
|
99 | +<?php if (true/*$this->foreignKeys*/): ?> |
|
100 | 100 | <select class="form-control" name="<?php |
101 | 101 | echo $this->prefixFields ?>[onDelete]" data-field="onDelete"<?php |
102 | - if($this->field->onDeleteHidden): ?> readonly<?php endif ?>> |
|
102 | + if ($this->field->onDeleteHidden): ?> readonly<?php endif ?>> |
|
103 | 103 | <option value="">(<?php echo $this->trans->lang('ON DELETE') ?>)</option> |
104 | -<?php foreach($this->options['onDelete'] as $option): ?> |
|
105 | - <option <?php if($this->field->onDelete === $option): ?>selected<?php |
|
104 | +<?php foreach ($this->options['onDelete'] as $option): ?> |
|
105 | + <option <?php if ($this->field->onDelete === $option): ?>selected<?php |
|
106 | 106 | endif ?>><?php echo $option ?></option> |
107 | 107 | <?php endforeach ?> |
108 | 108 | </select> |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | <div class="input-group-text"> |
115 | 115 | <input type="checkbox" value="1" name="<?php |
116 | 116 | echo $this->prefixFields ?>[hasDefault]" data-field="hasDefault" <?php |
117 | - if($this->field->hasDefault): ?>checked <?php endif ?>/> |
|
117 | + if ($this->field->hasDefault): ?>checked <?php endif ?>/> |
|
118 | 118 | </div> |
119 | 119 | </div> |
120 | 120 | <input class="form-control" name="<?php |
@@ -129,12 +129,12 @@ discard block |
||
129 | 129 | echo $this->index ?>" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
130 | 130 | </button> |
131 | 131 | <div class="dropdown-menu" aria-labelledby="adminer-table-column-button-group-drop-<?php echo $this->index ?>"> |
132 | -<?php if($this->support['move_col']): ?> |
|
132 | +<?php if ($this->support['move_col']): ?> |
|
133 | 133 | <a class="dropdown-item adminer-table-column-add" href="#"><i class="bi bi-plus"></i></a> |
134 | 134 | <!-- <a class="dropdown-item adminer-table-column-up" href="#"><i class="bi bi-arrow-up"></i></a> |
135 | 135 | <a class="dropdown-item adminer-table-column-down" href="#"><i class="bi bi-arrow-down"></i></a> --> |
136 | 136 | <?php endif ?> |
137 | -<?php if($this->support['drop_col']): ?> |
|
137 | +<?php if ($this->support['drop_col']): ?> |
|
138 | 138 | <a class="dropdown-item adminer-table-column-del" href="#"><i class="bi bi-x"></i></a> |
139 | 139 | <?php endif ?> |
140 | 140 | </div> |
@@ -142,6 +142,6 @@ discard block |
||
142 | 142 | </div> |
143 | 143 | <!-- End second line --> |
144 | 144 | </div></div> |
145 | -<?php if(isset($this->class)): ?> |
|
145 | +<?php if (isset($this->class)): ?> |
|
146 | 146 | </div> |
147 | 147 | <?php endif ?> |
@@ -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 row" 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 row" 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 mb-3"> |
29 | 29 | <span class="input-group-prepend"> |
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 row" 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> |