Show most recent activity first in client overview
This commit is contained in:
+6
-6
@@ -9,7 +9,7 @@ $sql_recent_activities = mysqli_query(
|
||||
$mysqli,
|
||||
"SELECT * FROM logs
|
||||
WHERE log_client_id = $client_id
|
||||
ORDER BY log_created_at ASC
|
||||
ORDER BY log_created_at DESC
|
||||
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>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php if (mysqli_num_rows($sql_important_contacts) > 0) { ?>
|
||||
|
||||
<div class="col-md-4">
|
||||
|
||||
<?php if (mysqli_num_rows($sql_important_contacts) > 0) { ?>
|
||||
<div class="card card-dark mb-3">
|
||||
<div class="card-header">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php if (mysqli_num_rows($sql_shared_items) > 0) { ?>
|
||||
|
||||
<div class="col-md-4">
|
||||
@@ -663,6 +661,8 @@ $sql_asset_retired = mysqli_query(
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function updateClientNotes(client_id) {
|
||||
var notes = document.getElementById("clientNotes").value;
|
||||
|
||||
Reference in New Issue
Block a user