Smutty

MVC Framework

View Code: function.submit

Browse: All · Classes · Plugins

1
<?php
2
3
/**
4
* returns the html for a form submit button
5
*
6
* @param array $params parameters
7
* @param Smarty $smarty smarty object
8
* @return the element html
9
*
10
*/
11
12
function smutty_function_submit( $params, $smarty ) {
13
14
return Smutty_Smarty::htmlElement( 'input', array(
15
'type' => 'submit',
16
'value' => $params['text'],
17
'id' => $params['id'],
18
'class' => $params['class']
19
), $smarty );
20
21
}
22
23
24
function smarty_function_submit( $params, $smarty ) {
25
echo smutty_function_submit( $params, $smarty );
26
}
27
28
?>

The code shown here is the code that is currently running this site. If you want to view the latest SVN version of the code then go to the Subversion repository.