@@ -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 @@ discard block |
||
1 | 1 | <!-- <div class="row row-no-gutters"> |
2 | -<?php $i = 0; foreach($this->options['select'] as $key => $value): ?> |
|
2 | +<?php $i = 0; foreach ($this->options['select'] as $key => $value): ?> |
|
3 | 3 | <div class="col-md-7"> |
4 | 4 | <input class="form-control" name="columns[<?php |
5 | 5 | echo $i ?>][fun]" value="<?php echo $this->options['values'][$key]['fun'] ?>" /> |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | <?php $i++; endforeach ?> |
12 | 12 | </div> --> |
13 | 13 | <div class="row row-no-gutters"> |
14 | -<?php $i = 0; foreach($this->options['values'] as $value): ?> |
|
14 | +<?php $i = 0; foreach ($this->options['values'] as $value): ?> |
|
15 | 15 | <div class="col-md-7"> |
16 | 16 | <input class="form-control" name="columns[<?php |
17 | 17 | echo $i ?>][fun]" value="<?php echo $value['fun'] ?>" /> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <div class="row row-no-gutters"> |
2 | -<?php $i = 0; foreach($this->options['values'] as $value): ?> |
|
2 | +<?php $i = 0; foreach ($this->options['values'] as $value): ?> |
|
3 | 3 | <div class="col-md-6"> |
4 | 4 | <input class="form-control" name="order[<?php |
5 | 5 | echo $i ?>]" value="<?php echo $value['col'] ?>" /> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <div class="row row-no-gutters"> |
2 | -<?php $i = 0; foreach($this->options['values'] as $value): ?> |
|
2 | +<?php $i = 0; foreach ($this->options['values'] as $value): ?> |
|
3 | 3 | <div class="col-md-4"> |
4 | 4 | <input class="form-control" name="where[<?php |
5 | 5 | echo $i ?>][col]" value="<?php echo $value['col'] ?>" /> |
@@ -26,7 +26,8 @@ discard block |
||
26 | 26 | <?php if(is_string($collations)): ?> |
27 | 27 | <option <?php if($this->table->collation === $collations): ?>selected<?php |
28 | 28 | endif ?>><?php echo $collations ?></option> |
29 | -<?php else: ?> |
|
29 | +<?php else { |
|
30 | + : ?> |
|
30 | 31 | <optgroup label="<?php echo $group ?>"> |
31 | 32 | <?php foreach($collations as $collation): ?> |
32 | 33 | <option <?php if($this->table->collation === $collation): ?>selected<?php |
@@ -61,7 +62,9 @@ discard block |
||
61 | 62 | <?php endif ?> |
62 | 63 | </div> |
63 | 64 | </div> |
64 | -<?php $index = 0; foreach($this->fields as $field): ?> |
|
65 | +<?php $index = 0; |
|
66 | +} |
|
67 | +foreach($this->fields as $field): ?> |
|
65 | 68 | <?php echo $this->render('adminer::views::table/column', [ |
66 | 69 | 'trans' => $this->trans, |
67 | 70 | 'class' => $this->formId . '-column', |
@@ -7,29 +7,29 @@ discard block |
||
7 | 7 | <input type="text" name="name" class="form-control" value="<?php |
8 | 8 | echo $this->table->name ?>" placeholder="Name" /> |
9 | 9 | </div> |
10 | -<?php if($this->engines): ?> |
|
10 | +<?php if ($this->engines): ?> |
|
11 | 11 | <div class="col-md-2 adminer-edit-table-engine"> |
12 | 12 | <select name="engine" class="form-control"> |
13 | 13 | <option value="">(engine)</option> |
14 | -<?php foreach($this->engines as $group => $engine): ?> |
|
15 | - <option <?php if(!strcasecmp($this->table->engine, $engine)): ?>selected<?php |
|
14 | +<?php foreach ($this->engines as $group => $engine): ?> |
|
15 | + <option <?php if (!strcasecmp($this->table->engine, $engine)): ?>selected<?php |
|
16 | 16 | endif ?>><?php echo $engine ?></option> |
17 | 17 | <?php endforeach ?> |
18 | 18 | </select> |
19 | 19 | </div> |
20 | 20 | <?php endif ?> |
21 | -<?php if($this->collations): ?> |
|
21 | +<?php if ($this->collations): ?> |
|
22 | 22 | <div class="col-md-3 adminer-edit-table-collation"> |
23 | 23 | <select name="collation" class="form-control"> |
24 | 24 | <option value="" selected>(collation)</option> |
25 | -<?php foreach($this->collations as $group => $collations): ?> |
|
26 | -<?php if(is_string($collations)): ?> |
|
27 | - <option <?php if($this->table->collation === $collations): ?>selected<?php |
|
25 | +<?php foreach ($this->collations as $group => $collations): ?> |
|
26 | +<?php if (is_string($collations)): ?> |
|
27 | + <option <?php if ($this->table->collation === $collations): ?>selected<?php |
|
28 | 28 | endif ?>><?php echo $collations ?></option> |
29 | 29 | <?php else: ?> |
30 | 30 | <optgroup label="<?php echo $group ?>"> |
31 | -<?php foreach($collations as $collation): ?> |
|
32 | - <option <?php if($this->table->collation === $collation): ?>selected<?php |
|
31 | +<?php foreach ($collations as $collation): ?> |
|
32 | + <option <?php if ($this->table->collation === $collation): ?>selected<?php |
|
33 | 33 | endif ?>><?php echo $collation ?></option> |
34 | 34 | <?php endforeach ?> |
35 | 35 | </optgroup> |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | </select> |
39 | 39 | </div> |
40 | 40 | <?php endif ?> |
41 | -<?php if($this->support['comment']): ?> |
|
41 | +<?php if ($this->support['comment']): ?> |
|
42 | 42 | <div class="col-md-4 adminer-table-column-middle"> |
43 | 43 | <input name="comment" class="form-control" value="<?php |
44 | 44 | echo $this->table->comment ?>" placeholder="<?php |
@@ -50,18 +50,18 @@ discard block |
||
50 | 50 | <label class="col-md-3 adminer-table-column-left"><?php echo $this->trans->lang('Column') ?></label> |
51 | 51 | <label class="col-md-1 adminer-table-column-null-header" for="autoIncrementCol"> |
52 | 52 | <input type="radio" name="autoIncrementCol" value="0" <?php |
53 | - if(!$this->options['hasAutoIncrement']): ?>checked <?php endif ?>/>AI-P |
|
53 | + if (!$this->options['hasAutoIncrement']): ?>checked <?php endif ?>/>AI-P |
|
54 | 54 | </label> |
55 | 55 | <label class="col-md-7 adminer-table-column-middle"><?php echo $this->trans->lang('Options') ?></label> |
56 | 56 | <div class="col-md-1 adminer-table-column-buttons-header"> |
57 | -<?php if($this->support['columns']): ?> |
|
57 | +<?php if ($this->support['columns']): ?> |
|
58 | 58 | <button type="button" class="btn btn-primary btn-sm" id="adminer-table-column-add"> |
59 | 59 | <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> |
60 | 60 | </button> |
61 | 61 | <?php endif ?> |
62 | 62 | </div> |
63 | 63 | </div> |
64 | -<?php $index = 0; foreach($this->fields as $field): ?> |
|
64 | +<?php $index = 0; foreach ($this->fields as $field): ?> |
|
65 | 65 | <?php echo $this->render('adminer::views::table/column', [ |
66 | 66 | 'trans' => $this->trans, |
67 | 67 | 'class' => $this->formId . '-column', |
@@ -1,18 +1,18 @@ |
||
1 | -<?php if(is_array($this->headers)): ?> |
|
1 | +<?php if (is_array($this->headers)): ?> |
|
2 | 2 | -- Adminer <?php echo $this->headers['version'], ' ', |
3 | 3 | $this->headers['driver'], ' ', |
4 | 4 | $this->headers['server'] ?> dump |
5 | 5 | |
6 | -<?php if(($this->headers['sql'])): ?> |
|
6 | +<?php if (($this->headers['sql'])): ?> |
|
7 | 7 | SET NAMES utf8; |
8 | 8 | SET time_zone = '+00:00'; |
9 | 9 | SET foreign_key_checks = 0; |
10 | -<?php if(($this->headers['data_style'])): ?> |
|
10 | +<?php if (($this->headers['data_style'])): ?> |
|
11 | 11 | SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; |
12 | 12 | <?php endif ?> |
13 | 13 | <?php endif ?> |
14 | 14 | |
15 | 15 | <?php endif ?> |
16 | -<?php foreach($this->queries as $query): ?> |
|
16 | +<?php foreach ($this->queries as $query): ?> |
|
17 | 17 | <?php echo $query, "\n" ?> |
18 | 18 | <?php endforeach ?> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <select class="form-control"> |
2 | -<?php foreach($this->options as $option): ?> |
|
2 | +<?php foreach ($this->options as $option): ?> |
|
3 | 3 | <option class="<?php echo $this->optionClass ?>" value="<?php |
4 | 4 | echo htmlentities($option) ?>"><?php echo $option ?></option> |
5 | 5 | <?php endforeach ?> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <select class="form-control"> |
2 | -<?php foreach($this->options as $value => $label): ?> |
|
2 | +<?php foreach ($this->options as $value => $label): ?> |
|
3 | 3 | <option value="<?php echo htmlentities($value) ?>"><?php echo $label ?></option> |
4 | 4 | <?php endforeach ?> |
5 | 5 | </select> |
@@ -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> |