<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="styles.css"> </head> <body> <div class="main_iframe"> <div class="div_category"> <h4>Categories</h4><hr> <div class="div_list_category"> <ul class="category_list" id="category_list" > <?php $result = CategoryTable::get_categories($date = date('Y-m-d')); ?> <?php while ($row = $result->fetch_assoc()) { ?> <li id="<?php echo $row['id']; ?> " class="list_category_li" onclick=categorySelect(this)> <div class="handle_delete"><img src="images/delete.png" alt="" width="30px" height="30px"></div> <span><?php echo $row["name"]; ?> </span> <form action="edit_categories.php" method="post"> <input type="hidden" name="delete_id" value="<?php
<link rel="stylesheet" href="styles.css"> </head> <body class="overflow_hidden"> <?php $page = "home"; include_once "new_nav.php"; ?> <div class="main"> <div class="div_category" id="home_list"> <ul class="category_list"> <h4><?php echo date('D, M d Y', strtotime($_SESSION["date"])); ?> </h4><hr> <?php $result = CategoryTable::get_categories($_SESSION["date"]); while ($row = $result->fetch_assoc()) { ?> <li class="list_category_li"> <span><?php echo $row["name"]; ?> </span> <input type="hidden" id="category_id" name="category_id" value="<?php echo $row['id']; ?> "> <span class="item_counter" id="total"><?php echo ItemTable::get_total_items($row['id'], $_SESSION["date"]); ?> </span>