Tidy codestyle - spaces between parenthesis and curly braces

This commit is contained in:
Marcus Hill
2023-01-21 17:09:39 +00:00
parent 7f3ec8ccda
commit 2c3ebb3bbb
164 changed files with 2156 additions and 2156 deletions

View File

@@ -21,12 +21,12 @@ if ($total_found_rows > 10) {
<div class="col mb-3">
<form action="post.php" method="post">
<select onchange="this.form.submit()" class="input-form select2" name="change_records_per_page">
<option <?php if($_SESSION['records_per_page'] == 5){ echo "selected"; } ?> >5</option>
<option <?php if($_SESSION['records_per_page'] == 10){ echo "selected"; } ?> >10</option>
<option <?php if($_SESSION['records_per_page'] == 20){ echo "selected"; } ?> >20</option>
<option <?php if($_SESSION['records_per_page'] == 50){ echo "selected"; } ?> >50</option>
<option <?php if($_SESSION['records_per_page'] == 100){ echo "selected"; } ?> >100</option>
<option <?php if($_SESSION['records_per_page'] == 500){ echo "selected"; } ?> >500</option>
<option <?php if ($_SESSION['records_per_page'] == 5) { echo "selected"; } ?> >5</option>
<option <?php if ($_SESSION['records_per_page'] == 10) { echo "selected"; } ?> >10</option>
<option <?php if ($_SESSION['records_per_page'] == 20) { echo "selected"; } ?> >20</option>
<option <?php if ($_SESSION['records_per_page'] == 50) { echo "selected"; } ?> >50</option>
<option <?php if ($_SESSION['records_per_page'] == 100) { echo "selected"; } ?> >100</option>
<option <?php if ($_SESSION['records_per_page'] == 500) { echo "selected"; } ?> >500</option>
</select>
</form>
</div>
@@ -39,21 +39,21 @@ if ($total_found_rows > 10) {
<?php
if($total_pages <= 100){
if ($total_pages <= 100) {
$pages_split = 10;
}
if(($total_pages <= 1000) && ($total_pages > 100)){
if (($total_pages <= 1000) && ($total_pages > 100)) {
$pages_split = 100;
}
if(($total_pages <= 10000) && ($total_pages > 1000)){
if (($total_pages <= 10000) && ($total_pages > 1000)) {
$pages_split = 1000;
}
if($p > 1){
if ($p > 1) {
$prev_class = "";
}else{
$prev_class = "disabled";
}
if($p <> $total_pages) {
if ($p <> $total_pages) {
$next_class = "";
}else{
$next_class = "disabled";
@@ -62,14 +62,14 @@ if ($total_found_rows > 10) {
$prev_page = $p - 1;
$next_page = $p + 1;
if($p > 1){
if ($p > 1) {
echo "<li class='page-item $prev_class'><a class='page-link' href='?$url_query_strings&p=$prev_page'>Prev</a></li>";
}
while($i < $total_pages){
while ($i < $total_pages) {
$i++;
if(($i == 1) || (($p <= 3) && ($i <= 6)) || (($i > $total_pages - 6) && ($p > $total_pages - 3 )) || (is_int($i / $pages_split)) || (($p > 3) && ($i >= $p - 2) && ($i <= $p + 3)) || ($i == $total_pages)){
if($p == $i ) {
if (($i == 1) || (($p <= 3) && ($i <= 6)) || (($i > $total_pages - 6) && ($p > $total_pages - 3 )) || (is_int($i / $pages_split)) || (($p > 3) && ($i >= $p - 2) && ($i <= $p + 3)) || ($i == $total_pages)) {
if ($p == $i ) {
$page_class = "active";
}else{
$page_class = "";
@@ -78,7 +78,7 @@ if ($total_found_rows > 10) {
}
}
if($p <> $total_pages){
if ($p <> $total_pages) {
echo "<li class='page-item $next_class'><a class='page-link' href='?$url_query_strings&p=$next_page'>Next</a></li>";
}
@@ -92,7 +92,7 @@ if ($total_found_rows > 10) {
}
if($total_found_rows == 0){
if ($total_found_rows == 0) {
echo "<center class='my-3'><i class='far fa-fw fa-6x fa-meh-rolling-eyes text-secondary'></i><h3 class='text-secondary mt-3'>No Results</h3></center>";
}