| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 731 人关注过本帖
标题:请教大家一个奇怪的问题
只看楼主 加入收藏
eournet
Rank: 2
等 级:论坛游民
帖 子:103
专家分:26
注 册:2010-5-22
结帖率:55.56%
收藏
已结贴  问题点数:20 回复次数:6 
请教大家一个奇怪的问题
图片附件: 游客没有浏览图片的权限,请 登录注册
图片附件: 游客没有浏览图片的权限,请 登录注册

<%
'[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">年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    日 </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">年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    日 </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">&nbsp;派修人:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 领料:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
线路室:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
仓库:</span></th>
  </tr>
  </table>
<p><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font>
<font size="1">&nbsp;</font><i><font size="2"></font></i></div>
<p align="center"> </p>
</body>
</html>
搜索更多相关主题的帖子: html javascript content include 分公司 
2010-09-10 09:36
eournet
Rank: 2
等 级:论坛游民
帖 子:103
专家分:26
注 册:2010-5-22
收藏
得分:0 
搞不清楚一个问题,同样设置单元格式,为什么文本能置顶而嵌套的表格不能呢,如何解决,请教各位了
2010-09-10 09:37
lele2007
Rank: 5Rank: 5
来 自:广东省深圳
等 级:职业侠客
威 望:6
帖 子:1028
专家分:305
注 册:2007-9-4
收藏
得分:0 
<link href="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../style2.css" rel="stylesheet" type="text/css">



学习编程www.
2010-09-10 11:22
eournet
Rank: 2
等 级:论坛游民
帖 子:103
专家分:26
注 册:2010-5-22
收藏
得分:0 
这个路径问题不搭界,我试过了
2010-09-10 11:36
eournet
Rank: 2
等 级:论坛游民
帖 子:103
专家分:26
注 册:2010-5-22
收藏
得分:0 
这个路径问题不搭界,我试过了
2010-09-10 13:50
hams
Rank: 12Rank: 12Rank: 12
等 级:贵宾
威 望:18
帖 子:912
专家分:3670
注 册:2008-7-30
收藏
得分:0 
这个应该是HTML的问题,看一下游览器的HTML代码

俺不高手,俺也是来学习的。
俺的意见不一定就对,当你不认同时请点忽视按钮。
当走到十字路口不知该如何走时,可在论坛问下路,但你若希望别人能一路把你送到目的地,显然是不现实的,因为别人也有自己要走的路。
2010-09-10 15:18
yms123
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
收藏
得分:20 
IE6下测试正常的置顶
<table width="800" height="600">
<tr>
   <td valign="top">
       <table width="200" height="600" >
          <tr>
             <td>置顶表格</td>
          </tr>  
       </table>
    </td>   
</tr>
</table>
2010-09-11 16:12
快速回复:请教大家一个奇怪的问题
数据加载中...
 
   



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

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