<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>form</title>
</head>
<script type="text/javascript">
var p=1;
function CreateUpload()
{
p++;
var div=document.createElement('div');
var html='<div style="float: left;"><table width="240" height="140" align="center" border="1">'+
'<tr><td align="right">姓名:</td><td align="left"><input type="text" name="oklinkname" id="oklinkname" value="" size="30" /></td></tr>'+
'<tr><td align="right">职位:</td><td align="left"><select name="types" id="types1">'+
'<option value="1">经理</option><option value="2">计调</option><option value="3">财务</option><option value="4">上的</option><option value="5">辅导</option></select></td>'+
'</td><tr><td align="right">电话:</td><td align="left"><input type="text" name="telnum" id="telnum" value="" size="30" /></td></tr>'+
'<tr><td align="right">手机:</td><td align="left"><input type="text" name="phonenum" id="phonenum" value="" size="30" /></td></tr>'+
'<tr><td align="right">QQ:</td><td align="left"><input type="text" name="qqnum" id="qqnum" value="" size="30" /></td></tr>'+
'<tr><td align="right">Email:</td><td align="left"><input type="text" name="email" id="email" value="" size="30" /></td></tr></table></div>'+
'<tr><td><a href="javascript:" οnclick="RemoveAdd('+p+')">[-]删除</a></td></tr>';
div.innerHTML=html;
div.style.width="780px";
div.style.marginTop="10px";
div.setAttribute("id","upDiv"+p);
//div.id="upDiv"+p;
document.getElementById('uppics').appendChild(div);
}
function RemoveAdd(id)
{
var div=document.getElementById('upDiv'+id);
var div2=document.getElementById('uppics');
div2.removeChild(div);
}
</script>
<body>
<form action="add.action" method="post">
<input id="tj" type="submit" value="提交" />
<div style="width: 100%;" id="uppics">
<div style="width: 100%;" id="upDiv1">
<div style="float: left;">
<table width="240" align="center" border="1">
<tr><td align="right">姓名:</td><td align="left"><input type="text" name="oklinkname" id="oklinkname" value="" size="30" /></td></tr>
<tr>
<td align="right">职位:</td>
<td align="left"> <select name="types" id="types1">
<option value="1">经理</option>
<option value="2">计调</option>
<option value="3">财务</option>
<option value="4">上的</option>
<option value="5">辅导</option>
</select>
</td></tr>
<tr><td align="right">电话:</td><td align="left"><input type="text" name="telnum" id="telnum" value="" size="30" /></td></tr>
<tr><td align="right">手机:</td><td align="left"><input type="text" name="phonenum" id="phonenum" value="" size="30" /></td></tr>
<tr><td align="right">QQ:</td><td align="left"><input type="text" name="qqnum" id="qqnum" value="" size="30" /></td></tr>
<tr><td align="right">Email:</td><td align="left"><input type="text" name="email" id="email" value="" size="30" /></td></tr>
</table>
</div>
<table>
<tr>
<td><input style="float: left;" class="botton" type="button" οnclick="CreateUpload()"value="[+]继续添加" /></td>
</tr>
</table>
</div>
</div>
</form>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>form</title>
</head>
<script type="text/javascript">
var p=1;
function CreateUpload()
{
p++;
var div=document.createElement('div');
var html='<div style="float: left;"><table width="240" height="140" align="center" border="1">'+
'<tr><td align="right">姓名:</td><td align="left"><input type="text" name="oklinkname" id="oklinkname" value="" size="30" /></td></tr>'+
'<tr><td align="right">职位:</td><td align="left"><select name="types" id="types1">'+
'<option value="1">经理</option><option value="2">计调</option><option value="3">财务</option><option value="4">上的</option><option value="5">辅导</option></select></td>'+
'</td><tr><td align="right">电话:</td><td align="left"><input type="text" name="telnum" id="telnum" value="" size="30" /></td></tr>'+
'<tr><td align="right">手机:</td><td align="left"><input type="text" name="phonenum" id="phonenum" value="" size="30" /></td></tr>'+
'<tr><td align="right">QQ:</td><td align="left"><input type="text" name="qqnum" id="qqnum" value="" size="30" /></td></tr>'+
'<tr><td align="right">Email:</td><td align="left"><input type="text" name="email" id="email" value="" size="30" /></td></tr></table></div>'+
'<tr><td><a href="javascript:" οnclick="RemoveAdd('+p+')">[-]删除</a></td></tr>';
div.innerHTML=html;
div.style.width="780px";
div.style.marginTop="10px";
div.setAttribute("id","upDiv"+p);
//div.id="upDiv"+p;
document.getElementById('uppics').appendChild(div);
}
function RemoveAdd(id)
{
var div=document.getElementById('upDiv'+id);
var div2=document.getElementById('uppics');
div2.removeChild(div);
}
</script>
<body>
<form action="add.action" method="post">
<input id="tj" type="submit" value="提交" />
<div style="width: 100%;" id="uppics">
<div style="width: 100%;" id="upDiv1">
<div style="float: left;">
<table width="240" align="center" border="1">
<tr><td align="right">姓名:</td><td align="left"><input type="text" name="oklinkname" id="oklinkname" value="" size="30" /></td></tr>
<tr>
<td align="right">职位:</td>
<td align="left"> <select name="types" id="types1">
<option value="1">经理</option>
<option value="2">计调</option>
<option value="3">财务</option>
<option value="4">上的</option>
<option value="5">辅导</option>
</select>
</td></tr>
<tr><td align="right">电话:</td><td align="left"><input type="text" name="telnum" id="telnum" value="" size="30" /></td></tr>
<tr><td align="right">手机:</td><td align="left"><input type="text" name="phonenum" id="phonenum" value="" size="30" /></td></tr>
<tr><td align="right">QQ:</td><td align="left"><input type="text" name="qqnum" id="qqnum" value="" size="30" /></td></tr>
<tr><td align="right">Email:</td><td align="left"><input type="text" name="email" id="email" value="" size="30" /></td></tr>
</table>
</div>
<table>
<tr>
<td><input style="float: left;" class="botton" type="button" οnclick="CreateUpload()"value="[+]继续添加" /></td>
</tr>
</table>
</div>
</div>
</form>
</body>
</html>