X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fagent.cgi;h=449456cdd7efc1e7d5fc6a79d5b7815b79c0e4e0;hp=701715fe50bd973751a118348e267625716656cb;hb=499b8660e2aa5632fc14e8fcfa6631800ade1e35;hpb=3d671921441ba8422650b54435a1959ad1d4c71d diff --git a/httemplate/edit/agent.cgi b/httemplate/edit/agent.cgi index 701715fe5..449456cdd 100755 --- a/httemplate/edit/agent.cgi +++ b/httemplate/edit/agent.cgi @@ -1,20 +1,7 @@ + <% -# - -use strict; -use vars qw ( $cgi $agent $action $hashref $p $agent_type ); -use CGI; -use CGI::Carp qw(fatalsToBrowser); -use FS::UID qw(cgisuidsetup); -use FS::CGI qw(header menubar popurl); -use FS::Record qw(qsearch qsearchs fields); -use FS::agent; -use FS::agent_type; - -$cgi = new CGI; - -&cgisuidsetup($cgi); +my $agent; if ( $cgi->param('error') ) { $agent = new FS::agent ( { map { $_, scalar($cgi->param($_)) } fields('agent') @@ -26,12 +13,10 @@ if ( $cgi->param('error') ) { } else { #adding $agent = new FS::agent {}; } -$action = $agent->agentnum ? 'Edit' : 'Add'; -$hashref = $agent->hashref; +my $action = $agent->agentnum ? 'Edit' : 'Add'; +my $hashref = $agent->hashref; -$p = popurl(2); - -print $cgi->header( '-expires' => 'now' ), header("$action Agent", menubar( +print header("$action Agent", menubar( 'Main Menu' => $p, 'View all agents' => $p. 'browse/agent.cgi', )); @@ -44,13 +29,17 @@ print '
', qq!!, "Agent #", $hashref->{agentnum} ? $hashref->{agentnum} : "(NEW)"; -print < -Agent -Agent type + + + Agent type + -Program (unimplemented) - + + + + + + + + + + + END print qq!