Adobe dreamweaver cs6 classroom in a book

Page 385

7 Insert the cursor in the table header row. Switch to Code view and examine the header row elements.

Each of the <th> elements contains a spry:sort="..." attribute. 8 Delete the spry:sort="..." attributes from each of the <th> elements, as well as other Spry attributes elsewhere in the table, such as spry:repeat, spry:odd, spry:even, and so on. But be careful not to delete any class="..." attributes. All Spry references in the Events table are gone. 9 Switch to Design view and save all files. Converting the Spry data placeholders to PHP placeholders for the current workflow is a simple process. 10 In the table, select the {Date} placeholder. 11 Open the Bindings panel, if necessary. Expand the rs_events recordset. 12 In the Bindings panel, select the event_date field. Click the Insert button at the bottom of the Bindings panel. A new {rs_events.event_date} placeholder appears in the table cell, replacing the Spry placeholder. 13 Replace {Event} with event_name. 14 Replace {Location} with event_location. 15 Replace {Cost} with event_cost. Be sure not to delete the dollar sign before the placeholder.

16 Save all files. When working on dynamic pages, it’s essential to test the functionality frequently. But unlike the Spry data structure using PHP, certain files must be uploaded to the testing server before you can preview the current dynamic layout.

368

lesson 14

building dynamic Pages with data


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.