 |
Procedure
|

|
prepping for the exercise
- download starter files, move to
upload folder
- new site "e5-chaamps"
- examine downloaded files
- dupe "entry.html", rename "entry.php", open renamed file
- examine database tables (chaamps2, list2):
http://65.61.219.1/MyAdmin/indexsite.php
user: paulananda2
pw: _______________
making the CSS style sheet
- examine file structure
- add new CSS style (define in new style sheet file)
- redefine <p>: 11/14 verdana
- redefine <a>: decoration none, font color=#FF0066
- new style "a:hover" (css selector): underline, font
color=#FF0066
- new style ".head" (class): font
color=#FF0066
- new style ".lite" (class): font color=#6E7B5B
- dupe <p>, rename ".small" (class): 9px
- dupe <p>, rename ".textbox" (class): border
1px, color=#6E7B5B
- dupe <p>, rename ".button" (class): font color=white;
background color=#6E7B5B; border=2px solid, color=#6E7B5B
- dupe <p>, rename ".ID" (class): 18px, font
color=white
- apply styles, preview
setting up the server
- edit site "e5-chaamps"
- remote and testing server ("jsmith-chaamps" doesn't
exist yet):
host: ftp.electric-pictures.com
dir: public_html/jsmith-chaamps
login: gds215student
pw: _______________
testing server URL prefix:
http://gds215student.electric-pictures.com/jsmith-chaamps/
- window > databases: + connection (this is site specific)
name: ep
mysql server: 127.0.0.1
user: paulananda2
pw: _______________
database: electric-pictures_com_-_db
- upload files including "Connections" folder (for testing)
finishing the form
- label each form field with logical name (i.e. "EntryType")
- window > bindings: + record set (query) (this is file specific)
connection: chaamps,
table: list2
- type of entry: list values: add "select one" (initially selected),
"professional", "student"
- category: bind to dynamic source: add "select one" (initially
selected), value=value, label=categeory
- change "submit" button to "proofread"
- select form: post "proofread.php"
- save, upload (cmd+shift+U), preview (F12)
inserting fields in "proofread.php"
- dupe "proofread.html", rename "proofread.php"
- link CSS style sheet, apply
- window > bindings: + form variable "EntryType" (must
match field names in "entry.php"); insert, test
- repeat with other form variables
- insert hidden field "EntryType", bind to form field
(this connects the form field to the hidden field); repeat
- window > bindings: + record set (query) (this is file specific)
connection: chaamps
table: chaamps2
- EDIT button: add behavior "call javascript": "javascript:history.go(-1)"
- select <form>: add server behavior "insert record",
fill out form (inserts hidden field into database)
- test
finish "print.php"
- duplicate "print.html", rename "print.php"
- link CSS style sheet, apply
- window > bindings: + record set (query) (this is file specific)
connection: chaamps
table: chaamps2
sort: ID (descending)
- insert record bindings
- insert hidden field "recordID", bind to "ID"
- PRINT button: add behavior "call javascript":
onClick="window.print()"
- ADDITIONAL ENTRY button action=submit form; select <form>:
action=entry2.php
- NEW ENTRY button: add behavior "go to URL": entry.php
- DONE button: add behavior "call javascript": "Javascript:onClick=self.close()"
revise "entry2.php"
- open "entry.php", add "validate form" behavior
to "proofread" button
- save, save as "entry2.php"
- revise, save, test
- make links to your
work from your projects page
- test on a PC
|