Hilfe: SQLEdit TemplateThe following template variables are available for SQLEdit templates.
error_loop*
A loop containing error information, for instance if someone doesn't fill out a
required field.
error.message
An error message indicating what the user might have done wrong.
error.field
The field that has problems.
field.*,value
If we are going to edit an existing record, for every columns table, exists
a parameter field.[column_name].value set to the value of the column [column_name]
in the current record.
fields_loop
This loop contains all of the information about database columns. If this
parameter is used, the field template settings
will be ignored.
field.adminTools
The parameter that create the images and links required to edit column
field. It is not null only if user can edit page.
field.form
The html code which build the form field.
field.iseditable
It's TRUE only if the field is editable.
field.ishidden
It's TRUE only if the field is hidden.
field.isidentity
It's TRUE only if the field is an identity field (a.k.a. auto_increment)
field.isrequired
It's TRUE only if the field is required.
field.isvisible
It's TRUE only if the field is visibile.
field.iswrong
It's TRUE only if the field is required but users don't have set a value
for it.
field.label
The label for the field
field.name
The column name of the field.
form.fields.template
This is an alternative to fields_loop and define the HTML code that render
fields not with a TMPL_LOOP but with a single TMPL_VAR. The HTML code to render
form fields will be taken by field template.
form.begin
It's value is related to the property field "Begin a new form?"
form.end
It's value is related to the property field "End the form?"
form.hiddens
Add to forms some hidden fields required for its functionality
form.next
Add a list of operation to execute after saving current record.
form.isNew
It's TRUE if you are going to add new record to table.
form.submit.extras
Add the onClick function to submit button to implement the "Please wait..."
label.
mode
Explain what kind of operation we are going to do. If not defined or 'new'
it shows that we are going to add a new record. If is 'edit' it shows that we
are going to edit an existing record. If it's value is 'del' that we are going
to delete an existing record.
wobject.Id
Current Wobject id. Useful to create links.
Default template uses ^International macro to create some piece of HTML
traslated code. ^International is a programmer macro and, by default, these
macros are disabled in WebGUI. E.g., if you see ^International(62); in the
submit button instead of "save", this macro is disabled.
To enable ^International, edit WebGUI.conf and append
International => International
into the end of macro section. As an example, if the last line of macro
section was
u => u_companyUrl
replace with
u => u_companyUrl, \
International => International
Obviously you can always replace ^International macro in the template with
you preferred statical translation but, in this way, you lost dynamical
translation possibility. Siehe auch: |