Textpattern PHP Cross Reference Content Management Systems

Summary: /textpattern/include/txp_form.php - 861 lines - 26074 bytes - Source - Print

Description: Forms panel.

Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 16 functions

form_list()
form_multi_edit()
form_create()
form_edit()
form_save()
form_delete()
form_replace()
form_skin_change()
form_set_type()
formTypes()
form_pop()
form_partial_name()
form_partial_type()
form_partial_name_value()
form_partial_type_value()
form_partial_template()

Functions

Functions that are not part of a class:

form_list($current line: 93
Renders a list of form templates.

This function returns a list of form templates, wrapped in a multi-edit
form widget.

return: string HTML
param: array  $current The selected form info
form_multi_edit()  line: 186
Processes multi-edit actions.

form_create()  line: 226
Creates a new form.

Directs requests back to the main editor panel, armed with a
'form_create' step.
form_edit($message = '', $refresh_partials = false)  line: 238
Renders the main Form editor panel.

param: string|array $message          The activity message
param: bool         $refresh_partials Whether to refresh partial contents
form_save()  line: 445
Saves a form template.

form_delete($name, $skin line: 572
Deletes a form template with the given name.

return: bool FALSE on error
param: string $name The form template
param: string $skin The form skin in use
form_replace($name, $skin, $newform = '')  line: 612
Replaces a form template in articles.

return: bool FALSE on error
param: string $name The form template
param: string $skin The form skin in use
param: string $newform The form skin in use
form_skin_change($skin = null)  line: 637
Changes the skin in which styles are being edited.

Keeps track of which skin is being edited from panel to panel.

param: string $skin Optional skin name. Read from GET/POST otherwise
form_set_type($name, $type line: 653
Changes a form template's type.

return: bool FALSE on error
param: string $name The form template
param: string $type The new type
formTypes($type, $blank_first = true, $id = 'type', $disabled = false)  line: 676
Renders a <select> input listing all form types.

return: string HTML
param: string $type        The selected option
param: bool   $blank_first If TRUE, the list defaults to an empty selection
param: string $id          HTML id attribute value
param: bool   $disabled    If TRUE renders the select disabled
form_pop($skin, $id line: 694
Renders 'override form' field.

return: string HTML <select> input
param: string $id      HTML id to apply to the input control
param: string $skin The theme that is currently in use
form_partial_name($rs line: 719
Renders form name field.

return: string HTML
param: array  $rs Record set
form_partial_type($rs line: 761
Renders form type field.

return: string HTML
param: array  $rs Record set
form_partial_name_value($rs line: 803
Renders form name value.

return: string HTML
param: array  $rs Record set
form_partial_type_value($rs line: 815
Renders form type value.

return: string HTML
param: array  $rs Record set
form_partial_template($rs line: 827
Renders form textarea field.

return: string HTML
param: array  $rs Record set

title

Body