给XX公司网站做的一个模块。很丑陋。

<!--#include file="conn/conn.asp"-->
<!--#include file="function/ex_fun.asp"-->
<!--#include file="function/public.asp"-->
<!--#include file="function/topic.asp"-->
<!--#include file="inc/setup_ini.asp"-->
<html>
<head>
<meta name="description" content= "XX">
<title>自主装机</title>
<link href="style/main.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE>
textarea{
border: 1px dotted #000000;
background-color:#FFFFFF;
transparent;
font-size:9pt;
font-family:verdana;
color:#000000}
input{
border:0px dotted #000000;
background-color:#FFFFFF;
transparent;
font-size:9pt;
font-family:verdana;
color:#000000}
</STYLE>


</head>

<center>
<body>


<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=printControl

width=0 VIEWASTEXT></OBJECT>

 

<center><h2> XXXXXDIY装机 </h2></center>
<form name="myform" method="post">
<table valign=middle align=center width=630 height=590 border=1 bgcolor="#FFFFFF">
 
  <tr width="60" height=15><td align="center" valign="middle" ><font face="宋体, 楷体_GB2312" > 产品名称 </font></td>
 <td align="center" valign="middle" ><font face="宋体, 楷体_GB2312">型号 </font></td>
 <td  align="center" valign="middle"><font face="宋体, 楷体_GB2312">价格</font></td>
</tr>

 
<tr>
  <td align="center">CPU:</td>
  <%
      set rs=server.createobject("adodb.recordset")
      rs.open "select * from shop where cd='CPU' order by id asc",conn,1,1
   %>
<script language = "javascript">
var onecount;
onecount1=0;
subcat = new Array();
        <%
        count1 = 0
        do while not rs.eof
       
       
        %>
subcat[<%=count1%>] = new Array("<%=rs("id")%>","<%=rs("price")%>");
        <%
        count1 = count1 + 1
        rs.movenext
        loop
       
        %>
onecount1=<%=count1%>;

function changelocation1(id)
    {
    document.myform.smalllocation1.length = 0;

    var id=id;
    var i;
  
    for (i=0;i < onecount1; i++)
        {
            if (subcat[i][0] == id)
            {
                document.myform.smalllocation1.options[document.myform.smalllocation1.length] = new Option(subcat[i][1]);
            }       
        }
       
    }   
</script>
   <td><select name="biglocation1" onChange="changelocation1(document.myform.biglocation1.options[document.myform.biglocation1.selectedIndex].value)">
       
        <option selected value="">===CPU===</option>
        <%
        rs.movefirst
        do while not rs.eof
        %>
        <option value="<%=rs("id")%>"><%=rs("mname")%></option>
        <%
        rs.movenext
        loop
        rs.close
        set rs = nothing
       
        %>
    </select>
   </td>
    <td><select name="smalllocation1">
        <option selected value="">0</option>
    </select>
    </td>
</tr>


<tr>
  <td align="center">主板:</td>
  <%
      set rs2=server.createobject("adodb.recordset")
      rs2.open "select * from shop where cd='主板' order by id asc",conn,1,1
   %>
<script language = "javascript">
var onecount2;
onecount2=0;
subcat2 = new Array();
        <%
        count2 = 0
        do while not rs2.eof
        %>
subcat2[<%=count2%>] = new Array("<%=rs2("id")%>","<%=rs2("price")%>");
        <%
        count2 = count2 + 1
        rs2.movenext
        loop
      
        %>
onecount2=<%=count2%>;

function changelocation2(id)
    {
    document.myform.smalllocation2.length = 0;

    var id=id;
    var i;
  
    for (i=0;i < onecount2; i++)
        {
            if (subcat2[i][0] == id)
            {
                document.myform.smalllocation2.options[document.myform.smalllocation2.length] = new Option(subcat2[i][1]);
            }       
        }
       
    }   
</script>
   <td><select name="biglocation2" onChange="changelocation2(document.myform.biglocation2.options[document.myform.biglocation2.selectedIndex].value)">
        <option selected value="">===主板===</option>
        <%
        rs2.movefirst
        do while not rs2.eof
        %>
       
        <option value="<%=rs2("id")%>"><%=rs2("mname")%></option>
        <%
        rs2.movenext
        loop
        rs2.close
        set rs2 = nothing
       
        %>
    </select>
   </td>
    <td><select name="smalllocation2">
        <option selected value="">0</option>
    </select>
    </td>
</tr>


<tr>
  <td align="center">内存:</td>
  <%
      set rs3=server.createobject("adodb.recordset")
      rs3.open "select * from shop where cd='内存' order by id asc",conn,1,1
   %>
<script language = "javascript">
var onecount3;
onecount3=0;
subcat3 = new Array();
        <%
        count3 = 0
        do while not rs3.eof
        %>
subcat3[<%=count3%>] = new Array("<%=rs3("id")%>","<%=rs3("price")%>");
        <%
        count3 = count3 + 1
        rs3.movenext
        loop
       
        %>
onecount3=<%=count3%>;

function changelocation3(id)
    {
    document.myform.smalllocation3.length = 0;

    var id=id;
    var i;
  
    for (i=0;i < onecount3; i++)
        {
            if (subcat3[i][0] == id)
            {
                document.myform.smalllocation3.options[document.myform.smalllocation3.length] = new Option(subcat3[i][1]);
            }       
        }
       
    }   
</script>
   <td><select name="biglocation3" onChange="changelocation3(document.myform.biglocation3.options[document.myform.biglocation3.selectedIndex].value)">
       <option selected value="">===内存===</option>
        <%
        rs3.movefirst
        do while not rs3.eof
        %>
    
        <option value="<%=rs3("id")%>"><%=rs3("mname")%></option>
        <%
        rs3.movenext
        loop
        rs3.close
        set rs3 = nothing
       
        %>
    </select>
   </td>
    <td><select name="smalllocation3">
        <option selected value="">0</option>
    </select>
    </td>
</tr>
  

<tr>
  <td align="center">硬盘:</td>
  <%
      set rs4=server.createobject("adodb.recordset")
      rs4.open "select * from shop where cd='硬盘' order by id asc",conn,1,1
   %>
<script language = "javascript">
var onecount4;
onecount4=0;
subcat4 = new Array();
        <%
        count4 = 0
        do while not rs4.eof
        %>
subcat4[<%=count4%>] = new Array("<%=rs4("id")%>","<%=rs4("price")%>");
        <%
        count4 = count4 + 1
        rs4.movenext
        loop
      
        %>
onecount4=<%=count4%>;

function changelocation4(id)
    {
    document.myform.smalllocation4.length = 0;

    var id=id;
    var i;
  
    for (i=0;i < onecount4; i++)
        {
            if (subcat4[i][0] == id)
            {
                document.myform.smalllocation4.options[document.myform.smalllocation4.length] = new Option(subcat4[i][1]);
            }       
        }
       
    }   
</script>
   <td><select name="biglocation4" onChange="changelocation4(document.myform.biglocation4.options[document.myform.biglocation4.selectedIndex].value)">
        <option selected value="">===硬盘===</option>
        <%
        rs4.movefirst
        do while not rs4.eof
        %>
       
        <option value="<%=rs4("id")%>"><%=rs4("mname")%></option>
        <%
        rs4.movenext
        loop
        rs4.close
        set rs4 = nothing
       
        %>
    </select>
   </td>
    <td><select name="smalllocation4">
        <option selected value="">0</option>
    </select>
    </td>
</tr>


<tr>
  <td align="center">光驱:</td>
  <%
      set rs5=server.createobject("adodb.recordset")
      rs5.open "select * from shop where cd='光驱' order by id asc",conn,1,1
   %>
<script language = "javascript">
var onecount5;
onecount5=0;
subcat5 = new Array();
        <%
        count5 = 0
        do while not rs5.eof
        %>
subcat5[<%=count5%>] = new Array("<%=rs5("id")%>","<%=rs5("price")%>");
        <%
        count5 = count5 + 1
        rs5.movenext
        loop
       
        %>
onecount5=<%=count5%>;

function changelocation5(id)
    {
    document.myform.smalllocation5.length = 0;

    var id=id;
    var i;
  
    for (i=0;i < onecount5; i++)
        {
            if (subcat5[i][0] == id)
            {
                document.myform.smalllocation5.options[document.myform.smalllocation5.length] = new Option(subcat5[i][1]);
            }       
        }
       
    }   
</script>
   <td><select name="biglocation5" onChange="changelocation5(document.myform.biglocation5.options[document.myform.biglocation5.selectedIndex].value)">
        <option selected value="">===光驱===</option>
        <%
        rs5.movefirst
        do while not rs5.eof
        %>
       
        <option value="<%=rs5("id")%>"><%=rs5("mname")%></option>
        <%
        rs5.movenext
        loop
        rs5.close
        set rs5 = nothing
       
        %>
    </select>
   </td>
    <td><select name="smalllocation5">
        <option selected value="">0</option>
    </select>
    </td>
</tr>


<tr>
  <td align="center">显示器:</td>
  <%
      set rs6=server.createobject("adodb.recordset")
      rs6.open "select * from shop where cd='显示器' order by id asc",conn,1,1
   %>
<script language = "javascript">
var onecount6;
onecount6=0;
subcat6 = new Array();
        <%
        count6 = 0
        do while not rs6.eof
        %>
subcat6[<%=count6%>] = new Array("<%=rs6("id")%>","<%=rs6("price")%>");
        <%
        count6 = count6 + 1
        rs6.movenext
        loop
      
        %>
onecount6=<%=count6%>;

function changelocation6(id)
    {
    document.myform.smalllocation6.length = 0;

    var id=id;
    var i;
  
    for (i=0;i < onecount6; i++)
        {
            if (subcat6[i][0] == id)
            {
                document.myform.smalllocation6.options[document.myform.smalllocation6.length] = new Option(subcat6[i][1]);
            }       
        }
       
    }   
</script>
   <td><select name="biglocation6" onChange="changelocation6(document.myform.biglocation6.options[document.myform.biglocation6.selectedIndex].value)">
        <option selected value="">===显示器===</option>
        <%
        rs6.movefirst
        do while not rs6.eof
        %>
       
        <option value="<%=rs6("id")%>"><%=rs6("mname")%></option>
        <%
        rs6.movenext
        loop
        rs6.close
        set rs6 = nothing
       
        %>
    </select>
   </td>
    <td><select name="smalllocation6">
        <option selected value="">0</option>
    </select>
    </td>
</tr>


<tr>
  <td align="center">显示卡:</td>
  <%
      set rs7=server.createobject("adodb.recordset")
      rs7.open "select * from shop where cd='显卡' order by id asc",conn,1,1
   %>
<script language = "javascript">
var onecount7;
onecount7=0;
subcat7 = new Array();
        <%
        count7 = 0
        do while not rs7.eof
        %>
subcat7[<%=count7%>] = new Array("<%=rs7("id")%>","<%=rs7("price")%>");
        <%
        count7 = count7 + 1
        rs7.movenext
        loop
       
        %>
onecount7=<%=count7%>;

function changelocation7(id)
    {
    document.myform.smalllocation7.length = 0;

    var id=id;
    var i;
  
    for (i=0;i < onecount7; i++)
        {
            if (subcat7[i][0] == id)
            {
                document.myform.smalllocation7.options[document.myform.smalllocation7.length] = new Option(subcat7[i][1]);
            }       
        }
       
    }   
</script>
   <td><select name="biglocation7" onChange="changelocation7(document.myform.biglocation7.options[document.myform.biglocation7.selectedIndex].value)">
        <option selected value="">===显示卡===</option>
        <%
       rs7.movefirst
        do while not rs7.eof
        %>
       
        <option value="<%=rs7("id")%>"><%=rs7("mname")%></option>
        <%
        rs7.movenext
        loop
        rs7.close
        set rs7 = nothing
       
        %>
    </select>
   </td>
    <td><select name="smalllocation7">
        <option selected value="">0</option>
    </select>
    </td>
</tr>

 


<tr>
  <td align="center">机箱:</td>
  <%
      set rs9=server.createobject("adodb.recordset")
      rs9.open "select * from shop where cd='机箱' order by id asc",conn,1,1
   %>
<script language = "javascript">
var onecount9;
onecount9=0;
subcat9 = new Array();
        <%
        count9 = 0
        do while not rs9.eof
        %>
subcat9[<%=count9%>] = new Array("<%=rs9("id")%>","<%=rs9("price")%>");
        <%
        count9 = count9 + 1
        rs9.movenext
        loop
      
        %>
onecount9=<%=count9%>;

function changelocation9(id)
    {
    document.myform.smalllocation9.length = 0;

    var id=id;
    var i;
  
    for (i=0;i < onecount9; i++)
        {
            if (subcat9[i][0] == id)
            {
                document.myform.smalllocation9.options[document.myform.smalllocation9.length] = new Option(subcat9[i][1]);
            }       
        }
       
    }   
</script>
   <td><select name="biglocation9" onChange="changelocation9(document.myform.biglocation9.options[document.myform.biglocation9.selectedIndex].value)">
        <option selected value="">===机箱===</option>
        <%
        rs9.movefirst
        do while not rs9.eof
        %>
       
        <option value="<%=rs9("id")%>"><%=rs9("mname")%></option>
        <%
        rs9.movenext
        loop
        rs9.close
        set rs9 = nothing
       
        %>
    </select>
   </td>
    <td><select name="smalllocation9">
        <option selected value="">0</option>
    </select>
    </td>
</tr>


<tr>
  <td align="center">电源:</td>
  <%
      set rs10=server.createobject("adodb.recordset")
      rs10.open "select * from shop where cd='电源' order by id asc",conn,1,1
   %>
<script language = "javascript">
var onecount10;
onecount10=0;
subcat10 = new Array();
        <%
        count10 = 0
        do while not rs10.eof
        %>
subcat10[<%=count10%>] = new Array("<%=rs10("id")%>","<%=rs10("price")%>");
        <%
        count10 = count10 + 1
        rs10.movenext
        loop
       
        %>
onecount10=<%=count10%>;

function changelocation10(id)
    {
    document.myform.smalllocation10.length = 0;

    var id=id;
    var i;
  
    for (i=0;i < onecount10; i++)
        {
            if (subcat10[i][0] == id)
            {
                document.myform.smalllocation10.options[document.myform.smalllocation10.length] = new Option(subcat10[i][1]);
            }       
        }
       
    }   
</script>
   <td><select name="biglocation10" onChange="changelocation10(document.myform.biglocation10.options[document.myform.biglocation10.selectedIndex].value)">
        <option selected value="">===电源===</option>
        <%
       rs10.movefirst
        do while not rs10.eof
        %>
       
        <option value="<%=rs10("id")%>"><%=rs10("mname")%></option>
        <%
        rs10.movenext
        loop
        rs10.close
        set rs10 = nothing
       
        %>
    </select>
   </td>
    <td><select name="smalllocation10">
        <option selected value="">0</option>
    </select>
    </td>
</tr>


<tr>
  <td align="center">键盘:</td>
  <%
      set rs11=server.createobject("adodb.recordset")
      rs11.open "select * from shop where cd='键盘' order by id asc",conn,1,1
   %>
<script language = "javascript">
var onecount11;
onecount11=0;
subcat11 = new Array();
        <%
        count11 = 0
        do while not rs11.eof
        %>
subcat11[<%=count11%>] = new Array("<%=rs11("id")%>","<%=rs11("price")%>");
        <%
        count11 = count11 + 1
        rs11.movenext
        loop
      
        %>
onecount11=<%=count11%>;

function changelocation11(id)
    {
    document.myform.smalllocation11.length = 0;

    var id=id;
    var i;
  
    for (i=0;i < onecount11; i++)
        {
            if (subcat11[i][0] == id)
            {
                document.myform.smalllocation11.options[document.myform.smalllocation11.length] = new Option(subcat11[i][1]);
            }       
        }
       
    }   
</script>
   <td><select name="biglocation11" onChange="changelocation11(document.myform.biglocation11.options[document.myform.biglocation11.selectedIndex].value)">
        <option selected value="">===键盘===</option>
        <%
        rs11.movefirst
        do while not rs11.eof
        %>
      
       
        <option value="<%=rs11("id")%>"><%=rs11("mname")%></option>
        <%
        rs11.movenext
        loop
        rs11.close
        set rs11 = nothing
       
        %>
    </select>
   </td>
    <td><select name="smalllocation11">
        <option selected value="">0</option>
    </select>
    </td>
</tr>

 

<tr>
  <td align="center">鼠标:</td>
  <%
      set rs12=server.createobject("adodb.recordset")
      rs12.open "select * from shop where cd='鼠标' order by id asc",conn,1,1
   %>
<script language = "javascript">
var onecount12;
onecount12=0;
subcat12 = new Array();
        <%
        count12 = 0
        do while not rs12.eof
        %>
subcat12[<%=count12%>] = new Array("<%=rs12("id")%>","<%=rs12("price")%>");
        <%
        count12 = count12 + 1
        rs12.movenext
        loop
      
        %>
onecount12=<%=count12%>;

function changelocation12(id)
    {
    document.myform.smalllocation12.length = 0;

    var id=id;
    var i;
  
    for (i=0;i < onecount12; i++)
        {
            if (subcat12[i][0] == id)
            {
                document.myform.smalllocation12.options[document.myform.smalllocation12.length] = new Option(subcat12[i][1]);
            }       
        }
       
    }   
</script>
   <td><select name="biglocation12" onChange="changelocation12(document.myform.biglocation12.options[document.myform.biglocation12.selectedIndex].value)">
        <option selected value="">===鼠标===</option>
        <%
        rs12.movefirst
        do while not rs12.eof
        %>
       
        <option value="<%=rs12("id")%>"><%=rs12("mname")%></option>
        <%
        rs12.movenext
        loop
        rs12.close
        set rs12 = nothing
       
        %>
    </select>
   </td>
    <td><select name="smalllocation12">
        <option selected value="">0</option>
    </select>
    </td>
</tr>


<tr>
  <td align="center">音箱:</td>
  <%
      set rs13=server.createobject("adodb.recordset")
      rs13.open "select * from shop where cd='音箱' order by id asc",conn,1,1
   %>
<script language = "javascript">
var onecount13;
onecount13=0;
subcat13 = new Array();
        <%
        count13 = 0
        do while not rs13.eof
        %>
subcat13[<%=count13%>] = new Array("<%=rs13("id")%>","<%=rs13("price")%>");
        <%
        count13 = count13 + 1
        rs13.movenext
        loop
       
        %>
onecount13=<%=count13%>;

function changelocation13(id)
    {
    document.myform.smalllocation13.length = 0;

    var id=id;
    var i;
  
    for (i=0;i < onecount13; i++)
        {
            if (subcat13[i][0] == id)
            {
                document.myform.smalllocation13.options[document.myform.smalllocation13.length] = new Option(subcat13[i][1]);
            }       
        }
       
    }   
</script>
   <td><select name="biglocation13" onChange="changelocation13(document.myform.biglocation13.options[document.myform.biglocation13.selectedIndex].value)">
        <option selected value="">===音箱===</option>
        <%
        rs13.movefirst
        do while not rs13.eof
        %>
       
        <option value="<%=rs13("id")%>"><%=rs13("mname")%></option>
        <%
        rs13.movenext
        loop
        rs13.close
        set rs13 = nothing
       
        %>
    </select>
   </td>
    <td><select name="smalllocation13">
        <option selected value="">0</option>
    </select>
    </td>
</tr>


<tr>
  <td align="center">其他:</td>
  <%
      set rs14=server.createobject("adodb.recordset")
      rs14.open "select * from shop where cd='其他' order by id asc",conn,1,1
   %>
  <script language = "javascript">
     var onecount14;
          onecount14=0;
          subcat14 = new Array();
        <%
        count14 = 0
        do while not rs14.eof
        %>
          subcat14[<%=count14%>] = new Array("<%=rs14("id")%>","<%=rs14("price")%>");
        <%
        count14 = count14 + 1
        rs14.movenext
        loop
       
        %>
         onecount14=<%=count14%>;

function changelocation14(id)
    {
    document.myform.smalllocation14.length = 0;

    var id=id;
    var i;
  
    for (i=0;i < onecount14; i++)
        {
            if (subcat14[i][0] == id)
            {
                document.myform.smalllocation14.options[document.myform.smalllocation14.length] = new Option(subcat14[i][1]);
            }       
        }
       
    }   
</script>
   <td><select name="biglocation14" onChange="changelocation14(document.myform.biglocation14.options[document.myform.biglocation14.selectedIndex].value)">
        <option selected value="">===其他===</option>
        <%
        rs14.movefirst
        do while not rs14.eof
        %>
       
        <option value="<%=rs14("id")%>"><%=rs14("mname")%></option>
        <%
        rs14.movenext
        loop
        rs14.close
        set rs14 = nothing
       
        %>
    </select>
   </td>
    <td><select name="smalllocation14">
        <option selected value="">0</option>
    </select>
    </td>
</tr>

 

<tr>
  <td align="center">其他:</td>
  <%
      set rs15=server.createobject("adodb.recordset")
      rs15.open "select * from shop where cd='其他' order by id asc",conn,1,1
   %>
  <script language = "javascript">
     var onecount15;
          onecount15=0;
          subcat15 = new Array();
        <%
        count15 = 0
        do while not rs15.eof
        %>
          subcat15[<%=count15%>] = new Array("<%=rs15("id")%>","<%=rs15("price")%>");
        <%
        count15 = count15 + 1
        rs15.movenext
        loop
       
        %>
         onecount15=<%=count15%>;

function changelocation15(id)
    {
    document.myform.smalllocation15.length = 0;

    var id=id;
    var i;
  
    for (i=0;i < onecount15; i++)
        {
            if (subcat15[i][0] == id)
            {
                document.myform.smalllocation15.options[document.myform.smalllocation15.length] = new Option(subcat15[i][1]);
            }       
        }
       
    }   
</script>
   <td><select name="biglocation15" onChange="changelocation15(document.myform.biglocation15.options[document.myform.biglocation15.selectedIndex].value)">
        <option selected value="">===其他===</option>
        <%
        rs15.movefirst
        do while not rs15.eof
        %>
       
        <option value="<%=rs15("id")%>"><%=rs15("mname")%></option>
        <%
        rs15.movenext
        loop
        rs15.close
        set rs15 = nothing
       
        %>
    </select>
   </td>
    <td><select name="smalllocation15">
        <option selected value="">0</option>
    </select>
    </td>
</tr>

 

<tr>
  <td align="center">其他:</td>
  <%
      set rs16=server.createobject("adodb.recordset")
      rs16.open "select * from shop where cd='其他' order by id asc",conn,1,1
   %>
  <script language = "javascript">
     var onecount16;
          onecount16=0;
          subcat16 = new Array();
        <%
        count16 = 0
        do while not rs16.eof
        %>
          subcat16[<%=count16%>] = new Array("<%=rs16("id")%>","<%=rs16("price")%>");
        <%
        count16 = count16 + 1
        rs16.movenext
        loop
       
        %>
         onecount16=<%=count16%>;

function changelocation16(id)
    {
    document.myform.smalllocation16.length = 0;

    var id=id;
    var i;
  
    for (i=0;i < onecount16; i++)
        {
            if (subcat16[i][0] == id)
            {
                document.myform.smalllocation16.options[document.myform.smalllocation16.length] = new Option(subcat16[i][1]);
            }       
        }
       
    }   
</script>
   <td><select name="biglocation16" onChange="changelocation16(document.myform.biglocation16.options[document.myform.biglocation16.selectedIndex].value)">
        <option selected value="">===其他===</option>
        <%
        rs16.movefirst
        do while not rs16.eof
        %>
       
        <option value="<%=rs16("id")%>"><%=rs16("mname")%></option>
        <%
        rs16.movenext
        loop
        rs16.close
        set rs16 = nothing
       
        %>
    </select>
   </td>
    <td><select name="smalllocation16">
        <option selected value="">0</option>
    </select>
    </td>
</tr>


</table>

<br>
<div align=center>
<script language = "javascript">
function subsum()
{
 var sum=0;
 
 a=(document.myform.smalllocation1.options.innerText);
 b=(document.myform.smalllocation2.options.innerText);
 c=(document.myform.smalllocation3.options.innerText);
 d=(document.myform.smalllocation4.options.innerText);
 e=(document.myform.smalllocation5.options.innerText);
 f=(document.myform.smalllocation6.options.innerText);
 g=(document.myform.smalllocation7.options.innerText);
 
  i=(document.myform.smalllocation9.options.innerText);
 j=(document.myform.smalllocation10.options.innerText);
 k=(document.myform.smalllocation11.options.innerText);
 l=(document.myform.smalllocation12.options.innerText);
 m=(document.myform.smalllocation13.options.innerText);
 n=(document.myform.smalllocation14.options.innerText);
 o=(document.myform.smalllocation15.options.innerText);
 p=(document.myform.smalllocation16.options.innerText);
 sum=parseInt(a)+parseInt(b)+parseInt(c)+parseInt(d)+parseInt(e)+parseInt(f)+parseInt(g)+parseInt(i)+parseInt(j)+parseInt(k)+parseInt(l)+parseInt(m)+parseInt(n)+parseInt(o)+parseInt(p);
 
  document.myform.sum.value=sum;
}
</script>

 
 合计金额:<input type=text name=sum value=0 readonly size=8 >元  &nbsp;
 
 <input type=button id='sum_btn' value='金额合计' οnclick="this.style.display='none';subsum()">
  <br>
  <br>
<table width=300 align=center border=0>
 <tr>
  <td>客户姓名:<input type=text name=customer1 value=""  size=20><hr align=left width=200></td> 
  </tr>
  
   
 <tr>
  <td>客户地址:<input type=text name=customer2 value=""  size=30><hr align=left width=250></td></tr>
 <tr>
  <td>客户电话:<input type=text name=customer3 value=""  size=20><hr align=left width=200></td></tr>
</table>
<center>
<table οnmοuseοver="kpr.style.display='';">

<tr>
<td width="100%" height="25" colspan="3"><script language="javascript">

function printsetup(){
// 打印页面设置
printControl.execwb(8,1);
}
function printpreview(){
// 打印页面预览

printControl.execwb(7,1);
}

function printit()
{
if (confirm('确定打印吗?')){

printControl.execwb(6,6)
}
}
</script>
<OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height=0 id=wb name=wb width=3></OBJECT>
<div id="kpr">
<input class="ipt" type=button name= button _print value="打印" onclick ="kpr.style.display='none';javascript :printit();">
<input class="ipt" type=button name=button _setup value="打印页面设置" onclick =" javascript : printsetup();">
<input class="ipt" type=button name=button_show value="打印预览" οnclick="kpr.style.display='none';javascript:printpreview();">

</div>
</tr>

</table>
</center>

</div>
</form>
<table>
 
<tr>
 <td>
  装机时间:<%=formatdatetime(now(),1)%>
 </td>
</tr>
</table>

<br>
<br>
<br>
<br>
<br>

</body>
</center>
</html>
 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值