login | register
Thu 20 of Nov, 2008 (20:35 UTC)

bitweaver - Web Application Framework and CMS

Web Application Framework and CMS

Refresh cacheHistoryPrint

block_form

Created by: hiran, Last modification: Sun 14 of Jan, 2007 (15:08 UTC)
Generates the form element and some more.

Parameters

ipackagepackage where we should direct the form after submissionoptional
ifilefile that is targetted. if neither ifile or ianchor are set, $PHP_SELF is used as urloptional
ianchormove to anchor after submitting. if neither ifile or ianchor are set, $PHP_SELF is used as urloptional
legendif set, it will generate a fieldset using the input as legendoptional

Note Don't use this plugin if legend is generated dynamically since it is passed through tra()


Sample

{form enctype="multipart/form-data" id="editsampleform"}
	<div class="row">
		{formlabel label="Title" for="title"}
		{forminput}<input type="text" size="60" maxlength="200" name="title" id="title" value="{$gContent->mInfo.title|escape}" />{/forminput}
	</div>
{/form}


See also

Comments

Related Items

Documentation » Technical Documentation » Smarty Functions

a list of custom smarty functions that are used and maintained by bitweaver

block.bitmodule  •  block_box  •  block_form  •  block_forminput  •  block_jstabs  •  block_legend  •  function_biticon  •  function_bit_select_datetime  •  function_formlabel  •  function_libertypagination  •  function_pagination  •  function_smartlink  •  function_var_dump  •  Smarty Functions