<%@page contentType="text/html;charset=utf-8" import="java.sql.*,java.util.*,jerehnet.jsp.database.*,jerehnet.jsp.util.*,java.text.SimpleDateFormat,java.util.regex.Matcher,java.util.regex.Pattern"%> <%! public static String getOnePicFromContent(String str) { if ((str == null) || (str.length() == 0)) return str; String returnStr = ""; int n = 1; Matcher m = Pattern.compile("src=\"?(.*?)(\"|>|\\s+)", 2).matcher(str); while (m.find()) { if ((m.group(1).indexOf(".png") == -1) && (m.group(1).indexOf(".PNG") == -1) && (m.group(1).indexOf(".gif") == -1) && (m.group(1).indexOf(".GIF") == -1) && (m.group(1).indexOf(".JPG") == -1) && (m.group(1).indexOf(".jpg") == -1)) continue; if (n == 2) break; returnStr = returnStr + m.group(1).replace("'", "").replace("\"", "") + ","; n = 2; } if ((returnStr != null) && (returnStr.indexOf(",") != -1)) returnStr = returnStr.replace(",", ""); return returnStr; } %> <% PoolManager pool = new PoolManager(); if (pool == null) { pool = new PoolManager(); } Connection conn = null; Pagination pagination = new Pagination(); //设置每页显示条数 int pageCount = 6; //pageCount = Integer.parseInt(Common.getFormatInt(request.getParameter("pageCount"))); if(pageCount==0){ pageCount = 10; } pagination.setCountOfPage(pageCount); DataManager db = new DataManager(); String type=Common.getFormatStr(request.getParameter("type")); String keywords=Common.getFormatStr(request.getParameter("keywords")); try { conn = pool.getConnection(); String offset = Common.getFormatInt(request.getParameter("offset")); //搜索条件形成 String searchStr = " where website_no='20150619082201914' and channel_node='20150619091243365' and is_show=1 "; searchStr += " order by pub_date desc,id desc"; String query = "select * from jrcms_information " + searchStr; ResultSet rs = pagination.getQueryResult(query, request, conn); int showPages = 10;//底部页数显示个数 %> CSR实践_社会责任_奥特_天津奥特泵业

您当前的位置: 首页 > 奥特 > 社会责任 > CSR实践

奥特
企业概况
品牌文化
科研实力
QA质量管理
社会责任
企业荣誉
制造基地
联系我们

CSR实践

    <% String title="";String datetime="";String content="";String image=""; while(rs!=null&&rs.next()){ title=Common.getFormatStr(rs.getString("title")); datetime=Common.getFormatDate("yyyy-MM-dd",rs.getDate("pub_date")); content=Common.getFormatStr(rs.getString("content")); image=Common.getFormatStr(rs.getString("img")); if(image.equals("")){ image = this.getOnePicFromContent(Common.getFormatStr(rs.getString("content"))); } content=content.replaceAll("<\\s*img\\s+([^>]*)\\s*>",""); content = content.replaceAll(" ",""); content = content.replaceAll("<[^<|^>]+>",""); content = content.replaceAll(" ","").replaceAll(" ",""); if(content.length()>90){ content=content.substring(0,90)+"...";} if(title.length()>30){ title=title.substring(0,30)+"...";} %>
  • _for_csr_text.htm" target="_blank" title="<%=title%>"><%=title%>

    _for_csr_text.htm" target="_blank" class="_img"> title
    发布日期:<%=datetime%>

    <%=content%>    _for_csr_text.htm" target="_blank" class="_link">详情

  • <%}%>
<%if(pagination.getTotal()>pageCount){%>
上一页 <%String str = "";String pages[] = pagination.getPages();int nowp = pagination.getCurrenPages();nowp = nowp - nowp % (showPages + 1);for (int i = nowp - 1; i < (nowp + showPages) && i < pages.length; i++) {if (i < 0)i = 0;if (pagination.getCurrenPages() == (i + 1)) {str += "" + (i + 1) + " ";} else {str += " " + (i + 1) + " ";}}str=str.substring(0,str.length()-1);out.print(str); %> 下一页 共<%=pagination.getTotalPages()%>页
<%}%>
<% } catch (Exception e) { e.printStackTrace(); } finally { pool.freeConnection(conn); } %>