<TR>
<TD ALIGN="right"><% $label %></TD>
- <TD>
+ <TD COLSPAN=<% $colspan %>>
<INPUT TYPE="text" NAME="<% $name %>" ID="<% $name %>_text" VALUE="<% $value %>">
<IMG SRC="<%$fsurl%>images/calendar.png" ID="<% $name %>_button" STYLE="cursor: pointer" TITLE="<% mt('Select date') |h %>">
</TD>
ifFormat: "<% $format %>",
button: "<% $name %>_button",
align: "BR"
+% if ( $format =~ /\%r/ ) {
+ ,
+ showsTime: true,
+ timeFormat: 12
+% }
});
</SCRIPT>
<%init>
-my($name, $value, $label, $format, $usedatetime, $noinit);
+my($name, $value, $label, $format, $usedatetime, $noinit, $colspan);
if ( ref($_[0]) ) {
my $opt = shift;
$name = $opt->{'name'};
$format = $opt->{'format'};
$usedatetime = $opt->{'usedatetime'};
$noinit = $opt->{'noinit'};
+ $colspan = $opt->{'colspan'} || 1;
} else {
($name, $value, $label, $format, $usedatetime) = @_;
+ $colspan = 1;
}
my $conf = new FS::Conf;