mirror of
https://github.com/itflow-org/itflow
synced 2026-03-23 22:15:39 +00:00
Show most recent activity first in client overview
This commit is contained in:
@@ -9,7 +9,7 @@ $sql_recent_activities = mysqli_query(
|
|||||||
$mysqli,
|
$mysqli,
|
||||||
"SELECT * FROM logs
|
"SELECT * FROM logs
|
||||||
WHERE log_client_id = $client_id
|
WHERE log_client_id = $client_id
|
||||||
ORDER BY log_created_at ASC
|
ORDER BY log_created_at DESC
|
||||||
LIMIT 5"
|
LIMIT 5"
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -214,13 +214,11 @@ $sql_asset_retired = mysqli_query(
|
|||||||
<textarea class="form-control" rows=8 id="clientNotes" placeholder="Enter quick notes here" onblur="updateClientNotes(<?php echo $client_id ?>)"><?php echo $client_notes ?></textarea>
|
<textarea class="form-control" rows=8 id="clientNotes" placeholder="Enter quick notes here" onblur="updateClientNotes(<?php echo $client_id ?>)"><?php echo $client_notes ?></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if (mysqli_num_rows($sql_important_contacts) > 0) { ?>
|
|
||||||
|
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
|
|
||||||
|
<?php if (mysqli_num_rows($sql_important_contacts) > 0) { ?>
|
||||||
<div class="card card-dark mb-3">
|
<div class="card card-dark mb-3">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h5 class="card-title"><i class="fa fa-fw fa-users mr-2"></i>Important Contacts</h5>
|
<h5 class="card-title"><i class="fa fa-fw fa-users mr-2"></i>Important Contacts</h5>
|
||||||
@@ -262,10 +260,10 @@ $sql_asset_retired = mysqli_query(
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<?php if (mysqli_num_rows($sql_shared_items) > 0) { ?>
|
<?php if (mysqli_num_rows($sql_shared_items) > 0) { ?>
|
||||||
|
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
@@ -663,6 +661,8 @@ $sql_asset_retired = mysqli_query(
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function updateClientNotes(client_id) {
|
function updateClientNotes(client_id) {
|
||||||
var notes = document.getElementById("clientNotes").value;
|
var notes = document.getElementById("clientNotes").value;
|
||||||
|
|||||||
Reference in New Issue
Block a user