A lot of netizens ask, deep learning website navigation and depth learning the whole station system background management can add bulk deletion function, how to add:
is to list n articles or Web site information, each article or URL before a check box, the bottom of the page there is a button "delete", select more articles or click Delete, selected articles or URL to achieve all delete ...
This function is not very difficult to achieve, but has been no meditation, today is free to depth learning Web site navigation Background "site management" added a lot of delete, incidentally will be the entire operation of a simple record as follows (concrete examples can refer to the depth of learning site navigation background management):
1, first in the management of multiple pages corresponding records, add form and input checkbox, the following simplified code:
2. In the Record Delete page SQL statement where = change to where in method:
3, the above two steps have been implemented bulk deletion, here in the improvement, in the management page corresponding to add the following JS code and hyperlinks to achieve a record all records are selected or Canceled function
Author: Lu Haipeng