| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <#def designatedPath="/allTemplate.htm"/>
- <script>
- Z.onload(function()
- {
- doTemplateSearch("1");
- })
- function doTemplateAdd()
- {
- var dialog = new Z.Dialog();
- dialog.title = "新建我的模板";
- dialog.url = "newMyTemplate.htm";
- dialog.width = 800;
- dialog.height = 480;
- dialog.fixed = true;
- dialog.execute();
- }
- function doTemplateSearch(page)
- {
- var ajax = new Z.Ajax();
- ajax.setClassName("TemplatePresenter");
- ajax.setMethodName("doTemplateSearch");
- ajax.addParam("page", page);
- ajax.addParam("urlParam", "MY");
- ajax.addParam("typeId", Z("#typeId").val());
- ajax.addParam("industryId", Z("#industryId").val());
- ajax.addParam("fileType", Z("#fileType").val());
- ajax.setCallback("resultWrap");
- ajax.setLoading("resultWrap");
- ajax.execute();
- }
- function externalDraftUpload(templateSrc,typeName){
- var ajax = new Z.Ajax();
- ajax.setClassName("WorksPresenter");
- ajax.setMethodName("doQueryOperatorTemplateDesc");
- ajax.setSuccess(function(){
- var templateId = Z.J.toObject(this.responseText);
- if(templateId !=0){
- var dialog = new Z.Dialog();
- dialog.shadow = true;
- dialog.title = "上传外部稿件";
- dialog.fixed = true;
-
- dialog.url = "externalDraftUpload.htm?mediaId="+templateId+"&templatePage=MY&templateSrc="+templateSrc+"&typeName="+typeName;;
- dialog.width = 800;
- dialog.height =300;
- dialog.execute();
- }
- doTemplateSearch("1");
- });
- ajax.execute();
- }
- </script>
- ${Styles.src("/zinc/css/design_2018102301.css")}
- ${Scripts.src("/zinc/js/design_2018102301.js")}
- ${zhiqim_manager_breadcrumb("我的模板")}
- ${zhiqim_manager_content()}
- <#-- 导航栏 -->
- <div class="z-tabnav-main z-blue z-mg-b20">
- <nav>
- <ul>
- <li onclick="Z.Location.href('templateDraftMy.htm');">我的订单草稿</li>
- <li onclick="Z.Location.href('templateOrderMy.htm');">我的订单模板</li>
- <li class="z-active">我的模板</li>
- <li onclick="Z.Location.href('templateCollect.htm');">我收藏的</li>
- <li onclick="Z.Location.href('templateShare.htm');">分享给我的</li>
- <li onclick="Z.Location.href('allTemplate.htm');">所有模板</li>
- <!-- <li onclick="Z.Location.href('bestTemplate.htm');">精品模板</li> -->
- <#if ZmrPathRule.check(request, "/templateAudit.htm")><li onclick="Z.Location.href('templateAudit.htm');">模板审核</li></#if>
- <!-- <#if ZmrPathRule.check(request, "/templateBestAudit.htm")><li onclick="Z.Location.href('templateBestAudit.htm');">精品审核</li></#if> -->
- <#if ZmrPathRule.check(request, "/desTemplateLogList.htm")><li onclick="Z.Location.href('desTemplateLogList.htm');">模版日志</li></#if>
- </ul>
- <div class="z-float-right z-mg-t10 z-mg-r5">
- <button class="z-button z-w130 z-mg-r20 ${zmr_color_class}" onclick="doTemplateAdd();"><i class="z-font z-add"></i>新建模板</button>
- </div>
- </nav>
- </div>
- <table class="z-table z-bordered z-pd6">
- <input type="hidden" id="typeId" name="typeId" value="">
- <input type="hidden" id="industryId" name="industryId" value="">
- <input type="hidden" id="fileType" name="fileType" value="">
- <tr class="z-h40" bgcolor="${oddColor}">
- <td width="5%">类型:${typeId}</td>
- <td width="*">
- <button type="button" data-options="group:typeId" class="z-button z-large z-bordered z-blue-bd z-hover <#if typeId == -1 || Validates.isEmpty(typeId)>z-active</#if>" onclick="{Z(this).toggleClass('z-active');Z('#typeId').val('');};doTemplateSearch('1');">全部</button>
- <#for item : DesignTypeDao.listTemmplate()>
- <button type="button" data-options="group:typeId" class="z-button z-large z-bordered z-blue-bd z-hover z-mg-t3 <#if item.getTypeId() == typeId>z-active</#if>" onclick="{Z(this).toggleClass('z-active');Z('#typeId').val(${item.getTypeId()});};doTemplateSearch('1');">${item.getTypeName()}</button>
- </#for>
- </td>
- </tr>
- <tr class="z-h40" bgcolor="#FFFFFF">
- <td>行业:</td>
- <td>
- <button type="button" data-options="group:industryId" class="z-button z-large z-bordered z-blue-bd z-hover <#if industryId == -1 || Validates.isEmpty(industryId)>z-active</#if>" onclick="{Z(this).toggleClass('z-active');Z('#industryId').val('');};doTemplateSearch('1');">全部</button>
- <#for item : Global.get(DesignIndustryCache.class).getIndustryList()>
- <button type="button" data-options="group:industryId" class="z-button z-large z-bordered z-blue-bd z-hover z-mg-t3 <#if item.getIndustryId() == industryId>z-active</#if>" onclick="{Z(this).toggleClass('z-active');Z('#industryId').val(${item.getIndustryId()});};doTemplateSearch('1');">${item.getIndustryName()}</button>
- </#for>
- </td>
- </tr>
- <tr class="z-h40" bgcolor="${oddColor}">
- <td width="5%">文件格式:</td>
- <td width="*">
- <button type="button" data-options="group:fileType" class="z-button z-large z-bordered z-blue-bd z-hover z-active" onclick="Z.EL.toggleClass(this,'z-active');Z('#fileType').val('');doTemplateSearch('1');">全部</button>
- <button type="button" data-options="group:fileType" class="z-button z-large z-bordered z-blue-bd z-hover" onclick="Z.EL.toggleClass(this,'z-active');Z('#fileType').val('CDR');doTemplateSearch('1');">CDR</button>
- <button type="button" data-options="group:fileType" class="z-button z-large z-bordered z-blue-bd z-hover" onclick="Z.EL.toggleClass(this,'z-active');Z('#fileType').val('PSD');doTemplateSearch('1');">PSD</button>
- <button type="button" data-options="group:fileType" class="z-button z-large z-bordered z-blue-bd z-hover" onclick="Z.EL.toggleClass(this,'z-active');Z('#fileType').val('AI');doTemplateSearch('1');">AI</button>
- <button type="button" data-options="group:fileType" class="z-button z-large z-bordered z-blue-bd z-hover" onclick="Z.EL.toggleClass(this,'z-active');Z('#fileType').val('RAR');doSearchAjax('1');">RAR</button>
- <button type="button" data-options="group:fileType" class="z-button z-large z-bordered z-blue-bd z-hover" onclick="Z.EL.toggleClass(this,'z-active');Z('#fileType').val('PDF');doTemplateSearch('1');">PDF</button>
- </td>
- </tr>
- </table>
- <div id="resultWrap"></div>
- <!-- 浮动选中框 end -->
- ${zhiqim_manager_content_end()}
|