标题:提示错误出现在黑体字的地方,请教高手看下
取消只看楼主
eournet
Rank: 2
等 级:论坛游民
帖 子:103
专家分:26
注 册:2010-5-22
结帖率:55.56%
 问题点数:0 回复次数:4 
提示错误出现在黑体字的地方,请教高手看下
'$Id: huiyuan.asp 2009-08-17 $

if request.Cookies("shiwei_username")="" then
%>
<script language="javascript">
top.location.href="../index.asp"
</script>
<%  
  response.end
end if
%>
<!-- #include file="../conn2.asp" -->
<!-- #include file="../const.asp" -->

<html>
<head>
<title><%=dianming%> - 反馈问题管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style/style.css" rel="stylesheet" type="text/css">
<style>
body {
    background-color:#FFFFFF;
}
</style>
</HEAD>

<BODY style="text-align: center">
<script>
function CheckAll(form)  {
  for (var i=0;i<form.elements.length;i++)    {
    var e = form.elements[i];
    if (e.name != 'chkall')       e.checked = form.chkall.checked;
   }
  }
</script>
<%
if fla36="0" and request.Cookies("shiwei_id")<>"1" then
%>
<br><center><img src="../images/note.gif" align="absmiddle">&nbsp;<font color="#FF0000">你不具备此权限,请与管理员联系!</font></center>
<%  
  response.end
end if

'取得当前页码
currentpage=request("page")
'response.write currentpage
'response.end
if currentpage<1 or currentpage="" then
  currentpage="1"
end if

'取得搜索关键字  
nowxinbie=request("xinbie")
nowemail=request("email")
nowkeyword=request("keyword")
%>
<%

if request("hid1")<>"" then
  conn.execute("update huiyuan set id_email= 62 where id="&request("id"))
  
  response.write "<script>alert('整改完成!');window.opener.location.reload();window.close();</script>"
end if
sql="select * from huiyuan where id="&request("id")
set rs=conn.execute(sql)

%>
<table width="100%" border="0" cellpadding="0" cellspacing="2" align="center">
<form name="form2">
  <input type="hidden" name="form" value="<%=request("form")%>">
  <input type="hidden" name="field" value="<%=request("field")%>">
  <input type="hidden" name="field2" value="<%=request("field2")%>">
  <input type="hidden" name="field3" value="<%=request("field3")%>">
  <tr>
    <td width="5%" height="30"> </td>
    <td width="95%" align="right">
      整改阶段查询:
      
      <%
      sql="select * from zu_email order by id"
      set rs_email=conn.execute(sql)
      %>
      <select name="email" onChange="form2.submit()">
        <option value="">请选择整改阶段</option>
      <%
      do while rs_email.eof=false
      %>
        <option value="<%=rs_email("id")%>"<%if trim(cstr(rs_email("id")))=nowemail then%> selected="selected"<%end if%>><%=rs_email("email")%></option>
      <%
        rs_email.movenext
      loop
      %>
      </select>
      <input type="text" name="keyword" size="20" value="<%=nowkeyword%>">
      <input type="submit" value=" 查询 " class="button">&nbsp;
    </td>
  </tr>
</form>  
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
<tr>
<td><img src="../images/r_1.gif" alt="" /></td>
<td width="100%" background="../images/r_0.gif">
  <table cellpadding="0" cellspacing="0" width="100%">
    <tr>
      <td>&nbsp;定单、项目反馈问题管理数据查询导出<a href="excel_huiyuan.asp?page=<%=currentpage%>&startdate=<%=nowstartdate%>&enddate=<%=nowenddate%>&ku=<%=nowku%>&danwei=<%=nowdanwei%>&bigclass=<%=nowbigclass%>&smallclass=<%=nowsmallclass%>&class=<%=nowclass%>&keyword=<%=nowkeyword%>&order1=<%=request("order1")%>&order2=<%=request("order2")%>&order3=<%=request("order3")%>&order4=<%=request("order4")%>&order5=<%=request("order5")%>&order6=<%=request("order6")%>&order7=<%=request("order7")%>&order8=<%=request("order8")%>&order9=<%=request("order9")%>&order10=<%=request("order10")%>&order11=<%=request("order11")%>&order12=<%=request("order12")%>&order13=<%=request("order13")%>&order14=<%=request("order14")%>&order15=<%=request("order15")%>" target="_blank"><img src="../images/excel.jpg" border="0" align="absmiddle" alt="导出Excel表格"></a></td>
      <td align="right"> </td>
    </tr>
  </table>
</td>
<td><img src="../images/r_2.gif" alt="" /></td>
</tr>
<tr>
<td></td>
<td>
<form name="form1" action="huiyuan_del.asp">
  <input type="hidden" name="form" value="<%=request("form")%>">
  <input type="hidden" name="field" value="<%=request("field")%>">
  <input type="hidden" name="field2" value="<%=request("field2")%>">
  <input type="hidden" name="field3" value="<%=request("field3")%>">
  <input type="hidden" name="page" value="<%=currentpage%>">
  <input type="hidden" name="xinbie" value="<%=nowxinbie%>">
  <input type="hidden" name="email" value="<%=nowemail%>">
  <input type="hidden" name="keyword" value="<%=nowkeyword%>">
  <input type="hidden" name="order1" value="<%=request("order1")%>">
  <input type="hidden" name="order2" value="<%=request("order2")%>">
  <input type="hidden" name="order3" value="<%=request("order3")%>">
  <input type="hidden" name="order4" value="<%=request("order4")%>">
  <input type="hidden" name="order5" value="<%=request("order5")%>">
  <input type="hidden" name="order6" value="<%=request("order6")%>">
  <input type="hidden" name="order7" value="<%=request("order7")%>">
  <input type="hidden" name="order8" value="<%=request("order8")%>">
  <input type="hidden" name="order9" value="<%=request("order9")%>">
  <input type="hidden" name="order10" value="<%=request("order10")%>">
  <input type="hidden" name="order11" value="<%=request("order11")%>">
  <input type="hidden" name="order12" value="<%=request("order12")%>">
  <input type="hidden" name="order13" value="<%=request("order13")%>">
  <input type="hidden" name="order14" value="<%=request("order14")%>">
  <input type="hidden" name="order15" value="<%=request("order15")%>">
<table align="center" cellpadding="4" cellspacing="1" class="toptable grid" border="1">
  <tr align="center">
    <td class="category" height="30" width="12%" nowrap style="background-color: #C9DBEF">
      <span style="font-weight: 400">
      定单、<a href="?order5=<%if request("order5")="asc" then%>desc<%else%>asc<%end if%>&form=<%=request("form")%>&field=<%=request("field")%>&field2=<%=request("field2")%>&field3=<%=request("field3")%>&page=<%=currentpage%>&zu=<%=nowzu%>&keyword=<%=nowkeyword%>">项目编号</a><a href="?order5=<%if request("order5")="asc" then%>desc<%else%>asc<%end if%>&form=<%=request("form")%>&field=<%=request("field")%>&field2=<%=request("field2")%>&field3=<%=request("field3")%>&page=<%=currentpage%>&zu=<%=nowzu%>&keyword=<%=nowkeyword%>" class="title"><%if request("order5")="asc" then%><img src="../images/up2.gif" border="0" hspace="2" align="absmiddle"><%else%><img src="../images/down2.gif" border="0" hspace="2" align="absmiddle"><%end if%></a>
        </span>
    </td>
    <td class="category" width="8%" nowrap style="background-color: #C9DBEF">
      <span style="font-weight: 400">
      <a href="?order2=<%if request("order2")="asc" then%>desc<%else%>asc<%end if%>&form=<%=request("form")%>&field=<%=request("field")%>&field2=<%=request("field2")%>&field3=<%=request("field3")%>&page=<%=currentpage%>&zu=<%=nowzu%>&keyword=<%=nowkeyword%>" class="title">
        负责<%if request("order2")="asc" then%><img src="../images/up2.gif" border="0" hspace="2" align="absmiddle"><%else%><img src="../images/down2.gif" border="0" hspace="2" align="absmiddle"><%end if%></a>
        </span>
    </td>
    <td class="category" width="39%" nowrap style="background-color: #C9DBEF">
      <span style="font-weight: 400">
      反馈、整改<a href="?order3=<%if request("order3")="asc" then%>desc<%else%>asc<%end if%>&form=<%=request("form")%>&field=<%=request("field")%>&field2=<%=request("field2")%>&field3=<%=request("field3")%>&page=<%=currentpage%>&zu=<%=nowzu%>&keyword=<%=nowkeyword%>" class="title">内容<%if request("order3")="asc" then%><img src="../images/up2.gif" border="0" hspace="2" align="absmiddle"><%else%><img src="../images/down2.gif" border="0" hspace="2" align="absmiddle"><%end if%></a>
        </span>
    </td>
    <td class="category" width="8%" nowrap style="background-color: #C9DBEF">
      <span style="font-weight: 400">
      <a href="?order4=<%if request("order4")="asc" then%>desc<%else%>asc<%end if%>&form=<%=request("form")%>&field=<%=request("field")%>&field2=<%=request("field2")%>&field3=<%=request("field3")%>&page=<%=currentpage%>&zu=<%=nowzu%>&keyword=<%=nowkeyword%>">
        状态</a><a href="?order4=<%if request("order4")="asc" then%>desc<%else%>asc<%end if%>&form=<%=request("form")%>&field=<%=request("field")%>&field2=<%=request("field2")%>&field3=<%=request("field3")%>&page=<%=currentpage%>&zu=<%=nowzu%>&keyword=<%=nowkeyword%>" class="title"><%if request("order4")="asc" then%><img src="../images/up2.gif" border="0" hspace="2" align="absmiddle"><%else%><img src="../images/down2.gif" border="0" hspace="2" align="absmiddle"><%end if%></a>
        </span>
    </td>
    <td class="category" width="7%" nowrap style="background-color: #C9DBEF">
      <span style="font-weight: 400">
      <a href="?order6=<%if request("order6")="asc" then%>desc<%else%>asc<%end if%>&form=<%=request("form")%>&field=<%=request("field")%>&field2=<%=request("field2")%>&field3=<%=request("field3")%>&page=<%=currentpage%>&zu=<%=nowzu%>&keyword=<%=nowkeyword%>">
        期限</a><a href="?order6=<%if request("order6")="asc" then%>desc<%else%>asc<%end if%>&form=<%=request("form")%>&field=<%=request("field")%>&field2=<%=request("field2")%>&field3=<%=request("field3")%>&page=<%=currentpage%>&zu=<%=nowzu%>&keyword=<%=nowkeyword%>" class="title"><%if request("order6")="asc" then%><img src="../images/up2.gif" border="0" hspace="2" align="absmiddle"><%else%><img src="../images/down2.gif" border="0" hspace="2" align="absmiddle"><%end if%></a>
        </span>
    </td>
    <td class="category" width="7%" nowrap style="background-color: #C9DBEF">
      <span style="font-weight: 400">
      <a href="?order7=<%if request("order7")="asc" then%>desc<%else%>asc<%end if%>&form=<%=request("form")%>&field=<%=request("field")%>&field2=<%=request("field2")%>&field3=<%=request("field3")%>&page=<%=currentpage%>&zu=<%=nowzu%>&keyword=<%=nowkeyword%>">
        类型</a><a href="?order7=<%if request("order7")="asc" then%>desc<%else%>asc<%end if%>&form=<%=request("form")%>&field=<%=request("field")%>&field2=<%=request("field2")%>&field3=<%=request("field3")%>&page=<%=currentpage%>&zu=<%=nowzu%>&keyword=<%=nowkeyword%>" class="title"><%if request("order7")="asc" then%><img src="../images/up2.gif" border="0" hspace="2" align="absmiddle"><%else%><img src="../images/down2.gif" border="0" hspace="2" align="absmiddle"><%end if%></a>
        </span>
    </td>
    <%if fla37="1" or request.Cookies("shiwei_id")="1" then%>
    <td class="category" width="3%" nowrap style="background-color: #C9DBEF">
    <span style="font-weight: 400">改</span></td>
    <%end if%>
    <%if fla38="1" or request.Cookies("shiwei_id")="1" then%>
    <td class="category" width="3%" nowrap style="background-color: #C9DBEF">
    <span style="font-weight: 400">删</span></td>
    <%end if%>
    <%if fla17="1" or request.Cookies("shiwei_id")="1" then%>
    <td class="category" width="3%" nowrap style="background-color: #C9DBEF">
    <span style="font-weight: 400">核</span></td>
    <%end if%>
  </tr>
  <%
  set rs_huiyuan =server.createobject("ADODB.RecordSet")
  sql="select * from huiyuan where 1=1"
  if request.Cookies("shiwei_id")<>1 and lookhuiyuan="yes" and fla90="0" then
    sql=sql&" and id_login="&request.Cookies("shiwei_id")
  end if
  if nowzu<>"" then
    sql=sql&" and id_zu="&nowzu
  end if
   if nowxinbie<>"" then
    sql=sql&" and xinbie="&nowxinbie
  end if
    if nowemail<>"" then
    sql=sql&" and id_email="&nowemail
  end if
  if nowkeyword<>"" then
    sql=sql&" and (username like '%"&nowkeyword&"%' or card like '%"&nowkeyword&"%' or tel like '%"&nowkeyword&"%' or qq like '%"&nowkeyword&"%' or id_email like '%"&nowkeyword&"%')"
  end if
  
  if request("order1")<>"" then
    sql=sql&" order by username "&request("order1")
  elseif request("order2")<>"" then
    sql=sql&" order by xinbie "&request("order2")
  elseif request("order3")<>"" then
    sql=sql&" order by qq "&request("order3")
  elseif request("order4")<>"" then
    sql=sql&" order by id_email "&request("order4")
  elseif request("order5")<>"" then
    sql=sql&" order by card "&request("order5")
  elseif request("order6")<>"" then
    sql=sql&" order by jifen "&request("order6")
  elseif request("order7")<>"" then
    sql=sql&" order by id_zu "&request("order7")                    
  else
    sql=sql&" order by id desc"  
  end if  
      
  rs_huiyuan.open sql,conn,1,2
  if not rs_huiyuan.eof then
  rs_huiyuan.pagesize=maxrecord
  rs_huiyuan.absolutepage=currentpage
  for currentrec=1 to rs_huiyuan.pagesize
    if rs_huiyuan.eof then
      exit for
    end if
  %>
  <tr onMouseOver="this.className='highlight'" onMouseOut="this.className=''" <%if request("form")<>"" then%>onDblClick="window.opener.document.<%=request.querystring("form")%>.<%=request.querystring("field")%>.value='<%=rs_huiyuan("id")%>';window.opener.document.<%=request.querystring("form")%>.<%=request.querystring("field2")%>.value='<%=rs_huiyuan("username")%>';window.opener.document.<%=request.querystring("form")%>.<%=request.querystring("field3")%>.value='<%=rs_huiyuan("card")%>';window.close();"<%else%>onDblClick="javascript:var win=window.open('huiyuan_show.asp?id=<%=rs_huiyuan("id")%>','详细信息','width=853,height=470,top=176,left=161,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=yes'); win.focus()"<%end if%>>
    <td align="center" height="25" width="12%" nowrap><%=rs_huiyuan("card")%></td>
    <td align="center" width="8%" nowrap><%=rs_huiyuan("address")%></td>
    <td align="center" width="39%" nowrap><%=rs_huiyuan("tel")%></td>
    <td align="center" width="8%" nowrap>
    <%set rs_email=conn.execute("select * from zu_email where id="&rs_huiyuan("id_email"))%>
      <%if rs_email.eof then%>&nbsp;<%else%><%=rs_email("email")%><%end if%>
    <%if rs_huiyuan("enddate")-date()<0 then%>
    <%elseif rs_huiyuan("enddate")-date()<10 then%>
    <%else%>
    <%end if%>
    </td>
    <td align="center" width="7%" nowrap><%=rs_huiyuan("enddate")%></td>
    <td align="center" width="7%" nowrap>
      <%set rs_zu=conn.execute("select * from zu_huiyuan where id="&rs_huiyuan("id_zu"))%>
      <%if rs_zu.eof then%>&nbsp;<%else%><%=rs_zu("zu")%><%end if%>
    </td>
    <%if fla37="1" or request.Cookies("shiwei_id")="1" then%>
    <td align="center" nowrap><a href="huiyuan_modi.asp?form=<%=request("form")%>&field=<%=request("field")%>&field2=<%=request("field2")%>&field3=<%=request("field3")%>&id=<%=rs_huiyuan("id")%>&page=<%=currentpage%>&zu=<%=nowzu%>&keyword=<%=nowkeyword%>&order1=<%=request("order1")%>&order2=<%=request("order2")%>&order3=<%=request("order3")%>&order4=<%=request("order4")%>&order5=<%=request("order5")%>&order6=<%=request("order6")%>&order7=<%=request("order7")%>&order8=<%=request("order8")%>&order9=<%=request("order9")%>&order10=<%=request("order10")%>&order11=<%=request("order11")%>&order12=<%=request("order12")%>&order13=<%=request("order13")%>&order14=<%=request("order14")%>&order15=<%=request("order15")%>"><img src="../images/res.gif" border="0" hspace="2" align="absmiddle"></a></td>
    <%end if%>
    <%if fla38="1" or request.Cookies("shiwei_id")="1" then%>
    <td align="center" nowrap><input type="checkbox" name="ID" value="<%=rs_huiyuan("id")%>" style="border:0"></td>
    <%end if%>
    <%if fla17="1" or request.Cookies("shiwei_id")="1" then%>
    <td align="center" nowrap width="3%" height="10">
    <%if rs_huiyuan("xinbie")="项目稽核" and rs_huiyuan("id_email")=55 then%>
    <font color="#FF0000">
      <input type="button" value="结" onClick="window.location.href='?id=<%=request("id")%>&hid1=ok'" class="button">         
    <%end if%>
    <%if rs_huiyuan("xinbie")="项目稽核" and rs_huiyuan("id_email")=62 then%>
    <font color="#FF0000">
    <img src="../images/check.gif">
    <%end if%>
    <%if rs_huiyuan("xinbie")="项目验收" and rs_huiyuan("id_email")=55 then%>
    <font color="#FF0000">
      <input type="button" value="验" onClick="window.location.href='?id=<%=request("id")%>&hid2=ok'" class="button">         
    <%end if%>
    <%if rs_huiyuan("xinbie")="项目验收" and rs_huiyuan("id_email")=62 then%>
    <font color="#FF0000">
    <img src="../images/check.gif">
    <%end if%>
    <%end if%>
  </tr>
  <%
    rs_huiyuan.movenext
  next
  else
  %>
  <tr align="center" onMouseOver="this.className='highlight'" onMouseOut="this.className=''">
    <td colspan="9" height="25" align="center" style="color:red"><b>没有找到记录</b></td>
  </tr>
  <%
  end if
  %>
  
  
  
  <%
  if rs_huiyuan.recordcount>0 then
  %>
  <tr>
    <td colspan="9" height="30" class="category">
    <table cellpadding=0 cellspacing=0 width="100%">
    <tr>
    <td align="left" style="color:#FF0000;">&nbsp;<%if request("form")<>"" then%>双击选择反馈问题<%else%>双击每行可查看详细资料<%end if%></td>  
    <td align="right">
      &nbsp;&nbsp;
      <%=rs_huiyuan.recordcount%>&nbsp;条信息&nbsp; 共&nbsp;<%=rs_huiyuan.pagecount%>&nbsp;页&nbsp;
  <%
  nowstart=currentpage-3
  if nowstart<1 then
    nowstart=1
  end if
  nowend=currentpage+3
  if nowend>rs_huiyuan.pagecount then
    nowend=rs_huiyuan.pagecount
  end if
  response.write "&nbsp;<a href='?form="&request("form")&"&field="&request("field")&"&field2="&request("field2")&"&field3="&request("field3")&"&zu="&nowzu&"&keyword="&nowkeyword&"&page=1&order1="&request("order1")&"&order2="&request("order2")&"&order3="&request("order3")&"&order4="&request("order4")&"&order5="&request("order5")&"&order6="&request("order6")&"&order7="&request("order7")&"&order8="&request("order8")&"&order9="&request("order9")&"&order10="&request("order10")&"&order11="&request("order11")&"&order12="&request("order12")&"&order13="&request("order13")&"&order14="&request("order14")&"&order15="&request("order15")&"' class='page'>最前页</a>&nbsp;"
  for ipage=nowstart to nowend
    if cstr(ipage)=cstr(currentpage) then
      response.write "&nbsp;<span style='font-weight:bold;color:#5858E6'>" & ipage &"</span>&nbsp;"
    else
      response.write "&nbsp;[&nbsp;<a href='?form="&request("form")&"&field="&request("field")&"&field2="&request("field2")&"&field3="&request("field3")&"&zu="&nowzu&"&keyword="&nowkeyword&"&page="&ipage&"&order1="&request("order1")&"&order2="&request("order2")&"&order3="&request("order3")&"&order4="&request("order4")&"&order5="&request("order5")&"&order6="&request("order6")&"&order7="&request("order7")&"&order8="&request("order8")&"&order9="&request("order9")&"&order10="&request("order10")&"&order11="&request("order11")&"&order12="&request("order12")&"&order13="&request("order13")&"&order14="&request("order14")&"&order15="&request("order15")&"' class='page'>" & ipage &"</a>&nbsp;]&nbsp;"
    end if
  next
  response.write "&nbsp;<a href='?form="&request("form")&"&field="&request("field")&"&field2="&request("field2")&"&field3="&request("field3")&"&zu="&nowzu&"&keyword="&nowkeyword&"&page="&rs_huiyuan.pagecount&"&order1="&request("order1")&"&order2="&request("order2")&"&order3="&request("order3")&"&order4="&request("order4")&"&order5="&request("order5")&"&order6="&request("order6")&"&order7="&request("order7")&"&order8="&request("order8")&"&order9="&request("order9")&"&order10="&request("order10")&"&order11="&request("order11")&"&order12="&request("order12")&"&order13="&request("order13")&"&order14="&request("order14")&"&order15="&request("order15")&"' class='page'>最后页</a>&nbsp;"
%>
    <%if fla38="1" or request.Cookies("shiwei_id")="1" then%>
    <input name="chkall" type="checkbox" id="chkall" value="select" onClick="CheckAll(this.form)" style="border:0"> 全选
    <input type="submit" value="删 除" onClick="return confirm('此操作无法恢复!!!请慎重!!!\n\n确定要删除所选择的会员吗?')" class="button">
    <%end if%>
  </td>
  </tr></table></td></tr>
<%end if%>
</table>
</form>
</td>
<td></td>
</tr>
<tr>
<td><img src="../images/r_4.gif" alt="" /></td>
<td></td>
<td><img src="../images/r_3.gif" alt="" /></td>
</tr>
</table>
</body>
</html>
搜索更多相关主题的帖子: 黑体字 提示 
2010-06-08 20:57
eournet
Rank: 2
等 级:论坛游民
帖 子:103
专家分:26
注 册:2010-5-22
得分:0 
Microsoft JET Database Engine (0x80040E14)
语法错误 (操作符丢失) 在查询表达式 'id=' 中。
2010-06-08 20:58
eournet
Rank: 2
等 级:论坛游民
帖 子:103
专家分:26
注 册:2010-5-22
得分:0 
请教老师该如何修改啊
2010-06-08 23:15
eournet
Rank: 2
等 级:论坛游民
帖 子:103
专家分:26
注 册:2010-5-22
得分:0 
是不是request("id")这个没有进行定义,我也不清楚所以才要请教高手,实在看不出问题,请老师们不辞辛劳来看下
2010-06-09 21:21
eournet
Rank: 2
等 级:论坛游民
帖 子:103
专家分:26
注 册:2010-5-22
得分:0 
再次跪求高手出来详细说明下,不胜感谢
2010-06-12 20:56



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-309664-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.280304 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved