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

UpdFields = ref_link, descript, descript_txt_id, sort_nr, attribs
QryFields = ref_link, descript

IdField   = id_object


[Cache]
Timeout         = 0

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

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


# --- General header for WWWdb --------------------------------------------------
[Header]
Title = Edit WWWdb-Navigation-Objects

# --- User-specific gui definitions ---------------------------------------------
[GUI]

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

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

# 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 =
BtnQry =

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

# 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>

[Layout Table]

[Layout Qry _link]
Type            = Ref
Value           = "<  >"
Align           = Left

# --- Here are the examples for the single fields -------------------------------


[Layout Label hdr_object]
Pos = +1.0+1.0
Text = "The WWWdb-object"
Align = Center
Bold = Yes
BgColor = #fafafa
Font = color=blue

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

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


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

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

[Layout Label ref_link]
Pos = +1.0.0
Text = "Internet-Link: "
Align = Right
Bold = Yes

[Layout Field ref_link]
Pos = +0.+1.+0
Type = Hidden
Size = 40

[Layout Field link_type]
Pos = +0.+0.+1
Type = Select
Size = 1
Mandatory = Yes
Values = <<EOF
http\,WWW-Site
wwwdb\,WWWdb-Object
EOF

[Layout Field link_value]
Pos = +0.+0.+1
Type = Text
Size = 30
Mandatory = Yes
Values = ""


[Layout Label link_value]
Pos = +0.+0.+1
Type = Label
Text = ";"


[Layout Field link_param]
Pos = +0.+0.+1
Type = Text
Size = 20

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

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

[Layout Field descript_txt_id]
Pos = +0.+1.1
Type = Hidden

[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
Rows = 1
MustMatch = "^\d{0,6}$"
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 hr1]
Pos = +1.0+1.0
Text = "<HR>"


[Layout Label hdr_swords]
Pos = +1.0+1.0
Text = "Headwords for this object"
Align = Center
Bold = Yes
BgColor = #fafafa
Font = color=blue
ToLower = Yes

[Layout Label hdr_swords1]
Pos = +0.+0.+1
Text = " (Not for Queries yet!)"
Small = Yes

[Layout Label swords]
Pos = +1.0.0
Text = "Assigned headwords: "
Align = Right
VAlign = Top
Bold = Yes

[Layout Label swords1]
Pos = +0.+0.+1
Text = "<BR>Please enter the single words<BR>separated by space or newline"
Small = Yes

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


[Layout Label hr2]
Pos = +1.0+1.0
Text = "<HR>"


[Layout Label hdr_cat]
Pos = +1.0+1.0
Text = "Category for this object"
Align = Center
Bold = Yes
BgColor = #fafafa
Font = color=blue

[Layout Label hdr_cat1]
Pos = +0.+0.+1
Text = " (Not for Queries yet!)"
Small = Yes

[Layout Label cat]
Pos = +1.0.0
Text = "Assigned category: "
Align = Right
VAlign = Top
Bold = Yes

[Layout Label cat1]
Pos = +0.+0.+1
Text = "<BR>Please select a category"
Small = Yes

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

[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



