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

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

UpdFields = id_doc, lang, category, sub_category, description, document, last_change
QryFields = category, sub_category, description, document

IdField   = id_doc, lang


[Cache]
Timeout         = 0

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

# --- General header for WWWdb --------------------------------------------------
[Header]
Title = "Translate Documents"

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

# --- 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 = -
BtnView    = Preview
; 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 = "Translate this document"
BtnUpd = Translate
BtnDel = -
BtnView = Preview
BtnImp = Import
BtnBase = Base

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

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

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

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

[Layout Label export_file]
Pos = +1.+0.+0
Text = "Export-file:"
Align = Right
Bold = Yes

[Layout Field export_file]
Pos = +0.+1.+0
Type = Ref
Value = "->"
SafeText = Yes

[Layout Label text_base_lang]
Pos = +2.0.0
Text = "Doc (base-language): "
Bold = Yes
Align = Right

[Layout Label text_base_lang1]
Pos = +0.+0.+1
Text = "<BR>"

[Layout Field base_lang]
Pos = +0.+0.+1
Bold = Yes
Type = Label

[Layout Field text_base_lang]
Pos = +0.+1.0
Type = Label
BgColor    = #e0e0e0
SafeText = Yes

[Layout Label document]
Pos = +1.0.0
Text = "Doc (translated): "
Bold = Yes
Align = Right

[Layout Label text1]
Pos = +0.+0.+1
Text = "<BR>"

[Layout Field lang]
Pos = +0.+0.+1
Bold = Yes
Type = Label

[Layout Field document]
Pos = +0.+1.0
Bold = Yes
Type = Area
Size = 75
Rows = 20


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

[Layout Field category]
Pos = +0.+1.0
Bold = Yes
Type = Text
Size = 75

[Layout Label sub_category]
Pos = +1.0.0
Text = "Sub-Category: "
Bold = Yes
Align = Right

[Layout Field sub_category]
Pos = +0.+1.0
Bold = Yes
Type = Text
Size = 75



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

[Layout Field description]
Pos = +0.+1.0
Bold = Yes
Type = Text
Size = 75

[Layout Field id_doc]
Pos = +0.+1.0
Type = Hidden

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


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