Initial Commit with ENVs, directory structures, cursor rules, etc
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/../includes/db.php';
|
||||
require_once __DIR__ . '/../includes/utils.php';
|
||||
|
||||
$groceries = readJsonFile('groceries.json');
|
||||
?>
|
||||
|
||||
<div id="groceries" class="tab-content">
|
||||
<h2>Grocery List</h2>
|
||||
<div class="groceries-list">
|
||||
<?php if (empty($groceries)): ?>
|
||||
<p>No items in the grocery list yet.</p>
|
||||
<?php else: ?>
|
||||
<ul>
|
||||
<?php foreach ($groceries as $item): ?>
|
||||
<li>
|
||||
<span class="item-name"><?php echo sanitizeInput($item['name']); ?></span>
|
||||
<span class="item-quantity"><?php echo sanitizeInput($item['quantity']); ?></span>
|
||||
<span class="item-category"><?php echo sanitizeInput($item['category']); ?></span>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user