Skip to content

Commit

Permalink
CHANGED TABLES STYLES
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranzafar4343 committed Dec 4, 2024
1 parent e429e59 commit 5a1a5bb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 33 deletions.
4 changes: 2 additions & 2 deletions Branches.php
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@
<?php
if ($result->num_rows > 0) {
?>
<table id="branchTable" class="table table-borderless datatable" style="width:100%">
<table id="branchTable" class="table" style="width:100%">
<thead>
<tr>
<th scope="col">Branch Name</th>
Expand Down Expand Up @@ -526,7 +526,7 @@
<td>
<div style="display: flex; gap: 10px;">

<a type="button" class="btn btn-success btn-success d-flex justify-content-center " style="width:25px; height: 28px;" href="branchInfo.php?id=<?php echo $row['branch_id']; ?>"><i style="width: 20px;" class="fa-solid fa-file-lines"></i></a>
<a type="button" class="btn btn-success btn-success d-flex justify-content-center " style="width:25px; height: 28px;" href="branchInfo.php?id=<?php echo $row['branch_id']; ?>"><i style="width: 20px;" class="fa-solid fa-eye"></i></a>
<a type="button" class="btn btn-success btn-info d-flex justify-content-center " style="width:25px; height: 28px;" href="branchUpdate.php?id=<?php echo $row['branch_id']; ?>"><i style="width: 20px;" class="fa-solid fa-pen-to-square"></i></a>

<a type="button" class="btn btn-danger btn-floating d-flex justify-content-center" style="width:25px; height:28px" data-mdb-ripple-init
Expand Down
4 changes: 2 additions & 2 deletions Companies.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@
<?php
if ($result->num_rows > 0) {
?>
<table id="companies" class="">
<table id="companies" class="table">
<thead>
<tr>

Expand Down Expand Up @@ -347,7 +347,7 @@
?>
<td>
<div style="display: flex; gap: 10px;">
<a type="button" class="btn btn-success btn-success d-flex justify-content-center " style="padding-bottom: 0px; width:25px; height: 28px;" href="CompanyInfo.php?id=<?php echo $row['comp_id']; ?>"><i style="width: 20px;" class="fa-solid fa-file-lines"></i></a>
<a type="button" class="btn btn-success btn-success d-flex justify-content-center " style="padding-bottom: 0px; width:25px; height: 28px;" href="CompanyInfo.php?id=<?php echo $row['comp_id']; ?>"><i style="width: 20px;" class="fa-solid fa-eye"></i></a>
<a type="button" class="btn btn-success btn-info d-flex justify-content-center " style="padding-bottom: 0px; width:25px; height: 28px;" href="update.php?id=<?php echo $row['comp_id']; ?>"><i style="width: 20px;" class="fa-solid fa-pen-to-square"></i></a>

<a type="button" class="btn btn-danger btn-floating d-flex justify-content-center" style="padding-bottom: 0px; width:25px; height:28px" data-mdb-ripple-init onclick="return confirm('Are you sure you want to delete this record?');" href="delete.php?id=<?php echo $row['comp_id']; ?>"> <i style="width: 20px;" class="fa-solid fa-trash"></i></a>
Expand Down
30 changes: 3 additions & 27 deletions box.php
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@
<th scope="col" style="width: 8%;">Barcode No.</th>
<th scope="col" style="width: 8%;">Alt code</th>
<th scope="col" style="width: 9%;">Status</th>
<th scope="col" style="width: 10%;">Create Date</th>';
<th scope="col" style="width: 10%;">Added on</th>';

// Show "Action" column only for admins
if ($_SESSION['role'] == 'admin') {
Expand Down Expand Up @@ -579,34 +579,10 @@
// Show account
echo '<td>' . $comp_name . " / " . $branch_name . '</td>';


echo '<td><i class="';
if ($row["object"] == 'Container') {
echo 'fa-solid fa-box';
echo '" style="color: #007bff; font-size: 1.5rem; </i>"';
} elseif ($row["object"] == 'FileFolder') {
echo 'fa-solid fa-folder';
echo '" style="color: grey; font-size: 1.5rem; </i>"';
}
echo '"></i> ' . '</td>';

echo '<td>' . ($row["object"]) . '</td>';
echo '<td>' . ($row["barcode"]) . '</td>';
echo '<td>' . ($row["alt_code"]) . '</td>';


echo '<td><i class="';
if ($row["status"] == 'In') {
echo 'fa-solid fa-right-to-bracket';
echo '" style="color: green; font-size: 1.5rem; </i>"';
} elseif ($row["status"] == 'Out') {
echo 'fa-solid fa-right-from-bracket';
echo '" style="color: red; font-size: 1.5rem; </i>"';
} elseif ($row["status"] == 'Ready for Destroy') {
echo 'fa-solid fa-trash-can';
echo '" style="color: red; font-size: 1.5rem; </i>"';
}

echo '"></i> ' . '</td>';
echo '<td>' . ($row["status"]) . '</td>';

//convert timestamp to only date format
$dateTime = $row["created_at"];
Expand Down
4 changes: 2 additions & 2 deletions departments.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@
<?php
if ($result->num_rows > 0) {
?>
<table id="branchTable" class="table table-borderless datatable" style="width:100%">
<table id="branchTable" class="table" style="width:100%">
<thead>
<tr>
<!-- <th scope="col">ID</th> -->
Expand All @@ -509,7 +509,7 @@
?>
<td>
<div style="display: flex; gap: 10px;">
<a type="button" class="btn btn-success btn-success d-flex justify-content-center" style="padding-bottom: 0px; width:25px; height: 28px;" href="updatedepart.php?id=<?php echo $row['dept_id']; ?>"><i style="width: 20px;" class="fa-solid fa-file-lines"></i></a>
<a type="button" class="btn btn-success btn-success d-flex justify-content-center" style="padding-bottom: 0px; width:25px; height: 28px;" href="updatedepart.php?id=<?php echo $row['dept_id']; ?>"><i style="width: 20px;" class="fa-solid fa-eye"></i></a>
<a type="button" class="btn btn-success btn-info d-flex justify-content-center " style="padding-bottom: 0px; width:25px; height: 28px;" href="updatedepart.php?id=<?php echo $row['dept_id']; ?>"><i style="width: 20px;" class="fa-solid fa-pen-to-square"></i></a>

<a type="button" class="btn btn-danger btn-floating d-flex justify-content-center" style="padding-bottom: 0px; width:25px; height:28px" data-mdb-ripple-init onclick="return confirm('Are you sure you want to delete this record?');" href="deletedepart.php?id=<?php echo $row['dept_id']; ?>"> <i style="width: 20px;" class="fa-solid fa-trash"></i></a>
Expand Down

0 comments on commit 5a1a5bb

Please sign in to comment.