非常完整的Java开发的网络办公系统
源代码在线查看: regulation_home.jsp
首页>>公用信息>>规章制度
名称
发布部门
发布时间
Collection coll = regulationProxy.getRegulationList();
RegulationValueBean rvb = null;
int start = 1;
if ( request.getParameter("start") !=null )
{
start = Integer.parseInt( request.getParameter("start") );
}
int rowPerPage = com.vnex.intranet.system.loader.ConfigParaLoader.getParameterByInt("rowNum");
int size = coll.size();
String action = "/mainctrl/commoninfo/regulation/getRegulationListClient?";
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++;
rvb = (RegulationValueBean)it.next();
if ( i < start ) continue;
if( flag%2==0 )
{
bgcolor = "#e0e0e0";
}
else
{
bgcolor = "#fafafa";
}
String str = rvb.getAttachmentUrl();
int s = str.lastIndexOf(SubPathGenerater.getSeperator());
String filename = str.substring(s+1);
String UTFurl = str.substring(0,s+1)+StringUtil.encode(filename);
%>
flag++;
}
}
%>