blob: 9bb5c1373a315011f0440ccbe6ea00bf04e50402 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<%= header('Virtual field definitions', menubar('Main Menu' => $p)) %>
<%
my %pvfs;
my $block;
my $p2 = popurl(2);
my $dbtable;
foreach (qsearch('part_virtual_field', {})) {
push @{ $pvfs{$_->dbtable} }, $_;
}
%>
<% if ($cgi->param('error')) { %>
<FONT SIZE="+1" COLOR="#ff0000">Error: <%=$cgi->param('error')%></FONT>
<BR><BR>
<% } %>
<A HREF="<%=$p2%>edit/part_virtual_field.cgi"><I>Add a new field</I></A><BR><BR>
<% foreach $dbtable (sort { $a cmp $b } keys (%pvfs)) { %>
<H3><%=$dbtable%></H3>
<%=table()%>
<TH><TD>Field name</TD><TD>Description</TD></TH>
<% foreach $pvf (sort {$a->name cmp $b->name} @{ $pvfs{$dbtable} }) { %>
<TR>
<TD></TD>
<TD>
<A HREF="<%=$p2%>edit/part_virtual_field.cgi?<%=$pvf->vfieldpart%>">
<%=$pvf->name%></A></TD>
<TD><%=$pvf->label%></TD>
</TR>
<% } %>
</TABLE>
<% } %>
</BODY>
</HTML>
|