[freeside-commits] freeside/httemplate/elements tr-part_pkg_freq.html, NONE, 1.1
Ivan,,,
ivan at wavetail.420.am
Sat Apr 12 19:55:47 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv32107
Added Files:
tr-part_pkg_freq.html
Log Message:
add an element for selecting part_pkg frequencies
--- NEW FILE: tr-part_pkg_freq.html ---
<% include('tr-td-label.html', @_ ) %>
<TD>
<SELECT NAME="freq">
% foreach my $freq ( @freq ) {
<OPTION VALUE="<% $freq %>" <% $freq eq $curr_value ? 'SELECTED' : '' %>><% $freq{$freq} %>
% }
</SELECT>
</TD>
</TR>
<%init>
my %opt = @_;
my $curr_value = $opt{'curr_value'} || $opt{'freq'};
tie my %freq, 'Tie::IxHash', %{FS::part_pkg->freqs_href()};
if ( dbdef->table('part_pkg')->column('freq')->type =~ /(int)/i ) {
delete $freq{$_} foreach grep { ! /^\d+$/ } keys %freq;
}
my @freq = keys %freq;
@freq = grep { /^\d+$/ } @freq
if $opt{'month_increments_only'};
# if exists($plans{$layer}->{'freq'}) && $plans{$layer}->{'freq'} eq 'm';
</%init>
More information about the freeside-commits
mailing list