[freeside-commits] freeside/httemplate/view svc_domain.cgi, 1.21,
1.22
Ivan,,,
ivan at wavetail.420.am
Sat Jan 27 18:21:14 PST 2007
Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail:/tmp/cvs-serv13001/httemplate/view
Modified Files:
svc_domain.cgi
Log Message:
pretty up domain zone viewing a little
Index: svc_domain.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/svc_domain.cgi,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- svc_domain.cgi 23 Aug 2006 22:25:38 -0000 1.21
+++ svc_domain.cgi 28 Jan 2007 02:21:12 -0000 1.22
@@ -59,26 +59,45 @@
return confirm("Remove all records and slave from " + document.SlaveForm.recdata.value + "?");
}
</SCRIPT>
+
% my @records; if ( @records = $svc_domain->domain_record ) {
- <% ntable("",2) %>
- <tr><th>Zone</th><th>Type</th><th>Data</th></tr>
+ <% include('/elements/table-grid.html') %>
+
+% my $bgcolor1 = '#eeeeee';
+% my $bgcolor2 = '#ffffff';
+% my $bgcolor = $bgcolor2;
+
+ <tr>
+ <th CLASS="grid" BGCOLOR="#cccccc">Zone</th>
+ <th CLASS="grid" BGCOLOR="#cccccc">Type</th>
+ <th CLASS="grid" BGCOLOR="#cccccc">Data</th>
+ </tr>
+
% foreach my $domain_record ( @records ) {
% my $type = $domain_record->rectype eq '_mstr'
% ? "(slave)"
% : $domain_record->recaf. ' '. $domain_record->rectype;
-%
- <tr><td><% $domain_record->reczone %></td>
- <td><% $type %></td>
- <td><% $domain_record->recdata %>
-% unless ( $domain_record->rectype eq 'SOA' ) {
+ <tr>
+ <td CLASS="grid" BGCOLOR="<% $bgcolor %>"><% $domain_record->reczone %></td>
+ <td CLASS="grid" BGCOLOR="<% $bgcolor %>"><% $type %></td>
+ <td CLASS="grid" BGCOLOR="<% $bgcolor %>"><% $domain_record->recdata %>
+% unless ( $domain_record->rectype eq 'SOA' ) {
(<A HREF="javascript:areyousure('<%$p%>misc/delete-domain_record.cgi?<%$domain_record->recnum%>', 'Delete \'<% $domain_record->reczone %> <% $type %> <% $domain_record->recdata %>\' ?' )">delete</A>)
% }
+ </td>
+ </tr>
+
+
+% if ( $bgcolor eq $bgcolor1 ) {
+% $bgcolor = $bgcolor2;
+% } else {
+% $bgcolor = $bgcolor1;
+% }
- </td></tr>
% }
</table>
More information about the freeside-commits
mailing list