summaryrefslogtreecommitdiff
path: root/httemplate/misc/order_pkg.html
diff options
context:
space:
mode:
authorivan <ivan>2007-08-02 23:09:43 +0000
committerivan <ivan>2007-08-02 23:09:43 +0000
commit8e2487662e3555c1efbb7b8ed90e4bda0f8b6cd2 (patch)
tree1eeadb6ee448f22fd1dddb0d74221d897bde9034 /httemplate/misc/order_pkg.html
parent58cfac8638978d97857ee42883e8f8b56b22451b (diff)
fix slowness on change package and also make it into a popup
Diffstat (limited to 'httemplate/misc/order_pkg.html')
-rw-r--r--httemplate/misc/order_pkg.html20
1 files changed, 5 insertions, 15 deletions
diff --git a/httemplate/misc/order_pkg.html b/httemplate/misc/order_pkg.html
index c81f5b06f..a49404bb8 100644
--- a/httemplate/misc/order_pkg.html
+++ b/httemplate/misc/order_pkg.html
@@ -18,21 +18,11 @@ function enable_order_pkg () {
<TR>
<TH ALIGN="right">Package</TH>
<TD>
- <SELECT NAME="pkgpart" onChange="enable_order_pkg()"><OPTION>Select package
-
-%foreach my $part_pkg (
-% qsearch( 'part_pkg', { 'disabled' => '' }, '',
-% ' AND 0 < ( SELECT COUNT(*) FROM type_pkgs '.
-% ' WHERE typenum = '. $cust_main->agent->typenum.
-% ' AND type_pkgs.pkgpart = part_pkg.pkgpart )'
-% )
-%) {
-
- <OPTION VALUE="<% $part_pkg->pkgpart %>"><% $part_pkg->pkg %> - <% $part_pkg->comment %>
-
-% }
-
- </SELECT>
+ <% include('/elements/select-cust-part_pkg.html',
+ 'cust_main' => $cust_main,
+ 'onchange' => 'enable_order_pkg',
+ )
+ %>
</TD>
</TR>