X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_acct.cgi;h=026effb45bf0b14924f4fb7d3cc098d673918f01;hb=103dfde149eec5034696d073253255f508a1be78;hp=291298d1e971df094acc7f6e94421e24bfb92206;hpb=b65b8096089410001dfbcd35f9a56f9405b9f5f1;p=freeside.git
diff --git a/httemplate/view/svc_acct.cgi b/httemplate/view/svc_acct.cgi
index 291298d1e..026effb45 100755
--- a/httemplate/view/svc_acct.cgi
+++ b/httemplate/view/svc_acct.cgi
@@ -1,71 +1,72 @@
% if ( $custnum ) {
- <% include("/elements/header.html","View $svc account") %>
- <% include( '/elements/small_custview.html', $custnum, '', 1,
- "${p}view/cust_main.cgi") %>
+ <& /elements/header.html, mt("View [_1] account",$svc) &>
+ <& /elements/small_custview.html, $custnum, '', 1,
+ "${p}view/cust_main.cgi" &>
% } else {
+% my $delmsg = emt('Permanently delete this account?');
- <% include("/elements/header.html",'View account', menubar(
- "Cancel this (unaudited) account" =>
+ <& /elements/header.html, mt('View account'), menubar(
+ emt("Cancel this (unaudited) account") =>
"javascript:areyousure(\'${p}misc/cancel-unaudited.cgi?$svcnum\')",
- )) %>
+ ) &>
-% }
+% }
-<% include( 'svc_acct/radius_usage.html',
- 'svc_acct' => $svc_acct,
+<& /elements/error.html &>
+
+<& elements/svc_radius_usage.html,
+ 'svc' => $svc_acct,
'part_svc' => $part_svc,
'cust_pkg' => $cust_pkg,
%gopt,
- )
-%>
+&>
+
-<% include( 'svc_acct/change_svc_form.html',
+<& svc_acct/change_svc_form.html,
'part_svc' => \@part_svc,
'svcnum' => $svcnum,
'pkgnum' => $pkgnum,
%gopt,
- )
-%>
+&>
-Service #<% $svcnum %>
-|
-<% include('/view/elements/svc_edit_link.html', 'svc' => $svc_acct) %>
-<% include( 'svc_acct/change_svc.html',
+<% mt('Service #') |h %><% $svcnum %>
+<& /view/elements/svc_edit_link.html, 'svc' => $svc_acct &>
+<& svc_acct/change_svc.html,
'part_svc' => \@part_svc,
%gopt,
- )
-%>
+&>
+
+
+
-<% include( 'svc_acct/basics.html',
+<& svc_acct/basics.html,
'svc_acct' => $svc_acct,
'part_svc' => $part_svc,
+ 'cust_svc' => $cust_svc,
%gopt,
- )
-%>
+&>
-<% include( 'svc_acct/cardfortress.html',
+<& svc_acct/cardfortress.html,
'svc_acct' => $svc_acct,
%gopt,
- )
-%>
+&>
-<% include( 'svc_acct/hosting.html',
+<& svc_acct/hosting.html,
%gopt,
- )
-%>
+&>
%#remove this? does anybody even use it? it was a misunderstood customer
%#request IIRC?
@@ -76,11 +77,16 @@ Service #<% $svcnum %>
% }
-<% include('elements/svc_export_settings.html', $svc_acct) %>
+<& elements/svc_export_status.html, $svc_acct &>
+<& elements/svc_export_settings.html, $svc_acct &>
+
+<& /elements/table-tickets.html, object => $cust_svc &>
+
+
<% joblisting({'svcnum'=>$svcnum}, 1) %>
-<% include('/elements/footer.html') %>
+<& /elements/footer.html &>
<%init>
die "access denied"
@@ -89,8 +95,12 @@ die "access denied"
my $addl_from = ' LEFT JOIN cust_svc USING ( svcnum ) '.
' LEFT JOIN cust_pkg USING ( pkgnum ) '.
' LEFT JOIN cust_main USING ( custnum ) ';
-
-my($query) = $cgi->keywords;
+my $query;
+if ( $cgi->keywords ) {
+ ($query) = $cgi->keywords;
+} else {
+ $query = $cgi->param('svcnum');
+}
$query =~ /^(\d+)$/;
my $svcnum = $1;
my $svc_acct = qsearchs({