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1keVlEQHV1Q0MfeShPXhJVOWUZUj4hWxVwQkF3dy1KEThuATMwBmE7SgEFMDB9EV0kdBNfMyJZA244QxlzOBEMYTdNAmc5SQFnKkgFaTUSTDZ5TwV/JV4PZzVZW3BpFVk1eB9BJX9QTWIuUh1xPFwMd3VeRz13DlQveR9SfWBPAm4yXwF8JhIPIG0BXTBuE0lNeHg1WRVsPFsXe2oGVzoIC1E2bUQSfU9M%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>工作计划群发</title>
<link rel="stylesheet" type="text/css" href="css/css.css">
<script language="javascript">
function addoneuser()
{
	var deptvalue,uservalue,newOpt,xdvalue,addflag;
	deptvalue=document.form1.DeptName.value;
	uservalue=document.form1.name.value;
	if (uservalue!="")
	{
		xdvalue=deptvalue+":"+uservalue;
		if (findfun(deptvalue,uservalue))
			addflag=false;
		else
			addflag=true;
		if (addflag)
		{
			newOpt=document.createElement("OPTION");
			document.form1.selectname.add(newOpt);
			newOpt.text=xdvalue;
			newOpt.value=xdvalue;
		}
	}
}

function findfun(findstr,xmvalue)
{
	var i,textvalue,rtvalue;
	for (i=0;i<document.form1.selectname.length;i++)
	{
		textvalue=document.form1.selectname.options(i).value;
		if (textvalue.indexOf(findstr)!=-1 && textvalue.indexOf(xmvalue)!=-1)
		{
			rtvalue=true;
			break
		}
		else
			rtvalue=false;
	}
	return rtvalue;
}

function delfun()
{
	var i;
	for (i=0;i<document.form1.selectname.length;i++)
	{
		if (document.form1.selectname.options(i).selected)
		{
			document.form1.selectname.remove(i);
			i-=1;
		}
	}
	GetTextAreaValue();
}

function addall(addflag)
{
	var i,deptvalue,uservalue,xdvalue,selectindex;
	deptvalue=document.form1.DeptName.value;
	for (i=0;i<document.form1.name.length;i++)
	{
		if (addflag==0)
			selectindex=document.form1.name.options(i).selected;
		if (addflag==1 || (addflag==0 && selectindex))
		{
			uservalue=document.form1.name.options(i).value;
			if (!findfun(deptvalue,uservalue))
			{
				xdvalue=deptvalue+":"+uservalue;
				newOpt=document.createElement("OPTION");
				document.form1.selectname.add(newOpt);
				newOpt.text=xdvalue;
				newOpt.value=xdvalue;
			}
		}
	}
	GetTextAreaValue();
}

function clearall()
{
	var i;
	for (i=0;i<document.form1.selectname.length;i++)
	{
		document.form1.selectname.remove(i);
		i-=1;
	}
	GetTextAreaValue();
}

function GetTextAreaValue()
{
	var i,ch;
	ch="\r\n";
	document.form1.choosevalue.value="";
	for (i=0;i<document.form1.selectname.length;i++)
	{
		document.form1.choosevalue.value+=(document.form1.selectname.options(i).value+ch);
	}
}

function checkform()
{
	if (document.form1.choosevalue.value=="")
	{
		alert("请先选择用户！");
		return (false);
	}
	if (document.form1.title.value=="")
	{
		alert("计划简要标题不能为空！");
		document.form1.title.focus();
		return (false);
	}
	return (true);
}

function LookPlanFun()
{
	location.href='displayworkrec.asp?username=<%zmxsUah+l+1e6OEubmkFGTROPfUkSLR1%>&superior=<%uN8DQjU7uv2VHpVUDYJxjJMpG8vahfzm%>&recdate=<%o1OIjEqjDeDqmg/VfmXnvtyyuQksjhiu%>';
}
</script>
</head>

<body bgcolor="#ffffff" topmargin="5" leftmargin="5">
<br>
<p align="center"><b><font size="3">工作计划群发</font></b></p>
<form method="POST" action="SendMuchPlan.asp?username=<%5kIQcaALFoNe6OEubmkFGTROPfUkSLR1%>&superior=<%PfozqJbYIYeVHpVUDYJxjJMpG8vahfzm%>&recdate=<%SBuP26wIu7/qmg/VfmXnvtyyuQksjhiu%>" name="form1" onsubmit="return checkform()">
<input type="Hidden" name="DeptName" value="">
<input type="Hidden" name="choosevalue" value="">
  <div align="center">
    <center>
    <table border="1" cellpadding="0" cellspacing="0" width="450" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF">
      <tr>
        <td width="200" height="25" bgcolor="#EFEFEF" align="center" ID="DeptNameTd">部门名称（）</td>
        <td width="248" height="25" bgcolor="#EFEFEF" align="center">姓名</td>
      </tr>
      <tr>
        <td width="248" height="75" rowspan="5" align="center"><iframe src="ListDept.asp" name="DeptFrame" id="DeptFrame" width="100%" height="100%" align="middle" frameborder="1"></iframe></td>
        <td width="248" height="25" align="center"><select size="2" name="name" style="width:100%;height:90" multiple>
          </select></td>
      </tr>
      <tr>
        <td width="248" height="25" align="center">　<input type="button" value="  增加  " name="AddOneUser" onclick="addall(0)"> 
          <input type="button" value="全部增加" name="AddAllUser" onclick="addall(1)"></td>
      </tr>
      <tr>
        <td width="248" height="25" bgcolor="#EFEFEF" align="center">选定用户</td>
      </tr>
      <tr>
        <td width="248" height="13" align="center"><select size="2" name="selectname" style="width:100%;height:90" multiple>
          </select></td>
      </tr>
      <tr>
        <td width="248" height="25" align="center"><input type="button" value="  删除  " name="DelOneUser" onclick="delfun()"> 
          <input type="button" value="全部删除" name="DelAllUser" onclick="clearall()"></td>
      </tr>
      <tr>
        <td width="450" height="25" colspan="2">简要标题：<input type="text" name="title" size="20" style="width: 385; height: 22"></td>
      </tr>
      <tr>
        <td width="450" height="25" colspan="2">详细说明：<textarea rows="4" name="remark" cols="46" style="width: 385; height: 98"></textarea></td>
      </tr>
    </table>
    </center>
  </div>
  <p align="center"><input type="submit" value=" 提交 " name="submit">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="Button" value="工作任务" onclick="LookPlanFun()">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value=" 关闭 " name="close" onclick="window.close();"></p>
</form>
<iframe src="" name="HiddenFrame" id="DeptFrame" width="0" height="0" align="middle" frameborder="0"></iframe>
</body>

</html>
