All you have to do is replace
&get_date for the default configuration in your
db_def hash with
&get_time.
So, the field configuration would look like the following:
Code:
TimeStamp => [10, 'alpha', 20, 40, 1, &get_time, ''],
Replace
10 with the last field number in your
db_def hash.
If this doesn't work, try using
time rather than
alpha.
In your html.pl file, add the following input fields to the appropriate sub-routines (like
sub html_record_form,
sub html_record, etc.):
Code:
Time Stamp: <input type="text" name="TimeStamp" value="$rec{'TimeStamp'}" size="40">
If you want this field to be uneditable and "hidden" to regular users, but available for admins to edit the value, all you have to do is add the following codes:
Code:
|;
if ($per_admin) {
print qq|Time Stamp: <input type="text" name="TimeStamp" value="$rec{'TimeStamp'}" size="40">|;
}
else {
print qq|Time Stamp: Time Stamp <input type="hidden" name="TimeStamp" value="$rec{'TimeStamp'}">|;
}
Hope this helps.
Regards,
------------------
Eliot Lee Anthro TECH,L.L.C
www.anthrotech.com ----------------------
[This message has been edited by Eliot (edited November 01, 1999).]