笨狼斑竹来帮下忙~谢谢哦~~~~~~~~~~~~~是你给的代码~改的乱七八糟了~已经~

有几个问题增行后如何定义行的内容为text~并且可以命名?现在删除行~行内容不会被删掉~该如何做? 我是这样考虑的~~~~~~~~~表格为6列~~~~~~~~自动增行,减行后~~~~表单提交
竖行text名一样~提交到处理页面以object0列为准用数组接收
count=request.form("object0").count
再用request.form("object0")(i)等循环取得每行值~添加入数据库
这样做是否可行?

代码改成html的了~~~~~`帮看下~万分感谢
代码如下~

  1<html>
  2<head>
  3<title>图书馆管理系统</title>
  4<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
  5<style type="text/css">   
  6<!--   
  7body {   
  8margin-left: 0px;   
  9margin-top: 0px;   
 10margin-right: 0px;   
 11margin-bottom: 0px;   
 12}   
 13.border {   
 14border: ridge;   
 15}   
 16body,td,th {   
 17font-size: 12px;   
 18}   
 19.text {   
 20border-bottom-width: 1px;   
 21border-bottom-style: solid;   
 22border-bottom-color: #000000;   
 23font-size: 12px;   
 24border-top-width: 0px;   
 25border-right-width: 0px;   
 26border-left-width: 0px;   
 27border-top-style: none;   
 28border-right-style: none;   
 29border-left-style: none;   
 30background-color: #FFFFEC;   
 31height: 14px;   
 32width: 140px;   
 33}   
 34.text1 {   
 35border-bottom-width: 0px;   
 36border-bottom-style: none;   
 37border-bottom-color: #000000;   
 38font-size: 12px;   
 39border-top-width: 0px;   
 40border-right-width: 0px;   
 41border-left-width: 0px;   
 42border-top-style: none;   
 43border-right-style: none;   
 44border-left-style: none;   
 45background-color: #FFFFEC;   
 46height: 14px;   
 47width: 135px;   
 48}   
 49.text2 {   
 50border-bottom-width: 0px;   
 51border-bottom-style: none;   
 52border-bottom-color: #000000;   
 53font-size: 12px;   
 54border-top-width: 0px;   
 55border-right-width: 0px;   
 56border-left-width: 0px;   
 57border-top-style: none;   
 58border-right-style: none;   
 59border-left-style: none;   
 60background-color: #FFFFEC;   
 61height: 14px;   
 62width: 80px;   
 63}   
 64.style1 {color: #990000}   
 65.c   
 66{   
 67WIDTH: 130px;   
 68display:none;   
 69cursor:pointer;   
 70CURSOR: default;   
 71POSITION: absolute;   
 72}   
 73\-->   
 74</style>
 75<script>   
 76var ww   
 77ww="*******";   
 78</script>
 79<script language="vbscript">   
 80<!--   
 81Window.Status = "当前系统使用者:"&ww&" ¦当前时间:"&date()&"日"&time()   
 82document.Bgcolor="#BFDFFF"   
 83//-->   
 84</script>
 85</head>
 86<body>
 87<table cellpadding="0" cellspacing="0" width="100%">
 88<tr>
 89<td width="50"><input id="addnew3" name="manu1" onclick="history.go(0)" type="button" value="增加单据"/></td>
 90<td width="50"><input id="addnew24" name="manu2" onclick="history.go(0)" type="button" value="重填单据"/></td>
 91<td width="50"><input id="addnew25" name="manu3" onclick="doAdd();" type="button" value="增加条目"/></td>
 92<td width="50"><input id="addnew26" name="manu4" onclick="doDel();" type="button" value="删减条目"/></td>
 93<td width="50"><input id="addnew27" name="manu5" onclick="javascript:alert('暂时不能使用该功能')" type="button" value="提交单据"/></td>
 94<td bgcolor="#D4D0C8" width="50"></td>
 95<td width="50"><input id="addnew28" name="manu6" onclick="javascript:alert('暂时不能使用该功能')" type="button" value="历史单据"/></td>
 96<td width="50"><input id="addnew29" name="manu7" onclick="javascript:alert('暂时不能使用该功能')" type="button" value="单项浏览"/></td>
 97<td width="50"><input id="addnew224" name="manu8" onclick="javascript:alert('暂时不能使用该功能')" type="button" value="单据查询"/></td>
 98<td bgcolor="#D4D0C8"> </td>
 99</tr>
100<tr bgcolor="#808080" height="1">
101<td colspan="10"></td>
102</tr>
103</table>
104<br/>
105<br/>
106<br/>
107<br/>
108<br/>
109<table align="center" border="0" cellpadding="0" cellspacing="0" width="705">
110<tr>
111<td colspan="2" rowspan="2"><table align="center" bgcolor="#FFFFEC" border="0" cellpadding="0" cellspacing="0" width="700">
112<tr height="30">
113<td></td>
114</tr>
115<tr>
116<td valign="bottom">
117<h4 align="center" class="style1">图 书 采 购 定 单</h4> </td>
118</tr>
119<tr>
120<td><hr width="300"/></td>
121</tr>
122<tr>
123<td><table align="center" cellpadding="5" cellspacing="0" width="670">
124<form id="form1" name="form1">
125<tr>
126<td nowrap="" width="223">供货单位:   
127  
128\---------------------------------------------------------------   
129  
130闪人   
131~!@#$%^&amp;*()_+ ¦……   
132\---------------------------------------------------------------   
133  
134第345行左右的地方,"doAdd"函数:   
135  
136newTd.innerText="<input class="text1" id="object" name="object0" onclick="eee(document.all.list1);eee(document.all.list2);eee(document.all.list3)" type="text"/>";   
137newTd1.innerText="<input class="text2" id="object1" name="object1" onclick="eee(document.all.list1);eee(document.all.list2);eee(document.all.list3)" type="text"/>";   
138newTd2.innerText="<input class="text2" id="object2" name="object2" onclick="eee(document.all.list1);eee(document.all.list2);eee(document.all.list3)" type="text"/>";   
139newTd3.innerText="<input class="text2" id="object3" name="object3" onclick="eee(document.all.list1);eee(document.all.list2);eee(document.all.list3)" type="text"/>";   
140newTd4.innerText="<input class="text2" id="object4" name="object4" onclick="eee(document.all.list1);eee(document.all.list2);eee(document.all.list3)" type="text"/>";   
141newTd5.innerText="<input class="text1" id="object5" name="object5" onclick="eee(document.all.list1);eee(document.all.list2);eee(document.all.list3)" type="text"/>";   
142  
143144  
145  
146newTd.innerHTML="<input class="text1" id="object" name="object0" onclick="eee(document.all.list1);eee(document.all.list2);eee(document.all.list3)" type="text"/>";   
147newTd1.innerHTML="<input class="text2" id="object1" name="object1" onclick="eee(document.all.list1);eee(document.all.list2);eee(document.all.list3)" type="text"/>";   
148newTd2.innerHTML="<input class="text2" id="object2" name="object2" onclick="eee(document.all.list1);eee(document.all.list2);eee(document.all.list3)" type="text"/>";   
149newTd3.innerHTML="<input class="text2" id="object3" name="object3" onclick="eee(document.all.list1);eee(document.all.list2);eee(document.all.list3)" type="text"/>";   
150newTd4.innerHTML="<input class="text2" id="object4" name="object4" onclick="eee(document.all.list1);eee(document.all.list2);eee(document.all.list3)" type="text"/>";   
151newTd5.innerHTML="<input class="text1" id="object5" name="object5" onclick="eee(document.all.list1);eee(document.all.list2);eee(document.all.list3)" type="text"/>";   
152  
153这样就ok了~~~</td></tr></form></table></td></tr></table></td></tr></table></body></html>
Published At
Categories with Web编程
comments powered by Disqus