Chapter 7 SQL with Joins & Recordset Paging
Overview <ul><li>In this chapter you will: </li></ul><ul><ul><li>Use the SQL term INNERJOIN. </li></ul></ul><ul><ul><li>Ad...
tours_detail.php - 1 <ul><li>For this activity you are going to; </li></ul><ul><ul><li>create a page that joins the inform...
Part 1 of tours_details.php
Part 2 of tours_details.php <ul><li>Adding recordset Paging </li></ul>
tours_detail.php - 2 <ul><li>Open generic_template.php </li></ul><ul><ul><li>Title: Newland Tours: Tour Descriptions. </li...
tours_detail.php - 3 <ul><li>Create a recordset as follows; </li></ul>
tours_detail.php - 4 Using the recordset add the bindings and the repeat region ( 5 records at a time), to the page as sho...
tours_detail.php - 5 <ul><li>The link “Learn more about” has the following details. </li></ul>
tours_detail.php - 6 <ul><li>Price this tour with Tour price calculator. </li></ul>
tours_detail.php - 7 <ul><li>Insert the dynamic image’s placeholder and set it right align. </li></ul>
Adding a repeat region <ul><li>Highlight all the recordset data. </li></ul><ul><li>Select the server behaviour tab. </li><...
Part 2 Recordset Navigation-1 <ul><li>Inserting a recordset navigation can be done by the  following two. </li></ul>
Recordset Navigation-2 <ul><li>When you add a navigation the recordset dialog appears as shown. </li></ul><ul><li>Save and...
Fixing up the tourprice.php page <ul><li>Create a querystring variable as shown below. </li></ul><ul><li>Click to select t...
Dynamic list Click on the lighting bolt and the Dynamic Data dialog box appears.
Lab 7 -1 <ul><li>This lab creates a page called bookedtours.php. </li></ul><ul><li>The tour bookings information is shown ...
Lab 7 -2
Upcoming SlideShare
Loading in …5
×

Dynamic Web Pages Ch 7 V1.0

658 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
658
On SlideShare
0
From Embeds
0
Number of Embeds
13
Actions
Shares
0
Downloads
38
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Dynamic Web Pages Ch 7 V1.0

  1. 1. Chapter 7 SQL with Joins & Recordset Paging
  2. 2. Overview <ul><li>In this chapter you will: </li></ul><ul><ul><li>Use the SQL term INNERJOIN. </li></ul></ul><ul><ul><li>Adding a recordset navigational tool bar. </li></ul></ul>
  3. 3. tours_detail.php - 1 <ul><li>For this activity you are going to; </li></ul><ul><ul><li>create a page that joins the information from two tables on a set of criteria. </li></ul></ul><ul><ul><li>Add a recordset paging object. </li></ul></ul><ul><li>The page is shown on the next two slides. </li></ul>
  4. 4. Part 1 of tours_details.php
  5. 5. Part 2 of tours_details.php <ul><li>Adding recordset Paging </li></ul>
  6. 6. tours_detail.php - 2 <ul><li>Open generic_template.php </li></ul><ul><ul><li>Title: Newland Tours: Tour Descriptions. </li></ul></ul><ul><ul><li>Save as tour_details.php. </li></ul></ul><ul><li>Make the following changes to the page as shown. </li></ul>Heading 2 Link to tours.php
  7. 7. tours_detail.php - 3 <ul><li>Create a recordset as follows; </li></ul>
  8. 8. tours_detail.php - 4 Using the recordset add the bindings and the repeat region ( 5 records at a time), to the page as shown. Dynamic image Table width=60% For these links refer to following slides.
  9. 9. tours_detail.php - 5 <ul><li>The link “Learn more about” has the following details. </li></ul>
  10. 10. tours_detail.php - 6 <ul><li>Price this tour with Tour price calculator. </li></ul>
  11. 11. tours_detail.php - 7 <ul><li>Insert the dynamic image’s placeholder and set it right align. </li></ul>
  12. 12. Adding a repeat region <ul><li>Highlight all the recordset data. </li></ul><ul><li>Select the server behaviour tab. </li></ul><ul><li>Click on the plus symbol and select repeat region. </li></ul><ul><li>Select five records at a time, as shown below. </li></ul>
  13. 13. Part 2 Recordset Navigation-1 <ul><li>Inserting a recordset navigation can be done by the following two. </li></ul>
  14. 14. Recordset Navigation-2 <ul><li>When you add a navigation the recordset dialog appears as shown. </li></ul><ul><li>Save and preview. </li></ul>
  15. 15. Fixing up the tourprice.php page <ul><li>Create a querystring variable as shown below. </li></ul><ul><li>Click to select the drop-down menu in the form, beside Tour name. In the Property inspector, click the Dynamic button. Shown on the next slide. </li></ul>
  16. 16. Dynamic list Click on the lighting bolt and the Dynamic Data dialog box appears.
  17. 17. Lab 7 -1 <ul><li>This lab creates a page called bookedtours.php. </li></ul><ul><li>The tour bookings information is shown on the next slide. </li></ul>
  18. 18. Lab 7 -2

×