web applications. These can be edited in the Perl script or by uncommenting the stylesheet reference and supplying a CSS file. For example:

#print the HTML header

print "Content-type: text/html\n\n";

print "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2//EN\"><html>\n"; print "<head><title>Replication Status</title>\n";

# print "<link type=text/css rel=stylesheet href=\"master-style.css\">\n"; print "<style text/css>\n";

print "Body, p, table, td, ul, li {color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 12px;}\n";

print "A {color:blue; text-decoration: none;}\n";

print "BODY {font-family: arial, helvetica, sans-serif}\n";

print "P {font-family: arial, helvetica, sans-serif}\n";

print "TH {font-weight: bold; font-family: arial, helvetica, sans-serif}\n";

print "TD {font-family: arial, helvetica, sans-serif}\n";

print ".bgColor1 {background-color: #003366;}\n";

print ".bgColor4 {background-color: #cccccc;}\n";

print ".bgColor5 {background-color: #999999;}\n";

print ".bgColor9 {background-color: #336699;}\n";

print ".bgColor13 {background-color: #ffffff;}\n";

print ".bgColor16 {background-color: #6699cc;}\n";

print ".text8 {color: #0099cc; font-size: 11px; font-weight: bold;}\n";

print ".text28 {color: #ffcc33; font-size: 12px; font-weight: bold;}\n";

print ".areatitle {font-weight: bold; color: #ffffff; font-family: arial, helvetica, sans-serif}\n";

print ".page-title {font-weight: bold; font-size: larger; font-family: arial, helvetica, sans-serif}\n";

print ".page-subtitle {font-weight: bold; font-family: arial, hel\ vetica, sans-serif}\n";

print "</style></head>\n<body class=bgColor4>\n";

3.2.2.3 Files for the server information page

There are two files formatting the server information page:

The body of the page, /opt/dirsrv/share/html/viewdata.html

The heading of the page, /opt/dirsrv/share/html/htmladmin.html

Figure 3-9 Server information page elements

40 Admin express