Friconix is a site for adding icons to HTML pages. As for Bootstrap or Google Fonts, just include a file in the header of the page
to access the site's icons. Go to the Friconix documentation
and add the Friconix library to the /list/index.php
page.
Check that you can insert icons in the page.
In the /list/index.php
page, add an add form for a new article using Bootstrap's documentation on the
bundled form
and show/hide items.
The form should look as follows on the medium and large screens
broad:
and in the following way on the narrow screen :
The item name is a required field, but the quantity is optional.
In the form, add two hidden fields which will contain:
The form must send the data with the POST
method to the script
/list/add.php
. Check that the data is sent before continuing.
In the /lib/lib.php
library, add a function addArticle($db, $id_list, $name, $quantity=NULL)
which allows you to add an item to a list. Before testing your function, you will need to modify the quantity
field in the articles
table so that this one can accept zero values. Make the change in phpMyAdmin.
Test your function before continuing.
Modify the /list/add.php
file, so that :
getListData
function.Test your function and check with phpMyAdmin that the new article has has been added to the articles
table.