请教大家一个奇怪的问题
<%
'[ZJXM_ZYGL] (C) 2009-2010 江阴电信分公司线路维护中心 Inc.
'$Id: print_whd.asp 2010-04-06 $
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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../style2.css" rel="stylesheet" type="text/css">
<script language=javascript>
function preview() {
bdhtml=window.document.body.innerHTML;
sprnstr="<!--startprint-->";
eprnstr="<!--endprint-->";
prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17);
prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));
window.document.body.innerHTML=prnhtml;
window.print();
window.document.body.innerHTML=bdhtml;
}
</script>
</HEAD>
<BODY topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" style="position: absolute; top: 0; left:0; right:0; bottom:0; width:0; height:0; z-index:0">
<%
set rs_whd=conn.execute("select * from whd where zu=false and bianhao='"&request("bianhao")&"'")
nowid_gys=rs_whd("id_gys")
nowid_login=rs_whd("id_login")
set rs_login=conn.execute("select * from login where id="&rs_whd("id_login"))
if rs_login.eof then
nowlogin=rs_whd("login")
else
nowlogin=rs_login("username")
end if
%>
<!--startprint-->
<div align="center">
<table border="2" cellspacing="0" cellpadding="0" bordercolor="#000000" height="0" bordercolorlight="#000000" bordercolordark="#000000">
<!-- MSTableType="layout" -->
<tr>
<th height="35" colspan="8"><font size="5">维护类日常维修、抢修派修施工单</font></th>
</tr>
<tr>
<th height="25" colspan="8"><span style="font-weight: 400"><font size="2">---施工单关联主要信息,工单打印日期:<%=date()%>---</font></span></th>
</tr>
<tr>
<th height="25"><span style="font-weight: 400"><font size="2">主管部门</font></span></th>
<th height="25" width="31%" colspan="2"><font size="2">
<span style="font-weight: 400"><%=rs_whd("id_gys")%></span></font></th>
<th height="25" width="18%" colspan="2"><span style="font-weight: 400">
<font size="2">工单编码</font></span></th>
<th height="25" width="32%" colspan="3">
<font face="Arial" size="4" color="#FF0000">N</font><font face="Arial" color="#FF0000" size="2">O</font><font face="黑体" size="4" color="#FF0000">:</font><font color="#FF0000"><%=rs_whd("bianhao")%></font></th>
</tr>
<tr>
<th height="25"><span style="font-weight: 400"><font size="2">维修类别</font></span></th>
<th height="25" width="16%"><font size="2"><%=rs_whd("gys")%></font></th>
<th height="25" width="15%"><span style="font-weight: 400"><font size="2">工单名称</font></span></th>
<th height="25" width="18%" colspan="2"><span style="font-weight: 400">
<font size="2"><%=rs_whd("price")%></font></span></th>
<th height="25" width="11%"><span style="font-weight: 400"><font size="2">施工原因</font></span></th>
<th height="25" width="21%" colspan="2"><span style="font-weight: 400">
<font size="2"><%=rs_whd("type")%></font></span></th>
</tr>
<tr>
<th height="25"><font size="2"><span style="font-weight: 400">区域派修责任人</span></font></th>
<th height="25" width="16%"><font size="2"><span style="font-weight: 400"><%=nowlogin%></span></font></th>
<th height="25" width="15%"><span style="font-weight: 400"><font size="2">
相关支局</font></span></th>
<th height="25" width="18%" colspan="2"><span style="font-weight: 400">
<font size="2"><%=rs_whd("id_produit")%></font></span></th>
<th height="25" width="11%"><span style="font-weight: 400"><font size="2">
派修时间</font></span></th>
<th height="25" width="21%" colspan="2"><span style="font-weight: 400">
<font size="2"><%=rs_whd("selldate")%></font></span></th>
</tr>
<tr>
<th height="25"><span style="font-weight: 400"><font size="2">施工负责人</font></span></th>
<th height="25" width="16%"><font size="2"><span style="font-weight: 400"><%=rs_whd("guige")%></span></font></th>
<th height="25" width="15%"><span style="font-weight: 400"><font size="2">
施工单位</font></span></th>
<th height="25" width="18%" colspan="2"><span style="font-weight: 400">
<font size="2"><%=rs_whd("ku")%></font></span></th>
<th height="25" width="11%"><span style="font-weight: 400"><font size="2">
指定竣工时间</font></span></th>
<th height="25" width="21%" colspan="2"><span style="font-weight: 400">
<font size="2"><%=rs_whd("enddate")%></font></span></th>
</tr>
<tr>
<th height="25"><span style="font-weight: 400"><font size="2">施工地点</font></span></th>
<th height="25" width="31%" colspan="2"><span style="font-weight: 400">
<font size="2"><%=rs_whd("id_huiyuan")%></font></span></th>
<th height="25" width="18%" colspan="2"><font size="2">
<span style="font-weight: 400">施工单主题</span></font></th>
<th height="25" width="32%" colspan="3"><span style="font-weight: 400">
<font size="2"><%=rs_whd("price")%></font></span></th>
</tr>
<tr>
<th height="30"><span style="font-weight: 400"><font size="2">主要工作量</font></span></th>
<td height="50" width="81%" colspan="7" align="center"><%=rs_whd("beizhu")%></td>
</tr>
<tr>
<th height="25" colspan="8"> <span style="font-weight: 400"><font size="2">---施工单使用主要材料明细---</font></span><tr>
<td height="585" colspan="8" valign="top" style="text-align: center; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 0">
<div align="center">
<table border="1" width="100%" cellspacing="1" height="100%" id="table2" bordercolor="#000000">
<!-- MSTableType="nolayout" -->
<tr>
<td width="28" align="center">
<p align="center">主<br>
<br>
要<br>
<br>
材<br>
<br>
料<br>
<br>
表</td>
<td valign="top" height="585">
<div align="center">
<table border="1" width="100%" cellspacing="0" id="table5" bordercolorlight="#FFFFFF" bordercolordark="#000000" bordercolor="#000000" cellpadding="0">
<!-- MSTableType="nolayout" --><td height="20" bordercolor="#000000" align="center" width="17%" nowrap valign="middle">
<span style="font-weight: 400"><font size="2">材料名称</font></span></td>
<td height="20" width="31%" bordercolor="#000000" align="center" nowrap>
<span style="font-weight: 400"><font size="2">型号规格</font></span></td>
<td height="20" width="9%" bordercolor="#000000" align="center" nowrap>
<span style="font-weight: 400"><font size="2">数量</font></span></td>
<td height="20" width="7%" bordercolor="#000000" align="center" nowrap>
<span style="font-weight: 400"><font size="2">单位</font></span></td>
<td height="20" width="10%" bordercolor="#000000" align="center" nowrap>
<span style="font-weight: 400"><font size="2">材料单价</font></span></td>
<td height="20" width="12%" bordercolor="#000000" align="center" nowrap>
<span style="font-weight: 400"><font size="2">单项合计</font></span></td>
<td height="20" width="11%" bordercolor="#000000" align="center" nowrap>
<span style="font-weight: 400"><font size="2">领料情况</font></span></td>
<%
totalprice2=0
do while rs_whd.eof=false
set rs_produit=conn.execute("select * from produit where huohao='"&rs_whd("huohao")&"'")
%>
<tr>
<%if showpic="yes" then%><%end if%>
<td align="center" height="20" bordercolor="#000000" width="17%" nowrap><%=rs_whd("title")%>
<td align="center" height="20" width="31%" bordercolor="#000000" nowrap>
<font size="2"><%=rs_whd("huohao")%>
</font>
<td align="center" height="20" width="9%" bordercolor="#000000" nowrap><%=formatnumber(rs_whd("shulian"),2)%>
<td align="center" height="20" width="7%" bordercolor="#000000" nowrap><%=rs_whd("id_danwei")%>
<td align="center" height="20" width="10%" bordercolor="#000000" nowrap><%=formatnumber(rs_whd("price2"),2)%>
<td align="center" height="20" width="12%" bordercolor="#000000" nowrap><%=formatnumber(rs_whd("price2")*rs_whd("shulian"),2)%></tr>
<td align="center" height="20" width="11%" bordercolor="#000000" nowrap>
<font face="宋体" size="4">□</font></tr>
<%
totalprice2=totalprice2+rs_whd("price2")*rs_whd("shulian")
rs_whd.movenext
loop
%>
<tr>
<td height="20" colspan="5" align="center" bordercolor="#000000" nowrap>
<p align="right"><span style="font-weight: 400"><font size="2">总计</font></span></td>
<td height="20" width="12%" align="center" bordercolor="#000000" nowrap><%=formatnumber(totalprice2,2)%></font>
</td>
<td height="20" width="11%" align="center" bordercolor="#000000" nowrap>
<p align="left"> </td>
</tr></th>
</tr></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<tr>
<th height="30"><span style="font-weight: 400"><font size="2">签发人</font></span></th>
<th height="30" width="31%" colspan="2"> </th>
<th height="30" width="18%" colspan="2"><span style="font-weight: 400">
<font size="2">签发时间</font></span></th>
<th height="30" width="32%" colspan="3"><font size="2">
<span style="font-weight: 400">年 月
日 </span></font></th>
</tr>
<tr>
<th height="30"><span style="font-weight: 400"><font size="2">施工负责人</font></span></th>
<th height="30" width="31%" colspan="2"> </th>
<th height="30" width="18%" colspan="2"><span style="font-weight: 400">
<font size="2">实际竣工时间</font></span></th>
<th height="30" width="32%" colspan="3"><font size="2">
<span style="font-weight: 400">年 月
日 </span></font></th>
</tr>
<tr>
<th height="25" colspan="8" width="100%">
<p align="left"><span style="font-weight: 400"><font size="2">其他需要说明的问题:</font></span></th>
</tr>
<tr>
<th height="25" colspan="8" width="100%">
<p align="left"><span style="font-weight: 400"> 派修人: 领料:
线路室:
仓库:</span></th>
</tr>
</table>
<p><font size="2"> </font>
<font size="1"> </font><i><font size="2"></font></i></div>
<p align="center"> </p>
</body>
</html>