On Monday 19 November 2007 20:36, Luk Claes wrote:
> Felipe Augusto van de Wiel (faw) wrote:
> > On 01-11-2007 07:54, Clifford W. Hansen wrote:
> >> Greetings,
> >
> > Hi Clifford,
> >
> >> When adding a place to my GPG info, I only have the option of choosing
> >> this year or last year, and I think this needs to be extended to at
> >> least two years in the future.
>
> It's extended to forever which you can easily change whenever it changes...
>
> The option of this year is for something that doesn't last long like a
> conference, it's not meant to be a calendar application...
>
> Cheers
>
> Luk
Yes I am aware that it's just for conferences and the like, but what about a
conference or holiday that happens from 20 Dec 2007 till Jan 4 2008. I cannot
add that at the moment.
Also there might be events in 2008 and possibly 2009 that we already know
about, that was the only reason I sugested that it be updated, also I'm don't
see anyone wanting to put in eevents that are in the past (2006).
Since it's a PHP page the drop down for year could be changed to the
following:
<php>
function getYearSelect($name){
$select_html = "<select name=\"{$name}\">";
$currYear = date('Y');
for ($year=$currYear; $year <= ($currYear + 4); $year++){
$select_html .= "<option>{$year}</option>"
}
$select_html .= "</select>";
}
</php>
Then a simple: print(getYearSelect('end_year'));
will print the select for the end_year
Hope that helps, and makes sence...
--
Thank you,
Clifford W. Hansen
PHP Developer / Linux Administrator
(Cell) +27 82 883 8677
(Fax) +27 86 503 0634
(E-Mail) clifford@nighthawk.co.za
(MSN) clifford@nighthawk.co.za
(Skype) cliffordwhansen
(GPG) 0x2337231A
Attachment:
pgpleLMOewcgJ.pgp
Description: PGP signature