DREAMWEAVERMX to create a message (c)

Source: Internet
Author: User
Tags add define exit final insert log connect variable
Dreamweaver OK, Next is the mailbox and homepage address, and the previous practice slightly different, as shown in figure (7-18) and (7-19).



7-18


7-19


Also, be aware of the order, first select the mailbox this picture, and then click the link button from the Properties panel below. A dialog box appears as shown in figure (7-20), which means that if you click on the image, the connection is made.


7-20

Previously, our function was to connect to a local page, but in DW MX we were able to connect to a dynamic page by selecting data sources. Here we go from the recordset to the email field and remember to add "mailto:" Here why add this? Because this "mailto" is an HTML tag, the connection is opened with Outlook and the letter is sent.

Also, remember to add the ALT attribute to this email image, namely alt= "<%= (Guestbook.fields.item (" F_name "). Value)%> mailbox is <%= ( Guestbook.fields.item ("F_email"). Value)%&gt, click here to send him/her a letter.

The connection method for the home page address is shown in figure (7-21).


7-21

After you bind the connection, remember to add the ALT attribute to the picture, and change it to alt= "<%= (Guestbook.fields.item (" F_name "). Value)%> mailbox is <%= (Guestbook.fields.item (" F_homepage "). Value)%>, click here to send him/her a letter."


Yes, it's a bit annoying here, but come on, victory beckons to us. :)
Look at the effect now, as shown in figure (7-22).


7-22

The next thing to do is to reply to the topic and edit, delete plus connect, and dynamic. The server behavior used here is to jump to the detail page (go to Detail page). In the front we established the reply page (rep.asp), the edit page (edit.asp) and the delete page (del.asp), where we also do not detail how to connect, the effect as shown in figure (7-23,7-24,7-25).



7-23

7-24

7-25

Do the above three steps to remember to do one thing oh, if we have a lot of message content how to do? To use the Repeat Region (repeat region) in the DW MX server behavior, select the entire large table that displays the message, Application-->server behaviors-->repeat Region, as shown in figure (7-26).



7-26
We define it to display 14 records per page, which looks a little more concise and clicks the OK button.

Do this step when you have to consider a problem, browsing users how to know how many messages I have records?? In fact, when we set up the recordset, DW MX has already considered these for us, as shown in figure (7-27).



7-27

First record index: number one in the index.
Final Record index: The last recorded in the index.
Total records: All record totals.

With all this, all we have to do is drag them onto the page and add the corresponding explanatory text, as shown in figure (7-28).


7-28

Hold on, it's going to work! We also need a guide bar because we used the repeat Region (repeat region), as shown in figure (7-29).



7-29
Insert-->application Objects-->recordset navigation Bar (insert--> application pair like--> Recordset guide line), click on the dialog shown in figure (7-30).



7-30

Recordset: Here Select the recordset to guide the row.
Display Using: Here Select the display of the guide bar, text for the text, images for the picture, here we choose images.

Click the OK button to display the effect as shown in figure (7-31).



7-31

Maybe it is too big, we can take this table to shrink, select this table in the property panel to change its width= "50%" to Width= "15%" on the line, the final effect as shown in figure (7-32).


7-32

Now for the final refinement phase, "Publish a new topic" To connect to the New.asp page, the following "Management staff Portal" to connect to the Login.asp page, "Exit Login!" "Using a server behavior, this feature is actually for the superuser to prepare." As shown in figure (7-33).



7-33
User authentication: Authentication.
Log out User: Login to exit.

Click to appear in the dialog box shown in figure (7-44).



7-44

Log out when: Which way to exit the login, link clicked: When you click on this connection, exit. Page loads: When the pages are closed, you exit.
When done, went to: after exiting to which page, we define the Goto index.asp homepage.

There are also in the above {Session.mm_username} is also for the super user, when you do not login to show "Welcome", if a super user logged in, it will show "Welcome xx! ”。 Here we are going to create a session variable, as shown in figure (7-34), as to the question of the sessions variable, which we'll explain in more detail in later chapters. :)



7-34


7-35

Click on the dialog shown in figure (7-35) and enter Mm_username in the dialog box. This mm_username variable is automatically generated when DW MX uses the logged on server behavior (which we will detail later). At the same time drag it to "welcome you!" "Between the exclamation-mark before. Ah, let's roar ~~~~~~ finally put the hardest part of this done, congratulations ah, oh ... Turn from: Dynamic Network production guide www.knowsky.com

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.