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

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

UpdFields = category, sub_category, description, document, sort_nr
QryFields = category, sub_category, description, sort_nr, last_change

IdField = id_doc, lang

[Cache]
Timeout         = 0

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

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


# --- General header for WWWdb --------------------------------------------------
[Header]
Title = Edit WWWdb-Documentation-Entries

# --- 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     =
BtnView    = Preview
BtnImpInit = Import

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

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

[Layout Label id_doc]
Pos = +1.0.0
Text = "Id of Doc-entry: "
Align = Right
Bold = Yes

[Layout Field id_doc]
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 lang]
Pos = +0.+0.+1
Text = "   "

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

[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 show_url]
Pos = +1.+0.+0
Text = "Show this Document with: "
Align = Right
Bold = Yes

[Layout Field show_url]
Pos = +0.+1.+0
Type = Label
Value = ""
SafeText = Yes

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

[Layout Field category]
Pos = +0.+1.+0
Type = Text
Size = 75
Mandatory = Yes

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

[Layout Field sub_category]
Pos = +0.+1.+0
Size = 75

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

[Layout Field description]
Pos = +0.+1.0
Size = 75
Mandatory = Yes


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

[Layout Field document]
Pos = +0.+1.0
Type = Area
Size = 72
Rows = 24
Mandatory = Yes

[Layout Label import_file]
Pos = +1.0.0
Text = "Import-File: "
Align = Right
VAlign = Top
Bold = Yes

[Layout Field import_file]
Pos = +0.+1.0
Type = File
Size = 50
MaxLength = 512000
Accept = "text/html"


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

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