ea-Geiercode-base-smarty
[ class tree: ea-Geier ] [ index: ea-Geier ] [ all elements ]

Procedural File: function.eaInput.php

Source Location: /code/base/smartyplugins/function.eaInput.php

Page Details

smarty function plugin to produce input tags

LICENSE: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Link:  http://www.ea-geier.at/
Filesource:  Source Code for this file
Version:  $Id: function.eaInput.php 109 2007-08-04 22:30:24Z m2mtech $
License:  GNU General Public License Version 2
Copyright:  2007 m2m server software gmbh
Author:  m2mtech <tech@m2m.at>
Functions
smarty_function_eainput  [line 46]

string smarty_function_eainput( array $params, Smarty &$smarty  )

Smarty {eaInput} plugin

creates <input /> fields from {eaInput} constructs

  • {eaInput name=NAME} -> <input id="NAME" name="NAME" type="text" />
  • {eaInput ... type="TYPE"} -> <input ... type="TYPE" />
  • existing {$data['NAME']} -> <input ... value="{$data['NAME']}" />
  • existing {$error['NAME']} -> <input ... class="error" />
  • existing {#helpNAME#} -> <input ... title="{#helpNAME#}" />
  • existing {#labelNAME#} -> <label for="NAME">{#labelNAME#}</label>...
  • {eaInput ... align="right"} -> <input ... style="text-align: right;" />
  • {eaInput ... onechange="something"} -> <input ... onchange="something" />

Parameters:
array   $params:  function parameters
  • name function name mandatory
  • type input type (text|password|...) default: text
Smarty   &$smarty: 


[ Top ]


Documentation generated on Sun, 09 Sep 2007 17:08:45 +0200 by phpDocumentor 1.3.1