Adobe Dreamweaver CS3 Instrukcja Użytkownika Strona 578

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 577
DREAMWEAVER CS3
User Guide
571
See also
“Presenting content with tables” on page 176
Adding and formatting text” on page 226
Navigating database recordset results
Recordset navigation links let users move from one record to the next, or from one set of records to the next. For
example,afterdesigningapagetodisplayfiverecordsatatime,youmightwanttoaddlinkssuchasNext or Previous
that let users display the five next or previous records.
You can create four types of navigation links to move through a recordset: First, Previous, Next, and Last. A single
page can contain any number of these links, provided they all work on a single recordset. You can’t add links to move
through a second recordset on the same page.
Recordset navigation links require the following dynamic elements:
A recordset to navigate
Dynamic content on the page to display the record or records
Text or images on the page to serve as a clickable navigation bar
A Move To Record set of server behaviors to navigate the recordset
YoucanaddthelasttwoelementsbyusingtheRecordNavigationBarserverobject,oryoucanaddthemseparately
by using the design tools and the Server Behaviors panel.
Create a recordset navigation bar
YoucancreatearecordsetnavigationbarinasingleoperationusingtheRecordsetNavigationBarserverbehavior.
The server object adds the following building blocks to the page:
An HTML table with either text or image links
A set of Move To server behaviors
A set of Show Region server behaviors
The text version of the Recordset Navigation Bar looks like this:
The image version of the Recordset Navigation Bar looks like this:
Before placing the navigation bar on the page, make sure the page contains a recordset to navigate and a page layout
in which to display the records.
After placing the navigation bar on the page, you can use the design tools to customize the bar to your liking. You
can also edit the Move To and Show Region server behaviors by double-clicking them in the Server Behaviors panel.
Dreamweaver creates a table that contains text or image links that allow the user to navigate through the selected
recordsetwhenclicked.Whenthefirstrecordintherecordsetisdisplayed,theFirst and Previous links or images are
hidden. When the last record in the recordset is displayed, the Next and Last links or images are hidden.
September 4, 2007
Przeglądanie stron 577
1 2 ... 573 574 575 576 577 578 579 580 581 582 583 ... 737 738

Komentarze do niniejszej Instrukcji

Brak uwag