fix appointments vs. no direct elements/ access, RT#34237, RT#23357
[freeside.git] / httemplate / misc / schedule-appointment.html
diff --git a/httemplate/misc/schedule-appointment.html b/httemplate/misc/schedule-appointment.html
new file mode 100644 (file)
index 0000000..69b9f42
--- /dev/null
@@ -0,0 +1,21 @@
+<& /elements/header-popup.html &>
+<h1>Scheduling appointment...</h1>
+<SCRIPT TYPE="text/javascript">
+  window.top.location.href = '<% $url %>';
+</SCRIPT>
+<& /elements/footer-popup.html &>
+<%init>
+
+my @username = map encode_entities($_), $cgi->param('username');
+my $LengthMin = encode_entities( $cgi->param('LengthMin') );
+my $custnum = encode_entities( $cgi->param('custnum') );
+
+my $query = join('&', map "username=$_", @username).
+            "&LengthMin=$LengthMin".
+            "&custnum=$custnum".
+            "&RedirectToBasics=1";
+            #XXX '&pkgnum=$pkgnum";need to be for specific package/location, not just for a customer... default to active(/ordered) package in a pkg_class w/ticketing_queueid, otherwise, a popup?  we're getting complicated like form-creat_ticket.html
+
+my $url = $p. 'rt/Search/Schedule.html?'. $query;
+
+</%init>