RE: [SMARTY] html_select_date patch

From: Date: Fri, 28 Feb 2003 19:22:31 +0000
Subject: RE: [SMARTY] html_select_date patch
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8307@lists.php.net to get a copy of this message
Maybe I am mistaken, but isn't that what the "time" field is for in this function? In all of my forms that I use this, when showing an "edit" page I pass in a timestamp and the function will default to that time specified. Monte, is that what the time field is for? > -----Original Message----- > From: Nimrod A. Abing [mailto:abing@redberger.com] > Sent: Friday, February 28, 2003 1:38 PM > To: smarty-general@lists.php.net > Subject: [SMARTY] html_select_date patch > > > This patch will add the following to html_select_date: > > selected_year - sets the default selected year. > selected_month - sets the default selected month. > selected_day - sets the default selected day. > > I found the need to add these three new optional parameters to this > function when I had to regenerate what a user previously selected. i.e. > in a data entry page, if you return an error page you can now return the > form with the values the user previously selected. Makes it easier to > show the user what he/she has entered wrong like February 31 or > something. > > This patch was made against Smarty-2.4.2. > > Best regards. And apologies if patches are not supposed to be posted > here. > -- > _nimrod_a_abing_ > > PGP Public Key here: > > http://www.redberger.com/~abing/abing_at_redberger_dot_com.asc > > Key expires at Thu Nov 6 11:01:34 2003 PHT > >

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