This page requires java-script to be enabled. Please adjust your browser-settings.
streber
PM
Login
|
Register
Home
Recent changes
Your Tasks
Efforts
Bookmarks
Overall changes
P
rojects
for
streber commun...
streber
People
Companies
S
earch:
streber
>
Tasks
|
Topics
|
Milestones
|
Versions
|
Files
|
Changes
Help
Development
> Folder
DevGuide
/
#3389
Move
new:
Task
Bug
Bookmark
Summary
Status
open
Opened
Dec 13, 2006
Created
Dec 14, 2006
/
pixtur
Modified
Dec 14, 2006
/
pixtur
View previous 12 versions
Further Documentation
Labeling of UI Elements
Handling Pages
pageHandle
Rendering Pages
Basic framework of a page function
Handling Data
submit page function
adding fields
Overwriting pages with customized versions
PageHandler
fast implementation of a news block
Files Internals
ajax driven recent changes
Database Design
Attached files
Attached files
No files uploaded
This is a draft
An introduction to the code
Handling Pages
- describes how pages and functions are handled by the page-handler.
About Page Handles
Rendering Pages
describes how actuall html-code is generated.
Basic framework of a page function
Common Page Elements
Handling Data
- database / form parsing
submit page function
adding fields
excellent tutorial by Dominic
What is necessary to create a form page
add a new add two
pageHandle
s to _handles.inc: "testForm" and "testFormSubmit"
add an appropriate function to the required source-file in pages/
add a basic framework of a page function "testForm"
probable add some authentication checks
add a formBlock with the field-definitions
define a second submit page function "testFormSubmit" the get the requestData, modifies objects and either jumps back to the from-page, renders it's own page or jumps to another page like "home"
Some other hints
in the submit function your could call printFormVars() to get a overview of the passed fields
the input-names should start with a meaningfull identifier like "test_"
prefer new Field_XXX instead of hard coded html-code (this will make your code open for upcomming additional security and consistency-checks)
Sub tasks
Sub tasks
List
Tree
Grouped
P
Status
Label
Task name
Assigned to
Milestone
Due
new
test
(0)
Edit
Add new Task
Report new Bug
Add comment
Delete
Status->Completed
Status->Approved
Status->Closed
Move tasks
Log hours for select tasks
Mark as bookmark
Comment / Update
Add comment
Comment
Details
(
Wiki format
)
Request feedback
Please copy the text