4 #use warnings; FIXME - Bug 2505
11 my $message = $query->param( 'message' );
12 my $phone = $query->param( 'phone' );
13 my $operation = $query->param('operation');
16 my ($template, $loggedinuser, $cookie)
17 = get_template_and_user({template_name => "sms/sms-home.tt",
21 flagsrequired => {circulate => "circulate_remaining_permissions" },
24 if ($operation eq "sendsms"){
25 $phone=parse_phone($phone);
27 ##write to a queue and exit
28 my $me=C4::Context->userenv;
29 $result=write_sms($me->{cardnumber},$message,$phone);
34 my $error=error_codes($errorcode);
35 $template->param(error=>$error);
36 output_html_with_http_headers $query, $cookie, $template->output;