// 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 advertiser order by advname"); cursor.next(); // Initialize the cursor.

WorkNet Advertiser 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();
Advertiser Name Contact Name Contact E-mail AdvID Active
write("" + cursor.advname); write("" + cursor.contactname); write("" + cursor.contactemail + ""); write("" + cursor.advid); write("" + cursor.active + "");

Return to the Administration Page.