new.php

来自「极限网络智能办公系统 Office Automation V3.0官方100%源」· PHP 代码 · 共 106 行

PHP
106
字号
<?
include_once 'inc/auth.php';
echo '
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<script>
function CheckForm()
{
 if(document.form1.GROUP_NAME.value=="")
		alert("组名不能为空!");
 else
		document.form1.submit();
}
function clear_dept()
{
document.form1.TO_NAME.value="";
document.form1.TO_ID.value="";
}
function LoadWindow()
{
URL="/module/dept_select";
loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;
loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;
window.showModalDialog(URL,self,"edge:raised;scroll:1;status:0;help:0;resizable:1;dialogWidth:400px;dialogHeight:330px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
}
function clear_priv()
{
document.form1.PRIV_ID.value="";
document.form1.PRIV_NAME.value="";
}
function LoadPrivWindow()
{
URL="/module/priv_select";
loc_x=document.body.scrollLeft+event.clientX-event.offsetX;
loc_y=document.body.scrollTop+event.clientY-event.offsetY+200;
window.showModalDialog(URL,self,"edge:raised;scroll:1;status:0;help:0;resizable:1;dialogWidth:250px;dialogHeight:300px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
}
function clear_user2()
{
document.form1.COPY_TO_NAME.value="";
document.form1.COPY_TO_ID.value="";
}
function LoadWindow2()
{
URL="/module/user_select?ID=2";
loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;
loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;
//window.open(URL,"read_notify","height=400,width=550,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left=150,resizable=yes");
window.showModalDialog(URL,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:350px;dialogHeight:350px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
}
</script>
<body class="bodycolor" topmargin="5" onload="form1.GROUP_NAME.focus()">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
	<td class="Big"><img src="/images/notify_new.gif" align="absmiddle"><span class="big3"> 新建分组</span>
	</td>
</tr>
</table>
<br>
<table border="0" width="470" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
<form action="insert.php" name="form1">
	<tr>
		<td nowrap class="TableData">分组名称:</td>
		<td class="TableData"><input type="text" name="GROUP_NAME" size="25" class="BigInput"></td>
	</tr>
	<tr>
		<td nowrap class="TableData">公布范围(部门)</td>
		<td class="TableData">
			<input type="hidden" name="TO_ID" value="">
			<textarea cols=30 name=TO_NAME rows=2 class="BigStatic" wrap="yes" readonly></textarea>
			&nbsp;<input type="button" value="添 加" class="SmallButton" onClick="LoadWindow()" title="添加部门" name="button">
			&nbsp;<input type="button" value="清 空" class="SmallButton" onClick="clear_dept()" title="清空部门" name="button">
		</td>
	</tr>
	<tr>
		<td nowrap class="TableData">公布范围(角色)</td>
		<td class="TableData">
			<input type="hidden" name="PRIV_ID" value="">
			<textarea cols=30 name="PRIV_NAME" rows=2 class="BigStatic" wrap="yes" readonly></textarea>
			&nbsp;<input type="button" value="选 择" class="SmallButton" onClick="LoadPrivWindow()" title="选择角色" name="button">
			&nbsp;<input type="button" value="清 空" class="SmallButton" onClick="clear_priv()" title="清空角色" name="button">
		</td>
 </tr>
 <tr>
		<td nowrap class="TableData">公布范围(人员)</td>
		<td class="TableData">
			<input type="hidden" name="COPY_TO_ID" value="">
			<textarea cols=30 name="COPY_TO_NAME" rows=2 class="BigStatic" wrap="yes" readonly></textarea>
			&nbsp;<input type="button" value="选 择" class="SmallButton" onClick="LoadWindow2()" title="选择人员" name="button">
			&nbsp;<input type="button" value="清 空" class="SmallButton" onClick="clear_user2()" title="清空人员" name="button">
		</td>
 </tr>
	<tr>
		<td nowrap class="TableControl" colspan="2" align="center">
				<input type="button" value="提交" class="BigButton" title="提交数据" name="button1" OnClick="CheckForm()">&nbsp&nbsp&nbsp&nbsp
				<input type="button" value="返回" class="BigButton" title="返回" name="button2" OnClick="location=\'index.php\'">
		</td>
	</tr>
	</form>
</table>
</body>
</html>';
?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?