关联菜单 <!-- function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } //-->
二,查找父级数据 <% Dim changqu Dim changqu_cmd Dim changqu_numRows
Set changqu_cmd = Server.CreateObject ("ADODB.Command") changqu_cmd.ActiveConnection = MM_conn_STRING changqu_cmd.CommandText = "SELECT * FROM dbo.itsm_changqu" changqu_cmd.Prepared = true
Set changqu = changqu_cmd.Execute changqu_numRows = 0 %> 三,显示父表记录
四查找部门及显示部门 部门:
Dim department Dim department_cmd Dim department_numRows
Set department_cmd = Server.CreateObject ("ADODB.Command") department_cmd.ActiveConnection = MM_conn_STRING department_cmd.CommandText = "SELECT * FROM dbo.itsm_department where changqu_id="&temp&"" department_cmd.Prepared = true
Set department = department_cmd.Execute department_numRows = 0
if department.eof or department.bof then response.write ("") '如果没有记录,则在这个列表中显示"-----" else while not(department.eof or department.bof)'否则就用循环列出一切符合条件的记录。 response.write ("") department.movenext wend end if end if %>