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

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>
<%
if fla1="0" and session("shiwei_id")<>"1" then
%>
<br><center>
<img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/note.gif" align="absmiddle">&nbsp;<font color="#FF0000">你不具备此权限,请与管理员联系!</font></center>
<%  
  response.end
end if
%>

<%
if request("hid1")="ok" then
nowselldate=request("selldate")
nowbeizhu=request("beizhu")
nowid_login=request("id_login")
set rs_login=conn.execute("select * from login where id="&nowid_login)
nowid_gys=request("id_gys")
nowgys=""
nowbianhao=replace(replace(replace(replace(replace(replace(FormatDateTime(now(),0),":","")," ",""),"-",""),"/",""),"上午",""),"下午","")
totalshulian=0
totalprice2=0
for x=1 to maxclk
nowbigclass=request("bigclass"&x)
nowhuohao=request("huohao"&x)
nowshulian=request("shulian"&x)
nowprice2=request("price2"&x)
if nowprice2="" then
  nowprice2=0
end if
if nowhuohao<>"单击选择材料" and nowshulian<>"" then
set rs_clk=conn.execute("select * from clk where huohao='"&nowhuohao&"'")
set rs_prix=conn.execute("select sum(shulian) from clk where huohao='"&nowhuohao&"'")
if rs_prix(0)+nowshulian>0 then
nowpinprice2=(rs_prix(0)*rs_clk("price2")+nowprice2*nowshulian)/(rs_prix(0)+nowshulian)
else
nowpinprice2=rs_clk("price2")
end if

sql="select bigclass from bigclass where id="&rs_produit("id_bigclass")
set rs_bigclass=conn.execute(sql)
sql="select smallclass from smallclass where id="&rs_produit("id_smallclass")
set rs_smallclass=conn.execute(sql)
if rs_smallclass.eof then
  smallclass=""
else
  smallclass=rs_smallclass(0)
end if
totalshulian=totalshulian+nowshulian
totalprice2=totalprice2+nowprice2*nowshulian
sql="insert into whd(id_produit,bigclass,smallclass,title,huohao,id_ku,ku,shulian,guige,id_login,login,type,selldate,enddate,price2,photo,id_gys,gys,bianhao,beizhu) values("&rs_produit("id")&",'"&rs_bigclass(0)&"','"&smallclass&"','"&rs_clk("title")&"','"&nowhuohao&"',"&rs_ku("id")&",'"&rs_ku("ku")&"',"&nowshulian&",'"&nowguige&"',"&nowid_login&",'"&rs_login("username")&"',0,#"&nowselldate&"#,#"&nowenddate&"#,"&nowprice2&",'"&rs_clk("photo")&"','"&nowid_gys&"','"&nowgys&"','"&nowbianhao&"','"&nowbeizhu&"')"
conn.execute(sql)
end if
next
sql="insert into whd(shulian,id_login,login,type,selldate,price2,id_gys,gys,bianhao,zu,beizhu) values("&totalshulian&","&nowid_login&",'"&rs_login("username")&"',0,#"&nowselldate&"#,"&totalprice2&",'"&nowid_gys&"','"&nowgys&"','"&nowbianhao&"',true,'"&nowbeizhu&"')"
conn.execute(sql)
%>
<script language="javascript">
alert("工单派发成功!")
</script>
<%if dayin1="no" then%>
<script language="javascript">
window.open('print_whd.asp?bianhao=<%=nowbianhao%>','打印','width=853,height=470,top=176,left=161,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=yes');
</script>
<%end if%>
<script language="javascript">
window.location.href="gd_add.asp"
</script>
<%
end if
%>

<%
if request("hid2")<>"" then
nowbigclass=request("bigclass")
nowsmallclass=request("smallclass")
nowtitle=request("title")
nowhuohao=request("huohao")
nowku=request("ku")
nowshulian=request("shulian")
nowdanwei=request("danwei")
nowprice=request("price")
if nowprice="" then
  nowprice=0
end if
nowprice2=request("price2")
if nowprice2="" then
  nowprice2=0
end if
nowguige=request("guige")
nowbaojin=request("baojin")
nowclass=request("class")
nowduihuan=request("duihuan")
nowtichen_type=request("tichen_type")
nowtichen=request("tichen")
nowphoto=request("photo")
nowbeizhu=request("beizhu")
nowid_login=request("id_login")
nowid_gys=request("id_gys")
nowgys=request("gys")%>
<script language="javascript">
alert("!")
window.history.go(-1)
</script>
<script language="javascript">
function isNumberString (InString,RefString)
{
if(InString.length==0) return (false);
for (Count=0; Count < InString.length; Count++)  {
    TempChar= InString.substring (Count, Count+1);
    if (RefString.indexOf (TempChar, 0)==-1)  
    return (false);
}
return (true);
}

function check()
{
if (document.form2.title.value==""||document.form2.huohao.value==""||document.form2.shulian.value=="")
{
alert("有*号的必须填写!");
return false;
}
if (isNumberString(document.form2.tichen.value,"1234567890.")!=1)
{
alert("价格只能为数字!");
return false;
}
}

function check1()
{
if (document.form1.huohao1.value=="单击选择产品")
{
alert("还没有选择产品!");
return false;
}
if (document.form1.shulian1.value=="")
{
alert("请输入入库数量!");
return false;
}
}

function chg1(a)
{
if (a=="0") {document.all.bian1.innerHTML="%"}
else {document.all.bian1.innerHTML="元"}
}
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
<!-- MSTableType="nolayout" -->
<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;维护工单派发(带*号的为必填项)</td>
      <td align="right"> </td>
    </tr>
  </table>
</td>
<td>
<img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/r_2.gif" alt="" /></td>
</tr>
<tr>
<td></td>
<td>
<table align="center" cellpadding="4" cellspacing="1" class="toptable grid" border="1">
      <form name="form1" method="post">
      <tr>
        <td width="20%" align="right" height="28">选择材料:</td>
        <td width="80%" class="category" height="28">
          <table cellpadding="0" cellspacing="0" width="100%" border=0>
            <%for x=1 to maxclk%>
            <tr id="cailiaohan<%=x%>"<%if x<>1 then%> style="display:none;"<%end if%>>
              <td>
                <input name="huohao<%=x%>" readonly onClick="JavaScript:window.open('produitcl.asp?form=form1&field=huohao<%=x%>&field2=price2<%=x%>&span1=showshulian<%=x%>','','directorys=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=853,height=470,top=176,left=161');" style="width:80px" value="单击选择材料" size="1">
                数量:
                <input type="text" name="shulian<%=x%>" style="width:30px" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))" size="1">
                单位:<select name="smallclass" size="1">
                <option selected value="米">米</option>
                <option value="根">根</option>
                <option value="块">块</option>
                <option value="条">条</option>
                <option value="套">套</option>
                <option value="付">付</option>
                <option value="只">只</option>
                <option value="箱">箱</option>
                </select>                                
                单价: <input type="text" name="price2<%=x%>" style="width:50px" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))">
               
                安装方式: <select name="bigclass" size="1">
                <option>安装方式</option>
                <option value="架空">架空</option>
                <option value="管道">管道</option>
                <option value="附挂">附挂</option>
                <option value="直埋">直埋</option>
                <option value="墙挂">墙挂</option>
                <option value="吊线式">吊线式</option>
                <option value="钉固式">钉固式</option>
                <option value="槽道">槽道</option>
                <option value="地沟">地沟</option>
                </select>                                
                <%if x<>maxprclk then%><span onClick="cailiaohan<%=(x+1)%>.style.display=''" style="cursor:hand;">增加材料</span><%end if%>
                <%if x<>1 then%><input type="button" value="清除" onClick="huohao<%=x%>.value='单击选择材料';shulian<%=x%>.value='1';price2<%=x%>.value=''" class="button"><%end if%>
                <%if x=1 then%><font color="#ff0000">*</font><%end if%>
                <div id="showshulian<%=x%>"></div>
              </td>
            </tr>        
            <%next%>        
          </table>
        </td>
      </tr>
      <tr>
        <td align="right" height="28">主管部门:</td>
        <td class="category" height="28">
                    <select name="id_gys" size="1">
                  <option selected value="线路维护安装室">线路维护安装室</option>
                </select>        
        </td>
      </tr>
      <tr>
        <td align="right" height="28">相关支局:</td>
        <td class="category" height="28">
                         <select name="zhiju" size="1">
                  <option selected>相关支局</option>
                    <option value="顾山">顾山</option>
                    <option value="北国">北国</option>
                    <option value="长泾">长泾</option>
                    <option value="河塘">河塘</option>
                    <option value="文林">文林</option>
                    <option value="祝塘">祝塘</option>
                    <option value="长寿">长寿</option>
                    <option value="新桥">新桥</option>
                    <option value="华士">华士</option>
                    <option value="陆桥">陆桥</option>
                    <option value="周庄">周庄</option>
                    <option value="云亭">云亭</option>
                    <option value="山观">山观</option>
                    <option value="长山">长山</option>
                    <option value="要塞">要塞</option>
                    <option value="滨江">滨江</option>
                    <option value="虹桥">虹桥</option>
                    <option value="澄江">澄江</option>
                    <option value="西郊">西郊</option>
                    <option value="夏港">夏港</option>
                    <option value="申港">申港</option>
                    <option value="西石桥">西石桥</option>
                    <option value="利港">利港</option>
                    <option value="石庄">石庄</option>
                    <option value="璜土">璜土</option>
                    <option value="马镇">马镇</option>
                    <option value="青阳">青阳</option>
                    <option value="璜塘">璜塘</option>
                    <option value="峭岐">峭岐</option>
                    <option value="桐歧">桐歧</option>
                    <option value="月城">月城</option>
                    <option value="南闸">南闸</option>
                </select>        
        </td>
      </tr>
      <tr>
        <td align="right" height="28">施工地点:</td>
        <td class="category" height="28">
            <input type="text" name="id_huiyuan" style="width:200; height:21" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))" size="200"></td>
      </tr>
      <tr>
        <td align="right" height="28">工单名称:</td>
        <td class="category" height="28">
            <input type="text" name="price" style="width:200; height:21" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))" size="200"></td>
      </tr>
      <tr>
        <td align="right" height="28">施工单位:</td>
        <td class="category" height="28">
          <%
                sql="select * from ku order by id"
                set rs_ku=conn.execute(sql)
                %>
                <select name="id_ku" size="1">
                  <option value="0" selected>施工单位</option>
                <%
                do while rs_ku.eof=false
                %>
                  <option value="<%=rs_ku("id")%>"><%=rs_ku("ku")%></option>
                <%
                  rs_ku.movenext
                loop
                %>
                </select>        
        </td>
      </tr>
      <tr>
        <td align="right" height="28">施工负责人:</td>
        <td class="category" height="28">
                <select name="guige" size="1">
                  <option selected>施工负责</option>
                    <option value="那新国">那新国</option>
                    <option value="赵杰">赵杰</option>
                    <option value="袁志强">袁志强</option>
                    <option value="施健">施健</option>
                    <option value="张健">张健</option>
                    <option value="杨植林">杨植林</option>
                    <option value="相生高">相生高</option>
                    <option value="陈启新">陈启新</option>
                </select>        
        </td>
      </tr>
        <tr>
        <td align="right" height="28">维修类别:</td>
        <td class="category" height="28">
                         <select name="gys" size="1">
                  <option selected value="日常维修">日常维修</option>
                    <option value="外力抢修">外力抢修</option>
                </select>        
        </td>
      </tr>
        <tr>
        <td align="right" height="28">维修原因:</td>
        <td class="category" height="28">
                <select name="type" size="1">
                  <option selected value="电缆进水">电缆进水</option>
                    <option value="接头进水">接头进水</option>
                    <option value="电缆老化">电缆老化</option>
                </select>        
        </td>
      </tr>
      <tr>
        <td align="right" height="28">施工时间段:</td>
        <td class="category" height="28">
          <input name="selldate" value="<%=date()%>" readonly style="width:150px">
          <img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/date.gif" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:window.open('day.asp?form=form1&field=selldate&oldDate='+selldate.value,'','directorys=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,width=250,height=170,top=200,left=520');">-
          <input name="enddate" value="<%=date()+3%>" readonly style="width:150px" size="1">
          <img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/date.gif" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:window.open('day.asp?form=form1&field=selldate&oldDate='+selldate.value,'','directorys=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,width=250,height=170,top=200,left=520');">
            </td>
      </tr>
      <tr>
        <td align="right" height="28">维护区域管理:</td>
        <td class="category" height="28">
          <%
          if request.Cookies("shiwei_id")=1 then
            sql="select * from login order by id_zu,id"
            set rs_login=conn.execute(sql)
          else
            sql="select * from login where id="&request.Cookies("shiwei_id")
            set rs_login=conn.execute(sql)      
          end if
          if rs_login.eof then
          %>
          <script language="javascript">
            alert("请先添加员工!")
            window.location.href="../system/user_add.asp"
          </script>
          <%
          response.end
          else
          %>
          <select name="id_login">
          <%
          do while rs_login.eof=false
          %>
            <option value="<%=rs_login("id")%>"<%if rs_login("username")=session("yida_username") then%> selected="selected"<%end if%>><%=rs_login("username")%> (<%=rs_login("bianhao")%>)</option>
          <%
            rs_login.movenext
          loop
          %>
          </select>
          <%
          end if
          %>   
           <%
           end if
           %>        
        </td>
      </tr>
      <tr>
        <td align="right">主要工作内容:</td>
        <td class="category">
          <textarea name="beizhu" cols="80" rows="5"></textarea>
        </td>
      </tr>   
      <tr>
        <td height="32"> </td>
        <td class="category">
          <input type="submit" value=" 确认添加 " onClick="return check1()" class="button">
          <input type="hidden" name="hid1" value="ok">
          <input type="reset" value=" 重新填写 " class="button">
          </td>
      </tr>
      </form>
</table>
</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 cellpadding=0 cellspacing=0 width="98%" align=center><tr><td height="5"></td></tr></table>

<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
 
   
      </form>
</table>   
</td>
</tr>
</table>
</body>
</html>
搜索更多相关主题的帖子: 页面 代码 
2010-07-18 22:43
tepnidh
Rank: 2
等 级:论坛游民
帖 子:192
专家分:24
注 册:2009-8-2
收藏
得分:0 
回复 楼主 eournet
跟我的情况差不多
2010-07-19 05:51
gupiao175
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:40
帖 子:1787
专家分:7527
注 册:2007-6-27
收藏
得分:20 
<link href="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../style/style.css" rel="stylesheet" type="text/css">

这个路径有问题,有必要弄这么深的路径??还有几个图片也是,全是这么深的路径。乱套了。

认真检查你的所有文件路径,确保其正确有效!

Q:1428196631,百度:开发地 即可找到我,有事请留言!
2010-07-19 08:00
hams
Rank: 12Rank: 12Rank: 12
等 级:贵宾
威 望:18
帖 子:912
专家分:3670
注 册:2008-7-30
收藏
得分:0 
!

俺不高手,俺也是来学习的。
俺的意见不一定就对,当你不认同时请点忽视按钮。
当走到十字路口不知该如何走时,可在论坛问下路,但你若希望别人能一路把你送到目的地,显然是不现实的,因为别人也有自己要走的路。
2010-07-19 09:24
eournet
Rank: 2
等 级:论坛游民
帖 子:103
专家分:26
注 册:2010-5-22
收藏
得分:0 
回答3楼的疑问,不是这个问题,一开始我也以为是这个问题,后来我把路径修改后还是这样,以前很正常的,昨天调试运行了一下就变成这样了,郁闷,烦请高手出来解决下
2010-07-19 10:23
ysf0181
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:55
帖 子:914
专家分:2385
注 册:2006-10-4
收藏
得分:0 
  请将代码,变成小的,形成一个小程序,自己在调试不出来,直接附件发上来,不然你的问题很可能没解的。很多问题,我也是这样解决的。

ASP讨论QQ群:251346273
2010-07-19 15:02
eournet
Rank: 2
等 级:论坛游民
帖 子:103
专家分:26
注 册:2010-5-22
收藏
得分:0 
OK,xiexie
2010-07-19 15:09
快速回复:求教页面不能完整显示的问题,有截图和代码
数据加载中...
 
   



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

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