X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fbrowse%2Fagent_type.cgi;h=8321048e747f3261e87cf53ac69a8619a7c15d79;hp=11ba20ac5da44200038969a0989af9675aafb695;hb=1fd6d8cf5d7854860ef4fd10ed89828e0c04ec39;hpb=ea0d3938b57a079ce4aa6db0cae316e3ac6da654 diff --git a/httemplate/browse/agent_type.cgi b/httemplate/browse/agent_type.cgi index 11ba20ac5..8321048e7 100755 --- a/httemplate/browse/agent_type.cgi +++ b/httemplate/browse/agent_type.cgi @@ -1,22 +1,6 @@ + <% -# -use strict; -use vars qw( $cgi $p $agent_type ); -use CGI; -use CGI::Carp qw(fatalsToBrowser); -use FS::UID qw(cgisuidsetup); -use FS::Record qw(qsearch qsearchs); -use FS::CGI qw(header menubar popurl table); -use FS::agent_type; -use FS::type_pkgs; -use FS::part_pkg; - -$cgi = new CGI; - -&cgisuidsetup($cgi); - -$p = popurl(2); print header("Agent Type Listing", menubar( 'Main Menu' => $p, )), "Agent types define groups of packages that you can then assign to". @@ -27,7 +11,7 @@ print header("Agent Type Listing", menubar( END -foreach $agent_type ( sort { +foreach my $agent_type ( sort { $a->getfield('typenum') <=> $b->getfield('typenum') } qsearch('agent_type',{}) ) { my($hashref)=$agent_type->hashref;