// ******************************************************************
// Filename - browse.html
// Shortname - BR
// Purpose - This screen allows the user to choose a room for browsing
// Copyright - (C) 1996, Ingenia Communications Corporation
// Authors - Kjell Wooding
// - Chris Grant
// Contact - kwooding@ingenia.com
// ******************************************************************
CM_Authorize();
// Handlers
var formURL = addClient("room.html");
if (client.DefaultRoomID) {
var idRoom=client.DefaultRoomID;
client.DefaultRoomID="";
} else {
CM_Connect();
stmt="select * from Employee where Employee_ID='"+client.EmployeeID+"'";
var csEmp=database.cursor(stmt);
csEmp.next();
var idRoom=csEmp.Room_ID;
CM_Disconnect();
}
if (request.strDate) { // received a date in MM/DD/YY format
client.DefaultDate=CM_strDatetoInt(request.strDate);
} else if (request.dtDate) { // received a new date in millisecond format
client.DefaultDate = request.dtDate;
} else if (!client.DefaultDate) { // no current date. use today
dtDate=new Date();
client.DefaultDate=dtDate.getTime();
}
// Now we are sure to have a date in the client.DefaultDate variable.
會議室瀏覽
IF_VerifyRoutines();
IF_DateWidget("strDate",0); // JavaScript routines for date widget
BR_DisplayHeader();
IF_DisplayToolbar(false); // no graphics