summaryrefslogtreecommitdiff
path: root/httemplate/elements/mcp_lint.html
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/elements/mcp_lint.html
parent74e058c8a010ef6feb539248a550d0bb169c1e94 (diff)
This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'.TORRUS_1_0_9
Diffstat (limited to 'httemplate/elements/mcp_lint.html')
-rw-r--r--httemplate/elements/mcp_lint.html40
1 files changed, 0 insertions, 40 deletions
diff --git a/httemplate/elements/mcp_lint.html b/httemplate/elements/mcp_lint.html
deleted file mode 100644
index 161415eff..000000000
--- a/httemplate/elements/mcp_lint.html
+++ /dev/null
@@ -1,40 +0,0 @@
-% foreach my $lint (@lint) {
-% my $color = ( $lint =~ /unchecked$/ ? '#FF9900' : '#FF0000' );
- <FONT COLOR="<% $color %>"><% $lint %></FONT><BR>
-% }
-
-<%init>
-
-my(%opt) = @_;
-
-my $conf = new FS::Conf;
-
-my @svc = ();
-if ( $opt{svc} ) {
- @svc = ref($opt{svc}) ? @{ $opt{svc} } : ( $opt{svc} );
-} elsif ( $opt{cust_main} ) {
- my $custnum = $opt{cust_main}->custnum;
- @svc = qsearchs({
- 'table' => 'cust_svc',
- 'addl_from' => ' LEFT JOIN cust_pkg USING ( pkgnum ) '.
- ' LEFT JOIN cust_main USING ( custnum )',
- 'hashref' => { 'svcpart' => $conf->config('mcp_svcpart') },
- 'extra_sql' => " AND custnum = $custnum ",
- });
-} else {
- die 'neither svc nor cust_main options passed to mcp_lint';
-}
-
-
-my @lint = ();
-push @lint, 'unchecked' unless @svc;
-foreach my $svc ( @svc ) {
- my @svc_lint = tron_lint($svc);
- if ( scalar(@svc) > 1 ) {
- push @lint, map $svc->title.": $_", @svc_lint;
- } else {
- push @lint, @svc_lint;
- }
-}
-
-</%init>