first commit
This commit is contained in:
@@ -0,0 +1,139 @@
|
||||
<#def designatedPath="/allTemplate.htm"/>
|
||||
<script>
|
||||
Z.onload(function()
|
||||
{//定义搜索框
|
||||
doTemplateSearch("1");
|
||||
})
|
||||
|
||||
function doTemplateSearch(page)
|
||||
{
|
||||
var templateType = Z("#searchTemplateType").val();
|
||||
if(!templateType){
|
||||
templateType = 20;
|
||||
}
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("TemplatePresenter");
|
||||
ajax.setMethodName("doTemplateAuditSearch");
|
||||
ajax.addParam("page", page);
|
||||
ajax.addParam("urlParam", "AUDIT");
|
||||
ajax.addParam("typeId", Z("#typeId").val());
|
||||
ajax.addParam("industryId", Z("#industryId").val());
|
||||
ajax.addParam("templateType", templateType);
|
||||
ajax.setCallback("resultWrap");
|
||||
ajax.setLoading("resultWrap");
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function bestConfirmItemAdd(e, value, type)
|
||||
{//确认
|
||||
Z.E.forbidden(e);
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("TemplatePresenter");
|
||||
ajax.setMethodName("doTemplateBestAudit");
|
||||
ajax.addParam(value)
|
||||
ajax.addParam(type);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){doTemplateSearch("1");});
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function templateConfirmItemAdd(e, value, type)
|
||||
{//确认
|
||||
Z.E.forbidden(e);
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("TemplatePresenter");
|
||||
ajax.setMethodName("doTemplateAudit");
|
||||
ajax.addParam(value)
|
||||
ajax.addParam(type);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){ doTemplateSearch("1");});
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function bestCancelItemAdd(e, value, type)
|
||||
{//取消
|
||||
Z.E.forbidden(e);
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("TemplatePresenter");
|
||||
ajax.setMethodName("doTemplateBestAudit");
|
||||
ajax.addParam(value)
|
||||
ajax.addParam(type);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){doTemplateSearch("1");});
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function templateCancelItemAdd(e, value, type)
|
||||
{//取消
|
||||
Z.E.forbidden(e);
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("TemplatePresenter");
|
||||
ajax.setMethodName("doTemplateAudit");
|
||||
ajax.addParam(value)
|
||||
ajax.addParam(type);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){doTemplateSearch("1");});
|
||||
ajax.execute();
|
||||
}
|
||||
</script>
|
||||
|
||||
${Styles.src("/zinc/css/design_2018102301.css")}
|
||||
${Scripts.src("/zinc/js/design_2018102301.js")}
|
||||
${zhiqim_manager_breadcrumb_parent("/templateMy.htm", "我的模板", "模板审核")}
|
||||
${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 onclick="Z.Location.href('templateMy.htm');">我的模板</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 class="z-active">模板审核</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>
|
||||
</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="searchTemplateType" name="searchTemplateType" 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.list()>
|
||||
<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="#FFFFFF">
|
||||
<td>审核类型:</td>
|
||||
<td>
|
||||
<button type="button" data-options="group:searchTemplateType" class="z-button z-large z-bordered z-blue-bd z-hover z-active" onclick="{Z(this).toggleClass('z-active');Z('#searchTemplateType').val(20);};doTemplateSearch('1');">普通审核</button>
|
||||
<button type="button" data-options="group:searchTemplateType" class="z-button z-large z-bordered z-blue-bd z-hover z-mg-t3" onclick="{Z(this).toggleClass('z-active');Z('#searchTemplateType').val(100);};doTemplateSearch('1');">精品审核</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="resultWrap"></div>
|
||||
${zhiqim_manager_content_end()}
|
||||
Verwijs in nieuw issue
Block a user