Re[2]: [SMARTY] input type text

From: Date: Sat, 22 Mar 2003 22:55:17 +0000
Subject: Re[2]: [SMARTY] input type text
References: 1 2 3 4 5  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8839@lists.php.net to get a copy of this message
Bonjour Paul, a little error it's textarea and not textaera in my plugin ;)) thanks for add wrap it's a good idea I made too html_submit now ;) Elgi Le samedi 22 mars 2003 à 23:51:15, vous écriviez : PL> For your textarea implementation, you might want to add a WRAP=VIRTUAL PL> attribute in. I find it makes it so that the textbox actually works PL> correctly. Other than that, your textarea function looks exactly like PL> the one I have :) PL> Elgi wrote: >> Hello Paul, >> >> It's good thanks and i have made >> {html_textaera} with your plugin ;)) >> I don't test in this time. >> >> <?php >> >> /* >> * Smarty plugin >> * ------------------------------------------------------------- >> * Function: html_textaera >> * Purpose: inserts an textaera field on the html page >> * ------------------------------------------------------------- >> */ >> function smarty_function_html_textaera($params, &$smarty) { >> extract($params); >> if (!isset($name) || empty($name)) { >> $smarty->trigger_error("assign: missing 'name' >> parameter"); >> return; >> } >> $html_result = ""; >> $html_result = "<textarea"; >> if (isset($rows)) { >> $html_result .= " rows=$rows"; >> } >> if (isset($cols)) { >> $html_result .= " cols=$cols"; >> } >> $html_result .= " name=\"$name\">"; >> if (isset($value)) { >> $html_result .= htmlspecialchars($value); >> } >> $html_result .= "</textarea>"; >> return $html_result; >> } >> >> ?> >> PL> -- PL> Paul Lockaby PL> paul@paullockaby.com PL> http://www.paullockaby.com

« previous php.smarty.general (#8839) next »