// Check to make sure they've logged in as the administrator
securityCheck(client.valid, client.usertype, "admin", "../login.htm");
// Dynamically generate the body string according to the attributes in the
// configuration file specified as the argument of dynBody()
bodystr = dynBody("settings.cfg");
if(!dbCheck()) {
redirect("../error.htm?error=dbfail");
}
cursor = database.cursor("select * from employer order by busname");
cursor.next(); // Initialize the cursor.
WorkNet Employer Accounts
Click on the "Active" value to activate/deactivate an account.
Business Name
Contact
E-mail Address
UserID
Password
Active
// Dynamically assign a font color to each row depending on whether or
// not the account is active. (Inactive accounts are grayed out.)
var textcolor = "black"
while(cursor.next()) {
if (cursor.active == "Y")
textcolor = "black"
else
textcolor = "gray"