Lines 51-58
$template->param(
Link Here
|
51 |
contractnumber => $contractnumber, |
51 |
contractnumber => $contractnumber, |
52 |
booksellerid => $booksellerid, |
52 |
booksellerid => $booksellerid, |
53 |
booksellername => $bookseller->{name}, |
53 |
booksellername => $bookseller->{name}, |
54 |
DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(), |
|
|
55 |
dateformat => C4::Context->preference("dateformat"), |
56 |
); |
54 |
); |
57 |
|
55 |
|
58 |
#ADD_FORM: called if $op is 'add_form'. Used to create form to add or modify a record |
56 |
#ADD_FORM: called if $op is 'add_form'. Used to create form to add or modify a record |
Lines 70-76
if ( $op eq 'add_form' ) {
Link Here
|
70 |
contractdescription => $contract->{contractdescription}, |
68 |
contractdescription => $contract->{contractdescription}, |
71 |
contractstartdate => format_date( $contract->{contractstartdate} ), |
69 |
contractstartdate => format_date( $contract->{contractstartdate} ), |
72 |
contractenddate => format_date( $contract->{contractenddate} ), |
70 |
contractenddate => format_date( $contract->{contractenddate} ), |
73 |
DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar, |
|
|
74 |
); |
71 |
); |
75 |
} else { |
72 |
} else { |
76 |
$template->param( |
73 |
$template->param( |
Lines 79-85
if ( $op eq 'add_form' ) {
Link Here
|
79 |
contractdescription => undef, |
76 |
contractdescription => undef, |
80 |
contractstartdate => undef, |
77 |
contractstartdate => undef, |
81 |
contractenddate => undef, |
78 |
contractenddate => undef, |
82 |
DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar, |
|
|
83 |
); |
79 |
); |
84 |
} |
80 |
} |
85 |
|
81 |
|