Skip to content

Commit

Permalink
PHP-Codierungsstandards
Browse files Browse the repository at this point in the history
  • Loading branch information
r23 committed Oct 18, 2023
1 parent 7f31003 commit e146e1e
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion myoos/admin/admin_account.php
Expand Up @@ -136,7 +136,7 @@
$my_account_query = "SELECT a.admin_id, a.admin_firstname, a.admin_lastname, a.admin_email_address, a.admin_created, a.admin_modified, a.admin_logdate, a.admin_lognum, g.admin_groups_name FROM " . $oostable['admin'] . " a, " . $oostable['admin_groups'] . " g WHERE a.admin_id= " . $_SESSION['login_id'] . " AND g.admin_groups_id= " . $_SESSION['login_groups_id'] . "";
$myAccount = $dbconn->GetRow($my_account_query);
?>
<table class="table table-striped w-100">
<table class="table table-striped table-hover w-100">
<thead class="thead-dark">
<tr>
<th><?php echo TABLE_HEADING_ACCOUNT; ?></th>
Expand Down
4 changes: 2 additions & 2 deletions myoos/admin/admin_members.php
Expand Up @@ -343,7 +343,7 @@
<?php
} elseif (isset($_GET['gID']) && ($_GET['gID'])) {
?>
<table class="table table-striped w-100">
<table class="table table-striped table-hover w-100">
<thead class="thead-dark">
<tr>
<th>&nbsp;<?php echo TABLE_HEADING_GROUPS_NAME; ?></th>
Expand Down Expand Up @@ -393,7 +393,7 @@
<?php
} else {
?>
<table class="table table-striped w-100">
<table class="table table-striped table-hover w-100">
<thead class="thead-dark">
<tr>
<th><?php echo TABLE_HEADING_NAME; ?></th>
Expand Down
4 changes: 2 additions & 2 deletions myoos/admin/categories.php
Expand Up @@ -1513,13 +1513,13 @@ function resetBoxes() {
</thead>
<?php
$categories_count = 0;
$rows = 0;
$rows = 0;
$aDocument = [];
if (isset($_GET['search'])) {
$categories_result = $dbconn->Execute("SELECT c.categories_id, cd.categories_name, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified, c.categories_status FROM " . $oostable['categories'] . " c, " . $oostable['categories_description'] . " cd WHERE c.categories_status != 0 AND c.categories_id = cd.categories_id AND cd.categories_languages_id = '" . intval($_SESSION['language_id']) . "' AND cd.categories_name like '%" . oos_db_input($_GET['search']) . "%' ORDER BY c.sort_order, cd.categories_name");
} else {
$categories_result = $dbconn->Execute("SELECT c.categories_id, cd.categories_name, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified, c.categories_status FROM " . $oostable['categories'] . " c, " . $oostable['categories_description'] . " cd WHERE c.categories_status != 0 AND c.parent_id = '" . intval($current_category_id) . "' AND c.categories_id = cd.categories_id AND cd.categories_languages_id = '" . intval($_SESSION['language_id']) . "' ORDER BY c.sort_order, cd.categories_name");
}
$aDocument = [];
while ($categories = $categories_result->fields) {
$categories_count++;
$rows++;
Expand Down
2 changes: 1 addition & 1 deletion myoos/admin/categories_slider.php
Expand Up @@ -376,7 +376,7 @@ function oos_set_slider_status($slider_id, $status)
<tr>
<td valign="top">

<table class="table table-striped w-100">
<table class="table table-striped table-hover w-100">
<thead class="thead-dark">
<tr>
<th><?php echo TABLE_HEADING_PRODUCTS; ?></th>
Expand Down
10 changes: 6 additions & 4 deletions myoos/admin/configuration.php
Expand Up @@ -260,7 +260,8 @@
</tr>
</thead>
<?php
$configuration_result = $dbconn->Execute("SELECT configuration_id, configuration_key, configuration_value, use_function FROM " . $oostable['configuration'] . " WHERE configuration_group_id = '" . intval($_GET['gID']) . "' ORDER BY sort_order");

$configuration_result = $dbconn->Execute("SELECT configuration_id, configuration_key, configuration_value, use_function FROM " . $oostable['configuration'] . " WHERE configuration_group_id = '" . intval($_GET['gID']) . "' ORDER BY sort_order");

while ($configuration = $configuration_result->fields) {
if (oos_is_not_null($configuration['use_function'])) {
Expand Down Expand Up @@ -310,10 +311,11 @@
?>
</table></td>
<?php
$heading = [];
$contents = [];

switch ($action) {
$heading = [];
$contents = [];

switch ($action) {
case 'edit':
$heading[] = ['text' => '<b>' . constant(strtoupper($cInfo->configuration_key . '_TITLE')) . '</b>'];

Expand Down
2 changes: 1 addition & 1 deletion myoos/admin/edit_orders.php
Expand Up @@ -649,7 +649,7 @@ class = '$ot_class',
<!-- Begin Products Listing Block -->
<tr>
<td>
<table class="table table-striped w-100">
<table class="table table-striped table-hover w-100">
<thead class="thead-dark">
<tr>
<th colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></th>
Expand Down
2 changes: 1 addition & 1 deletion myoos/admin/gv_sent.php
Expand Up @@ -81,7 +81,7 @@
<tr>
<td valign="top">

<table class="table table-striped w-100">
<table class="table table-striped table-hover w-100">
<thead class="thead-dark">
<tr>
<th><?php echo TABLE_HEADING_SENDERS_NAME; ?></th>
Expand Down
2 changes: 1 addition & 1 deletion myoos/admin/invoice.php
Expand Up @@ -113,7 +113,7 @@
<tr>
<td>

<table class="table table-striped w-100">
<table class="table table-striped table-hover w-100">
<tr>
<td colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></td>
<td><?php echo TABLE_HEADING_PRODUCTS_SERIAL_NUMBER; ?></td>
Expand Down
2 changes: 1 addition & 1 deletion myoos/admin/orders.php
Expand Up @@ -352,7 +352,7 @@ function oos_get_languages_id($iso_639_2)
</tr>
<tr>
<td>
<table class="table table-striped w-100">
<table class="table table-striped table-hover w-100">
<thead class="thead-dark">
<tr>
<th colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></th>
Expand Down
2 changes: 1 addition & 1 deletion myoos/admin/packingslip.php
Expand Up @@ -104,7 +104,7 @@
</tr>
<tr>
<td>
<table class="table table-striped w-100">
<table class="table table-striped table-hover w-100">
<thead class="thead-dark">
<tr>
<th colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></th>
Expand Down
4 changes: 2 additions & 2 deletions myoos/admin/products_attributes.php
Expand Up @@ -537,7 +537,7 @@ function go_option() {
<tr>
<td>

<table class="table table-striped w-100">
<table class="table table-striped table-hover w-100">
<?php
$productstable = $oostable['products'];
$products_options_valuestable = $oostable['products_options_values'];
Expand Down Expand Up @@ -747,7 +747,7 @@ function go_option() {
<tr>
<td>

<table class="table table-striped w-100">
<table class="table table-striped table-hover w-100">
<?php
$productstable = $oostable['products'];
$products_attributestable = $oostable['products_attributes'];
Expand Down
2 changes: 1 addition & 1 deletion myoos/admin/stats_products_purchased.php
Expand Up @@ -77,7 +77,7 @@
<tr>
<td valign="top">

<table class="table table-striped w-100">
<table class="table table-striped table-hover w-100">
<thead class="thead-dark">
<tr>
<th><?php echo TABLE_HEADING_NUMBER; ?></th>
Expand Down

0 comments on commit e146e1e

Please sign in to comment.