$title ='Change Package'; include('elements/header.php'); ?>
$current_menu = 'services.php'; include('elements/menu.php'); ?>
$get_params = array( 'pkgnum' );
foreach ( $get_params AS $param ) {
$params[$param] = $_GET[$param];
}
$customer_info = $freeside->customer_info_short( array(
'session_id' => $_COOKIE['session_id'],
) );
$list_pkgs = $freeside->list_pkgs( array(
'session_id' => $_COOKIE['session_id'],
) );
if ( isset($list_pkgs['error']) && $list_pkgs['error'] ) {
$error = $list_pkgs['error'];
header('Location:index.php?error='. urlencode($error));
die();
}
extract($list_pkgs);
foreach ( $cust_pkg AS $pkg ) {
if ( $pkg['pkgnum'] == $params['pkgnum'] ) {
$pkg_label = $pkg['pkg_label'];
$pkg_part = $pkg['pkgpart'];
$class_num = $pkg['classnum'];
}
}
$pkgselect = $freeside->mason_comp( array(
'session_id' => $_COOKIE['session_id'],
'comp' => '/elements/select-part_pkg.html',
'args' => [ 'classnum', $class_num, 'curr_value', $pkg_part, ],
)
);
if ( isset($pkgselect['error']) && $pkgselect['error'] ) {
$error = $pkgselect['error'];
header('Location:index.php?error='. urlencode($error));
die();
}
?>
Purchase replacement package for " echo htmlspecialchars($pkg_label); ?>"
include('elements/error.php'); ?>