Danh mục

PHP & MySQL for Dummies- P8

Số trang: 50      Loại file: pdf      Dung lượng: 0.00 B      Lượt xem: 9      Lượt tải: 0    
Jamona

Hỗ trợ phí lưu trữ khi tải xuống: 16,000 VND Tải xuống file đầy đủ (50 trang) 0
Xem trước 5 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

Tham khảo tài liệu php & mysql for dummies- p8, công nghệ thông tin, cơ sở dữ liệu phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả
Nội dung trích xuất từ tài liệu:
PHP & MySQL for Dummies- P8 Chapter 11: Building an Online Catalog 331 You can then read the data from the file into the database in phpMyAdmin. Reading data from a file is described in Chapter 4. Any time the data table gets odd, you can re-create it and read in the data again. Designing the Look and Feel After you know what the application is going to do and what information the database contains, you can design the look and feel of the application. The look and feel includes what the user sees and how the user interacts with the application. Your design should be attractive and easy to use. You can plan this design on paper, indicating what the user sees, perhaps with sketches or with written descriptions. In your design, include the user interaction components, such as buttons or links, and describe their actions. You should include each page of the application in the design. If you’re lucky, you know a graphic designer who can develop beautiful Web pages for you. If you’re me, you just do your best with a limited amount of graphic know-how. The Pet Catalog has two look-and-feel designs: one for the catalog that the customer sees, and another, less fancy one for the part of the application that you or whoever is adding pets to the catalog uses. Showing pets to the customers The application includes three pages that customers see: ✓ The storefront page: This is the first page that customers see. It states the name of the business and the purpose of the Web site. ✓ The pet type page: This page lists all the types of pets and allows cus- tomers to select which type of pet they want to see. ✓ The pets page: This page shows all the pets of the selected type. Storefront page The storefront page is the introductory page for the Pet Store. Because most people already know what a pet store is, this page doesn’t need to provide much explanation. Figure 11-1 shows the storefront page. The only customer action available on this page is a link that the customer can click to see the Pet Catalog.Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. 332 Part IV: Applications Figure 11-1: The opening page of the Pet Store Web site. Pet type page The pet type page lists all the types of pets in the catalog. Each pet type is listed with its description. Figure 11-2 shows the pet type page. Radio buttons appear next to each pet type so that customers can select the type of pet that they want to see. Pets page The pets page lists all the pets of the selected type. Each pet is listed with its pet ID, description, picture, and price. The pets page appears in a different format, depending on the information in the catalog database. Figures 11-3, 11-4, and 11-5 show some possible pets pages. Figure 11-3 shows a page listing three different dogs from the catalog. Figure 11-4 shows that more than one pet can have the same pet name. Notice that the house cats have different pet ID numbers. Figure 11-5 shows the output when pets are found in the Color table, indicating that more than one color is available. On all these pages, a line at the top reads Click on any picture to see a larger version. If the customer clicks the picture, a larger version of the picture is displayed.Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. Chapter 11: Building an Online Catalog 333 Figure 11-2: The pet type page of the Pet Store Web site. Figure 11-3: This pets page shows three differ- ent ...

Tài liệu được xem nhiều: