@@ -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 |
|
| 53 | + if (!$this->options['hasAutoIncrement']): ?>checked <?php endif ?>/> AI |
|
| 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,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> |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | <div class="col-md-2 checkbox"> |
| 28 | 28 | <label for="hashed"> |
| 29 | 29 | <input type="checkbox" name="hashed"<?php |
| 30 | - if($this->user['hashed']['value']): ?> checked="checked"<?php |
|
| 30 | + if ($this->user['hashed']['value']): ?> checked="checked"<?php |
|
| 31 | 31 | endif ?>><?php echo $this->user['hashed']['label'] ?> |
| 32 | 32 | </label> |
| 33 | 33 | </div> |
@@ -10,17 +10,17 @@ |
||
| 10 | 10 | <div class="row"> |
| 11 | 11 | <div class="col-md-12"> |
| 12 | 12 | <ul class="nav nav-pills"> |
| 13 | -<?php $first = true; foreach($this->tabs as $id => $tab): ?> |
|
| 13 | +<?php $first = true; foreach ($this->tabs as $id => $tab): ?> |
|
| 14 | 14 | <li role="presentation" <?php |
| 15 | - if($first): ?> class="active"<?php |
|
| 15 | + if ($first): ?> class="active"<?php |
|
| 16 | 16 | $first = false; endif ?>><a data-toggle="pill" href="#tab-content-<?php |
| 17 | 17 | echo $id ?>"><?php echo $tab ?></a></li> |
| 18 | 18 | <?php endforeach ?> |
| 19 | 19 | </ul> |
| 20 | 20 | <div class="tab-content"> |
| 21 | -<?php $first = true; foreach($this->tabs as $id => $tab): ?> |
|
| 21 | +<?php $first = true; foreach ($this->tabs as $id => $tab): ?> |
|
| 22 | 22 | <div id="tab-content-<?php echo $id ?>" class="tab-pane fade in<?php |
| 23 | - if($first): ?> active<?php $first = false; endif ?>" style="margin-top:10px;"> |
|
| 23 | + if ($first): ?> active<?php $first = false; endif ?>" style="margin-top:10px;"> |
|
| 24 | 24 | </div> |
| 25 | 25 | <?php endforeach ?> |
| 26 | 26 | </div> |
@@ -4,9 +4,9 @@ |
||
| 4 | 4 | <div class="col-md-12"> |
| 5 | 5 | <div class="input-group"> |
| 6 | 6 | <select class="form-control" id="adminer-dbhost-select"> |
| 7 | -<?php foreach($this->servers as $name => $title): ?> |
|
| 7 | +<?php foreach ($this->servers as $name => $title): ?> |
|
| 8 | 8 | <option value="<?php echo $name ?>"<?php |
| 9 | - if($name == $this->default): ?> selected="selected"<?php |
|
| 9 | + if ($name == $this->default): ?> selected="selected"<?php |
|
| 10 | 10 | endif?>><?php echo $title ?></option> |
| 11 | 11 | <?php endforeach ?> |
| 12 | 12 | </select> |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | <label class="control-label" for="select">SQL query</label> |
| 9 | 9 | <textarea name="select" class="form-control" rows="10" spellcheck="false" wrap="on"></textarea> |
| 10 | 10 | </div> |
| 11 | -<?php if($this->materializedview): ?> |
|
| 11 | +<?php if ($this->materializedview): ?> |
|
| 12 | 12 | <div class="form-group"> |
| 13 | 13 | <label class="control-label" for="materialized">Materialized</label> |
| 14 | 14 | <input type="checkbox" name="materialized" /> |
@@ -10,11 +10,11 @@ |
||
| 10 | 10 | <textarea name="select" class="form-control" rows="10" spellcheck="false" wrap="on"><?php |
| 11 | 11 | echo $this->view['select'] ?></textarea> |
| 12 | 12 | </div> |
| 13 | -<?php if($this->materializedview): ?> |
|
| 13 | +<?php if ($this->materializedview): ?> |
|
| 14 | 14 | <div class="form-group"> |
| 15 | 15 | <label class="control-label" for="materialized">Materialized</label> |
| 16 | 16 | <input type="checkbox" name="materialized" <?php |
| 17 | - if($this->view['materialized']): ?>checked <?php endif ?>/> |
|
| 17 | + if ($this->view['materialized']): ?>checked <?php endif ?>/> |
|
| 18 | 18 | </div> |
| 19 | 19 | <?php endif ?> |
| 20 | 20 | </form> |