日期:2014-05-16 浏览次数:20832 次
<%
Set Rs=Server.CreateObject("ADODB.Recordset")
Rs.Open "select id, username, level from [persons] where 2=2",Conn,1,1
Do While Not Rs.Eof
%>
<table>
<tr>
<td><%=Rs("username")%><input type="hidden" id="uname_<%=Rs("id")%>" name="uname" value="<%=Rs("username")%>" /></td>
<td><%=Rs("level")%><input type="hidden" id="level_<%=Rs("id")%>" name="level" value="<%=Rs("level")%>" /></td>
<td><input type="button" name="clone" id="clone" value="点击填充" onclick="CloneFields('<%=Rs("id")%>');" /></td>
</tr>
<%
Rs.MoveNext
Loop
Rs.Close
Set Rs=Nothing
%>
</table>
<div>名称:<input type="text" id="txtUname" name="txtUname" value="" /></div>
<div>等级:<input type="text" id="txtUlevel" name="txtUlevel" value="" /></div>