The 4th chapter Doking ' the implementation of S BLOG home page
Now, all things all has, should begin Doking ' the implementation with the page design of S BLOG and downstage database.
4.1 Basic page is designed
Here, not be the knowledge that should talk about webpage art to create, explain to establish the train of thought of the page inside the website and method in the compose in Dreamweaver MX2004 however.
4.1.1 websites design train of thought
Before every webpage begins, should be in commonly Firworks or basic page design has been designed in the image design software such as Photoshop, graph 4-1-1 designs good basic page blueprint in Photoshop namely.
Graph 4-1-1 Doking ' blueprint of S BLOG basic page
What draw red to just encircle a part in ① of the serial number in graph 4-1-1 is the left column of the webpage, it is blank at present, after its column is in paragraphic in can add one by one those who go up, the navigation that what the red on picture of serial number ② just encircles a part is a website, the LM in the Dkblog.mdb database that builds by the 3rd chapter expresses trends to generate it. After main train of thought is clear already, begin compose to build the pattern plate of the website.
4.1.2 compose build website pattern plate
Design train of thought: Compose builds website pattern plate, unite website webpage design. The column menu content of the website expresses dynamic LM to generate as a result of data, the modification of content of menu of column of convenient also website.
(1) open [file] → [build] , open [new documentation] dialog box, choose " category: " for " pattern plate page " , choose " pattern plate page: " for " ASP.NET VB pattern plate " , if pursue,as a result 4-1-2 place is shown.
Graph 4-1-2 Build pattern plate dialog box
(2) click " found " pushbutton, insert graph layer, in its attribute window, set ID for " Main " , " left (L) " and " on (T) " set for 0px, " wide (W) " set for 100% , set to neat means for be placed in the middle. It is for so webpage be placed in the middle.
(3) insert a form, set ID for " BodyT " , set wide for 780 resemble element (this is according to the width of your basic page blueprint design) , the edge of unit division is apart from and span setting is 0, frame degree of finish is set for 0.
(4) " BodyT " form the 2nd perpendicular set to neat means for top, again fractionation is 2, the 1st width is set for 220px, the 1st width is set for 560px (the width that distributes a line also is according to your basic page blueprint distributive) , set the 1st setting color for RGB (236, 236, 236) .
(5) to " BodyT " of form the first, insert corresponding setting figure 3 rows respectively, group perpendicular set to neat means for bottom, the level is set to neat means for right.
(6) still can design size of good caption, font according to need, the color of join font or or match colors plan.
(7) the navigation that builds a website.
① starts Access2003, open Dkblog.mdb database, 4 records such as process designing of planar design, 3D design, webpage design, network are inputted by order in the LM field that expresses in LM, if pursue,4-1-3 place is shown.
Graph 4-1-3 LM expresses data to type
② returns Dreamweaver, switch arrives [server behavior] face plate, click " + " pushbutton, leaving the alternative in pulling menu " data set " , if pursue,4-1-4 place is shown.
Graph 4-1-4 Add data set
③ is being played piece [data set] in the dialog box, data-in market name is " Menuda " , choose in menu is pulled below join " Dkconn " , in next in pulling menu choices of form LM is expressed, the choice is labelled " all " option, the field chooses in menu is pulled below sort " LMID " , set sort to be ascend, the result shows like graph 4-1-5 place:
Dialog box of graph 4-1-5 data set
④ is clicked " test " pushbutton, the dialog box that if graph 4-1-6 place is shown,appears, explain data set establishs a success, click " affirmatory " pushbutton is finished.
Graph 4-1-6 data set checks a dialog box
⑤ switch arrives [bind calm] option gets stuck, develop data set (the field of Menuda) , if graph 4-1-7 place shows:
Graph 4-1-7 Bind calm option card
Field of ⑥ dilatory LM reachs the first of form BodyT, if graph 4-1-8 place shows:
Field of graph 4-1-8 dilatory LM
⑦ unlocks a mouse, at this moment the first character that can increase a paragraph to take an umbrage: {menuda.LM} , input before its " homepage | " , ever since input symbol " | Contact us " , the result shows like graph 4-1-9 place:
Graph 4-1-9 In binding destiny to occupy BodyT to express
⑧ choice takes shadow character {menuda.LM} and the character from the back " | " , choice [insert] menu → [applied process object] → [repeat area] , playing piece [repeat area] data set of the choice in the dialog box is " Menuda " , choose indication record for " all records " , if what graph 4-1-10 shows, click " affirmatory " menu of navigation of the pushbutton website that finish.
Graph 4-1-10 repeats area dialog box
(7) move the mouse to form BodyT the 2nd the 2nd, choice [insert] menu → [pattern plate object] → [can edit area] , in [build can edit area] in the dialog box, input name is " Mainbody " , press " affirmatory " key, if what graph 4-1-11 shows:
Graph 4-1-11 Build can edit area
The initial stage that completes website pattern plate so works, save pattern plate to be Bkblog.dwt.aspx.
The page of 4.1.3 home page is designed
Design train of thought: After the pattern plate of the website that finish builds the job, be able to it comes compose builds website and newer website.
(1) build " ASP.NET VB " dynamic page, open [revise] menu → [pattern plate] → [use pattern plate to the page] , playing those who go out [choice pattern plate] in the dialog box, choose pattern plate " Dkblog " , click " choice " pushbutton, if what graph 4-1-12 shows:
Graph 4-1-12 Choose pattern plate
(2) move the mouse " Mainbody " in can editing area, insert form, set its ID to be " Ztre " , actually it is designed, this is the content that each study note will show.
Graph 4-1-13 Each learn the content that note will show
4.2 insert data set
This one explaining insertion what data set can explain without on one is so simple. See graph 4-1-13 above all, every study note will show a theme, publish time, note to classify (what belong to minute of column namely) , author (full name) , reply (several) , will see ZT express its blueprint again (3.2 medium graph 3-2-2) , have LMID only (the ID that classifies a column) , without column name, this should join LM expresses ability to obtain; Have YHID only (the ID of the person that publish) , without the author's full name, this should join YH expresses ability to obtain; Other can obtain data from inside ZT watch. "Very complex! " need not worry actually, can resolve all difficulty in Access.
4.2.1 build data to express join inquiry
(1) the Access2003 that start, choice [inquiry] → is doubleclicked [inquiry is founded in devising view] , playing go out [indication watch] the window, if graph 4-2-1 place shows:
Graph 4-2-1 Add inquiry linked list
(2) add LM watch, ZT watch, YH table respectively by order, the result shows like graph 4-2-2 place:
Graph 4-2-2 Data expresses join view
(3) it is inquiry field design, if graph 4-2-3 place shows:
Graph 4-2-3 Inquire field blueprint
(4) save this inquiry to be ZTRE, finish in Access data expresses join inquiry.
4.2.2 insert data set
(1) return Dreamweaver, switch arrives [server behavior] face plate, click " + " pushbutton, add data set Ztre, choice form inquires ZTRE for what a moment ago built in Access, the concerned setting of other, if graph 4-2-4 place shows:
Graph 4-2-4 The setting of Ztre data set
(2) switch arrives [bind calm] option gets stuck, develop data set (Ztre) , dilatory field ZTNAME replaces form Ztre medium " study note theme " , dilatory field ZTTIME is replaced " express time " , dilatory field LM is replaced " classification " , dilatory field ZYTEXT reachs the 2nd blank point of form Ztre, other design shows like graph 4-2-5 place:
Graph 4-2-5 In binding destiny to occupy Ztre to express
(3) switch arrives [server behavior] face plate, can look to already added a lot of dynamic text version, doubleclick dynamic text (Ztre.ZYTEXT) , choose a format to be " encode, HTML encode format " , if graph 4-2-6 place shows:
Graph 4-2-6 sets dynamic text pattern
(4) choose form Ztre the first, 2, 3, the repetition that defines them area, if graph 4-2-7 place is shown,its are installed.
Graph 4-2-7 The definition repeats area
Finished a homepage to insert data set and data to bind calm job so.
4.3 minutes of pages show
(1) choose " home page " , be in [server behavior] face plate, click " + " pushbutton, choice [data set distributes a page] → [move to the first page] , if graph 4-3-1 place shows:
Graph 4-3-1 Data set divides page bill of fare
(2) in shooting the dialog box that give, choice data set is Ztre, press " affirmatory " key, if graph 4-3-2 place shows:
Graph 4-3-2 Move to dialog box of the first page
(3) make choice of " before one page " , define amount to to distribute a page according to collect " move before coming one page " ; Make choice of " hind one page " , define amount to to distribute a page according to collect " move to below one page " ; Make choice of " finally " , define amount to to distribute a page according to collect " move to last page " .
(4) " page number " instead " current page number: " be in [server behavior] face plate, click " + " pushbutton, choice [indication record notes number] → [show current page sign] .
(5) saved Index.aspx, the design that completed home page so works, corresponding ZT watch, YH watch gives to input a few records casually in Access, in undertaking IE browser, browse (below paragraphic in if do not have special specification, note is belonged to completely " network process designing " column) , show like graph 4-3-3 place probably:
Graph 4-3-3 home page browses a graph

No comments:
Post a Comment