Jelix 1.8.14-pre

block.formsubmits.php

Tags
subpackage

jtpl_plugin

author

Laurent Jouanneau

contributor

Mickaël Fradin

copyright

2007-2020 Laurent Jouanneau, 2007 Mickaël Fradin

see
http://www.jelix.org
licence

GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html

Table of Contents

jtpl_block_html_formsubmits()  : string
a block to loop over submit button list of a form and to display them.

Functions

jtpl_block_html_formsubmits()

a block to loop over submit button list of a form and to display them.

jtpl_block_html_formsubmits(jTplCompiler $compiler, bool $begin[, array<string|int, mixed> $param = array() ]) : string

usage : {formsubmits} here content to display one submit {/formsubmits} It accept also some parameters

  1. an optional jFormsBase object if the {formsubmits} is outside a {form} block
  2. an optional array of submit control names : only these controls will be displayed
Parameters
$compiler : jTplCompiler

the template compiler

$begin : bool

true if it is the begin of block, else false

$param : array<string|int, mixed> = array()

empty array or 0=>jFormsBase object or 0=>jFormsBase object, 1=>array of submit names or 0=>array of submit names

Tags
see
jForms
Return values
string

the php code corresponding to the begin or end of the block

Search results