We already know how to use HTML to display the data in the XML data Island in the form of a Table. However, if there is a large amount of data, we hope that we can display the data by page to avoid users going up or down the screen. We already know how to use HTML to display the data in the XML data Island in the form of a Table. However, if there is a large amount of data, we hope that we can display the data by page to avoid users going up or down the screen.
Anyone familiar with HTML knows
The tag has a dataPageSize attribute. you can specify the number of records displayed on each page.
The marked dataPageSize specifies a positive integer to achieve paging, as shown in figure
Someone may ask, "is data paging so simple ?" By the way, this is so simple, but the paging function is not powerful at this time, because I have not yet implemented page jump, so it cannot always make the user look at the data on the first page.
Indicates that 20 pieces of data are displayed on each page.
The above is the detailed information displayed on the data page of the XML data Island. For more information, see other related articles in the first PHP community!
Tag also provides a series of methods for us to implement the page flip function. For example, FirstPage (), previousPage (), nextPage (), and lastPage (). We add four buttons in HTML and add the code for clicking the event for them: