Dreamweaver MX 2004 Design Message This combat (PHOTOS)

Source: Internet
Author: User
Tags add date define definition iis table name dreamweaver access
dreamweaver| Design September The hottest news than the Macromedia Company's StudioMX2004, friends are very concerned about the new version of software features, So let me go through this tutorial with you to experience the Dreamweaver MX 2004 (hereinafter referred to as DW2004) in StudioMX2004.

   IIS (Internet information Services) installation configuration

Here take WindowsServer2003 (hereinafter referred to as WIN2003) for example. Since Win2003 is a server-level operating system, with IIS6.0, other versions of the system can be checked before Internet Information Services (IIS) in the Add or Remove Programs >> Add/Remove Windows Components dialog box, click Next to install the line (Note: The system installation disk should be placed in the optical drive before this).

Once IIS is installed, make a simple configuration. Navigate to the Start >> Manage Tools >>internet Information Services (IIS) Manager and open IIS Manager. Right-click on the local computer >> site >> Default Web site, select Properties from the shortcut menu (or select Properties directly under the Action menu), and Pop up the following dialog box:

Switch to the Home Directory tab (Figure 2), select the site root directory (the author chooses the work directory under E disk), the default is System disk: \\\\\\\\inetpub\\\\\\\\wwwroot, because the system disk should not put too many of the system files, so here to reset the default site to the directory , if it's too much trouble to skip this step. Then switch to the Document tab, add, delete, move up, move down, and set the default document settings for the site as shown in the figure:

: 1

Some friends may wonder, what's the effect of setting a default content document? A careful friend should find out, when browsing the home page of some large sites with its first level domain name on the line, do not need to specify the file name of the request page, which is set the default content document, which is the role of the browser when the request does not specify the name of the document, the default document to the browser. For a more detailed explanation, you can click Help in Figure 3. This step is because the site's default content page is not index.asp, not in line with Chinese habits.

   Second, database design

First of all, a full-featured message should have what content should be saved? Visitor name (name), Visitor Homepage (homepage), visitor QQ (QQ), visitor's mailbox (email), visitor image (ICON), guest IP (IP), message content, message time (Date) This is information about visitors, What if the owner wants to reply to the message? OK, plus reply (Reply) and reply time (rdate), um ... And think about what's missing? Yes, there is also the owner of the management account: User name (Username), password (Password).

To save so much information, how should the database be designed? Guest's message is increasing, and the owner's management account is fixed, so should be divided into two tables, one to keep all the visitors ' messages and visitors ' information, the other is to save the owner's management account. OK, now you can start designing the database. Open access (available in Microsoft's Office software), create a blank database, Access prompts you to save the database, navigate to the folder where your message is located (I built a guestbook folder in the root directory of the site) and save it as Data.mdb:

: 2

Then double-click to create the table using the designer, as shown later:

To optimize the database, some fields need to be set:

ID: Set as primary key to determine data uniqueness to ensure accurate positioning of records in management

Name: The field size is set to 15 (few people have such a long name?). )

Email: Field size is 20 (also rarely has email address length exceeding this number)

ICON: Field size is 6 (see the following tutorial to understand why it is so small)

IP: Field size is 15 (can be calculated, four three-bit long numbers plus three decimal points)

Homepage: Field size is 30 (many friends are still using the domain name of level two or even three, so relax a bit)

Date: The default value is now () (with now () to get the system time when the new record was inserted)

Close the table window to indicate whether to save changes to the table, select Yes, and then change the table name to main, and create TABLE admin to save the admin account number:

Finally also need a record IP address of the table, this IP library can be searched online, or to Http://x-lover.com/temp/ip.mdb download, and then open the database Data.mdb, under the File menu to choose to obtain external data >> import, Then in the pop-up dialog box to select the database just downloaded, import, select the Address table, OK, now database Data.mdb should have such three tables:

: 3

At this point, the preparation is complete.

Program Run configuration is finished, nonsense not to say, directly start our DW MX 2004 Experience Tour bar.

   Third, the site definition of DW

In the previous section we defined the site root directory in IIS in E:\\\\\\\\work, and now go into this directory to create a new folder and name it Geustbook.

Open DW, find manage Sites under the site menu ... Item click, see the following figure:

Open the Manage Site dialog box, click New ..., and in the Drop-down menu, select site to define the new sites:

Follow the new Site Definition Wizard step-by-step to define our message board site. Fill in the Geustbook on the site name:

: 4

To continue the next step of the background technology selection, here we choose to use VBScript as the Scripting asp:

Click Next> to continue next to the site folder settings as we are now in the local test, and the Gustbook folder is in E:\\\\\\\\work\\\\\\\\guestbook, so set the following:

Point next> continue to the next step to set the test URL for DW:

: 5

Continue to the next step because we do not need a remote server to participate in the native test, so select No:

Point next> continue to the next step, here is the information we just filled out, in order to make sure that if we find something wrong, we can point back


A more careful friend may find that there are two tags on the site Definition dialog: base and advanced, which are used in the same way, but base is step-by-step wizard mode, and advanced is a high-level model for friends who have some knowledge of DW, Interested friends can switch to advanced mode to see for themselves.



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.