|
|
|
@ -79,6 +79,7 @@ mysqli_close($conn); |
|
|
|
|
|
|
|
|
|
<div class="actions"> |
|
|
|
|
<button id="donate-food">Donate Food</button> |
|
|
|
|
<button id="share" class="SHARE">Share</button> |
|
|
|
|
<button id="toggle-history-btn" class="toggle-btn">Show Contribution History</button> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
@ -87,7 +88,7 @@ mysqli_close($conn); |
|
|
|
|
<div class="history-section" id="history-section"> |
|
|
|
|
<h2>Contribution History</h2> |
|
|
|
|
<?php if (empty($donations)): ?> |
|
|
|
|
<p>Donated 10 kg of Vegetables from Anamnagar on 2025-01-12 22:25:37. Expires on 2025-01-20.</p> |
|
|
|
|
<p>No donation history.</p> |
|
|
|
|
<?php else: ?> |
|
|
|
|
<ul id="history-list" class="history-list"> |
|
|
|
|
<?php foreach ($donations as $donation): ?> |
|
|
|
|