X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fbrowse%2Fagent.cgi;h=cff111ca42b1aa46f4216278b1a59c52b8d906da;hp=23c8f7c5bbdcc3cd3798c7c52efb907aefe6bfd3;hb=0354f39ed0e74fd2eae1d9da13906625b4f56591;hpb=3d671921441ba8422650b54435a1959ad1d4c71d diff --git a/httemplate/browse/agent.cgi b/httemplate/browse/agent.cgi index 23c8f7c5b..cff111ca4 100755 --- a/httemplate/browse/agent.cgi +++ b/httemplate/browse/agent.cgi @@ -1,16 +1,5 @@ + <% -# - -use strict; -use vars qw( $ui $cgi $p $agent ); -use CGI; -use CGI::Carp qw(fatalsToBrowser); -use FS::UID qw(cgisuidsetup swapuid); -use FS::Record qw(qsearch qsearchs); -use FS::CGI qw(header menubar table popurl); -use FS::agent; -use FS::agent_type; - #Begin silliness # #use FS::UI::CGI; @@ -21,34 +10,31 @@ use FS::agent_type; #exit; #__END__ #End silliness +%> -$cgi = new CGI; - -&cgisuidsetup($cgi); - -$p = popurl(2); - -print $cgi->header( '-expires' => 'now' ), header('Agent Listing', menubar( +<%= header('Agent Listing', menubar( 'Main Menu' => $p, 'Agent Types' => $p. 'browse/agent_type.cgi', # 'Add new agent' => '../edit/agent.cgi' -)), < Agents are resellers of your service. Agents may be limited to a subset of your full offerings (via their type).

-END -print &table(), < - Agent - Type - Freq. (unimp.) - Prog. (unimp.) - -END +Add a new agent

+ +<%= table() %> + + Agent + Type + Freq. + Prog. + +<% # Agent # # Agent -foreach $agent ( sort { - $a->getfield('agentnum') <=> $b->getfield('agentnum') +foreach my $agent ( sort { + #$a->getfield('agentnum') <=> $b->getfield('agentnum') + $a->getfield('agent') cmp $b->getfield('agent') } qsearch('agent',{}) ) { my($hashref)=$agent->hashref; my($typenum)=$hashref->{typenum}; @@ -69,12 +55,7 @@ END } print < - Add new agent - Add new agent type - - END