⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addresslist.html

📁 一个实现邮件收发功能的客户端程序
💻 HTML
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>个人通讯录</title>
<link href="/css/css.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE=javascript>
  <!--
 //================
//排序
function getSorted(fld)
{
	if(form1.Field.value==fld){
	if(form1.State.value=='asc')
	  form1.State.value='desc';
	else
	  form1.State.value='asc';
	}
	if(form1.istext.value!='')
	{
		form1.stext.value = form1.istext.value;
		form1.sword.value = form1.isword.value;
		form1.state.value = form1.istate.value;
	}  
	form1.Field.value=fld;
	form1.action = "address.jsp";
	form1.method="get";
	form1.submit();
}

document.onselectstart =function () {return false;}


function  doDel(id)
{
  if(confirm("通讯地址不可恢复,是否真的删除?"))
  {
    ListForm.easyJWebCommand.value="del";
	ListForm.cid.value=id;
	ListForm.submit();
	}
  else
    return false;
}
function doAdd(){
    ListForm.easyJWebCommand.value="new";
	
	ListForm.submit();
    var t=(screen.availHeight-200)/2;
	var l=(screen.availWidth-300)/2;
	//window.open('/address.ejf?easyJWebCommand=new','_blank','width=300,height=150,top='+t+',left='+l+',center=yes,resizable=yes');
 }
 function doEdit(id){
  ListForm.cid.value=id;
  ListForm.easyJWebCommand.value="edit";
  ListForm.submit();
  
 //   var t=(screen.availHeight-200)/2;
//	var l=(screen.availWidth-300)/2;
	//window.open('/address.ejf?easyJWebCommand=edit&&cid='+id,'_blank','width=300,height=150,top='+t+',left='+l+',center=yes,resizable=yes');
 }

 function searchadr()
 {
 	form1.action = "address.jsp";
	form1.method = "post";
	form1.stext.value = form1.istext.value;
	form1.sword.value = form1.isword.value;
	form1.state.value = form1.istate.value;
	form1.submit();
 }
 function setvalue()
 {
	form1.stext.value = form1.istext.value;
	form1.sword.value = form1.isword.value;
	form1.state.value = form1.istate.value;
 } 
//-->
</SCRIPT>
</head>
<BODY leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" >
<div style="overflow: auto;height:100%;width:100%;">
<table width="100%" height="5%"  border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="11" height="11" >&nbsp;</td>
    <td >&nbsp;</td>
  </tr>
</table>
  <table width="100%" height="95%"  border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="11" background="/images/1.gif">&nbsp;</td>
      <td align="center" valign="top" bgcolor="ECF4F5"><br>
          <table width="99%" border=0>
           <FORM id='ListForm' name="ListForm" METHOD='POST' ACTION='/address.ejf'>	
	<input type="hidden" name="easyJWebCommand" value="list">
	<input type="hidden" name="cid"   value="">
	<input type="hidden" name="mulitCid"   value="$!mulitCid">	
	<input type="hidden" name="page"   value="$!page">			
              <tr>
                <td><table width="100%" height="25">
                    <tr>
                      <td width="120" height="20" style="cursor:hand" align="left" onClick="doAdd()" ><img src='/images/add.gif' border='0' align='absmiddle'>增加个人通讯录</td>
                      <td width="140" align="center" height="20" class=""><span  class="vline"><span class="coolbutton"><a href="/group.ejf"><img src='/images/add.gif' border='0' align='absmiddle'>通讯录组</a></span></span></td>
                      <td width="30" height="20" class='coolbutton' align="center" onClick="searchadr();">查询</td>
                      <td width="54"><select name="isword" >
                          <option value="name" selected>姓名</option>
                          <option value="sendee">地址</option>
                        </select>
                      </td>
                      <td width="60"><select name="istate">
                          <option value="1" selected>包含</option>
                          <option value="2">等于 </option>
                        </select>
                      </td>
                      <td width="168"><input type="text" name="istext" height="18" onKeyDown="setvalue();">
                      </td>
					  <td width="100" height="20" class='coolbutton' align="left" onClick="return false;" ><img src='/images/add.gif' border='0' align='absmiddle'>导入/导出</td>
                      <td width="173">&nbsp;</td>
                      <!--td width="130" align="right" >转到<img src="images/luntan.gif" width="16" height="16">
				<a href="adrgroup.jsp">个人通讯录组</a></td-->
                    </tr>
                </table></td>
              </tr>
              <tr>
                <td height="90%" valign="top">
				<!--div style="overflow: auto;height:100%;width:100%;"-->
				<TABLE WIDTH='100%' height='100%' BORDER='1' align='center' CELLPADDING='4' CELLSPACING='0' bgcolor="#ECF4F5" class="table1" >
                    <thead><TR>
                      <TD width='30%' height="30"  class='TableTitle' ><div style="height:20;width:100%;cursor:hand"  title="点击按收件人姓名排序" onClick="getSorted('name')" align="center"> 收件人姓名</div></TD>
                      <TD width='40%' height="20"  class='TableTitle'><div style="height:20;width:100%;cursor:hand"  title="点击按收件人姓名排序" onClick="getSorted('sendee')" align="center"> 收件人地址</div></TD>
                      <TD width='30%' align='center'  class='TableTitle' > 编辑</TD>
                    </TR></thead>
                    
                   #foreach( $info in $list)  
										<TR bgcolor='#FFFFFF'>
										  <TD style='word-break:break-all'>$!info.name</TD>
										  <TD style='word-break:break-all'>$!info.email</TD>
										  <td width="38%"  height="18"  align="center"  ><table width="100%" border="0" align="center" cellpadding="0" cellspacing="3">
											  <tr>
												<td width="50%" align="center"><a href="#" onClick="doEdit('$!info.cid')"><img src="/images/help.gif" width="18" height="13" border="0" align="absmiddle"> 修改</a></td>
												<td width="50%" align="center"><a href="#" onClick="doDel('$!info.cid')"><img src="/images/delete2.gif" width="16" height="16" border="0" align="absmiddle"> 删除</a></td>
											  </tr>
										  </table></td>
										</TR>
										#end
                    <TR bgcolor='#FFFFFF'> </TR>
                </TABLE><!--/div--></td>
              </tr>
              <tr>
                <td height="26" class="TableTitle"><table bgcolor="#ECF4F5" class='cooltbl-b' width='100%' height="100%" cellspacing='0' id='table_bar'>
                    <tr bgcolor="">
                    <td nowrap><b>个人通讯录: 共有
                      $!rows
                      个地址</b></td>
                      <td nowrap>$!gotoPageHTML </td>
                    </tr>
                </table></td>               
              </tr>             
            </form>
      </table></td>
      <td width="11" bgcolor="ECF4F5">&nbsp;</td>
    </tr>
  </table>
</div>
</body>
</html>
#if($msg)
<script> alert('$!msg');</script>
#end

⌨️ 快捷键说明

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