Skip to content

Commit

Permalink
Applying .editorconfig accross files
Browse files Browse the repository at this point in the history
  • Loading branch information
jrie committed Jan 2, 2020
1 parent 595c7d4 commit b4cd2e7
Show file tree
Hide file tree
Showing 12 changed files with 965 additions and 965 deletions.
22 changes: 12 additions & 10 deletions accessdenied.php
@@ -1,20 +1,22 @@
<?php
header("HTTP/1.1 401 Unauthorized");
header("HTTP/1.1 401 Unauthorized");
?>
<!DOCTYPE html>
<html>
<?php include_once('head.php'); ?>
<body>
<?php include_once('nav.php'); ?>
<?php include_once('head.php'); ?>

<div class="content">
<?php if ($error): ?>
<body>
<?php include_once('nav.php'); ?>

<div class="content">
<?php if ($error) : ?>
<div class="alert alert-danger" role="alert">
<h6><?php echo $error; ?></h6>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
</div>

<?php include_once('footer.php'); ?>
</body>

<?php include_once('footer.php'); ?>
</body>
</html>
1 change: 0 additions & 1 deletion bootDB.php
Expand Up @@ -21,4 +21,3 @@

print('<strong>Database bootstrapped succesfully.</strong>');
die();
?>
214 changes: 108 additions & 106 deletions categories.php

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion customFieldsData.php
Expand Up @@ -43,4 +43,3 @@
'selection' => gettext('Einzelauswahl, durch Komma getrennt: erlaubt "Neu" oder "Gebraucht" oder "Refurbished" wenn "Neu,Gebraucht,Refurbished" angegeben. Und oder numerische Werte (Ganzzahl, Gleitkommazahlen)'),
'mselection' => gettext('Mehrfachauswahl, durch Komma getrennt: erlaubt "Neu" und oder "Netzwerk", wenn "Neu,Netzwerk" angegeben. Und oder numerische Werte (Ganzzahl, Gleitkommanzahlen).')
];
?>
28 changes: 14 additions & 14 deletions datafields.php
Expand Up @@ -70,10 +70,10 @@
</div>
<div class="dropdown float-left">
<select name="dataType" autocomplete="off" required class="btn btn-primary dropdown-toggle switchdatatype" type="button" tabindex="-1" aria-haspopup="true" aria-expanded="false">'
<?php
<?php
echo '<option value="-1" selected="selected">' . gettext('Datentyp') . '</option>';
foreach ($fieldTypes as $type => $value) printf('<option value="%s">%s</option>', $type, $value);
?>
?>
</select>
</div>
</div>
Expand Down Expand Up @@ -122,10 +122,10 @@

<h5>Bestehende Datenfelder</h5>
<ul class="existingFields">
<?php
<?php
$customFields = DB::query('SELECT * FROM customFields');
foreach ($customFields as $field) printf('<li class="btn-secondary dataField" data-fieldid="%d" data-default="%s" data-type="%d" data-name="%s">%s</li>', $field['id'], $field['default'], $field['dataType'], $field['label'], $field['label']);
?>
?>
</ul>

<?php include_once('footer.php'); ?>
Expand All @@ -142,9 +142,9 @@ function setDataExample() {
}

let dataExamples = <?php
$joinedFields = array();
foreach ($dataExamples as $key => $values) $joinedFields[] = '\'' . $key . '\': \'' . $values . '\'';
echo '{' . implode(',', $joinedFields) . '}';?>
$joinedFields = array();
foreach ($dataExamples as $key => $values) $joinedFields[] = '\'' . $key . '\': \'' . $values . '\'';
echo '{' . implode(',', $joinedFields) . '}'; ?>

function checkFields(evt) {
if (document.querySelector('input[name="doDelete"]').value !== '-1') return
Expand All @@ -167,11 +167,11 @@ function checkFields(evt) {
}

let validData = <?php
$joinedFields = array();
foreach ($fieldLimits as $key => $values) $joinedFields[] = '\'' . $key . '\': [' . implode(', ', $values) . ']';
echo '{' . implode(',', $joinedFields) . '}';?>
$joinedFields = array();
foreach ($fieldLimits as $key => $values) $joinedFields[] = '\'' . $key . '\': [' . implode(', ', $values) . ']';
echo '{' . implode(',', $joinedFields) . '}'; ?>

let dataType = null;
let dataType = null

for (let field of dataFields) {
let dataValue = ''
Expand Down Expand Up @@ -207,9 +207,9 @@ function checkFields(evt) {
}

let fieldTypes = <?php
$joinedFields = array();
foreach ($fieldTypesPos as $key => $values) $joinedFields[] = $values . ': \'' . $key . '\'';
echo '{'. implode(',', $joinedFields) . '}';?>
$joinedFields = array();
foreach ($fieldTypesPos as $key => $values) $joinedFields[] = $values . ': \'' . $key . '\'';
echo '{' . implode(',', $joinedFields) . '}'; ?>

let currentSelection = null

Expand Down
2 changes: 1 addition & 1 deletion footer.php
Expand Up @@ -3,5 +3,5 @@
<a class="btn btn-info" tabIndex="-1" target="_blank" href="https://github.com/jrie/sqstorage"><?php echo gettext('Github') ?></a>
</footer>
<script type="text/javascript">
<?php include_once('js/dropDown.js'); ?>
<?php include_once('js/dropDown.js'); ?>
</script>

0 comments on commit b4cd2e7

Please sign in to comment.