Ejemplo n.º 1
0
 /*     */ public String getAddHtml(HttpServletRequest request) {
   /*  75 */ FreeMarkerPaser freeMarkerPaser = FreeMarkerPaser.getInstance();
   /*  76 */ freeMarkerPaser.setPageName("album");
   /*  77 */ freeMarkerPaser.putData("image_default", null);
   /*  78 */ freeMarkerPaser.putData("thumbnail_images", null);
   /*  79 */ String html = freeMarkerPaser.proessPageContent();
   /*  80 */ return html;
   /*     */ }
Ejemplo n.º 2
0
 /*     */ public String getEditHtml(Map goods, HttpServletRequest request) /*     */ {
   /*  48 */ String contextPath = request.getContextPath();
   /*     */
   /*  50 */ FreeMarkerPaser freeMarkerPaser = FreeMarkerPaser.getInstance();
   /*     */
   /*  53 */ String image_default = null;
   /*  54 */ if ((goods.get("image_file") != null) && (goods.get("image_file") != "")) {
     /*  55 */ String image_file = goods.get("image_file").toString();
     /*  56 */ String[] thumbnail_images = StringUtils.split(image_file, ",");
     /*     */
     /*  58 */ image_default = (String) goods.get("image_default");
     /*  59 */ if (!StringUtil.isEmpty(image_default)) {
       /*  60 */ image_default = UploadUtil.replacePath(image_default);
       /*     */ }
     /*     */
     /*  64 */ freeMarkerPaser.putData("ctx", contextPath);
     /*  65 */ freeMarkerPaser.putData("image_default", image_default);
     /*  66 */ freeMarkerPaser.putData("thumbnail_images", thumbnail_images);
     /*     */ }
   /*     */
   /*  69 */ freeMarkerPaser.setPageName("album");
   /*  70 */ String html = freeMarkerPaser.proessPageContent();
   /*  71 */ return html;
   /*     */ }