#
# This is a Template-File for WWWdb
#
#
#

# --- Description of the data to access -----------------------------------------
[Data]
Table    = wwwdb_cat_cat
Order    =

UpdFields = id_cat_of_cat
QryFields = id_cat_of_cat
IdField   = id_category

[Cache]
Timeout         = 0

# --- Configuring the browser here ----------------------------------------------
[Browser]
; MaxRows = <Nomber of rows shown in query>

# --- General header for WWWdb --------------------------------------------------
[Header]
Title = Modifying WWWdb category-to-category links

# --- User-specific gui definitions ---------------------------------------------
[GUI]
; BgColor = <Default background-color>
; FgColor = <Default foreground-color>

; DontConfirmAfterDelete = <Value if yes>
; DontConfirmAfterInsert = <Value if yes>
; DontConfirmAfterUpdate = <Value if yes>

# --- Definition of the different states ----------------------------------------

# Buttons for all states
# please note that "-" deactivates a Button
[State All]
; BtnCancel  = <Text for Button>
; BtnHelp    = <Text for Button>

# This is the state when the form is called the first time, or the Back-button
# is pressed
[State Init]
; Header = <Heading for initial-state>
; BtnNew = <Text for Button>
; BtnQry = <Text for Button>
; Btn<YourBtn> = <Text for your Button>

# In this state you have selected a record, which you can update or delete
[State Work]
; Header = <Text for work-state>
; BtnUpd = <Text for Button>
; BtnDel = <Text for Button>

# This is the record-Browser
[State Qry]
; Header = <Text for query-state>

# --- Layout for the area, the data is shown ------------------------------------
[Layout Table]
; LinkWidth = <Width of link-box in pixels>
; Border      = <Border-Width>
; BgColor     = <Background-color of table>

# --- Here are the examples for the single fields -------------------------------
;[Layout Label <fieldname>]
;Text = <Text of label>
;Pos  = <Coordinates of this field  <[+]Row.[+]Column[+Span].[+]Stack-Order>

;[Layout Field <fieldname>]
;Pos      = <Coordinates of this field  <[+]Row.[+]Column[+Span].[+]Stack-Order>
;Type     = Area
;Type     = Checkbutton
;Type     = Hidden
;Type     = Password
;Type     = Radio
;Type     = Select
;Type     = Text
;Help     = <Help-Text> # Not correctly implemented yet
;Multiple = <Value if Yes>
;Size     = 3
;Values   = <<EOF

# Attributes
;Align     = center | left | right
;BgColor   = <Color>
;Big       = <Value if Yes>
;Blink     = <Value if Yes>
;Bold      = <Value if Yes>
;Bold      = Value if Yes>
;Font      = color=#000090
;Font      = color=<Foreground-color>
;Font      = face=<Font>
;Font      = size=<[+-]<Size>>
;Italic    = <Value if Yes>
;NoWrap    = <Value if Yes>
;Small     = <Value if Yes>

[Layout Label id_cat_of_cat]
Pos = +1.0.0
Text = "Id of category: "
Bold = Yes
Align = Right


[Layout Field id_cat_of_cat]
Pos = +0.+1.0
Type = Select
Values = <<EOF
SELECT id_category, name_chain
FROM wwwdb_category
ORDER BY name_chain
EOF
Rows = 5
Mandatory = Yes

[Layout Label id_category]
Pos = +1.0.0
Text = "See also: "
Bold = Yes
Align = Right

[Layout Field id_category]
Pos = +0.+1.0
Type = Select
Values = <<EOF
SELECT id_category, name_chain
FROM wwwdb_category
ORDER BY name_chain
EOF
Rows = 5
Mandatory = Yes


[Layout Label dont_forget]
Pos = +3.+1+1.0
Text = "And don't forget to re-organize the category-indices "
Small = Yes
Align=center

[Layout Label dont_forget1]
Pos = +0.+0.+1
Text = "here"
Ref = "wwwdb://WWWdb:NavCatReorg"
Small = Yes

[Layout Label dont_forget2]
Pos = +0.+0.+1
Text = "!<BR><BR>"
Small = Yes


