/* Check to make sure we are connected to the database before
allowing access to the home page. If not connected, go connect
and initialize; otherwise, welcome the user.\
*/
if(!database.connected())
redirect("init.htm");
today = new Date();
today = today.toLocaleString();
cursor = database.cursor("select * from transaction where ssn = " + client.ssn + "", true);
cursor.next();
if (cursor.ssn != 0) {
client.action = "update";
} else {
client.action = "insert";
}
namecursor = database.cursor("select name from employee where ssn = " + client.ssn + "", true);
namecursor.next();
Current Enrollee:
write(namecursor.name);
Once you have completed each coverage step (you will know this when
the real-time coverage step listing denotes that you have visited all
coverage step areas), please complete this form and submit your updates
to HR.