20150120--product page + Product management (delete, restore)-02

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.