Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Manuel Lemos  >  Forms generation and validation  >  smarty/2/plugins/insert.formaddlabelpart.php  >  Download  
File: smarty/2/plugins/insert.formaddlabelpart.php
Role: Auxiliary script
Content type: text/plain
Description: Smarty plug-in script to insert form input label parts
Class: Forms generation and validation
HTML forms generation and validation.
Author: By
Last change: Initial revision.
Date: 2013-01-09 03:32
Size: 511 bytes
 

Contents

Class file image Download
<?php

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

function smarty_insert_formaddlabelpart($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']);
    
$form->AddLabelPart(array('FOR'=>$params['for']));
    return 
'';
}

?>