Add favicon and update layout files; enhance product query and table styles
This commit is contained in:
3669
.vscode/ftp-kr.sync.cache.json
vendored
3669
.vscode/ftp-kr.sync.cache.json
vendored
File diff suppressed because it is too large
Load Diff
@@ -5,7 +5,7 @@ class Products
|
||||
static public function get_products( $client_id, $limit, $start, $order_name, $order_dir )
|
||||
{
|
||||
global $mdb;
|
||||
return $mdb -> query( 'SELECT pt.* FROM products_temp AS pt INNER JOIN products AS p ON p.id = pt.product_id WHERE client_id = \'' . $client_id . '\' ORDER BY ' . $order_name . ' ' . $order_dir . ' LIMIT ' . $start . ', ' . $limit ) -> fetchAll();
|
||||
return $mdb -> query( 'SELECT pt.*, p.offer_id FROM products_temp AS pt INNER JOIN products AS p ON p.id = pt.product_id WHERE client_id = \'' . $client_id . '\' ORDER BY ' . $order_name . ' ' . $order_dir . ' LIMIT ' . $start . ', ' . $limit ) -> fetchAll();
|
||||
}
|
||||
|
||||
static public function get_records_total_products( $client_id )
|
||||
|
||||
BIN
layout/favicon.png
Normal file
BIN
layout/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 353 B |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -889,6 +889,17 @@ body>.top {
|
||||
td.left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
&.table-sm {
|
||||
|
||||
td {
|
||||
padding: 5px !important;
|
||||
}
|
||||
}
|
||||
|
||||
input.form-control {
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
.projects_container {
|
||||
@@ -1203,4 +1214,26 @@ body>.top {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.dt-layout-table {
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
|
||||
.pagination {
|
||||
button {
|
||||
border: 1px solid #eee;
|
||||
background: #FFF;
|
||||
display: inline-flex;
|
||||
height: 30px;
|
||||
width: 30px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0 2px;
|
||||
transition: all 0.3s ease;
|
||||
|
||||
&:hover {
|
||||
background: #eee;
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -21,7 +21,7 @@
|
||||
<div class="admin-form theme-primary">
|
||||
<div class="panel heading-border panel-primary">
|
||||
<div class="panel-body">
|
||||
<table class="table table-sm" id="products">
|
||||
<table class="table table-sm table-hover" id="products">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Id</th>
|
||||
@@ -65,7 +65,7 @@
|
||||
processing: true,
|
||||
serverSide: true,
|
||||
columns: [
|
||||
{ width: '6.25rem', orderable: false },
|
||||
{ width: '100px', orderable: false },
|
||||
{ width: 'auto', name: 'title', render: function( data, type, row ) {
|
||||
return `
|
||||
<div class="table-product-title">
|
||||
@@ -73,7 +73,7 @@
|
||||
${data}
|
||||
</a>
|
||||
<span class="edit-product-title" offer-id="${row[0]}">
|
||||
<i class="bi bi-pencil-square"></i>
|
||||
<i class="fa fa-pencil-square"></i>
|
||||
</span>
|
||||
</div>
|
||||
`;
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
<meta name="keywords" content="">
|
||||
<meta name="description" content="">
|
||||
<meta name="robots" content="all">
|
||||
<link href="/layout/favicon.png" rel="icon" type="image/x-icon">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet">
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet">
|
||||
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/layout/style.css">
|
||||
<link href="/layout/favicon.png" rel="icon" type="image/x-icon">
|
||||
</head>
|
||||
<body class="unlogged">
|
||||
<?= $this -> content;?>
|
||||
|
||||
Reference in New Issue
Block a user