1 13 package info.magnolia.cms.gui.misc; 14 15 19 public class Sources { 20 21 24 public static final String REQUEST_LINKS_DRAWN = "mgnl_links_drawn"; 26 29 private String contextPath; 30 31 35 public Sources(String contextPath) { 36 this.contextPath = contextPath; 37 } 38 39 public String getHtmlJs() { 40 StringBuffer html = new StringBuffer (); 41 html.append("<script type=\"text/javascript\" SRC=\""); html.append(contextPath); 43 html.append("/admintemplates/js/admincentral.jsp\"></script>"); html.append("<script type=\"text/javascript\" SRC=\""); html.append(contextPath); 46 html.append("/admintemplates/js/dialogs.jsp\"></script>"); return html.toString(); 48 } 49 50 public String getHtmlCss() { 51 StringBuffer html = new StringBuffer (); 52 html.append("<link rel=\"stylesheet\" type=\"text/css\" HREF=\""); html.append(contextPath); 54 html.append("/admindocroot/css/admin-all.css\" />"); return html.toString(); 56 } 57 58 public String getHtmlRichEdit() { 59 StringBuffer html = new StringBuffer (); 60 html.append("<link rel=\"stylesheet\" type=\"text/css\" HREF=\""); html.append(contextPath); 62 html.append("/admindocroot/richE/kupustyles.css\" />"); html.append("<link rel=\"stylesheet\" type=\"text/css\" HREF=\""); html.append(contextPath); 65 html.append("/admindocroot/richE/kupucustom.css\" />"); html.append("<script type=\"text/javascript\" SRC=\""); html.append(contextPath); 68 html.append("/admindocroot/richE/sarissa.js\"> </script>"); html.append("<script type=\"text/javascript\" SRC=\""); html.append(contextPath); 71 html.append("/admindocroot/richE/kupuhelpers.js\"> </script>"); html.append("<script type=\"text/javascript\" SRC=\""); html.append(contextPath); 74 html.append("/admindocroot/richE/kupueditor.js\"> </script>"); html.append("<script type=\"text/javascript\" SRC=\""); html.append(contextPath); 77 html.append("/admindocroot/richE/kupubasetools.js\"> </script>"); html.append("<script type=\"text/javascript\" SRC=\""); html.append(contextPath); 80 html.append("/admindocroot/richE/kupuloggers.js\"> </script>"); html.append("<script type=\"text/javascript\" SRC=\""); html.append(contextPath); 83 html.append("/admindocroot/richE/kupucontentfilters.js\"> </script>"); html.append("<script type=\"text/javascript\" SRC=\""); html.append(contextPath); 86 html.append("/admindocroot/richE/kupuinit.js\"> </script>"); return html.toString(); 88 } 89 90 } 91 | Popular Tags |