Date index for Jul 2002
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [achievo] Javascript Calender for Date picking
Hi,
Stephan Reichhelm wrote:
I would like to implement a datepicker to the timeregistration page for
easy date selecting.
it based of one javascript-file that have to be linked in the page and a
link that
starts one function of the script.
The Link needs the Form-Name.
Can someone give me a hint on how to implement such a feature ?
These kinds of things are implemented in so-called 'attributes' which
can be found in the atk/attributes directory. If you look at the
class.atkdateattribute.inc, you see what we currently use for date input.
Create a new class that extends the existing class, where you implement
your changes.
Example:
class atkDatepickerAttribute extends atkDateAttribute
{
function edit($record="", $fieldprefix="", $mode="")
{
$result = parent::edit($record, $fieldprefix, $mode)
$result.= ' <a href...yourlink blabla';
return $result;
}
}
Then, in class.hours.inc, replace the dateattribute with your new attribute.
Greetings,
Ivo
--
Ivo Jansch <ivo dot
ibuildings.nl BV - information technology
http://www.ibuildings.nl