;
; Editing of Navigation-Categories
;


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

UpdFields = id_cat_of_cat, name, name_txt_id, description, id_chain, name_chain, name_chain_txt_id, sort_nr, attribs, description_txt_id
QryFields = id_cat_of_cat, name, description, sort_nr

IdField   = id_category

[Cache]
Timeout         = 0

# --- Configuring the browser here ----------------------------------------------
[Browser]
MaxRows = 20

[Qry]
BgColor2    = #e0e0e0
NrOfColLine = 5
SelType = Link

# --- General header for WWWdb --------------------------------------------------
[Header]
Title = Modifying WWWdb-navigation-sections

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

# Buttons for all states
# please note that "-" deactivates a Button
[State All]

# 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 Qry _link]
Text = ""
Type = Ref
Value = "<  >"
Align = Right

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


[Layout Field id_category]
Pos = +0.+1.0
Bold = Yes
Type = Label

[Layout Label id_system]
Pos = +0.+0.+1
Text = "   "

[Layout Field id_system]
Pos = +0.+0.+1
Type = Checkbutton
Text = "   System"

[Layout Label id_cat_of_cat]
Pos = +1.0.0
Text = "Parent: "
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 name]
Pos = +1.0.0
Text = "Name: "
Bold = Yes
Align = Right

[Layout Field name]
Pos = +0.+1.0
Size = 60
Mandatory = Yes

[Layout Label description]
Pos = +1.0.0
Text = "Short description: "
Bold = Yes
Align = Right
VAlign = Top

[Layout Field description]
Pos = +0.+1.0
Size = 60
Rows = 2
Type = Area
Mandatory = Yes


[Layout Label sort_nr]
Pos = +1.0.0
Text = "Sort-number: "
Align = Right
VAlign = Top
Bold = Yes

[Layout Field sort_nr]
Pos = +0.+1.0
Type = Text
Size = 6
MustMatch = "^\d{0,6}$"
Rows = 1
Values = ""

[Layout Label poss_attribs]
Pos = +1.0.0
Text = "Possible Attributes: "
Align = Right
VAlign = Top
Bold = Yes
Small = Yes

[Layout Field poss_attribs]
Pos = +0.+1.0
Type = Select
Rows = 3
Multiple = Yes
NoUndef = Yes
VAlign = Top
Values = ""

[Layout Field CopyAttribs]
Pos = +0.+0.+1
Type = Btn
VAlign = Top
Label = "<-- Copy Attribs --v"

[Layout Label attribs]
Pos = +1.0.0
Text = "Attributes, that must  <BR>be set for this session: "
Align = Right
VAlign = Top
Bold = Yes
Small = Yes

[Layout Field attribs]
Pos = +0.+1.0
Type = Area
Rows = 3
Size = 60


[Layout Label id_chain]
Pos = +1.0.0
Text = "Chain (Id): "
Bold = Yes
Align = Right
VAlign = Top

[Layout Field id_chain]
Pos = +0.+1.0
Type = Label
Rows = 1
Size = 60

[Layout Label name_chain]
Pos = +1.0.0
Text = "Chain (Names): "
Bold = Yes
Align = Right
VAlign = Top

[Layout Field name_chain]
Pos = +0.+1.0
Type = Label
Rows = 1
Size = 60


[Layout Field description_txt_id]
Pos = +1.0.0
Type = Hidden

[Layout Field name_txt_id]
Pos = +0.+0.+1
Type = Hidden

[Layout Field name_chain_txt_id]
Pos = +0.+0.+1
Type = Hidden

[Layout Field last_change]
Pos = +0.+0.+1
Type = Hidden

[Layout Label pls_note0]
Pos = +3.+1+1.0
Text = <<EOF
Please note, that all the entries, you make here,
are considered, to be in the base language, which is currently
EOF

Small = Yes
Align = Center

[Layout Field base_lang]
Pos = +0.+0.+1
Type = Label
Small = Yes
Bold = yes
Value = ""

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