Plan the Orders Management Intranet

This first section of this tutorial helps you create all the files and database tables needed for the application.

Before you start building this application, make sure you have a correctly configured Dreamweaver site and a working database connection. For more instructions regarding these actions, consult the Getting started help file, which can be found in Help -> InterAKT -> Getting Started.

Through the tutorial, you will have to create several files in your site's root. You can create them at the very beginning, so that you will not waste time with this operation again. To create files and folders in the site's root, use the corresponding options in the Files tab of the Files panel.

The file structure will look as in the example below and you can create it easily by unpacking the zip file corresponding to your server model from \tutorials\Orders Management\ in your site root:

 

The use of each file will be explained when building its content.

Besides the files and folders seen in the image above, the final application will contain some more, generated by Dreamweaver and MX Kollection. For example, the forgot_password and activate pages will be generated automatically by the user authentication system, while the connection folder is created by Dreamweaver.

 

After having created the files for your pages, it is time to set up the database that will hold the information to display. For this tutorial you will use several tables containing various data regarding the ads and users. The database structure is as displayed in the image below:

 

 

Note: The database diagram in the image above was built with MX Query Builder (also referred as QuB) to better illustrate the database structure. You do not need to build it in order to complete this tutorial.

 

Each table and column's importance will be detailed in what follows:

  1. The user_usr table stores information regarding the user. Its fields are used for:

  2. The product_prd table stores information regarding the available products:

  3. The status_sta table stores the possible states of an order:

  4. The order_ord table stores information that relates directly to an order:

  5. The order_product_orp table is a linking table for the order and product tables, replacing a many-to-many relation. It contains the following fields:

The scripts necessary to create this table structure are provided inside the downloaded package, in the \tutorials\Orders Management\db\ folder, as an sql or mdb file. Use the one that suits your particular database server. You can either create a new database or use an existing one, and import the contents of the scripts to create the table structure, together with the sample data: usernames and products.

The existing accounts are:

  1. Username: John Doe; E-mail: johndoe@domain.org; password: root; active: yes; level: administrator.

  2. Username: Jane; E-mail: jane@domain.org; password: root; active: yes; level: purchaser.

You can use these accounts to test the application, as you build it, without having to register your own account.

Once the database and files have been set up, you have to connect your application to the database server. To do so, open the index file of your new application and define a new Dreamweaver connection. If using the files from the zip package and a connection is already available, you will have to edit the connection and provide your particular connection settings:

 

When all prerequisites for the site have been met, you can move on and start creating the site's pages.