Ejemplo n.º 1
0
 private String getHtmlHead(HttpServletRequest request) {
   HttpSession session = ContextHolderUtils.getSession();
   String lang = (String) session.getAttribute("lang");
   StringBuilder sb = new StringBuilder("");
   SysThemesEnum sysThemesEnum = SysThemesUtil.getSysTheme(request);
   sb.append(SysThemesUtil.getReportTheme(sysThemesEnum));
   sb.append(SysThemesUtil.getCommonTheme(sysThemesEnum));
   sb.append("<script type=\"text/javascript\" src=\"plug-in/jquery/jquery-1.8.3.js\"></script>");
   sb.append("<script type=\"text/javascript\" src=\"plug-in/tools/dataformat.js\"></script>");
   sb.append(SysThemesUtil.getEasyUiTheme(sysThemesEnum));
   sb.append(
       "<link rel=\"stylesheet\" href=\"plug-in/easyui/themes/icon.css\" type=\"text/css\"></link>");
   sb.append(
       "<link rel=\"stylesheet\" type=\"text/css\" href=\"plug-in/accordion/css/accordion.css\">");
   sb.append(
       "<link rel=\"stylesheet\" type=\"text/css\" href=\"plug-in/accordion/css/icons.css\">");
   sb.append(
       "<script type=\"text/javascript\" src=\"plug-in/easyui/jquery.easyui.min.1.3.2.js\"></script>");
   sb.append("<script type=\"text/javascript\" src=\"plug-in/easyui/locale/zh-cn.js\"></script>");
   sb.append("<script type=\"text/javascript\" src=\"plug-in/tools/syUtil.js\"></script>");
   sb.append(SysThemesUtil.getLhgdialogTheme(sysThemesEnum));
   sb.append(
       StringUtil.replace(
           "<script type=\"text/javascript\" src=\"plug-in/tools/curdtools_{0}.js\"></script>",
           "{0}", lang));
   sb.append("<script type=\"text/javascript\" src=\"plug-in/tools/easyuiextend.js\"></script>");
   sb.append(
       "<script type=\"text/javascript\" src=\"plug-in/easyui/extends/datagrid-scrollview.js\"></script>");
   sb.append(
       "<script type=\"text/javascript\" src=\"plug-in/My97DatePicker/WdatePicker.js\"></script>");
   sb.append(
       "<script type=\"text/javascript\" src=\"plug-in/graphreport/highcharts3.0.6.js\"></script>");
   sb.append("<script type=\"text/javascript\" src=\"plug-in/graphreport/spin.min.js\"></script>");
   sb.append("<script type=\"text/javascript\" src=\"plug-in/graphreport/report.js\"></script>");
   return sb.toString();
 }