PHP Classes

File: smarty/2/plugins/insert.formadddatapart.php

Recommend this page to a friend!
  Classes of Manuel Lemos   PHP Forms Class with HTML Generator and JavaScript Validation   smarty/2/plugins/insert.formadddatapart.php   Download  
File: smarty/2/plugins/insert.formadddatapart.php
Role: Auxiliary script
Content type: text/plain
Description: Smarty plug-in script to insert form data parts
Class: PHP Forms Class with HTML Generator and JavaScript Validation
HTML forms generation and validation.
Author: By
Last change: Initial revision.
Date: 11 years ago
Size: 456 bytes
 

Contents

Class file image Download
<?php

/*
 * insert.formadddatapart.php
 *
 * @(#) $Header: /opt2/ena/metal/forms/smarty/2/plugins/insert.formadddatapart.php,v 1.1 2003/03/20 02:50:26 mlemos Exp $
 *
 */

function smarty_insert_formadddatapart($params, &$smarty)
{
    if(
method_exists($smarty,'get_template_vars'))
    {
       
$tpl_vars=&$smarty->get_template_vars();
       
$form=&$tpl_vars['form'];
    }
    else
       
$form=&$smarty->_tpl_vars['form'];
   
$form->AddDataPart($params['data']);
    return
'';
}

?>