Commodity Recycling Station
The commodity recycling station and the product list are exactly the same, even the method is consistent, modify several parameters.
1. Increase the operating entrance. /admin/templates/menu.html
2. Receive the request and process the action. /admin/goods.php?act=trash
3. Display the data in the template. /admin/templates/goods_trash.html
Commodity Recycle Bin Restore
1. Provide the operation entrance. /admin/templates/goods_trash.html
2. Receive the request and process the request. /admin/goods.php?act=restore
New Products
1. Increase the operating entrance. /admin/templates/menu.html| | Goods_list.html
Menu.html
Goods_list.html
2. Receive the action and process the request. /admin/goods.php?act=add
3. Do not do album management. Delete album management related forms in the template. /admin/templates/goods_add.html
4. Get all the product categories and display them in the template for new items.
A) Get all product classifications. /admin/goods.php?act=add
b) Displays all product classifications. /admin/templates/goods_add.html
5. Determine the submission object for the form. /admin/templates/goods_add.html
6. Receive the action and process the request. /admin/goods.php?act=insert
7. Receive submitted data: There are too many fields in the product, it is not appropriate to use too many variables to operate, you should use arrays to receive data.
8. Validation of data legitimacy: Product name, commodity item number, commodity category, commodity price
A) Product name verification
b) Commodity Item No.
c) Classification of goods
D) Price judgment
20150120--product page + Product management (delete, restore)-02