📄 groupedit.html
字号:
<html>
<head>
<title>增加个人通讯录组</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="/css/css.css" rel="stylesheet" type="text/css">
<script language="javascript" >
var aryRY = new Array();
//初始化权限
function init()
{
var theForm=document.forms[0];
var tag=theForm.tagSelect;
var source=theForm.sourceSelect;
//for(var i=0;i<10;i++)
//tag.options[tag.options.length]=new Option("dsfsdf"+i,i);
for(var i=0;i<tag.options.length;i++)
{
var v=tag.options[i].value;
for(var j=0;j<source.options.length;j++)
{
if(source.options[j].value==v)
{
tag.options[i]=new Option(source.options[j].text,source.options[j].value);
source.options[j]=null;
}
}}
}
function moveSelect(source,tag)
{
if(source.selectedIndex<0)return ;
var srcOp=source.options[source.selectedIndex];
for(var i=0;i<tag.length;i++)
if(tag.options[i].value==source.value)return;
var obj=new Option(srcOp.text,srcOp.value);
tag.options[tag.options.length]=obj;
source.options[source.selectedIndex]=null;
}
function checkForm(theForm)
{
if(theForm.name.value=="")
{
alert("名称不能为空!");
return false;
}
var add="";
for(var i=0;i<theForm.tagSelect.options.length;i++)add+=theForm.tagSelect.options[i].value+";";
if(add=="")
{
alert("请选择该组的用户!");
return false;
}
theForm.emails.value=add;
if(theForm.cid.value!="")theForm.easyJWebCommand.value="update";
return true;
}
window.setTimeout('document.all("name").focus()',1);
</script>
</head>
<body link="#000000" vlink="#000000" alink="#000000" leftMargin=0 topMargin=0 rightMargin=0 marginwidth="0" marginheight="0" border="0" onload= "init()">
<table width="100%" height="5%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="11" height="11" > </td>
<td > </td>
</tr>
</table>
<table bgcolor="#ECF4F5" width="100%" height="95%" border="0" cellpadding="0" cellspacing="0" scroll="no">
<FORM name="EditForm" METHOD="POST" ACTION="/group.ejf" onSubmit="return checkForm(this)">
<input type="hidden" name="easyJWebCommand" value="add">
<input type="hidden" name="cid" value="$!cid">
<input type="hidden" name="emails" value="$!emails">
<tr>
<td height="100%" align="center" valign="top">
<TABLE width="100%" height="450" border=0 cellPadding=1 cellSpacing=2 bgcolor="#ECF4F5">
<TR >
<TD colspan="3" height="20"> 通讯录组名称
<input name="name" type="text" id="name" value="$!name" size="50" maxlength="30"> </TD>
</TR>
<br>
<TR>
<TD width="45%">
<legend>可选用户列表</legend>
<SELECT id="sourceSelect" name="sourceSelect" size=2 style="HEIGHT: 350px; WIDTH: 100%" ondblclick="moveSelect(this,tagSelect)">
#foreach( $info in $allAddress)
<option value="$!info.email">$!info.name</option>");
#end
</SELECT> </TD>
<TD align=middle><input id=button1 onClick="moveSelect(sourceSelect,tagSelect)" name=button1 type=button value="==>" style="width:50px">
<BR>
<BR>
<input id=remove name=button2 type=button value="<==" onClick="moveSelect(tagSelect,sourceSelect)" style="width:50px"></TD><TD width="45%">
<legend>用户列表</legend>
<SELECT id="tagSelect" name="tagSelect" size=2 ondblclick="moveSelect(this,sourceSelect)"
style="HEIGHT: 350px; WIDTH: 100%">
#foreach( $info in $emails)
<option value="$!info">$!info</option>
#end
</SELECT>
</TD>
</TR>
<TR>
<TD colspan="3"><table width="100%%" border="0">
<tr>
<td align="center"><input type="submit" name="Submit" value="提交">
<input type="button" name="Submit2" value="取消" onClick="self.close();"></td>
</tr>
</table></TD>
</TR>
<TR>
<TD colspan="3"><table width="100%%" border="0">
<tr>
<td align="center"></td>
</tr>
</table></TD>
</TR>
</TABLE>
</td>
</tr>
</form>
</table>
</body>
</html>
#if($msg)
<script> alert('$!msg');</script>
#end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -