// ******************************************************************
// Filename - interface.html
// Shortname - IF
// Purpose - javascript widgets, toolbars, and other useful
// display-oriented functions
// Authors - Kjell Wooding, Ingenia Communications Corporation
// - Chris Grant, Ingenia Communications Corporation
// Contact - kwooding@ingenia.com
// ******************************************************************
function IF_EmpPickerHeader(arDefEmps,arDefEmpid) {
if (arDefEmps == null) {
numdefemps=0;
} else {
numdefemps=arDefEmps.length;
}
write("\n");
write("");
} // End of IF_EmpPickerHeader
function IF_EmpPicker(bEdit) {
// the calling form will need a line like this:
//
未選擇人員
參加人員
} // end of IF_EmpPicker
function IF_EmpSelectOpts(empid, select) {
CM_Connect();
if (empid) { // Show currently selected employee first
stmt="SELECT * from Employee where Employee_ID='"+empid+"'";
csSelEmp=database.cursor(stmt);
if (!csSelEmp.next()) {
debug("ERROR: IF_EmpSelectOpts passed invalid empid:"+empid);
} else {
write("
}
function IF_TimeOpts(dtTime) {
debug("Entering IF_TimeOpts with attribute dtTime="+dtTime);
timestr="";
if (dtTime.getHours() <10) {
timestr += "0";
}
timestr += dtTime.getHours()+":";
if (dtTime.getMinutes() <10) {
timestr += "0";
}
write("");
timestr += dtTime.getMinutes();
debug("Extracted timestring: "+timestr);
write("
}
function IF_DisplayToolbar(bGraphic) {
// PURPOSE - This function displays the toolbar that is at the top of each
// page in the application.
strChangePWRef = addClient("changepw.html");
strLogoutRef = addClient("login.html?logout=1");
}
function IF_DateWidget(fieldname,formnum) {
write("\n");
} // end of IF_DateWidget