summaryrefslogtreecommitdiff
path: root/httemplate/misc/change_pkg.cgi
diff options
context:
space:
mode:
authorcvs2git <cvs2git>2010-12-27 00:04:45 +0000
committercvs2git <cvs2git>2010-12-27 00:04:45 +0000
commitc82d349f864e6bd9f96fd1156903bc1f7193a203 (patch)
treee117a87533656110b6acd56fc0ca64289892a9f5 /httemplate/misc/change_pkg.cgi
parent74e058c8a010ef6feb539248a550d0bb169c1e94 (diff)
This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'.TORRUS_1_0_9
Diffstat (limited to 'httemplate/misc/change_pkg.cgi')
-rwxr-xr-xhttemplate/misc/change_pkg.cgi76
1 files changed, 0 insertions, 76 deletions
diff --git a/httemplate/misc/change_pkg.cgi b/httemplate/misc/change_pkg.cgi
deleted file mode 100755
index ec10b85cf..000000000
--- a/httemplate/misc/change_pkg.cgi
+++ /dev/null
@@ -1,76 +0,0 @@
-<% include('/elements/header-popup.html', "Change Package") %>
-
-<% include('/elements/error.html') %>
-
-<FORM NAME="OrderPkgForm" ACTION="<% $p %>edit/process/change-cust_pkg.html" METHOD=POST>
-<INPUT TYPE="hidden" NAME="pkgnum" VALUE="<% $pkgnum %>">
-
-<% ntable('#cccccc') %>
-
- <TR>
- <TH ALIGN="right">Current package</TH>
- <TD COLSPAN=7>
- <% $curuser->option('show_pkgnum') ? $cust_pkg->pkgnum.': ' : '' %><B><% $part_pkg->pkg |h %></B> - <% $part_pkg->comment |h %>
- </TD>
- </TR>
-
- <% include('/elements/tr-select-cust-part_pkg.html',
- 'pre_label' => 'New',
- 'curr_value' => scalar($cgi->param('pkgpart')),
- 'classnum' => $part_pkg->classnum,
- 'cust_main' => $cust_main,
- #'extra_sql' => ' AND pkgpart != '. $cust_pkg->pkgpart,
- )
- %>
-
- <% include('/elements/tr-select-cust_location.html',
- 'cgi' => $cgi,
- 'cust_main' => $cust_main,
- )
- %>
-
-</TABLE>
-
-<% include( '/elements/standardize_locations.html',
- 'form' => "OrderPkgForm",
- 'onlyship' => 1,
- 'no_company' => 1,
- 'callback' => 'document.OrderPkgForm.submit();',
- )
-%>
-
-<BR>
-<INPUT NAME="submitButton" TYPE="button" VALUE="Change package" onClick="this.disabled=true; standardize_locations();">
-
-</FORM>
-</BODY>
-</HTML>
-
-<%init>
-
-my $conf = new FS::Conf;
-
-my $curuser = $FS::CurrentUser::CurrentUser;
-
-die "access denied"
- unless $curuser->access_right('Change customer package');
-
-my $pkgnum = scalar($cgi->param('pkgnum'));
-$pkgnum =~ /^(\d+)$/ or die "illegal pkgnum $pkgnum";
-$pkgnum = $1;
-
-my $cust_pkg =
- qsearchs({
- 'table' => 'cust_pkg',
- 'addl_from' => 'LEFT JOIN cust_main USING ( custnum )',
- 'hashref' => { 'pkgnum' => $pkgnum },
- 'extra_sql' => ' AND '. $curuser->agentnums_sql,
- }) or die "unknown pkgnum $pkgnum";
-
-my $cust_main = $cust_pkg->cust_main
- or die "can't get cust_main record for custnum ". $cust_pkg->custnum.
- " ( pkgnum ". cust_pkg->pkgnum. ")";
-
-my $part_pkg = $cust_pkg->part_pkg;
-
-</%init>