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

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

UpdFields = DbDriver, Database, User, Password
QryFields =

IdField   = dummy

[Cache]
Timeout         = 0

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

# --- General header for WWWdb --------------------------------------------------
[Header]
Title = "Select Database Options"

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

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

# This is the state when the form is called the first time, or the Back-button
# is pressed
[State Init]
Header = ""
BtnNew = -
BtnQry = -
BtnPrev = "<< Previous"
BtnNext = Next >>

# In this state you have selected a record, which you can update or delete
[State Work]
Header = ""
BtnUpd = -
BtnDel = -

# This is the record-Browser
[State Qry]
Header = ""

# --- 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 <fieldname>]
;Text = <Text of label>
;Pos  = <Coordinates of this field  <[+]Row.[+]Column[+Span].[+]Stack-Order>

;[Layout Field <fieldname>]
;Pos      = <Coordinates of this field  <[+]Row.[+]Column[+Span].[+]Stack-Order>
;Type     = Area
;Type     = Checkbutton
;Type     = Hidden
;Type     = Password
;Type     = Radio
;Type     = Select
;Type     = Text
;Help     = <Help-Text> # Not correctly implemented yet
;Multiple = <Value if Yes>
;Size     = 3
;Values   = <<EOF

# Attributes
;Align     = center | left | right
;BgColor   = <Color>
;Big       = <Value if Yes>
;Blink     = <Value if Yes>
;Bold      = <Value if Yes>
;Bold      = Value if Yes>
;Font      = color=#000090
;Font      = color=<Foreground-color>
;Font      = face=<Font>
;Font      = size=<[+-]<Size>>
;Italic    = <Value if Yes>
;NoWrap    = <Value if Yes>
;Small     = <Value if Yes>


[Layout Label ExplainText]
Pos  = +1.0+1.0
Text = <<EOF

<P>

Now we need to select the following things:

<OL>
   <LI>

        The <B>name</B> of the database, from which
        we want to select, the data.

   </LI>
   <LI>

        The <B>hostname</B> of the database-server (this field may
        be left blank).

   </LI>
   <LI>

        The <B>username</B>, which we need to access the database.

   </LI>
   <LI>

        The <B>password</B>, which is assigned to that username.

   </LI>
</OL>
</P>

<P>

Please fill in th following data:

</P>

<HR>
EOF


[Layout Label DbDriver]
Text = "Database-Driver: "
Pos  = +1.0.0
Align = right

[Layout Field DbDriver]
Pos  = +0.+1.0
Type = Label
Bold = yes

[Layout Label Database]
Text = "Name of database: "
Pos  = +1.0.0
Align = right

[Layout Field Database]
Pos  = +0.+1.0
Type = Select
Values = <<EOF
EOF

[Layout Label Host]
Text = "Hostname of the DB-server: "
Pos  = +1.0.0
Align = right

[Layout Field Host]
Pos  = +0.+1.0

[Layout Label User]
Text = "Username at database: "
Pos  = +1.0.0
Align = right

[Layout Field User]
Pos  = +0.+1.0

[Layout Label Password]
Text = "Password at database: "
Pos  = +1.0.0
Align = right

[Layout Field Password]
Pos  = +0.+1.0
Type = Password

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