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

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

UpdFields = sword
QryFields = descript

IdField   = id_sword

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

[Qry]
BgColor2    = #fafafa
NrOfColLine = 1
SelType     = None


# --- General header for WWWdb --------------------------------------------------
[Header]
Title = Navigation in the defined categories

# --- 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 = "Navigation in WWWdb"
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>

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

[Layout Label sword]
Pos = 0.0.0
Text = "Search for this word"
Small = Yes
BgColor = #f0f0f0

[Layout Field sword]
Pos = +0.+0.+1
Size = 40
Small = Yes

[Layout Field search_lang]
Pos = +0.+0.+1
Size = 1
Type = Select
Values = <<EOF
SELECT   key_value, label, sort_nr
FROM     wwwdb_lookup
WHERE    key_name = 'lang'  AND
         lang     = 'en'
ORDER BY sort_nr

EOF

; [Layout Field search_where]
; Pos = +0.+0.+1
; Size = 1
; Type = Select
; Values = <<EOF
; All\,All categories
; Sub\,All subcategories
; EOF

; [Layout Field search_cond]
; Pos = +0.+0.+1
; Size = 1
; Type = Select
; Values = <<EOF
; and\,All words match
; or\,One of the words matches
; EOF

[Layout Field Search]
Pos = +0.+0.+1
Type = Btn
Label = "Start Search"
Small = Yes


[Layout Field id_category]
Pos = +1.0.0
Text = ""
Type = Hidden
Small = Yes


[Layout Label hier]
Pos = +1.0.0
Text = ""
SafeText = Yes
Bold = Yes
BgColor = #f0f0f0
Small = Yes

[Layout Label subcat]
Pos = +2.0.0
Text = "Topics:<BR><HR>"
Bold = Yes
Small = Yes

[Layout Label subcat1]
Pos = +1.0.0
Text = ""
Type = Label
SafeText = Yes
Small = Yes



[Layout Label see_also]
Pos = +2.0.0
Text = "See also:<BR><HR>"
Bold = Yes
Small = Yes


[Layout Label see_also1]
Pos = +1.0.0
Text = ""
SafeText = Yes
Small = Yes



[Layout Label objects]
Pos = +2.0.0
Text = "Results:<BR><HR>"
Bold = Yes
Small = Yes


[Layout Label objects1]
Pos = +1.0.0
Text = ""
Small = Yes


[Layout Label search_result]
Pos = +2.0.0
Text = ""
Bold = Yes
Small = Yes


[Layout Label search_result1]
Pos = +1.0.0
Text = ""
Small = Yes

[Layout Label link]
Pos = +1.0.0
Text = ""
Small = Yes

[Layout Label link1]
Pos = +1.0.0
Text = ""
Small = Yes

[Layout Qry link]
Pos = +1.0.0
Text = ""
Type = Ref
Value = "->"
Align = Right

[Layout Label descript]
Pos = +1.0.0
Text = ""
Small = Yes

[Layout Field descript]
Pos = +1.0.0
Text = ""
Type = Hidden
Small = Yes

[Layout Qry descript]
Text = Description
Align = Left

[Layout Label id_sword]
Pos = +1.0.0
Text = ""
Small = Yes

[Layout Label id_sword1]
Pos = +1.0.0
Text = ""
Small = Yes


