// 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. // 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" } cursor.close();
Business Name Contact E-mail Address UserID Password Active
write("" + cursor.busname); write("" + cursor.contactname); write("" + cursor.email + ""); write("" + cursor.empid); write("" + cursor.password); write("" + cursor.active + "");

Return to the Administration Page.