Many netizens asked, · Deep Learning Website Navigation· Whether the background management of the deep learning entire site system can add batch deletion function, and how to add:
It is to list N articles or URL information. There is a check box in front of each article or URL, and there is a button at the bottom of the page to "Delete". Multiple selections of articles or clicks to delete them. All selected articles or URLs are deleted. . .
This function is not difficult to implement, but I have never been careful to do it. Today, I have time to add batch deletion to the background "website management" of deep learning website navigation, and simply record the entire operation as follows (for specific examples, please refer to the background management of deep learning website navigation):
1. First, add form and input checkbox at the management page where multiple corresponding records are added. The simplified code is as follows:
2. Just change the SQL statement where = to where in method on the record deletion page:
3. The above two steps have been deleted in batches. Here we will improve it. Add the following js code and hyperlink to the corresponding position of the management page to select or cancel all records at once.
Author: Lu Haipeng