diff options
author | khoff <khoff> | 2003-08-05 00:00:18 +0000 |
---|---|---|
committer | khoff <khoff> | 2003-08-05 00:00:18 +0000 |
commit | f2ffe6fc096fa59b1931da531b7a40b78cd6b747 (patch) | |
tree | f977118f298d4798305e83b80020a0cf836459a7 /httemplate/edit | |
parent | 6785c0711956ce72345476d71613a5e650f54ce9 (diff) |
Virtual field merge
Diffstat (limited to 'httemplate/edit')
-rw-r--r-- | httemplate/edit/part_router_field.cgi | 71 | ||||
-rw-r--r-- | httemplate/edit/part_sb_field.cgi | 79 |
2 files changed, 0 insertions, 150 deletions
diff --git a/httemplate/edit/part_router_field.cgi b/httemplate/edit/part_router_field.cgi deleted file mode 100644 index 02962b1c0..000000000 --- a/httemplate/edit/part_router_field.cgi +++ /dev/null @@ -1,71 +0,0 @@ -<!-- mason kludge --> -<% -my ($routerfieldpart, $part_router_field); - -if ( $cgi->param('error') ) { - $part_router_field = new FS::part_router_field ( { - map { $_, scalar($cgi->param($_)) } fields('part_router_field')}); - $routerfieldpart = $part_router_field->routerfieldpart; -} else { - my($query) = $cgi->keywords; - if ( $query =~ /^(\d+)$/ ) { #editing - $routerfieldpart=$1; - $part_router_field=qsearchs('part_router_field', - {'routerfieldpart' => $routerfieldpart}) - or die "Unknown routerfieldpart!"; - - } else { #adding - $part_router_field = new FS::part_router_field({}); - } -} -my $action = $part_router_field->routerfieldpart ? 'Edit' : 'Add'; - -my $p1 = popurl(1); -print header("$action Router Extended Field Definition", - menubar('Main Menu' => $p, - 'View all Extended Fields' => $p. 'browse/generic.cgi?part_router_field') - ); - -print qq!<FONT SIZE="+1" COLOR="#ff0000">Error: !, $cgi->param('error'), - "</FONT>" - if $cgi->param('error'); -%> -<FORM ACTION="<%=$p1%>process/generic.cgi" METHOD=POST> - -<INPUT TYPE="hidden" NAME="table" VALUE="part_router_field"> -<INPUT TYPE="hidden" NAME="routerfieldpart" VALUE="<%= - $routerfieldpart%>"> -Field #<B><%=$routerfieldpart or "(NEW)"%></B><BR><BR> - -<%=ntable("#cccccc",2)%> - <TR> - <TD ALIGN="right">Name</TD> - <TD><INPUT TYPE="text" NAME="name" MAXLENGTH=15 VALUE="<%= - $part_router_field->name%>"></TD> - </TR> - <TR> - <TD ALIGN="right">Length</TD> - <TD><INPUT TYPE="text" NAME="length" MAXLENGTH=4 VALUE="<%= - $part_router_field->length%>"></TD> - </TR> - <TR> - <TD ALIGN="right">check_block</TD> - <TD><TEXTAREA COLS="20" ROWS="4" NAME="check_block"><%= - $part_router_field->check_block%></TEXTAREA></TD> - </TR> - <TR> - <TD ALIGN="right">list_source</TD> - <TD><TEXTAREA COLS="20" ROWS="4" NAME="list_source"><%= - $part_router_field->list_source%></TEXTAREA></TD> - </TR> -</TABLE><BR><INPUT TYPE="submit" VALUE="Submit"> - -</FORM> - -<BR><BR> -<FONT SIZE=-2>If you don't understand what <I>check_block</I> and -<I>list_source</I> mean, <B>LEAVE THEM BLANK</B>. We mean it.</FONT> - - -</BODY> -</HTML> diff --git a/httemplate/edit/part_sb_field.cgi b/httemplate/edit/part_sb_field.cgi deleted file mode 100644 index 9e0cc9e4f..000000000 --- a/httemplate/edit/part_sb_field.cgi +++ /dev/null @@ -1,79 +0,0 @@ -<!-- mason kludge --> -<% -my ($sbfieldpart, $part_sb_field); - -if ( $cgi->param('error') ) { - $part_sb_field = new FS::part_sb_field ( { - map { $_, scalar($cgi->param($_)) } fields('part_sb_field')}); - $sbfieldpart = $part_sb_field->sbfieldpart; -} else { - my($query) = $cgi->keywords; - if ( $query =~ /^(\d+)$/ ) { #editing - $sbfieldpart=$1; - $part_sb_field=qsearchs('part_sb_field', - {'sbfieldpart' => $sbfieldpart}) - or die "Unknown sbfieldpart!"; - - } else { #adding - $part_sb_field = new FS::part_sb_field({}); - } -} -my $action = $part_sb_field->sbfieldpart ? 'Edit' : 'Add'; - -my $p1 = popurl(1); -print header("$action svc_broadband Extended Field Definition", ''); - -print qq!<FONT SIZE="+1" COLOR="#ff0000">Error: !, $cgi->param('error'), - "</FONT>" - if $cgi->param('error'); -%> -<FORM ACTION="<%=$p1%>process/generic.cgi" METHOD="POST"> - -<INPUT TYPE="hidden" NAME="table" VALUE="part_sb_field"> -<INPUT TYPE="hidden" NAME="redirect_ok" - VALUE="<%=popurl(2)%>browse/part_sb_field.cgi"> -<INPUT TYPE="hidden" NAME="sbfieldpart" VALUE="<%= - $sbfieldpart%>"> -Field #<B><%=$sbfieldpart or "(NEW)"%></B><BR><BR> - -<%=ntable("#cccccc",2)%> - <TR> - <TD ALIGN="right">Name</TD> - <TD><INPUT TYPE="text" NAME="name" MAXLENGTH=15 VALUE="<%= - $part_sb_field->name%>"></TD> - </TR> - <TR> - <TD ALIGN="right">Length</TD> - <TD><INPUT TYPE="text" NAME="length" MAXLENGTH=4 VALUE="<%= - $part_sb_field->length%>"></TD> - </TR> - <TR> - <TD ALIGN="right">Service</TD> - <TD><SELECT SIZE=1 NAME="svcpart"><% - foreach my $part_svc (qsearch('part_svc', {svcdb => 'svc_broadband'})) { - %><OPTION VALUE="<%=$part_svc->svcpart%>"<%= - ($part_svc->svcpart == $part_sb_field->svcpart) ? ' SELECTED' : ''%>"> - <%=$part_svc->svc%> - <% } %> - </SELECT></TD> - <TR> - <TD ALIGN="right">check_block</TD> - <TD><TEXTAREA COLS="20" ROWS="4" NAME="check_block"><%= - $part_sb_field->check_block%></TEXTAREA></TD> - </TR> - <TR> - <TD ALIGN="right">list_source</TD> - <TD><TEXTAREA COLS="20" ROWS="4" NAME="list_source"><%= - $part_sb_field->list_source%></TEXTAREA></TD> - </TR> -</TABLE><BR><INPUT TYPE="submit" VALUE="Submit"> - -</FORM> - -<BR><BR> -<FONT SIZE=-2>If you don't understand what <I>check_block</I> and -<I>list_source</I> mean, <B>LEAVE THEM BLANK</B>. We mean it.</FONT> - - -</BODY> -</HTML> |