function DoGetData(empName)
{
sql = "select * from 雇員 where [名字]='" + empName + "'";
rst = new ActiveXObject("ADODB.Recordset");
rst.CursorLocation = 3;
rst.Open(sql, "NW");
i = 0;
strText = "";
if (rst.RecordCount == 1) {
strText += rst.FIElds("雇員ID").Value + " - " +
rst.FIElds("尊稱").Value + " " +
rst.FIElds("姓氏").Value + " " +
rst.FIElds("名字").Value;
strText += "|";
strText += rst.FIElds("頭銜").Value;
strText += "|";
strText += rst.FIElds("城市").Value + " " +
rst.FIElds("地區").Value + ", " +
rst.FIElds("國家").Value;
strText += "|";
d = new Date(rst.FIElds("雇用日期").Value);
strText += (1+d.getMonth()) + "/" + d.getDate() + "/" +d.getYear();
}
return strText;
}
</SCRipT>