非常完整的Java开发的网络办公系统
源代码在线查看: address_home.jsp
function removeCompanys()
{
if( document.myform.companyIds==null )
{
alert("没有要删除的公司。");
return false;
}
if( !isChecked(document.myform.companyIds) )
{
alert("请选择要删除的公司。");
return false;
}
if(!confirm("是否确定删除?"))
{
return false;
}
myform.action= "/mainctrl/commoninfo/addresslist/removeAddressListSuccess";
myform.submit();
}
function CheckAll(form)
{
for (var i=0;i {
var e = form.elements[i];
if (e.name != 'chkall')
e.checked = form.chkall.checked;
}
}
首页>>办公室管理>>外部通讯录
选择
公司名称
操作
Collection coll = addressListProxy.getAddressList();
AddressListValueBean avb = null;
int start = 1;
if ( request.getParameter("start") !=null )
{
start = Integer.parseInt( request.getParameter("start") );
}
//int rowPerPage = com.vnex.intranet.statictable.ConfigParaLoader.getParameterByInt("rowNum");
int rowPerPage = com.vnex.intranet.system.loader.ConfigParaLoader.getParameterByInt("rowNum");
int size = coll.size();
String action = "/mainctrl/commoninfo/addresslist/getAddressList?";
String nav = NavBar.makeNavbar(start, size, rowPerPage, action);
int i = 0;
if(coll != null && coll.size() != 0)
{
Iterator it = coll.iterator();
int flag = 0;
String bgcolor = null;
while( it.hasNext() && i < size && i < ( start+rowPerPage-1) )
{
i++;
avb = (AddressListValueBean)it.next();
if ( i < start ) continue;
if( flag%2==0 )
{
bgcolor = "#e0e0e0";
}
else
{
bgcolor = "#fafafa";
}
%>
修改
flag++;
}
}
%>
if(size!=0)
{
%>
全选
}
%>