first commit
此提交包含在:
@@ -0,0 +1,94 @@
|
||||
<script>
|
||||
Z.onload(function()
|
||||
{//定义搜索框
|
||||
var search = new Z.SearchAutoList();
|
||||
search.elem = "searchinput";
|
||||
search.className = "DesignerPresenter";
|
||||
search.methodName = "doKeywordList";
|
||||
search.callback = function(){Works.doSearchAjax('1', this.value, 'ALL');};
|
||||
search.execute();
|
||||
|
||||
doWorksSearch("1");
|
||||
})
|
||||
|
||||
function doWorksSearch(page)
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doWorksSearch");
|
||||
ajax.addParam("page", page);
|
||||
ajax.addParam("urlParam", "ALL");
|
||||
ajax.setCallback("resultWrap");
|
||||
ajax.setLoading("resultWrap");
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function doCopyURLInfo()
|
||||
{
|
||||
Z.copy("http://design.yangcai365.com/pcWorks.htm");
|
||||
top.Z.tips("复制成功");
|
||||
}
|
||||
|
||||
function doCopyURLInfoH5()
|
||||
{
|
||||
Z.copy("http://design.yangcai365.com/mobileWorksHome.htm");
|
||||
top.Z.tips("复制成功");
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
${Styles.src("/zinc/css/design_2018102301.css")}
|
||||
${Scripts.src("/zinc/js/works_20171030.js")}
|
||||
${Scripts.src("/zinc/js/zhiqim_search_auto_list.js")}
|
||||
${zhiqim_manager_breadcrumb_parent("/worksMy.htm", "我的作品", "所有作品")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-blue z-mg-b20">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.Location.href('worksMy.htm');">我的作品</li>
|
||||
<li onclick="Z.Location.href('worksCollect.htm');">我收藏的</li>
|
||||
<li onclick="Z.Location.href('worksBest.htm');">我的精品</li>
|
||||
<li class="z-active">所有作品</li>
|
||||
<li onclick="Z.Location.href('bestWorks.htm');">精品作品</li>
|
||||
<#if ZmrPathRule.check(request, "/worksAudit.htm")><li onclick="Z.Location.href('worksAudit.htm');">精品审核</li></#if>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 关键词搜索 -->
|
||||
<div class="z-mg-t20 z-h1 z-text-center">
|
||||
<span style="float:center;">
|
||||
<input id="searchinput" class="z-input z-w600 zi-h40 zi-bd-r-none" placeholder="输入关键词" value="" maxlength="20"><button type="button" class="z-button z-w80 z-h40 zi-bd-rd0 z-orange" onclick="Works.doSearchAjax('1' , searchinput.value, 'ALL')"><i class="z-font z-query"></i>查询</button>
|
||||
</span>
|
||||
<span class="z-float-right">
|
||||
<button class="z-button z-blue z-small" onclick="doCopyURLInfo();"><i class="z-font z-text"></i>生成PC链接</button>
|
||||
<button class="z-button z-blue z-small" onclick="doCopyURLInfoH5();"><i class="z-font z-text"></i>生成手机链接</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<table class="z-table z-bordered z-pd6">
|
||||
<tr class="z-h40" bgcolor="${oddColor}">
|
||||
<td width="5%">类型:</td>
|
||||
<td width="*">
|
||||
<button id="nav_10086" type="button" data-options="group:prdType" class="z-button z-large z-bordered z-blue-bd z-hover <#if 10086 == prdTypeId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'nav_10086', 'ALL')">全部</button>
|
||||
<#for item : prdList>
|
||||
<button id="nav_${item.getTypeId()}" type="button" data-options="group:prdType" class="z-button z-large z-bordered z-blue-bd z-hover <#if item.getTypeId() == prdTypeId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'nav_${item.getTypeId()}', 'ALL')">${item.getTypeName()}</button>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="z-h40" bgcolor="#FFFFFF">
|
||||
<td>行业:</td>
|
||||
<td>
|
||||
<button id="ind_10087" type="button" data-options="group:industry" class="z-button z-large z-bordered z-blue-bd z-hover <#if 10087 == industryId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'ind_10087', 'ALL')">全部</button>
|
||||
<#for item : indList>
|
||||
<button id="ind_${item.getIndustryId()}" type="button" data-options="group:industry" class="z-button z-large z-bordered z-blue-bd z-hover <#if item.getIndustryId() == industryId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'ind_${item.getIndustryId()}', 'ALL')">${item.getIndustryName()}</button>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="resultWrap"></div>
|
||||
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,127 @@
|
||||
<script>
|
||||
<!--
|
||||
Z.onload(function()
|
||||
{//定义搜索框
|
||||
var search = new Z.SearchAutoList();
|
||||
search.elem = "searchinput";
|
||||
search.className = "DesignerPresenter";
|
||||
search.methodName = "doKeywordList";
|
||||
search.callback = function(){Works.doSearchAjax('1', this.value, 'BEST');};
|
||||
search.execute();
|
||||
|
||||
doWorksSearch("1");
|
||||
})
|
||||
|
||||
function doWorksSearch(page)
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doWorksSearch");
|
||||
ajax.addParam("page", page);
|
||||
ajax.addParam("urlParam", "BEST");
|
||||
ajax.setCallback("resultWrap");
|
||||
ajax.setLoading("resultWrap");
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
|
||||
/*** 申请精品 ***/
|
||||
function applyEssence(ele)
|
||||
{
|
||||
Z(ele).toggleClass("active");
|
||||
if (Z(ele).hasClass("active"))
|
||||
{//选择状态
|
||||
var items = Z("#resultWrap>.srcFileList>.item");
|
||||
for (var i = 0;i < items.length;i++)
|
||||
{
|
||||
var $item = Z(items[i]);
|
||||
if ($item.children(".checkBox")[0])
|
||||
{
|
||||
$item.children(".checkBox").show();
|
||||
continue;
|
||||
}
|
||||
var id = $item.attr("id").substring(5);
|
||||
|
||||
var $checkBox = Z('<span class="checkBox z-pointer z-absolute z-w100p z-h100p" onclick="applyEssence_confirm(\'' + id + '\')"></span>');
|
||||
$checkBox.show().appendToPos($item);
|
||||
}
|
||||
}
|
||||
else
|
||||
{//普通状态
|
||||
Z("#resultWrap>.srcFileList>.item>.checkBox").hide();
|
||||
}
|
||||
}
|
||||
|
||||
/** 取消申请 **/
|
||||
function applyEssence_cancel(e)
|
||||
{
|
||||
Z("#resultWrap>.srcFileList>.item>.checkBox").hide();
|
||||
}
|
||||
|
||||
/** 确认申请 **/
|
||||
function applyEssence_confirm(id)
|
||||
{
|
||||
var dialog = new Z.Dialog();
|
||||
dialog.title = "模板参数";
|
||||
dialog.url = "templateParam.htm?worksId=" + id;
|
||||
dialog.width = 800;
|
||||
dialog.height = 400;
|
||||
dialog.fixed = true;
|
||||
dialog.execute();
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
|
||||
${Styles.src("/zinc/css/design_2018102301.css")}
|
||||
${Scripts.src("/zinc/js/works_20171030.js")}
|
||||
${Scripts.src("/zinc/js/zhiqim_search_auto_list.js")}
|
||||
${zhiqim_manager_breadcrumb_parent("/worksMy.htm", "我的作品", "精品作品")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-blue z-mg-b20">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.Location.href('worksMy.htm');">我的作品</li>
|
||||
<li onclick="Z.Location.href('worksCollect.htm');">我收藏的</li>
|
||||
<li onclick="Z.Location.href('worksBest.htm');">我的精品</li>
|
||||
<li onclick="Z.Location.href('worksShare.htm');">分享给我的</li>
|
||||
<li onclick="Z.Location.href('groupWorks.htm');">小组作品</li>
|
||||
<li onclick="Z.Location.href('allWorks.htm');">所有作品</li>
|
||||
<li class="z-active">精品作品</li>
|
||||
<#if ZmrPathRule.check(request, "/worksAudit.htm")><li onclick="Z.Location.href('worksAudit.htm');">精品审核</li></#if>
|
||||
<li onclick="Z.Location.href('worksList.htm');">作品列表</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 关键词搜索 -->
|
||||
<div class="z-mg-t20 z-h1 z-text-center">
|
||||
<span style="float:center;">
|
||||
<input id="searchinput" class="z-input z-w600 zi-h40 zi-bd-r-none" placeholder="输入关键词" value="" maxlength="20"><button type="button" class="z-button z-w80 z-h40 zi-bd-rd0 z-orange" onclick="Works.doSearchAjax('1' , searchinput.value, 'BEST')"><i class="z-font z-query"></i>查询</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<table class="z-table z-bordered z-pd6">
|
||||
<tr class="z-h40" bgcolor="${oddColor}">
|
||||
<td width="5%">类型:</td>
|
||||
<td width="*">
|
||||
<button id="nav_10086" type="button" data-options="group:prdType" class="z-button z-large z-bordered z-blue-bd z-hover <#if 10086 == prdTypeId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'nav_10086', 'BEST')">全部</button>
|
||||
<#for item : prdList>
|
||||
<button id="nav_${item.getTypeId()}" type="button" data-options="group:prdType" class="z-button z-large z-bordered z-blue-bd z-hover <#if item.getTypeId() == prdTypeId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'nav_${item.getTypeId()}', 'BEST')">${item.getTypeName()}</button>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="z-h40" bgcolor="#FFFFFF">
|
||||
<td>行业:</td>
|
||||
<td>
|
||||
<button id="ind_10087" type="button" data-options="group:industry" class="z-button z-large z-bordered z-blue-bd z-hover <#if 10087 == industryId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'ind_10087', 'BEST')">全部</button>
|
||||
<#for item : indList>
|
||||
<button id="ind_${item.getIndustryId()}" type="button" data-options="group:industry" class="z-button z-large z-bordered z-blue-bd z-hover <#if item.getIndustryId() == industryId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'ind_${item.getIndustryId()}', 'BEST')">${item.getIndustryName()}</button>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="resultWrap"></div>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,81 @@
|
||||
<script>
|
||||
<!--
|
||||
Z.onload(function()
|
||||
{//定义搜索框
|
||||
var search = new Z.SearchAutoList();
|
||||
search.elem = "searchinput";
|
||||
search.className = "DesignerPresenter";
|
||||
search.methodName = "doKeywordList";
|
||||
search.callback = function(){Works.doSearchAjax('1', this.value, 'GROUP');};
|
||||
search.execute();
|
||||
|
||||
doWorksSearch("1");
|
||||
})
|
||||
|
||||
function doWorksSearch(page)
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doWorksSearch");
|
||||
ajax.addParam("page", page);
|
||||
ajax.addParam("urlParam", "GROUP");
|
||||
ajax.setCallback("resultWrap");
|
||||
ajax.setLoading("resultWrap");
|
||||
ajax.execute();
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
|
||||
${Styles.src("/zinc/css/design_2018102301.css")}
|
||||
${Scripts.src("/zinc/js/works_20171030.js")}
|
||||
${Scripts.src("/zinc/js/zhiqim_search_auto_list.js")}
|
||||
${zhiqim_manager_breadcrumb_parent("/worksMy.htm", "我的作品", "小组作品")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-blue z-mg-b20">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.Location.href('worksMy.htm');">我的作品</li>
|
||||
<li onclick="Z.Location.href('worksCollect.htm');">我收藏的</li>
|
||||
<li onclick="Z.Location.href('worksBest.htm');">我的精品</li>
|
||||
<li onclick="Z.Location.href('worksShare.htm');">分享给我的</li>
|
||||
<li class="z-active">小组作品</li>
|
||||
<li onclick="Z.Location.href('allWorks.htm');">所有作品</li>
|
||||
<li onclick="Z.Location.href('bestWorks.htm');">精品作品</li>
|
||||
<#if ZmrPathRule.check(request, "/worksAudit.htm")><li onclick="Z.Location.href('worksAudit.htm');">精品审核</li></#if>
|
||||
<li onclick="Z.Location.href('worksList.htm');">作品列表</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 关键词搜索 -->
|
||||
<div class="z-mg-t20 z-h1 z-text-center">
|
||||
<span style="float:center;">
|
||||
<input id="searchinput" class="z-input z-w600 zi-h40 zi-bd-r-none" placeholder="输入关键词" value="" maxlength="20"><button type="button" class="z-button z-w80 z-h40 zi-bd-rd0 z-orange" onclick="Works.doSearchAjax('1' , searchinput.value, 'GROUP')"><i class="z-font z-query"></i>查询</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<table class="z-table z-bordered z-pd6">
|
||||
<tr class="z-h40" bgcolor="${oddColor}">
|
||||
<td width="5%">类型:</td>
|
||||
<td width="*">
|
||||
<button id="nav_10086" type="button" data-options="group:prdType" class="z-button z-large z-bordered z-blue-bd z-hover <#if 10086 == prdTypeId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'nav_10086', 'GROUP')">全部</button>
|
||||
<#for item : prdList>
|
||||
<button id="nav_${item.getTypeId()}" type="button" data-options="group:prdType" class="z-button z-large z-bordered z-blue-bd z-hover <#if item.getTypeId() == prdTypeId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'nav_${item.getTypeId()}', 'GROUP')">${item.getTypeName()}</button>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="z-h40" bgcolor="#FFFFFF">
|
||||
<td>行业:</td>
|
||||
<td>
|
||||
<button id="ind_10087" type="button" data-options="group:industry" class="z-button z-large z-bordered z-blue-bd z-hover <#if 10087 == industryId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'ind_10087', 'GROUP')">全部</button>
|
||||
<#for item : indList>
|
||||
<button id="ind_${item.getIndustryId()}" type="button" data-options="group:industry" class="z-button z-large z-bordered z-blue-bd z-hover <#if item.getIndustryId() == industryId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'ind_${item.getIndustryId()}', 'GROUP')">${item.getIndustryName()}</button>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="resultWrap"></div>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,209 @@
|
||||
<script>
|
||||
|
||||
//所有子行业 map 根据 行业 分组
|
||||
var subIndustryMap = new Z.HashMap();
|
||||
<#for key : subIndustryMap.keySet()>
|
||||
subIndustryMap.put('${key}',${Jsons.toString(subIndustryMap.get(key))});
|
||||
</#for>
|
||||
|
||||
//所有属性分类 map 根据 行业 分组
|
||||
var attributeCatMap = new Z.HashMap();
|
||||
<#for key : attributeCatMap.keySet()>
|
||||
attributeCatMap.put('${key}',${Jsons.toString(attributeCatMap.get(key))});
|
||||
</#for>
|
||||
|
||||
//所有属性分类 map 根据 分类 分组
|
||||
var attributeMap = new Z.HashMap();
|
||||
<#for key : attributeMap.keySet()>
|
||||
attributeMap.put('${key}',${Jsons.toString(attributeMap.get(key))});
|
||||
</#for>
|
||||
|
||||
|
||||
var indIdarr = Z.AR.toArray("${indIdarr}", ",");
|
||||
var attrIdarr = Z.AR.toArray("${attrIdarr}", ",");
|
||||
function doLabelIdSet(type, attaid, btn)
|
||||
{
|
||||
if(type == "industry")
|
||||
{
|
||||
if(Z.AR.contains(indIdarr, attaid))
|
||||
{
|
||||
Z.AR.remove(indIdarr, attaid);
|
||||
Z(btn).removeClass("z-active");
|
||||
}
|
||||
else
|
||||
{
|
||||
indIdarr.push(attaid);
|
||||
Z(btn).addClass("z-active");
|
||||
}
|
||||
}
|
||||
else if (type == "attribute")
|
||||
{
|
||||
if (Z.AR.contains(attrIdarr, attaid))
|
||||
{
|
||||
Z.AR.remove(attrIdarr, attaid);
|
||||
Z(btn).removeClass("z-active");
|
||||
}
|
||||
else
|
||||
{
|
||||
attrIdarr.push(attaid);
|
||||
Z(btn).addClass("z-active");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function doIndustrySelect()
|
||||
{//选择行业
|
||||
var dialog = new Z.Dialog();
|
||||
dialog.title = "选择行业";
|
||||
dialog.url = "industrySelect.htm" ;
|
||||
dialog.width = 360;
|
||||
dialog.height = 400;
|
||||
dialog.fixed = true;
|
||||
dialog.scroll = true;
|
||||
dialog.execute();
|
||||
}
|
||||
|
||||
var nativeIndustryId = '${works.getIndustryId()}';
|
||||
var nativeindIdarr = Z.AR.toArray("${indIdarr}", ",");
|
||||
var nativeattrIdarr = Z.AR.toArray("${attrIdarr}", ",");
|
||||
var selectIndustryId = nativeIndustryId;
|
||||
function doShowSubIndustry(industryId, industryName)
|
||||
{//显示子行业 industryId 父行业ID ,industryName父行业名
|
||||
Z("#industryId").val(industryName);
|
||||
selectIndustryId = industryId;
|
||||
//清空选中信息
|
||||
indIdarr = [];
|
||||
var subArr = subIndustryMap.get(""+industryId);
|
||||
var subListHtml = "";
|
||||
if(subArr != null && typeof(subArr) != "undefined" && subArr.length > 0)
|
||||
{
|
||||
Z.each(subArr, function(sub, i){
|
||||
var active = "";
|
||||
if(industryId == nativeIndustryId && Z.AR.contains(nativeindIdarr, ""+sub.industrySubId))
|
||||
{//如果切换回来 保存原来的选择
|
||||
active = "z-active";
|
||||
indIdarr.push(""+sub.industrySubId);
|
||||
}
|
||||
subListHtml += '<button name="subName" id="sub_'+sub.industrySubId+'" type="button" class="z-button z-large z-bordered z-blue-bd z-mg-r6 z-mg-t6 z-hover '+active+'" onclick="doLabelIdSet(\'industry\', \''+sub.industrySubId+'\',this)">'+sub.industrySubName+'</button>';
|
||||
});
|
||||
}
|
||||
Z("#subList").html(subListHtml);
|
||||
|
||||
|
||||
}
|
||||
|
||||
function doShowSubAttribute(industryId, industryName)
|
||||
{//显示 行业 关联标签属性
|
||||
|
||||
var attributeInfoHtml = "";
|
||||
//获取行业对应的所有分类
|
||||
var catList = attributeCatMap.get(""+industryId);
|
||||
|
||||
//清空属性选中信息
|
||||
attrIdarr = [];
|
||||
if(typeof(catList) != "undefined" && catList.hasOwnProperty("length") && catList.length > 0)
|
||||
{
|
||||
attributeInfoHtml += '<table class="z-table z-bordered z-pd6">';
|
||||
Z.each(catList, function(cat, i){
|
||||
var trColor = (i%2 == 0) ? "#f3fdfc" : "";
|
||||
attributeInfoHtml += '<tr class="z-h40" bgcolor="'+trColor+'">';
|
||||
attributeInfoHtml += '<td width="10%">'+cat.attributeCatName+':</td>';
|
||||
attributeInfoHtml += '<td width="*">';
|
||||
|
||||
//获取 行业下分类 下的 属性
|
||||
var attributeList = attributeMap.get(""+cat.attributeCatId);
|
||||
if(typeof(attributeList) != "undefined" && attributeList.hasOwnProperty("length") && attributeList.length > 0)
|
||||
{
|
||||
Z.each(attributeList, function(attr, j){
|
||||
var active = "";
|
||||
if(industryId == nativeIndustryId && Z.AR.contains(nativeattrIdarr, ""+attr.attributeId))
|
||||
{//如果切换回来 保存原来的选择
|
||||
active = "z-active";
|
||||
attrIdarr.push(""+attr.attributeId);
|
||||
}
|
||||
|
||||
attributeInfoHtml += '<button name="attrId" id="sub_'+attr.attributeId+'" type="button" class="z-button z-large z-bordered z-blue-bd z-mg-r6 z-mg-t6 z-hover '+active+'" onclick="doLabelIdSet(\'attribute\', \''+attr.attributeId+'\',this)">'+attr.attributeName+'</button>';
|
||||
});
|
||||
}
|
||||
attributeInfoHtml += '</td>';
|
||||
attributeInfoHtml += '</tr>';
|
||||
});
|
||||
attributeInfoHtml += '</table>';
|
||||
}
|
||||
|
||||
Z("#attributeInfo").html(attributeInfoHtml);
|
||||
}
|
||||
|
||||
function doLabelRelation()
|
||||
{//提交关联操作
|
||||
|
||||
if(indIdarr.length == 0)
|
||||
{
|
||||
Z.alert("请选择一个或多个子行业");
|
||||
return;
|
||||
}
|
||||
|
||||
if(attrIdarr.length == 0)
|
||||
{
|
||||
Z.alert("请选择 一个或多个属性");
|
||||
return;
|
||||
}
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doWorksLabelExec");
|
||||
ajax.addParam('${works.getWorksId()}');
|
||||
ajax.addParam('${works.getPrdTypeId()}');
|
||||
ajax.addParam(selectIndustryId);
|
||||
ajax.addParam(Z.AR.toString(indIdarr, ","));
|
||||
ajax.addParam(Z.AR.toString(attrIdarr, ","));
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("关联成功", function(){parent.location.reload();})
|
||||
});
|
||||
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<div class="z-w100p z-overflow-x-hidden z-overflow-y-scroll" style="height:516px" >
|
||||
${zhiqim_manager_title("关联标签行业")}
|
||||
<table class="z-table z-bordered z-pd6">
|
||||
<tr class="z-h40" bgcolor="${oddColor}">
|
||||
<td width="10%" >产品类型:</td>
|
||||
<td width="*"> ${Global.get(ProductTypeCache.class).getName(works.getPrdTypeId())}</td>
|
||||
</tr>
|
||||
<tr class="z-h40" bgcolor="#FFFFFF">
|
||||
<td>标签行业:</td>
|
||||
<td><input id="industryId" name="industryId" class="z-input fi-bd-none fi-shadow-none z-blue z-w120 " type="text" value="${Global.get(DesignIndustryCache.class).getIndustryName(works.getIndustryId())}" readonly> <button class="z-button z-blue" onclick="doIndustrySelect();">修改行业</button></td>
|
||||
</tr>
|
||||
<tr class="z-h40" bgcolor="${oddColor}">
|
||||
<td>标签子行业:</td>
|
||||
<td id="subList">
|
||||
<#for item : inSubList>
|
||||
<button name="subName" id="sub_${item.getIndustrySubId()}" type="button" class="z-button z-large z-bordered z-mg-r6 z-mg-t6 z-blue-bd z-hover <#if subsList.contains(item.getIndustrySubId()+"")>z-active</#if>" onclick="doLabelIdSet('industry', '${item.getIndustrySubId()}',this)">${item.getIndustrySubName()}</button>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
</table><br>
|
||||
${zhiqim_manager_title("关联标签属性")}
|
||||
<div id ="attributeInfo">
|
||||
<table class="z-table z-bordered z-pd6">
|
||||
<#for item : attrCatList>
|
||||
<tr class="z-h40" bgcolor="<#if (item_index%2)==0>${oddColor}</#if>">
|
||||
<td width="10%">${item.getAttributeCatName()}:</td>
|
||||
<td width="*">
|
||||
<#for aitem : map.get(item.getAttributeCatId())>
|
||||
<button name="attrId" id="sub_${aitem.getAttributeId()}" type="button" class="z-button z-large z-mg-r6 z-mg-t6 z-bordered z-blue-bd z-hover <#if attrList.contains(aitem.getAttributeId()+"")>z-active</#if>" onclick="Z.EL.toggleClass(this, 'z-active');doLabelIdSet('attribute', '${aitem.getAttributeId()}')">${aitem.getAttributeName()}</button>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
</div>
|
||||
<div class="z-absolute z-w100p z-h80 z-text-center z-bg-gray" style="bottom:0;left:0">
|
||||
<button class="z-button ${styleColor} z-w150 z-h50 z-mg-t15 z-mg-l5 z-mg-l20 fi-px22" type="button" onclick="doLabelRelation();">提交</button>
|
||||
<button class="z-button z-w150 z-h50 z-mg-t15 z-mg-l5 z-mg-l20 fi-px22" type="button" onclick="parent.location.reload();">关闭</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,38 @@
|
||||
<#def designatedPath="/works/materialCatList.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history ("/works/materialCatList.htm")}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent ("/works/materialCatList.htm", "分类管理", "增加分类")}
|
||||
<script>
|
||||
|
||||
</script>
|
||||
<div class="content">
|
||||
${zhiqim_manager_title ("增加分类")}
|
||||
|
||||
<form name="theForm" action="/works/materialCatInsert.htm" method="post" onSubmit="return validateForm(this);">
|
||||
<table class="z-table z-bordered z-pd6 z-bg-white">
|
||||
<tr class="z-h40" >
|
||||
<td width="30%">分类名称:</td>
|
||||
<td width="*">
|
||||
<input name="catName" input class="z-input z-w200 ${zmr_color_class}" value="" maxlength="20">
|
||||
<font color=red>*</font></td>
|
||||
</tr>
|
||||
<tr class="z-h40" >
|
||||
<td width="30%">状态:</td>
|
||||
<td width="*">
|
||||
<select name="catStatus" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}" >
|
||||
<option value="0">正常</option>
|
||||
<option value="1">停用</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="z-h40" >
|
||||
<td width="30%">序号:</td>
|
||||
<td width="*">
|
||||
<input name="catSeq" input class="z-input z-w200 ${zmr_color_class}" value="" maxlength="5">
|
||||
<font color=red>*</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
</div>
|
||||
@@ -0,0 +1,42 @@
|
||||
<#def designatedPath="/works/materialCatList.htm"/>
|
||||
${zhiqim_manager_breadcrumb ("分类管理")}
|
||||
|
||||
<div class="content">
|
||||
<#-- 导航栏 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 z-blue">
|
||||
<nav>
|
||||
<ul>
|
||||
<#if ZmrPathRule.check(request, "/works/materialCatList.htm")><li class="z-active">分类管理</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/works/materialContList.htm")><li onclick="Z.Location.href('/works/materialContList.htm');">素材管理</li></#if>
|
||||
</ul>
|
||||
<div class="z-text-right z-mg-t10 z-mg-r5">
|
||||
<button class="z-button z-h30 ${zmr_color_class}" onclick="Z.Location.href('/works/materialCatAdd.htm');"><i class="z-font z-add"></i> 增加分类</button>
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.Location.check('/works/materialCatModify.htm', 'catId');"><i class="z-font z-modify"></i>修改分类</button>
|
||||
<button class="z-button z-red" onclick="Z.L.confirm('/works/materialCatDelete.htm', '是否删除该分类?', 'catId');"><i class="z-font z-delete"></i>删除分类</button>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<table class="z-table z-bordered z-text-center z-pd6 z-bg-white">
|
||||
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="10%">选择</td>
|
||||
<td width="15%">分类编码</td>
|
||||
<td width="*">名称</td>
|
||||
<td width="15%">状态</td>
|
||||
<td width="15%">序号</td>
|
||||
</tr>
|
||||
<#if result.size() == 0>
|
||||
${zhiqim_manager_no_record(5, "暂时没有分类信息")}
|
||||
</#if>
|
||||
<#for item : result>
|
||||
<tr valign="middle" bgcolor=<#if item_index % 2 == 0>${zmr_tr_odd_bgcolor}<#else>${zmr_tr_even_bgcolor}</#if> class="z-text-center z-h60">
|
||||
<td><input name="catId" type="radio" data-role="z-radio" data-class="z-blue" value="${item.getCatId()}"></td>
|
||||
<td>${item.getCatId()}</td>
|
||||
<td>${item.getCatName()}</td>
|
||||
<td><#if item.getCatStatus() == 0>正常<#else><font class="z-text-red">停用</font></#if></td>
|
||||
<td>${item.getCatSeq()}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_list(result.size())}
|
||||
</div>
|
||||
@@ -0,0 +1,41 @@
|
||||
<#def designatedPath="/works/materialCatList.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history ("/works/materialCatList.htm")}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent ("/works/materialCatList.htm", "分类管理", "修改分类")}
|
||||
|
||||
<div class="content">
|
||||
${zhiqim_manager_title ("修改分类")}
|
||||
|
||||
<form name="theForm" action="/works/materialCatUpdate.htm" method="post" onSubmit="return validateForm(this);">
|
||||
<input type="hidden" name="catId" value="${item.getCatId()}">
|
||||
<table class="z-table z-bordered z-pd6 z-bg-white">
|
||||
<tr class="z-h40" >
|
||||
<td width="30%">分类编号:</td>
|
||||
<td width="*">${item.getCatId()}</td>
|
||||
</tr>
|
||||
<tr class="z-h40" >
|
||||
<td width="30%">状态:</td>
|
||||
<td width="*">
|
||||
<select name="catStatus" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}" >
|
||||
<option value="0" <#if item.getCatStatus()==0>selected</#if>>正常</option>
|
||||
<option value="1" <#if item.getCatStatus()==1>selected</#if>>停用</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="z-h40" >
|
||||
<td width="30%">分类名称:</td>
|
||||
<td width="*">
|
||||
<input name="catName" input class="z-input z-w200 ${zmr_color_class}" value="${item.getCatName()}" maxlength="20">
|
||||
<font color=red>*</font></td>
|
||||
</tr>
|
||||
<tr class="z-h40" >
|
||||
<td width="30%">序号:</td>
|
||||
<td width="*">
|
||||
<input name="catSeq" input class="z-input z-w200 ${zmr_color_class}" value="${item.getCatSeq()}" maxlength="5">
|
||||
<font color=red>*</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
</div>
|
||||
@@ -0,0 +1,140 @@
|
||||
${request.getValidateScript()}
|
||||
${Scripts.src(zhiqim_uploadlarge.js)}
|
||||
|
||||
<div class="content">
|
||||
<script>
|
||||
Z.onload(function()
|
||||
{//初始化上传组件
|
||||
initUploaderMaterial();
|
||||
initUploaderThumb();
|
||||
});
|
||||
|
||||
var mid = -1;
|
||||
function initUploaderMaterial()
|
||||
{
|
||||
var ext = "";
|
||||
var mUpload = new Z.UploadLarge();
|
||||
mUpload.elem = "upload_material";
|
||||
mUpload.fileMd5Target = 0;
|
||||
mUpload.maxSizeMiB = 30;
|
||||
mUpload.contextPath = "${context.getContextPath()}";
|
||||
mUpload.setFileDir('${uploadPath}');
|
||||
mUpload.onSelected = function(fileName, fileLength)
|
||||
{
|
||||
var ind = fileName.lastIndexOf(".");
|
||||
if(ind < 0)
|
||||
{
|
||||
Z.failure("不合法的文件名格式");
|
||||
return false;
|
||||
}
|
||||
|
||||
ext = fileName.substring(fileName.lastIndexOf(".")+1);
|
||||
if (!(ext == "cdr" || ext == "cmx" || ext == "png" || ext == "jpg" || ext == "jpeg"))
|
||||
{
|
||||
Z.failure("素材文件必须是cdr、cmx、png、jpg、jpeg格式文件");
|
||||
return false;
|
||||
}
|
||||
};
|
||||
mUpload.onCompleted = function(fileId){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doUploadWorksMaterial");
|
||||
ajax.addParam("fileId", fileId);
|
||||
ajax.addParam("catId", Z("#catId").val());
|
||||
ajax.addParam("materialStatus", Z("#materialStatus").val());
|
||||
ajax.addParam("keywords", Z("#keywords").val());
|
||||
ajax.setFailure(function(){
|
||||
mUpload.$delete.click();
|
||||
Z.failure(this.responseText);
|
||||
});
|
||||
ajax.setSuccess(function(){
|
||||
if(ext == "cdr" || ext == "cmx")
|
||||
{
|
||||
mid = ajax.responseText;
|
||||
Z.success("素材上传成功,请继续上传效果图");
|
||||
}
|
||||
else
|
||||
Z.success("素材上传成功", function(){parent.location.reload();Z.Dialog.close();});
|
||||
});
|
||||
ajax.setLoading(document);
|
||||
ajax.execute();
|
||||
};
|
||||
|
||||
mUpload.execute();
|
||||
}
|
||||
|
||||
function initUploaderThumb()
|
||||
{//上传效果图
|
||||
var thumbUpload = new Z.UploadLarge();
|
||||
thumbUpload.elem = "upload_thumb";
|
||||
thumbUpload.fileMd5Target = 0;
|
||||
thumbUpload.maxSizeMiB = 10;
|
||||
thumbUpload.contextPath = "${context.getContextPath()}";
|
||||
thumbUpload.setFileFormatExt("image/jpg,image/png,image/jpeg");
|
||||
thumbUpload.setFileDir('${uploadPath}' + "/thumb");
|
||||
thumbUpload.onSelected = function(fileName, fileLength)
|
||||
{
|
||||
if(mid == -1 || mid == null || mid == "")
|
||||
{
|
||||
Z.failure("请先上传素材文件");
|
||||
return false;
|
||||
}
|
||||
};
|
||||
thumbUpload.onCompleted = function(fileId){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doUploadWorksMaterialThumb");
|
||||
ajax.addParam("mid", mid);
|
||||
ajax.addParam("fileId", fileId);
|
||||
ajax.setFailure(function(){
|
||||
thumbUpload.$delete.click();
|
||||
Z.failure(this.responseText);
|
||||
});
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("效果图上传成功", function(){parent.location.reload();Z.Dialog.close();});
|
||||
});
|
||||
ajax.setLoading(document);
|
||||
ajax.execute();
|
||||
};
|
||||
|
||||
thumbUpload.execute();
|
||||
}
|
||||
</script>
|
||||
<table class="z-table z-bordered z-pd6 z-bg-white">
|
||||
<tr class="z-h40">
|
||||
<td width="50%">素材分类:</td>
|
||||
<td width="*">
|
||||
<select id="catId" name="catId" data-role="z-select" class="z-select z-w200" style="visibility: hidden; margin: 0px;" >
|
||||
<#for cat : Global.get(DesMaterialCatCache.class).list()>
|
||||
<option value="${cat.getCatId()}">${cat.getCatName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
<font class="z-color-red"> *</font></td>
|
||||
</tr>
|
||||
<tr class="z-h40">
|
||||
<td>素材状态:</td>
|
||||
<td>
|
||||
<select id="materialStatus" name="materialStatus" data-role="z-select" class="z-select z-w200" style="visibility: hidden; margin: 0px;" >
|
||||
<option value="0">正常</option>
|
||||
<option value="1">停用</option>
|
||||
</select>
|
||||
<font class="z-color-red"> *</font></td>
|
||||
</tr>
|
||||
<tr class="z-h40" >
|
||||
<td>关键字(多个可空格分隔):</td>
|
||||
<td><input id="keywords" name="keywords" input class="z-input z-w200 ${zmr_color_class}" value=""></td>
|
||||
</tr>
|
||||
<tr class="z-h40">
|
||||
<td>选择素材(上传cdr时,请上传效果图):</td>
|
||||
<td>
|
||||
<button id="upload_material" type="button" class="z-button z-w100 z-blue">上传素材</button>
|
||||
<font class="z-color-red"> *</font></td>
|
||||
</tr>
|
||||
<tr class="z-h40">
|
||||
<td>选择效果图:</td>
|
||||
<td>
|
||||
<button id="upload_thumb" type="button" class="z-button z-w100 z-blue">上传效果图</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@@ -0,0 +1,127 @@
|
||||
<#def designatedPath="/works/materialCatList.htm"/>
|
||||
<script language="javascript">
|
||||
<!--
|
||||
${Scripts.doSelectBox()}
|
||||
${Scripts.doClearForm()}
|
||||
|
||||
function doUpdateKeywords(mid, keywords)
|
||||
{//打标签
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doUpdateMaterialKeywords");
|
||||
ajax.addParam("mid", mid);
|
||||
ajax.addParam("keywords", keywords);
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function doUpdateStatus(mid, resStatus)
|
||||
{//修改状态
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doUpdateMaterialStatus");
|
||||
ajax.addParam("mid", mid);
|
||||
ajax.addParam("resStatus", resStatus);
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function doUpdateSeq(mid, resSeq)
|
||||
{//修改序号
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doUpdateMaterialSeq");
|
||||
ajax.addParam("mid", mid);
|
||||
ajax.addParam("resSeq", resSeq);
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function doDeleteWorksMaterial(mid)
|
||||
{//删除作品
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doDeleteWorksMaterial");
|
||||
ajax.addParam("mid", mid);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.tips("删除成功");
|
||||
Z.L.reload();
|
||||
});
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function doDialogWorksMaterial()
|
||||
{//上传作品素材
|
||||
var dialog = new Z.Dialog();
|
||||
dialog.shadow = true;
|
||||
dialog.title = "上传作品素材";
|
||||
dialog.fixed = true;
|
||||
|
||||
dialog.url = "/works/materialContAdd.htm";
|
||||
dialog.width = Z.D.clientWidth()-600;
|
||||
dialog.height =Z.D.clientHeight()-400;
|
||||
dialog.execute();
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
|
||||
${zhiqim_manager_breadcrumb("素材列表")}
|
||||
|
||||
<div class="content">
|
||||
<#-- 导航栏 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 z-blue">
|
||||
<nav>
|
||||
<ul>
|
||||
<#if ZmrPathRule.check(request, "/works/materialCatList.htm")><li onclick="Z.Location.href('/works/materialCatList.htm');">分类管理</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/works/materialContList.htm")><li class="z-active">素材管理</li></#if>
|
||||
</ul>
|
||||
<div class="z-float-left z-mg10">
|
||||
<form name="theForm" method="post" action="/works/materialContList.htm">
|
||||
<select id="catId" name="catId" class="z-float-left z-select z-w100" data-role="z-select" data-class="${zmr_color_class}" >
|
||||
<option value="">全部</option>
|
||||
<#for cat : Global.get(DesMaterialCatCache.class).list()>
|
||||
<option value="${cat.getCatId()}" <#if cat.getCatId() == catId>selected</#if>>${cat.getCatName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
<input name="keywords" class="z-float-left ${zmr_color_class} z-input z-w150 z-mg-l4" value="${keywords}" maxlength="16" placeholder="关键字">
|
||||
<button class="z-float-left z-button z-w80 zi-bd-rd0 z-blue"><i class="z-font z-query"></i>查询</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="z-text-right z-mg-t10 z-mg-r5">
|
||||
<button class="z-button z-h30 ${zmr_color_class}" onclick="doDialogWorksMaterial();"><i class="z-font z-add"></i> 添加素材</button>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<table class="z-table z-bordered z-bg-white z-pd6">
|
||||
<tr class="z-text-center z-h40 z-bg-gray">
|
||||
<td width=80>选择</td>
|
||||
<td width="100">分类</td>
|
||||
<td width="100">状态</td>
|
||||
<td width="100">序号</td>
|
||||
<td width="15%">关键字</td>
|
||||
<td width="80">文件格式</td>
|
||||
<td width="*">预览图</td>
|
||||
<td width="80">操作</td>
|
||||
</tr>
|
||||
|
||||
<#if pageResult.size() == 0>
|
||||
${zhiqim_manager_no_record (10, "暂时没有素材信息")}
|
||||
</#if>
|
||||
<#for item : pageResult.list()>
|
||||
<tr valign="middle" bgcolor=<#if item_index % 2 == 0>${zmr_tr_odd_bgcolor}<#else>${zmr_tr_even_bgcolor}</#if> class="z-text-center z-h60">
|
||||
<td><input name="mid" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getMid()}"></td>
|
||||
<td>${Global.get(DesMaterialCatCache.class).name(item.getCatId())}</td>
|
||||
<td>
|
||||
<select class="z-select z-blue" onchange="doUpdateStatus(${item.getMid()}, this.value);">
|
||||
<option value="0" <#if item.getMaterialStatus()=0>selected</#if>>正常</option>
|
||||
<option value="1" <#if item.getMaterialStatus()=1>selected</#if> class="z-text-red"><font class="z-text-red">停用</font></option>
|
||||
</select></td>
|
||||
<td><input class="z-input z-w100" value="${item.getMaterialSeq()}" onblur="doUpdateSeq(${item.getMid()}, this.value);" data-options="type:Integer;paste:true;" ></td>
|
||||
<td><input class="z-input z-w200" value="${item.getKeywords()}" onblur="doUpdateKeywords(${item.getMid()}, this.value);"></td>
|
||||
<td>${item.getMaterialSuffix()}</td>
|
||||
<td><#if Validates.isNotEmpty(item.getThumbUrl())><img src="${item.getThumbUrl()}" style="max-width:70px;"></#if></td>
|
||||
<td><button class="z-button z-h30 ${zmr_color_class}" onclick="doDeleteWorksMaterial('${item.getMid()}');">删除</button></td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging (pageResult, "/works/materialContList.htm")}
|
||||
</div>
|
||||
@@ -0,0 +1,40 @@
|
||||
<#def designatedPath="/works/materialCatList.htm"/>
|
||||
${request.getValidateScript()}
|
||||
<script>
|
||||
|
||||
</script>
|
||||
${zhiqim_manager_history ("/works/materialContList.htm")}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent ("/works/materialContList.htm", "素材管理", "修改素材")}
|
||||
|
||||
<div class="content">
|
||||
${zhiqim_manager_title ("修改素材")}
|
||||
|
||||
<form name="theForm" action="/works/materialContUpdate.htm" method="post">
|
||||
<input type="hidden" name="mid" value="${item.getMid()}">
|
||||
<table class="z-table z-bordered z-pd6 z-bg-white">
|
||||
<tr class="z-h40">
|
||||
<td>素材状态:</td>
|
||||
<td>
|
||||
<select name="materialStatus" data-role="z-select" class="z-select z-w200" style="visibility: hidden; margin: 0px;" >
|
||||
<option value="0" <#if item.getMaterialStatus()==0>selected</#if>>正常</option>
|
||||
<option value="1" <#if item.getMaterialStatus()==1>selected</#if>>停用</option>
|
||||
</select>
|
||||
<font class="z-color-red"> *</font></td>
|
||||
</tr>
|
||||
<tr class="z-h40" >
|
||||
<td width="30%">关键字(多个可空格分隔):</td>
|
||||
<td width="*">
|
||||
<input name="keywords" input class="z-input z-w200 ${zmr_color_class}" value="${item.getKeywords()}">
|
||||
<font class="z-color-red"> *</font></td>
|
||||
</tr>
|
||||
<tr class="z-h40" >
|
||||
<td width="30%">序号:</td>
|
||||
<td width="*">
|
||||
<input name="materialSeq" input class="z-input z-w200 ${zmr_color_class}" value="${item.getMaterialSeq()}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
</div>
|
||||
@@ -0,0 +1,100 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>秒绘设计模板库</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<meta name="Keywords" content="秒绘设计 扬彩设计 作品库"/>
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
|
||||
<link rel="stylesheet" type="text/css" href="/service/res/zhiqim_v1.5.0.r2019010101.css">
|
||||
<script src="https://zhiqim-org.oss-cn-shenzhen.aliyuncs.com/service/res/zhiqim_v1.5.0.r2019010101.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/ztmpl/zhiqim_manager/00_default/default_2019010101.css">
|
||||
<script src="https://zhiqim-org.oss-cn-shenzhen.aliyuncs.com/ztmpl/zhiqim_manager/00_default/default_2019010101.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="mainbody" style="margin-left:0;">
|
||||
|
||||
<script>
|
||||
Z.onload(function()
|
||||
{//定义搜索框
|
||||
doWorksSearch("1");
|
||||
})
|
||||
|
||||
function doWorksSearch(page)
|
||||
{
|
||||
Works.doSearchAjaxForPC(page);
|
||||
}
|
||||
|
||||
//复制作品id
|
||||
function doCopyItemIDInfo(worksId)
|
||||
{
|
||||
Z.copy(Z("#worksId_"+worksId).val());
|
||||
top.Z.tips("复制成功");
|
||||
}
|
||||
</script>
|
||||
|
||||
${Styles.src("/zinc/css/design_2018102301.css")}
|
||||
${Scripts.src("/zinc/js/works_20171030.js")}
|
||||
${Scripts.src("/zinc/js/zhiqim_search_auto_list.js")}
|
||||
<div class="content">
|
||||
<#-- 关键词搜索 -->
|
||||
<div class="z-mg-t10 z-h1 z-text-center">
|
||||
<span style="float:center;">
|
||||
<input id="searchinput" class="z-input z-w700 zi-h40 zi-bd-r-none" placeholder="输入关键词" value="" maxlength="20"><button type="button" class="z-button z-w80 z-h40 zi-bd-rd0 z-orange" onclick="Works.doSearchAjaxForPC('1' , searchinput.value, 'BEST')"><i class="z-font z-query"></i>查询</button>
|
||||
</span>
|
||||
</div>
|
||||
<input id="industryId" type="hidden">
|
||||
<input id="prdTypeId" type="hidden">
|
||||
<input id="sort" type="hidden">
|
||||
<input id="oddEven" type="hidden">
|
||||
<table id="pcWorksTb" class="z-table z-bordered z-pd6">
|
||||
<tr class="z-h40" bgcolor="#FFFFFF">
|
||||
<td width="5%">类型:</td>
|
||||
<td width="*">
|
||||
<button id="nav_10086" type="button" data-options="group:prdType" class="z-button z-large z-bordered z-blue-bd z-hover" onclick="Z.EL.toggleClass(this,'z-active');Z('#prdTypeId').val('-1');Works.doSearchAjaxForPC('1');">全部</button>
|
||||
<#for item : DesignTypeDao.listByPicture()>
|
||||
<#if item.getTypeName() == "画册" || item.getTypeName() == "名片" || item.getTypeName() == "彩页" || item.getTypeName() == "优惠券" || item.getTypeName() == "透明PVC名片" || item.getTypeName() == "电子传单">
|
||||
<button id="nav_${item.getTypeId()}" type="button" data-options="group:prdType" class="z-button z-large z-bordered z-blue-bd z-mg-t3 z-hover" onclick="Z.EL.toggleClass(this,'z-active');Z('#prdTypeId').val('${item.getTypeId()}');Works.doSearchAjaxForPC('1')">${item.getTypeName()}</button>
|
||||
</#if>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="z-h40" bgcolor="#FFFFFF">
|
||||
<td>所属行业:</td>
|
||||
<td>
|
||||
<button id="ind_10087" type="button" data-options="group:industry" class="z-button z-large z-bordered z-blue-bd z-hover <#if -1 == industryId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Z('#industryId').val('-1');Works.doSearchAjaxForPC('1')">全部</button>
|
||||
<#for item : indList>
|
||||
<button id="ind_${item.getIndustryId()}" type="button" data-options="group:industry" class="z-button z-large z-bordered z-blue-bd z-hover <#if item.getIndustryId() == industryId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Z('#industryId').val('${item.getIndustryId()}');Works.doSearchAjaxForPC('1')">${item.getIndustryName()}</button>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="z-h40" bgcolor="#FFFFFF">
|
||||
<td width="5%">排序:</td>
|
||||
<td width="*">
|
||||
<!-- <button type="button" data-options="group:sort" class="z-button z-large z-bordered z-blue-bd z-hover" onclick="Z.EL.toggleClass(this,'z-active');Z('#sort').val('0');doSearchAjax('1');">默认</button> -->
|
||||
<button type="button" style="width:100px;" data-options="group:sort" class="z-button z-large z-bordered z-blue-bd z-hover" onclick="Z.EL.toggleClass(this,'z-active');Z('#sort').val('3');Works.doSearchAjaxForPC('1');">最热</button>
|
||||
<button type="button" style="width:100px;" data-options="group:sort" class="z-button z-large z-bordered z-blue-bd z-hover" onclick="Z.EL.toggleClass(this,'z-active');Z('#sort').val('1');Works.doSearchAjaxForPC('1');">最新</button>
|
||||
<button type="button" style="width:100px;" data-options="group:sort" class="z-button z-large z-bordered z-blue-bd z-hover" onclick="Z.EL.toggleClass(this,'z-active');Z('#sort').val('4');Works.doSearchAjaxForPC('1');">精品</button>
|
||||
<!-- <button type="button" data-options="group:sort" class="z-button z-large z-bordered z-blue-bd z-hover" onclick="Z.EL.toggleClass(this,'z-active');Z('#sort').val('2');doSearchAjax('1');">ID升序</button> -->
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="pcWorksTrId" class="z-h40" bgcolor="#FFFFFF" style="display:none">
|
||||
<td>模板版式:</td>
|
||||
<td width="*">
|
||||
<button type="button" data-options="group:oddEven" class="z-button z-large z-bordered z-blue-bd z-mg-t3 z-hover z-active" onclick="Z.EL.toggleClass(this,'z-active');Z('#oddEven').val('-1');Works.doSearchAjaxForPC('1');">全部</button>
|
||||
<button type="button" data-options="group:oddEven" class="z-button z-large z-bordered z-blue-bd z-mg-t3 z-hover" onclick="Z.EL.toggleClass(this,'z-active');Z('#oddEven').val('0');Works.doSearchAjaxForPC('1');">横版</button>
|
||||
<button type="button" data-options="group:oddEven" class="z-button z-large z-bordered z-blue-bd z-mg-t3 z-hover" onclick="Z.EL.toggleClass(this,'z-active');Z('#oddEven').val('1');Works.doSearchAjaxForPC('1');">竖版</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="resultWrap"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,39 @@
|
||||
<div class="srcFileList">
|
||||
<#if pageResult.total()!= 0>
|
||||
<#for item : pageResult.list()>
|
||||
<div id="item_${item.getMediaId()}" class="item" style="width:370px;height:*;">
|
||||
<div class="z-bg-white z-pointer" onclick="Works.doWorksShowPc('${item.getMediaId()}');">
|
||||
<#for path : Arrays.toStringArray(item.getMediaUrl())>
|
||||
<#if path_index lt 1>
|
||||
<img src="${path}"/>
|
||||
</#if>
|
||||
</#for>
|
||||
<input name="worksId_${item.getMediaId()}" id="worksId_${item.getMediaId()}" value="${item.getMediaId()}" type="hidden" >
|
||||
</div>
|
||||
<div>
|
||||
<div>
|
||||
<p style="display:block;float:left;" class="z-pointer">${item.getMediaName()}</p>
|
||||
<p style="display:block;float:right;" class="z-pointer"><#if item.getTypeId()=3>P数:<#else>面数:</#if>${item.getPageValue()}</p><br/>
|
||||
</div>
|
||||
<br/>
|
||||
<div>
|
||||
<p style="display:block;float:left;" class="z-pointer">${item.getWidthMm()}X${item.getHeightMm()}mm</p>
|
||||
<p style="display:block;float:left;" class="z-pointer"><#if item.getOddEven()=0>横版<#elseif item.getOddEven()=1>竖版</#if></p>
|
||||
<p style="display:block;float:right;" class="z-pointer" onclick="doCopyItemIDInfo('${item.getMediaId()}');" title="点击复制ID号">ID:${item.getMediaId()}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</#for>
|
||||
</div>
|
||||
<div style="width:100%;text-align:center;margin-bottom:35px;">
|
||||
<table class="z-table z-bordered fi-bd-t-none z-bg-white">
|
||||
<tr class="z-h50">
|
||||
<td><div class="z-float-right z-mg-r10">${PagingGo.toHtmlClick(pageResult, "doWorksSearch")}</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<#else>
|
||||
<div style="width:100%;text-align:center;margin-bottom:35px;">
|
||||
无作品数据
|
||||
</div>
|
||||
</#if>
|
||||
@@ -0,0 +1,33 @@
|
||||
<div class="srcFileList">
|
||||
<#if pageResult.total()!= 0>
|
||||
<#for item : pageResult.list()>
|
||||
<div id="item_${item.getWorksId()}" class="item" style="width:370px;height:490px;">
|
||||
<div class="z-bg-white z-pointer" onclick="Works.doWorksShowPc('${item.getWorksId()}');">
|
||||
<#for path : Arrays.toStringArray(item.getThumbImagePath())>
|
||||
<#if path_index lt 1>
|
||||
<img src="${path}"/>
|
||||
</#if>
|
||||
</#for>
|
||||
</div>
|
||||
<input name="worksId_${item.getWorksId()}" id="worksId_${item.getWorksId()}" value="${item.getWorksId()}" type="hidden" >
|
||||
<span style="display:block;text-align:right;" class="z-pointer" onclick="doCopyItemIDInfo('${item.getWorksId()}');" title="点击复制ID号">ID:${item.getWorksId()}</span>
|
||||
</div>
|
||||
</#for>
|
||||
</div>
|
||||
<div style="width:100%;text-align:center;margin-bottom:35px;">
|
||||
<table class="z-table z-bordered fi-bd-t-none z-bg-white">
|
||||
<tr class="z-h50">
|
||||
<td><div class="z-float-right z-mg-r10">${PagingGo.toHtmlClick(pageResult, "Works.doSearchAjaxForPC")}</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<input name="prdTypeId" id="prdTypeId" type="hidden" value="${prdTypeId}"/>
|
||||
<input name="industryId" id="industryId" type="hidden" value="${industryId}"/>
|
||||
<input name="urlParam" id="urlParam" type="hidden" value="${urlParam}"/>
|
||||
<#else>
|
||||
<div style="width:100%;text-align:center;margin-bottom:35px;">
|
||||
无作品数据
|
||||
</div>
|
||||
</#if>
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
<div class="srcFileList">
|
||||
<#if pageResult.total()!= 0>
|
||||
<#for item : pageResult.list()>
|
||||
<div id="item_${item.getWorksId()}" class="item" style="width:370px;height:490px;">
|
||||
<div class="z-bg-white z-pointer <#if item.getWorksType() == 1>bestItem</#if><#if item.getWorksType() == 3>modelItem</#if>" onclick="Works.doWorksShow('${item.getWorksId()}');">
|
||||
<#for path : Arrays.toStringArray(item.getThumbImagePath())>
|
||||
<#if path_index lt 1>
|
||||
<img style="max-width:300px;" src="${path}"/>
|
||||
</#if>
|
||||
</#for>
|
||||
<#if item.getWorksType() == 3>
|
||||
<span class="modelItem-info z-absolute">${item.getTemplateId()}</span>
|
||||
</#if>
|
||||
<#if Validates.isEqual(param, "AUDIT")>
|
||||
<span class="itemCtrBar z-absolute">
|
||||
<button class="z-button z-small z-blue z-float-left" onclick="confirmItemAdd(event, '${item.getWorksId()}', 'yes');"><i class="z-font z-px12 z-success"></i>同意</button>
|
||||
<button class="z-button z-small z-red z-float-right" onclick="cancelItemAdd(event, '${item.getWorksId()}', 'no');"><i class="z-font z-px12 z-error"></i>拒绝</button>
|
||||
</span>
|
||||
</#if>
|
||||
</div>
|
||||
<span style="display:block;text-align:right;">ID:${item.getWorksId()}</span>
|
||||
</div>
|
||||
</#for>
|
||||
</div>
|
||||
<#if Validates.isEqual(apple, "BEST")>
|
||||
<!--申请精品按钮 start-->
|
||||
<div class="applyEssenceBtn z-fixed" onclick="applyEssence(this);">
|
||||
<span class=""><i class="z-font z-flower"></i><br>设计模板</span>
|
||||
<span class="" onclick="requestBest_cancel(event);"><i class="z-font z-error"></i><br>取消选择</span>
|
||||
</span>
|
||||
</div>
|
||||
<!--申请精品按钮 end-->
|
||||
</#if>
|
||||
<div style="width:100%;text-align:center;margin-bottom:35px;">
|
||||
<table class="z-table z-bordered fi-bd-t-none z-bg-white">
|
||||
<tr class="z-h50">
|
||||
<td><div class="z-float-right z-mg-r10">${PagingGo.toHtmlClick(pageResult, "doWorksSearch")}</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</#if>
|
||||
@@ -0,0 +1,40 @@
|
||||
<div class="srcFileList">
|
||||
<#if pageResult.total()!= 0>
|
||||
<#for item : pageResult.list()>
|
||||
<div id="item_${item.getWorksId()}" class="item" style="width:370px;height:490px;">
|
||||
<div class="z-bg-white z-pointer <#if item.getWorksType() == 1>bestItem</#if><#if item.getWorksType() == 3>modelItem</#if>" onclick="Works.doWorksShow('${item.getWorksId()}');">
|
||||
<#for path : Arrays.toStringArray(item.getThumbImagePath())>
|
||||
<#if path_index lt 1>
|
||||
<img style="max-width:300px;" src="${path}"/>
|
||||
</#if>
|
||||
</#for>
|
||||
<#if item.getWorksType() == 3>
|
||||
<span class="modelItem-info z-absolute">${item.getTemplateId()}</span>
|
||||
</#if>
|
||||
</div>
|
||||
<span style="display:block;text-align:right;">ID:${item.getWorksId()}</span>
|
||||
</div>
|
||||
</#for>
|
||||
</div>
|
||||
<#if Validates.isEqual(urlParam, "BEST")>
|
||||
<!--申请精品按钮 start-->
|
||||
<div class="applyEssenceBtn z-fixed" onclick="applyEssence(this);">
|
||||
<span class=""><i class="z-font z-flower"></i><br>设计模板</span>
|
||||
<span class="" onclick="requestBest_cancel(event);"><i class="z-font z-error"></i><br>取消选择</span>
|
||||
</span>
|
||||
</div>
|
||||
<!--申请精品按钮 end-->
|
||||
</#if>
|
||||
<div style="width:100%;text-align:center;margin-bottom:35px;">
|
||||
<table class="z-table z-bordered fi-bd-t-none z-bg-white">
|
||||
<tr class="z-h50">
|
||||
<td><div class="z-float-right z-mg-r10">${PagingGo.toHtmlClick(pageResult, "Works.doSearchAjax")}</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<input name="prdTypeId" id="prdTypeId" type="hidden" value="${prdTypeId}"/>
|
||||
<input name="industryId" id="industryId" type="hidden" value="${industryId}"/>
|
||||
<input name="urlParam" id="urlParam" type="hidden" value="${urlParam}"/>
|
||||
</#if>
|
||||
|
||||
@@ -0,0 +1,108 @@
|
||||
<script>
|
||||
var prdIdarr = Z.AR.toArray("${prdIdarr}", ",");
|
||||
var indIdarr = Z.AR.toArray("${indIdarr}", ",");
|
||||
Z.onload(function()
|
||||
{//定义搜索框
|
||||
doWorksSearch("1");
|
||||
|
||||
var search = new Z.SearchAutoList();
|
||||
search.elem = "searchinput";
|
||||
search.className = "DesignerPresenter";
|
||||
search.methodName = "doKeywordList";
|
||||
search.callback = function(){Works.doSearchAjax('1', this.value, '1');};
|
||||
search.execute();
|
||||
})
|
||||
function doWorksSearch(page)
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doWorksSearch");
|
||||
ajax.addParam("page", page);
|
||||
ajax.addParam("urlParam", "AUDIT");
|
||||
ajax.addParam("prdIdarr", Z.AR.toString(prdIdarr));
|
||||
ajax.addParam("indIdarr", Z.AR.toString(indIdarr));
|
||||
ajax.setCallback("resultWrap");
|
||||
ajax.setLoading("resultWrap");
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function confirmItemAdd(e, value, type)
|
||||
{//确认
|
||||
Z.E.forbidden(e);
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doWorksAudit");
|
||||
ajax.addParam(value)
|
||||
ajax.addParam(type);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){Z.Location.reload();});
|
||||
ajax.execute();
|
||||
}
|
||||
function cancelItemAdd(e, value, type)
|
||||
{//取消
|
||||
Z.E.forbidden(e);
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doWorksAudit");
|
||||
ajax.addParam(value)
|
||||
ajax.addParam(type);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){Z.Location.reload();});
|
||||
ajax.execute();
|
||||
}
|
||||
</script>
|
||||
|
||||
${Styles.src("/zinc/css/design_2018102301.css")}
|
||||
${Scripts.src("/zinc/js/works_20171030.js")}
|
||||
${Scripts.src("/zinc/js/zhiqim_search_auto_list.js")}
|
||||
${zhiqim_manager_breadcrumb("精品审核")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-blue z-mg-b20">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.Location.href('worksMy.htm');">我的作品</li>
|
||||
<li onclick="Z.Location.href('worksCollect.htm');">我收藏的</li>
|
||||
<li onclick="Z.Location.href('worksBest.htm');">我的精品</li>
|
||||
<li onclick="Z.Location.href('worksShare.htm');">分享给我的</li>
|
||||
<li onclick="Z.Location.href('groupWorks.htm');">小组作品</li>
|
||||
<li onclick="Z.Location.href('allWorks.htm');">所有作品</li>
|
||||
<li onclick="Z.Location.href('bestWorks.htm');">精品作品</li>
|
||||
<#if ZmrPathRule.check(request, "/worksAudit.htm")><li class="z-active">精品审核</li></#if>
|
||||
<li onclick="Z.Location.href('worksList.htm');">作品列表</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 关键词搜索 -->
|
||||
<div class="z-mg-t20 z-h1 z-text-center">
|
||||
<span style="float:center;">
|
||||
<input id="searchinput" class="z-input z-w400 fi-h40 fi-bd-r-none" placeholder="关键字" value="" maxlength="20"><button type="button" class="z-button z-w70 z-h40 fi-bd-rd0 z-blue" onclick="Works.doSearchAjax('1',searchinput.value)"><i class="z-font z-query"></i></button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<table class="z-table z-bordered z-pd6">
|
||||
<tr class="z-h40" bgcolor="${oddColor}">
|
||||
<td width="5%">类型:</td>
|
||||
<td width="*">
|
||||
<#for item : prdList>
|
||||
<button id="nav_${item.getTypeId()}" type="button" class="z-button z-large z-bordered z-blue-bd z-hover <#if prdIdarrs.contains(item.getTypeId())>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchSelect('prdType','${item.getTypeId()}');doWorksSearch('1');">${item.getTypeName()}</button>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="z-h40" bgcolor="#FFFFFF">
|
||||
<td>行业:</td>
|
||||
<td>
|
||||
<#for item : indList>
|
||||
<button id="cat_${item.getIndustryId()}" type="button" class="z-button z-large z-bordered z-blue-bd z-hover <#if indIdarr.contains(item.getIndustryId()+"")>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchSelect('industry','${item.getIndustryId()}');doWorksSearch('1');">${item.getIndustryName()}</button>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="resultWrap"></div>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,81 @@
|
||||
<script>
|
||||
<!--
|
||||
Z.onload(function()
|
||||
{//定义搜索框
|
||||
var search = new Z.SearchAutoList();
|
||||
search.elem = "searchinput";
|
||||
search.className = "DesignerPresenter";
|
||||
search.methodName = "doKeywordList";
|
||||
search.callback = function(){Works.doSearchAjax('1', this.value, 'MYBEST');};
|
||||
search.execute();
|
||||
|
||||
doWorksSearch("1");
|
||||
})
|
||||
|
||||
function doWorksSearch(page)
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doWorksSearch");
|
||||
ajax.addParam("page", page);
|
||||
ajax.addParam("urlParam", "MYBEST");
|
||||
ajax.setCallback("resultWrap");
|
||||
ajax.setLoading("resultWrap");
|
||||
ajax.execute();
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
|
||||
${Styles.src("/zinc/css/design_2018102301.css")}
|
||||
${Scripts.src("/zinc/js/works_20171030.js")}
|
||||
${Scripts.src("/zinc/js/zhiqim_search_auto_list.js")}
|
||||
${zhiqim_manager_breadcrumb_parent("/worksMy.htm", "我的作品", "我的精品")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-blue z-mg-b20">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.Location.href('worksMy.htm');">我的作品</li>
|
||||
<li onclick="Z.Location.href('worksCollect.htm');">我收藏的</li>
|
||||
<li class="z-active">我的精品</li>
|
||||
<li onclick="Z.Location.href('worksShare.htm');">分享给我的</li>
|
||||
<li onclick="Z.Location.href('groupWorks.htm');">小组作品</li>
|
||||
<li onclick="Z.Location.href('allWorks.htm');">所有作品</li>
|
||||
<li onclick="Z.Location.href('bestWorks.htm');">精品作品</li>
|
||||
<#if ZmrPathRule.check(request, "/worksAudit.htm")><li onclick="Z.Location.href('worksAudit.htm');">精品审核</li></#if>
|
||||
<li onclick="Z.Location.href('worksList.htm');">作品列表</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 关键词搜索 -->
|
||||
<div class="z-mg-t20 z-h1 z-text-center">
|
||||
<span style="float:center;">
|
||||
<input id="searchinput" class="z-input z-w600 zi-h40 zi-bd-r-none" placeholder="输入关键词" value="" maxlength="20"><button type="button" class="z-button z-w80 z-h40 zi-bd-rd0 z-orange" onclick="Works.doSearchAjax('1' , searchinput.value, 'MYBEST')"><i class="z-font z-query"></i>查询</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<table class="z-table z-bordered z-pd6">
|
||||
<tr class="z-h40" bgcolor="${oddColor}">
|
||||
<td width="5%">类型:</td>
|
||||
<td width="*">
|
||||
<button id="nav_10086" type="button" data-options="group:prdType" class="z-button z-large z-bordered z-blue-bd z-hover <#if 10086 == prdTypeId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'nav_10086', 'MYBEST')">全部</button>
|
||||
<#for item : prdList>
|
||||
<button id="nav_${item.getTypeId()}" type="button" data-options="group:prdType" class="z-button z-large z-bordered z-blue-bd z-hover <#if item.getTypeId() == prdTypeId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'nav_${item.getTypeId()}', 'MYBEST')">${item.getTypeName()}</button>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="z-h40" bgcolor="#FFFFFF">
|
||||
<td>行业:</td>
|
||||
<td>
|
||||
<button id="ind_10087" type="button" data-options="group:industry" class="z-button z-large z-bordered z-blue-bd z-hover <#if 10087 == industryId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'ind_10087', 'MYBEST')">全部</button>
|
||||
<#for item : indList>
|
||||
<button id="ind_${item.getIndustryId()}" type="button" data-options="group:industry" class="z-button z-large z-bordered z-blue-bd z-hover <#if item.getIndustryId() == industryId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'ind_${item.getIndustryId()}', 'MYBEST')">${item.getIndustryName()}</button>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="resultWrap"></div>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,83 @@
|
||||
<script>
|
||||
<!--
|
||||
var prdIdarr = Z.AR.toArray("${prdIdarr}", ",");
|
||||
var indIdarr = Z.AR.toArray("${indIdarr}", ",");
|
||||
Z.onload(function()
|
||||
{//定义搜索框
|
||||
var search = new Z.SearchAutoList();
|
||||
search.elem = "searchinput";
|
||||
search.className = "DesignerPresenter";
|
||||
search.methodName = "doKeywordList";
|
||||
search.callback = function(){Works.doSearchAjax('1', this.value, 'COLLECT');};
|
||||
search.execute();
|
||||
|
||||
doWorksSearch("1");
|
||||
})
|
||||
|
||||
function doWorksSearch(page)
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doWorksSearch");
|
||||
ajax.addParam("page", page);
|
||||
ajax.addParam("urlParam", "COLLECT");
|
||||
ajax.setCallback("resultWrap");
|
||||
ajax.setLoading("resultWrap");
|
||||
ajax.execute();
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
|
||||
${Styles.src("/zinc/css/design_2018102301.css")}
|
||||
${Scripts.src("/zinc/js/works_20171030.js")}
|
||||
${Scripts.src("/zinc/js/zhiqim_search_auto_list.js")}
|
||||
${zhiqim_manager_breadcrumb_parent("/worksMy.htm", "我的作品", "我收藏的")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-blue z-mg-b20">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.Location.href('worksMy.htm');">我的作品</li>
|
||||
<li class="z-active">我收藏的</li>
|
||||
<li onclick="Z.Location.href('worksBest.htm');">我的精品</li>
|
||||
<li onclick="Z.Location.href('worksShare.htm');">分享给我的</li>
|
||||
<li onclick="Z.Location.href('groupWorks.htm');">小组作品</li>
|
||||
<li onclick="Z.Location.href('allWorks.htm');">所有作品</li>
|
||||
<li onclick="Z.Location.href('bestWorks.htm');">精品作品</li>
|
||||
<#if ZmrPathRule.check(request, "/worksAudit.htm")><li onclick="Z.Location.href('worksAudit.htm');">精品审核</li></#if>
|
||||
<li onclick="Z.Location.href('worksList.htm');">作品列表</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 关键词搜索 -->
|
||||
<div class="z-mg-t20 z-h1 z-text-center">
|
||||
<span style="float:center;">
|
||||
<input id="searchinput" class="z-input z-w600 zi-h40 zi-bd-r-none" placeholder="输入关键词" value="" maxlength="20"><button type="button" class="z-button z-w80 z-h40 zi-bd-rd0 z-orange" onclick="Works.doSearchAjax('1' , searchinput.value, 'COLLECT')"><i class="z-font z-query"></i>查询</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<table class="z-table z-bordered z-pd6">
|
||||
<tr class="z-h40" bgcolor="${oddColor}">
|
||||
<td width="5%">类型:</td>
|
||||
<td width="*">
|
||||
<button id="nav_10086" type="button" data-options="group:prdType" class="z-button z-large z-bordered z-blue-bd z-hover <#if 10086 == prdTypeId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'nav_10086', 'COLLECT')">全部</button>
|
||||
<#for item : prdList>
|
||||
<button id="nav_${item.getTypeId()}" type="button" data-options="group:prdType" class="z-button z-large z-bordered z-blue-bd z-hover <#if item.getTypeId() == prdTypeId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'nav_${item.getTypeId()}', 'COLLECT')">${item.getTypeName()}</button>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="z-h40" bgcolor="#FFFFFF">
|
||||
<td>行业:</td>
|
||||
<td>
|
||||
<button id="ind_10087" type="button" data-options="group:industry" class="z-button z-large z-bordered z-blue-bd z-hover <#if 10087 == industryId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'ind_10087', 'COLLECT')">全部</button>
|
||||
<#for item : indList>
|
||||
<button id="ind_${item.getIndustryId()}" type="button" data-options="group:industry" class="z-button z-large z-bordered z-blue-bd z-hover <#if item.getIndustryId() == industryId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'ind_${item.getIndustryId()}', 'COLLECT')">${item.getIndustryName()}</button>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="resultWrap"></div>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,81 @@
|
||||
${zhiqim_manager_breadcrumb("作品列表")}
|
||||
${zhiqim_manager_content()}
|
||||
${Scripts.src("/zinc/js/works_20171030.js")}
|
||||
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-blue z-mg-b20">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.Location.href('worksMy.htm');">我的作品</li>
|
||||
<li onclick="Z.Location.href('worksCollect.htm');">我收藏的</li>
|
||||
<li onclick="Z.Location.href('worksBest.htm');">我的精品</li>
|
||||
<li onclick="Z.Location.href('worksShare.htm');">分享给我的</li>
|
||||
<li onclick="Z.Location.href('groupWorks.htm');">小组作品</li>
|
||||
<li onclick="Z.Location.href('allWorks.htm');">所有作品</li>
|
||||
<li onclick="Z.Location.href('bestWorks.htm');">精品作品</li>
|
||||
<#if ZmrPathRule.check(request, "/worksAudit.htm")><li onclick="Z.Location.href('worksAudit.htm');">精品审核</li></#if>
|
||||
<li class="z-active">作品列表</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<form action="worksList.htm" method="post">
|
||||
<table class="z-table z-bordered z-pd6 z-bg-white">
|
||||
<tr class="z-h40">
|
||||
<td width="30%">作品类型:
|
||||
<select name="worksType" class="z-select z-w180" data-role="z-select" data-class="${styleColor}">
|
||||
<option value="">全部</option>
|
||||
<option value="0" <#if worksType == 0>selected</#if>>普通</option>
|
||||
<option value="1" <#if worksType == 1>selected</#if>>精品</option>
|
||||
</select>
|
||||
</td>
|
||||
<td width="30%">产品类型:
|
||||
<select name="prdTypeId" class="z-select z-w180" data-role="z-select" data-class="${styleColor}">
|
||||
<option value="">全部</option>
|
||||
<#for item : Global.get(ProductTypeCache.class).getList()>
|
||||
<option value="${item.getTypeId()}" <#if prdTypeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
</td>
|
||||
<td width="30%">行业名称:
|
||||
<select name="industryId" class="z-select z-w180" data-role="z-select" data-class="${styleColor}">
|
||||
<option value="">全部</option>
|
||||
<#for item : Global.get(DesignIndustryCache.class).getIndustryList()>
|
||||
<option value="${item.getIndustryId()}" <#if industryId == item.getIndustryId()>selected</#if>>${item.getIndustryName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" align="center"><button type="sumbit" class="z-button z-large z-w120 ${styleColor}">查询</button></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form><br>
|
||||
<table class="z-table z-bordered z-bg-white z-pd6">
|
||||
<tr>
|
||||
<td class="z-h40 z-text-left z-bold z-px14 z-bg-white" colspan="3"> 作品列表</td>
|
||||
</tr>
|
||||
<tr class="z-text-center z-h40" bgcolor="${trColor}">
|
||||
<td width="30%">缩略图</td>
|
||||
<td width="15%">关联标签</td>
|
||||
<td width="*">关联关键词</td>
|
||||
<td width="10%">操作</td>
|
||||
</tr>
|
||||
<#if pageResult.total() == 0>
|
||||
${zhiqim_manager_no_record(3 "暂时没有作品列表信息")}
|
||||
</#if>
|
||||
<#for item : pageResult.list()>
|
||||
<tr align="center" class="z-h40" bgcolor="${zhiqim_manager_tr_bg(item_index)}">
|
||||
<td>
|
||||
<#for path : Arrays.toStringArray(item.getThumbImagePath())>
|
||||
<#if path_index lt 1><img src="${path}" height="200"/></#if>
|
||||
</#for>
|
||||
</td>
|
||||
<td>${LabelPresenter.doWorksLabelName(item.getWorksId())}</td>
|
||||
<td>${item.getKeywordName()}</td>
|
||||
<td><button class="z-button z-blue" onclick="Works.doWorksShow('${item.getWorksId()}');">详情</button></td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "/worksList.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,94 @@
|
||||
<script>
|
||||
<!--
|
||||
Z.onload(function()
|
||||
{//定义搜索框
|
||||
var search = new Z.SearchAutoList();
|
||||
search.elem = "searchinput";
|
||||
search.className = "DesignerPresenter";
|
||||
search.methodName = "doKeywordList";
|
||||
search.callback = function(){Works.doSearchAjax('1', this.value, 'MY');};
|
||||
search.execute();
|
||||
|
||||
doWorksSearch("1");
|
||||
})
|
||||
|
||||
function doWorksSearch(page)
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doWorksSearch");
|
||||
ajax.addParam("page", page);
|
||||
ajax.addParam("urlParam", "MY");
|
||||
ajax.setCallback("resultWrap");
|
||||
ajax.setLoading("resultWrap");
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function doWorksUpload()
|
||||
{
|
||||
var dialog = new Z.Dialog();
|
||||
dialog.shadow = true;
|
||||
dialog.title = "上传作品";
|
||||
dialog.fixed = true;
|
||||
|
||||
dialog.url = "worksUpload.htm";
|
||||
dialog.width = Z.D.clientWidth()-600;
|
||||
dialog.height =Z.D.clientHeight()-300;
|
||||
dialog.execute();
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
|
||||
${Styles.src("/zinc/css/design_2018102301.css")}
|
||||
${Scripts.src("/zinc/js/works_20171030.js")}
|
||||
${Scripts.src("/zinc/js/zhiqim_search_auto_list.js")}
|
||||
${zhiqim_manager_breadcrumb("我的作品")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-blue z-mg-b20">
|
||||
<nav>
|
||||
<ul>
|
||||
<li class="z-active">我的作品</li>
|
||||
<li onclick="Z.Location.href('worksCollect.htm');">我收藏的</li>
|
||||
<li onclick="Z.Location.href('worksBest.htm');">我的精品</li>
|
||||
<li onclick="Z.Location.href('allWorks.htm');">所有作品</li>
|
||||
<li onclick="Z.Location.href('bestWorks.htm');">精品作品</li>
|
||||
<#if ZmrPathRule.check(request, "/worksAudit.htm")><li onclick="Z.Location.href('worksAudit.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="doWorksUpload();"><i class="z-font z-add"></i>上传作品</button> -->
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 关键词搜索 -->
|
||||
<div class="z-mg-t20 z-h1 z-text-center">
|
||||
<span style="float:center;">
|
||||
<input id="searchinput" class="z-input z-w600 zi-h40 zi-bd-r-none" placeholder="输入关键词" value="" maxlength="20"><button type="button" class="z-button z-w80 z-h40 zi-bd-rd0 z-orange" onclick="Works.doSearchAjax('1' , searchinput.value, 'MY')"><i class="z-font z-query"></i>查询</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<table class="z-table z-bordered z-pd6">
|
||||
<tr class="z-h40" bgcolor="${oddColor}">
|
||||
<td width="5%">类型:</td>
|
||||
<td width="*">
|
||||
<button id="nav_10086" type="button" data-options="group:prdType" class="z-button z-large z-bordered z-blue-bd z-hover <#if 10086 == prdTypeId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'nav_10086', 'MY')">全部</button>
|
||||
<#for item : prdList>
|
||||
<button id="nav_${item.getTypeId()}" type="button" data-options="group:prdType" class="z-button z-large z-bordered z-blue-bd z-hover <#if item.getTypeId() == prdTypeId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'nav_${item.getTypeId()}', 'MY')">${item.getTypeName()}</button>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="z-h40" bgcolor="#FFFFFF">
|
||||
<td>行业:</td>
|
||||
<td>
|
||||
<button id="ind_10087" type="button" data-options="group:industry" class="z-button z-large z-bordered z-blue-bd z-hover <#if 10087 == industryId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'ind_10087', 'MY')">全部</button>
|
||||
<#for item : indList>
|
||||
<button id="ind_${item.getIndustryId()}" type="button" data-options="group:industry" class="z-button z-large z-bordered z-blue-bd z-hover <#if item.getIndustryId() == industryId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'ind_${item.getIndustryId()}', 'MY')">${item.getIndustryName()}</button>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="resultWrap"></div>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,82 @@
|
||||
<script>
|
||||
<!--
|
||||
Z.onload(function()
|
||||
{//定义搜索框
|
||||
var search = new Z.SearchAutoList();
|
||||
search.elem = "searchinput";
|
||||
search.className = "DesignerPresenter";
|
||||
search.methodName = "doKeywordList";
|
||||
search.callback = function(){Works.doSearchAjax('1', this.value, 'SHARE');};
|
||||
search.execute();
|
||||
|
||||
doWorksSearch("1");
|
||||
})
|
||||
|
||||
function doWorksSearch(page)
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doWorksSearch");
|
||||
ajax.addParam("page", page);
|
||||
ajax.addParam("urlParam", "SHARE");
|
||||
ajax.setCallback("resultWrap");
|
||||
ajax.setLoading("resultWrap");
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
-->
|
||||
</script>
|
||||
|
||||
${Styles.src("/zinc/css/design_2018102301.css")}
|
||||
${Scripts.src("/zinc/js/works_20171030.js")}
|
||||
${Scripts.src("/zinc/js/zhiqim_search_auto_list.js")}
|
||||
${zhiqim_manager_breadcrumb_parent("/worksMy.htm", "我的作品", "分享给我的")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-blue z-mg-b20">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.Location.href('worksMy.htm');">我的作品</li>
|
||||
<li onclick="Z.Location.href('worksCollect.htm');">我收藏的</li>
|
||||
<li onclick="Z.Location.href('worksBest.htm');">我的精品</li>
|
||||
<li class="z-active">分享给我的</li>
|
||||
<li onclick="Z.Location.href('groupWorks.htm');">小组作品</li>
|
||||
<li onclick="Z.Location.href('allWorks.htm');">所有作品</li>
|
||||
<li onclick="Z.Location.href('bestWorks.htm');">精品作品</li>
|
||||
<#if ZmrPathRule.check(request, "/worksAudit.htm")><li onclick="Z.Location.href('worksAudit.htm');">精品审核</li></#if>
|
||||
<li onclick="Z.Location.href('worksList.htm');">作品列表</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 关键词搜索 -->
|
||||
<div class="z-mg-t20 z-h1 z-text-center">
|
||||
<span style="float:center;">
|
||||
<input id="searchinput" class="z-input z-w600 zi-h40 zi-bd-r-none" placeholder="输入关键词" value="" maxlength="20"><button type="button" class="z-button z-w80 z-h40 zi-bd-rd0 z-orange" onclick="Works.doSearchAjax('1' , searchinput.value, 'SHARE')"><i class="z-font z-query"></i>查询</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<table class="z-table z-bordered z-pd6">
|
||||
<tr class="z-h40" bgcolor="${oddColor}">
|
||||
<td width="5%">类型:</td>
|
||||
<td width="*">
|
||||
<button id="nav_10086" type="button" data-options="group:prdType" class="z-button z-large z-bordered z-blue-bd z-hover <#if 10086 == prdTypeId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'nav_10086', 'SHARE')">全部</button>
|
||||
<#for item : prdList>
|
||||
<button id="nav_${item.getTypeId()}" type="button" data-options="group:prdType" class="z-button z-large z-bordered z-blue-bd z-hover <#if item.getTypeId() == prdTypeId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'nav_${item.getTypeId()}', 'SHARE')">${item.getTypeName()}</button>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="z-h40" bgcolor="#FFFFFF">
|
||||
<td>行业:</td>
|
||||
<td>
|
||||
<button id="ind_10087" type="button" data-options="group:industry" class="z-button z-large z-bordered z-blue-bd z-hover <#if 10087 == industryId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'ind_10087', 'SHARE')">全部</button>
|
||||
<#for item : indList>
|
||||
<button id="ind_${item.getIndustryId()}" type="button" data-options="group:industry" class="z-button z-large z-bordered z-blue-bd z-hover <#if item.getIndustryId() == industryId>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Works.doSearchAjax('1', 'ind_${item.getIndustryId()}', 'SHARE')">${item.getIndustryName()}</button>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="resultWrap"></div>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,303 @@
|
||||
<script>
|
||||
function doWorksDownload()
|
||||
{//下载文件
|
||||
Z.Location.href("worksDownload.htm?worksId=" + '${works.getWorksId()}');
|
||||
}
|
||||
|
||||
function doWorksAdd()
|
||||
{//申请精品
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doWorksAdd");
|
||||
ajax.addParam('${works.getWorksId()}');
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.alert("申请成功", function(){location.reload();})
|
||||
});
|
||||
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function doWorksShare(value)
|
||||
{//作品库分享
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doWorksShare");
|
||||
ajax.addParam('${works.getWorksId()}');
|
||||
ajax.addParam(value);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess();
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function doLabelRelation()
|
||||
{//关联标签
|
||||
var dialog = new Z.Dialog();
|
||||
dialog.shadow = true;
|
||||
dialog.hasTitle = false;
|
||||
dialog.fixed = true;
|
||||
|
||||
var worksId = '${works.getWorksId()}';
|
||||
dialog.url = "labelRelation.htm?worksId="+worksId;
|
||||
dialog.width = 1000;
|
||||
dialog.height = 600;
|
||||
dialog.execute();
|
||||
}
|
||||
function doKeywordRelation()
|
||||
{//关联关键词
|
||||
var dialog = new Z.Dialog();
|
||||
dialog.shadow = true;
|
||||
dialog.hasTitle = false;
|
||||
dialog.fixed = true;
|
||||
|
||||
var worksId = '${works.getWorksId()}';
|
||||
dialog.url = "keywordRelation.htm?worksId="+worksId;
|
||||
dialog.width = 800;
|
||||
dialog.height = 400;
|
||||
dialog.execute();
|
||||
}
|
||||
|
||||
/*悬浮展示分享列表*/
|
||||
function shareList_show(){ Z(".share-list").show();}
|
||||
function shareList_hide(){ Z(".share-list").hide();}
|
||||
|
||||
/*收藏点击事件*/
|
||||
var eventId = '${userEventId}';
|
||||
function doWorksCollect(ele)
|
||||
{
|
||||
Z(ele).toggleClass("active");
|
||||
//执行操作
|
||||
if (Z(ele).hasClass("active"))
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doWorksCollect");
|
||||
ajax.addParam('${works.getWorksId()}')
|
||||
ajax.addParam(eventId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
var collect = this.responseText;
|
||||
var collectNum = collect.split("+");
|
||||
Z("#collect").text(collectNum[0]);
|
||||
eventId = collectNum[1];
|
||||
});
|
||||
|
||||
ajax.execute();
|
||||
}
|
||||
else
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doWorksCollect");
|
||||
ajax.addParam('${works.getWorksId()}')
|
||||
ajax.addParam(eventId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
var collect = this.responseText;
|
||||
Z("#collect").text(collect);
|
||||
eventId = 0;
|
||||
});
|
||||
|
||||
ajax.execute();
|
||||
}
|
||||
}
|
||||
|
||||
/**/
|
||||
function selectTag(ele)
|
||||
{//选中标签
|
||||
var $active = Z(".tag-edit-list .tab .active");
|
||||
$active.removeClass("active");
|
||||
var next = $active.next("span");
|
||||
$active.next("span").removeClass("zi-hide").addClass("active");
|
||||
}
|
||||
|
||||
function addKeywords(ele, type)
|
||||
{//添加关键字
|
||||
var $wrap = Z(".kwywordItem-list");
|
||||
var $input = Z(ele.previousElementSibling);
|
||||
var val = $input.val();
|
||||
if (Z.V.isEmptyBlank(val))
|
||||
{
|
||||
Z.alert("请输入添加内容!");
|
||||
return;
|
||||
}
|
||||
var $$button = $wrap.parent().children("button");
|
||||
for (var i = 0;i < $$button.length;i++)
|
||||
{
|
||||
var text = Z($$button[i]).text();
|
||||
if (text == val)
|
||||
{
|
||||
Z.alert("内容有重复!请重新输入!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignerPresenter");
|
||||
ajax.setMethodName("doKeywordAdd");
|
||||
ajax.addParam("mediaId", '${works.getWorksId()}')
|
||||
ajax.addParam("keywordName", val);
|
||||
ajax.addParam("type", 'work');
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
var keywordName = this.responseText;
|
||||
var $item = Z('<span class="item-diy z-bg-blue"><i class="z-font z-error" onclick="delThisKeyword(this, \'' + keywordName + '\');"></i>' + val + '</span>');
|
||||
$wrap.append($item);
|
||||
$input.val("")
|
||||
});
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
//删除关键字
|
||||
function delThisKeyword(ele, keywordName, type)
|
||||
{
|
||||
Z.confirm('您确定删除该关键字吗?', function(){
|
||||
Z(ele).parent().remove();
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignerPresenter");
|
||||
ajax.setMethodName("doKeywordDelete");
|
||||
ajax.addParam("mediaId", '${works.getWorksId()}');
|
||||
ajax.addParam("keywordName", keywordName);
|
||||
ajax.addParam("type", type);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){location.reload();});
|
||||
ajax.execute();
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
function doWorksDelete()
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doWorksDelete");
|
||||
ajax.addParam('${works.getWorksId()}')
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("删除成功", function(){parent.location.reload()});
|
||||
});
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function doWorksCancel()
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doWorksCancel");
|
||||
ajax.addParam('${works.getWorksId()}')
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("取消成功", function(){parent.location.reload()});
|
||||
});
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
</script>
|
||||
<style>
|
||||
body{height:100%}
|
||||
/*图片展示区*/
|
||||
.show-thumb{left:0;top:0;bottom:0;right:300px;padding:30px;}
|
||||
.show-thumb-list{display:flex;align-items:center;align-content:center;justify-content:center;flex-wrap:wrap;}
|
||||
.show-thumb-list>li{padding:5px;max-width:45%;}
|
||||
/*信息列表区*/
|
||||
.show-info{top:0;bottom:0;right:0;border-left:1px solid #e1e1e1;}
|
||||
.show-info-list>li{font-size:14px;padding:15px 0;border-bottom:1px solid #f5f5f5;color:#777;}
|
||||
/*顶部三要素*/
|
||||
.show-info-list>li>span.tag{margin-right:28px;float:left;padding:15px 0;}
|
||||
.show-info-list>li>span.tag:not(.view):hover,.show-info-list>li>span.tag.collect.active{color:#00a2eb;}
|
||||
.show-info-list>li>span.tag>i{display:inline-block;width:17px;height:15px;vertical-align:middle;margin-right:5px;background:url(http://cdn.tubangzhu.com/static/tbz-main/images/preview-tag_8774a98.png) no-repeat;}
|
||||
.show-info-list>li>span.tag.share>i{background-position:0 0;margin-right:3px;}
|
||||
.show-info-list>li>span.tag.share:hover>i{background-position:0 -15px;}
|
||||
.show-info-list>li>span.tag.view>i{background-position:-17px 0;}
|
||||
.show-info-list>li>span.tag.view>i{background-position:-17px 0;}
|
||||
.show-info-list>li>span.tag.collect>i{background-position:-35px 0;}
|
||||
.show-info-list>li>span.tag.collect:hover>i,.show-info-list>li>span.tag.collect.active>i{background-position: -35px -15px;}
|
||||
.show-info-list>li .z-button.z-xlarge{height:44px;}
|
||||
/*分享列表*/
|
||||
.share-list{position:absolute;top:45px;left:-5px;background:#fff;width:280px;line-height:35px;box-shadow:0 0 5px #aaa;border-radius:4px;padding:8px 15px;/*display:none;*/z-index:1;}
|
||||
.share-list>span{position:absolute;width:10px;height:10px;background:#fff;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);top:-5px;left:30px;box-shadow:-1px -1px 0 #d4d2d2;}
|
||||
/*标题图标*/
|
||||
.list-title>i{background:url(http://cdn.tubangzhu.com/static/tbz-main/images/preview-tag_8774a98.png) no-repeat -187px 0;display:inline-block;width:10px;height:19px;vertical-align:middle;margin-right:5px;}
|
||||
/*类型添加*/
|
||||
.type-list{}
|
||||
.type-list>li{padding:8px 0;border-bottom:1px dashed #f5f5f5;}
|
||||
/*关键字选择区*/
|
||||
.kwywords-list>.kwywordItem-list>span{display:inline-block;border-radius:3px;padding:5px 10px;margin:3px;position:relative;}
|
||||
.kwywords-list>.kwywordItem-list>span>.z-error{display:none;position:absolute;right:-5px;top:-5px;border-radius:50%;margin:0;border:1px solid #777;width:15px;height:15px;line-height:14px;text-align:center;font-size:12px;background:#fff;z-index:9;cursor:pointer;}
|
||||
.kwywords-list>.kwywordItem-list>span>.z-error:hover{color:#ea4a36;border-color:#ea4a36;}
|
||||
.kwywords-list>.kwywordItem-list>span:hover .z-error{display:block;}
|
||||
.kwywords-list>.item-add{position:relative;}
|
||||
.kwywords-list>.item-add>input{width:100%;}
|
||||
.kwywords-list>.item-add>button{padding:3px 10px;position:absolute;top:0;right:0;}
|
||||
|
||||
/**/
|
||||
|
||||
</style>
|
||||
|
||||
<div class="z-relative z-w100p z-h100p z-overflow-hidden">
|
||||
<div class="show-thumb z-absolute z-bg-gray">
|
||||
<ul class="show-thumb-list z-w100p z-h100p">
|
||||
<#for path : Arrays.toStringArray(works.getThumbImagePath())>
|
||||
<li><img src="${path}"/></li>
|
||||
</#for>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="show-info z-absolute z-w300 z-pd15">
|
||||
<ul class="show-info-list z-relative z-h100p">
|
||||
<li class="z-clearfix">ID:${works.getWorksId()}</li>
|
||||
<li class="z-clearfix">创建时间:${works.getCreateTime()}</li>
|
||||
<li class="z-clearfix"><#if works.getWorksName() != null>名称:${works.getWorksName()} | </#if>设计师:${works.getDesigner()}</li>
|
||||
<li class="z-clearfix z-relative z-color-999 zi-px13 zi-pd0">
|
||||
<span class="tag view" onclick=""><i></i>浏览(${browseNum})</span>
|
||||
<span class="tag collect z-pointer zi-mg-r0 <#if userEventId != 0>active</#if>" onclick="doWorksCollect(this);"><i></i>收藏(<span id="collect" >${collectNum}</span>)</span>
|
||||
</li>
|
||||
<li class="z-clearfix">
|
||||
<div class="z-float-left z-w50p z-pd-r5">
|
||||
<#if works.getWorksType() == 0><button class="z-button z-xlarge zi-w100p" onclick="doWorksAdd();"><i class="z-font z-flower"></i>申请精品</button></#if>
|
||||
<#if works.getWorksType() == 1><button class="z-button z-xlarge z-blue zi-w100p"><i class="z-font z-flower"></i>精品作品</button></#if>
|
||||
<#if works.getWorksType() == 2><button class="z-button z-xlarge zi-w100p"><i class="z-font z-flower"></i>精品待审</button></#if>
|
||||
</div>
|
||||
<div class="z-float-left z-w50p z-pd-l5"><button class="z-button z-xlarge z-red zi-w100p zi-pd-l0 zi-pd-r0" onclick="doWorksDownload();"><i class="z-font z-download"></i>下载(${downNum})</button></div>
|
||||
</li>
|
||||
<li class="tag-edit z-relative" data-value="一级 类型 二级 行业 三级 属性">
|
||||
<div class="z-h25 z-mg-t5 z-mg-b15">
|
||||
<span class="z-float-right">
|
||||
<#if ZmrPathRule.check(request, "/labelRelation.htm")><button class="z-button z-blue z-small" onclick="doLabelRelation()"><i class="z-font z-modify"></i>修改</button></#if>
|
||||
</span>
|
||||
<span class="list-title z-lh25"><i></i>行业属性</span>
|
||||
</div>
|
||||
<ul class="type-list">
|
||||
<li>
|
||||
${Global.get(ProductTypeCache.class).getName(works.getPrdTypeId())}
|
||||
${Global.get(DesignIndustryCache.class).getIndustryName(works.getIndustryId())}
|
||||
${works.getIndustrySubName()}
|
||||
${works.getAttributeName()}
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="keyword-edit">
|
||||
<div class="list-title z-mg-t5 z-mg-b15"><i></i>关键词</div>
|
||||
<div class="kwywords-list">
|
||||
<div class="kwywordItem-list">
|
||||
<#for keyword : DesignerPresenter.updateKeywordArr(works.getKeywordName(), "work", works.getWorksId())>
|
||||
<span class="z-bg-blue"><i class="z-font z-error" onclick="delThisKeyword(this, '${keyword}', 'works');"></i>${keyword}</span>
|
||||
</#for>
|
||||
</div>
|
||||
<div class="item-add z-w100p z-mg-t10"><input class="z-input z-small" type="text"><button class="z-button z-blue" onclick="addKeywords(this, 'works');">添加</button></div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<#if ZmrPathRule.check(request, "doWorksDelete")>
|
||||
<li class="keyword-edit">
|
||||
<div class="list-title z-mg-t5 z-mg-b15"><i></i>作品操作</div>
|
||||
<div>
|
||||
<button class="z-button" onclick="doWorksCancel();"><i class="z-font z-modify"></i>取消精品</button>
|
||||
<button class="z-button z-red" onclick="doWorksDelete();"><i class="z-font z-delete"></i>删除作品</button>
|
||||
</div>
|
||||
</li>
|
||||
</#if>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,117 @@
|
||||
<script>
|
||||
//复制作品id
|
||||
function doCopyIDInfo()
|
||||
{
|
||||
Z.copy(Z("#worksId").val());
|
||||
top.Z.tips("复制成功");
|
||||
}
|
||||
|
||||
</script>
|
||||
<style>
|
||||
body{height:100%}
|
||||
/*图片展示区*/
|
||||
.show-thumb{left:0;top:0;bottom:0;right:300px;padding:30px;}
|
||||
.show-thumb-list{align-items:center;align-content:center;justify-content:center;flex-wrap:wrap;overflow-y: auto;}<!--display:flex;-->
|
||||
<#if media.getMediaUrl().indexOf(",")==-1>
|
||||
.show-thumb-list>li{padding:5px;max-width:45%;}
|
||||
<#else>
|
||||
.show-thumb-list>li{padding:5px;}
|
||||
</#if>
|
||||
/*信息列表区*/
|
||||
.show-info{top:0;bottom:0;right:0;border-left:1px solid #e1e1e1;}
|
||||
.show-info-list>li{font-size:14px;padding:15px 0;border-bottom:1px solid #f5f5f5;color:#777;}
|
||||
/*顶部三要素*/
|
||||
.show-info-list>li>span.tag{margin-right:28px;float:left;padding:15px 0;}
|
||||
.show-info-list>li>span.tag:not(.view):hover,.show-info-list>li>span.tag.collect.active{color:#00a2eb;}
|
||||
.show-info-list>li>span.tag>i{display:inline-block;width:17px;height:15px;vertical-align:middle;margin-right:5px;background:url(http://cdn.tubangzhu.com/static/tbz-main/images/preview-tag_8774a98.png) no-repeat;}
|
||||
.show-info-list>li>span.tag.share>i{background-position:0 0;margin-right:3px;}
|
||||
.show-info-list>li>span.tag.share:hover>i{background-position:0 -15px;}
|
||||
.show-info-list>li>span.tag.view>i{background-position:-17px 0;}
|
||||
.show-info-list>li>span.tag.view>i{background-position:-17px 0;}
|
||||
.show-info-list>li>span.tag.collect>i{background-position:-35px 0;}
|
||||
.show-info-list>li>span.tag.collect:hover>i,.show-info-list>li>span.tag.collect.active>i{background-position: -35px -15px;}
|
||||
.show-info-list>li .z-button.z-xlarge{height:44px;}
|
||||
/*分享列表*/
|
||||
.share-list{position:absolute;top:45px;left:-5px;background:#fff;width:280px;line-height:35px;box-shadow:0 0 5px #aaa;border-radius:4px;padding:8px 15px;/*display:none;*/z-index:1;}
|
||||
.share-list>span{position:absolute;width:10px;height:10px;background:#fff;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);top:-5px;left:30px;box-shadow:-1px -1px 0 #d4d2d2;}
|
||||
/*标题图标*/
|
||||
.list-title>i{background:url(http://cdn.tubangzhu.com/static/tbz-main/images/preview-tag_8774a98.png) no-repeat -187px 0;display:inline-block;width:10px;height:19px;vertical-align:middle;margin-right:5px;}
|
||||
/*类型添加*/
|
||||
.type-list{}
|
||||
.type-list>li{padding:8px 0;border-bottom:1px dashed #f5f5f5;}
|
||||
/*关键字选择区*/
|
||||
.kwywords-list>.kwywordItem-list>span{display:inline-block;border-radius:3px;padding:5px 10px;margin:3px;position:relative;}
|
||||
.kwywords-list>.kwywordItem-list>span>.z-error{display:none;position:absolute;right:-5px;top:-5px;border-radius:50%;margin:0;border:1px solid #777;width:15px;height:15px;line-height:14px;text-align:center;font-size:12px;background:#fff;z-index:9;cursor:pointer;}
|
||||
.kwywords-list>.kwywordItem-list>span>.z-error:hover{color:#ea4a36;border-color:#ea4a36;}
|
||||
.kwywords-list>.kwywordItem-list>span:hover .z-error{display:block;}
|
||||
.kwywords-list>.item-add{position:relative;}
|
||||
.kwywords-list>.item-add>input{width:100%;}
|
||||
.kwywords-list>.item-add>button{padding:3px 10px;position:absolute;top:0;right:0;}
|
||||
.fileDownload:hover{opacity: 0.8;}
|
||||
|
||||
/**/
|
||||
|
||||
</style>
|
||||
|
||||
<div class="z-relative z-w100p z-h100p z-overflow-hidden">
|
||||
<div class="show-thumb z-absolute">
|
||||
<ul class="show-thumb-list z-w100p z-h100p" style="text-align: center;">
|
||||
<#if media.getMediaUrl().indexOf(",")==-1>
|
||||
<li><img src="${media.getMediaUrl()}"/></li>
|
||||
<#else>
|
||||
<#for path : Arrays.toStringArray(media.getMediaUrl())>
|
||||
<li>
|
||||
<img style="width:400px;" src="${path}"/>
|
||||
</li></br>
|
||||
</#for>
|
||||
</#if>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="show-info z-absolute z-w300 z-pd15">
|
||||
<ul class="show-info-list z-relative z-h100p">
|
||||
<input name="worksId" id="worksId" value="${media.getMediaId()}" type="hidden" >
|
||||
<#if media.getTypeId()!=3>
|
||||
<li class="z-clearfix">
|
||||
ID:${media.getMediaId()}
|
||||
<span class="z-float-right">
|
||||
<button class="z-button z-blue z-small" onclick="doCopyIDInfo();"><i class="z-font z-text"></i>复制</button>
|
||||
</span>
|
||||
</li>
|
||||
<#else>
|
||||
<li class="z-clearfix">
|
||||
<div>名称:${media.getMediaName()}</div></br>
|
||||
ID:${media.getMediaId()}
|
||||
<span class="z-float-right">
|
||||
<button class="z-button z-blue z-small" onclick="doCopyIDInfo();"><i class="z-font z-text"></i>复制</button>
|
||||
</span></br></br>
|
||||
<div>P 数:${media.getPageValue()}P</div></br>
|
||||
<div>版式:<#if media.getOddEven()=0>横版<#elseif media.getOddEven()=1>竖版</#if>${media.getWidthMm()}X${media.getHeightMm()}mm</div>
|
||||
</li>
|
||||
</#if>
|
||||
<li class="z-clearfix">创建时间:${media.getCreateTime()}</li>
|
||||
<li class="tag-edit z-relative" data-value="一级 类型 二级 行业 三级 属性">
|
||||
<div class="z-h25 z-mg-t5 z-mg-b15">
|
||||
<span class="list-title z-lh25"><i></i>行业属性</span>
|
||||
</div>
|
||||
<ul class="type-list">
|
||||
<li>
|
||||
${Global.get(ProductTypeCache.class).getName(media.getTypeId())}
|
||||
${Global.get(DesignIndustryCache.class).getIndustryName(media.getIndustryId())}
|
||||
${media.getIndustrySubName()}
|
||||
${media.getAttributeName()}
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="keyword-edit">
|
||||
<div class="list-title z-mg-t5 z-mg-b15"><i></i>关键词</div>
|
||||
<div class="kwywords-list">
|
||||
<div class="kwywordItem-list">
|
||||
<#for keyword : DesignerPresenter.updateKeywordArr(media.getKeywordName(), "work", media.getMediaId())>
|
||||
<span class="z-bg-blue"><i></i>${keyword}</span>
|
||||
</#for>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,279 @@
|
||||
${Scripts.src(zhiqim_uploadlarge.js)}
|
||||
<script>
|
||||
//产品类型
|
||||
var prdTypeMap = new Z.HashMap();
|
||||
<#for key : prdMap.keySet()>
|
||||
prdTypeMap.put('${key}', '${prdMap.get(key)}');
|
||||
</#for>
|
||||
|
||||
//所有子行业 map 根据 行业 分组
|
||||
var subIndustryMap = new Z.HashMap();
|
||||
<#for key : subIndustryMap.keySet()>
|
||||
subIndustryMap.put('${key}',${Jsons.toString(subIndustryMap.get(key))});
|
||||
</#for>
|
||||
|
||||
var cdrUpload,endUpload;
|
||||
var prdTypeId = 2;
|
||||
var industryId = -1;
|
||||
var industryName = "";
|
||||
var indIdarr = Z.AR.toArray("", ",");
|
||||
var destDir = "/作品库/彩页/";
|
||||
var cdrPath = destDir + "设计文件" + "/" + '${dateDir}';
|
||||
var pdfPath = destDir + "印刷文件" + "/" + '${dateDir}';
|
||||
var thumPath = destDir + "缩略图" + "/" + '${dateDir}';
|
||||
var keywordName;
|
||||
var worksName;
|
||||
|
||||
Z.onload(function()
|
||||
{//初始化上传组件
|
||||
initHTML5Uploader();
|
||||
initHTML5Uploader1();
|
||||
});
|
||||
|
||||
var items;
|
||||
function initHTML5Uploader()
|
||||
{
|
||||
cdrUpload = new Z.UploadLarge();
|
||||
cdrUpload.elem = "FUpload_DESIGN";
|
||||
cdrUpload.fileMd5Target = 1;
|
||||
cdrUpload.fileCopy = true;
|
||||
cdrUpload.maxSizeMiB = 50;
|
||||
cdrUpload.contextPath = "${context.getContextPath()}";
|
||||
cdrUpload.onSelected = function(fileName, fileLength)
|
||||
{
|
||||
if (prdTypeId == -1)
|
||||
{
|
||||
Z.alert("请选择文件上传类型");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (industryId == -1)
|
||||
{
|
||||
Z.alert("请选择文件上传行业");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(indIdarr.length == 0)
|
||||
{
|
||||
Z.alert("请选择一个或多个子行业");
|
||||
return false;
|
||||
}
|
||||
|
||||
var ind = fileName.lastIndexOf(".");
|
||||
if(ind < 0)
|
||||
{
|
||||
Z.alert("不合法的文件名格式");
|
||||
return false;
|
||||
}
|
||||
|
||||
worksName = Z("#worksName").val();
|
||||
if (Z.V.isEmpty(worksName))
|
||||
{
|
||||
Z.alert("请输入作品名称");
|
||||
return false;
|
||||
}
|
||||
|
||||
keywordName = Z("#keywordName").val();
|
||||
if (Z.V.isEmpty(keywordName))
|
||||
{
|
||||
Z.alert("请输入作品关键字");
|
||||
return false;
|
||||
}
|
||||
|
||||
var ext = fileName.substring(fileName.lastIndexOf(".")+1);
|
||||
if (ext != "cdr" && ext != "CDR")
|
||||
{
|
||||
Z.alert("设计文件文件必须是cdr文件");
|
||||
return false;
|
||||
}
|
||||
|
||||
//设置上传路径
|
||||
cdrUpload.setFileDir(cdrPath);
|
||||
};
|
||||
cdrUpload.onCompleted = function(fileId){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doWorksDesignLoad");
|
||||
ajax.addParam(fileId);
|
||||
ajax.addParam(prdTypeId);
|
||||
ajax.addParam(industryId);
|
||||
ajax.addParam(keywordName + " " + industryName);
|
||||
ajax.addParam(worksName);
|
||||
ajax.addParam(Z.AR.toString(indIdarr, ","));
|
||||
ajax.setFailure(function(){
|
||||
cdrUpload.$delete.click();
|
||||
Z.failure(this.responseText);
|
||||
});
|
||||
ajax.setSuccess(function(){
|
||||
items = this.responseText;
|
||||
});
|
||||
ajax.setLoading(document)
|
||||
ajax.execute();
|
||||
};
|
||||
|
||||
cdrUpload.execute();
|
||||
}
|
||||
|
||||
function initHTML5Uploader1()
|
||||
{
|
||||
endUpload = new Z.UploadLarge();
|
||||
endUpload.elem = "FUpload_END";
|
||||
endUpload.fileMd5Target = 1;
|
||||
endUpload.maxSizeMiB = 10;
|
||||
endUpload.contextPath = "${context.getContextPath()}";
|
||||
endUpload.onSelected = function(fileName, fileLength)
|
||||
{
|
||||
if(prdTypeId == -1)
|
||||
{
|
||||
Z.alert("请选择文件上传类型");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(industryId == -1)
|
||||
{
|
||||
Z.alert("请选择文件上传行业");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(indIdarr.length == 0)
|
||||
{
|
||||
Z.alert("请选择一个或多个子行业");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(items == -1 || items == null || items == "")
|
||||
{
|
||||
Z.alert("请先上传设计文件");
|
||||
return false;
|
||||
}
|
||||
var ind = fileName.lastIndexOf(".");
|
||||
if(ind < 0)
|
||||
{
|
||||
Z.alert("不合法的文件名格式");
|
||||
return false;
|
||||
}
|
||||
|
||||
var worksName = Z("#worksName").val();
|
||||
if (Z.V.isEmpty(worksName))
|
||||
{
|
||||
Z.alert("请输入作品名称");
|
||||
return false;
|
||||
}
|
||||
|
||||
var keywordName = Z("#keywordName").val();
|
||||
if (Z.V.isEmpty(keywordName))
|
||||
{
|
||||
Z.alert("请输入作品关键字");
|
||||
return false;
|
||||
}
|
||||
|
||||
var ext = fileName.substring(fileName.lastIndexOf(".")+1);
|
||||
if(ext != "pdf" && ext != "PDF")
|
||||
{
|
||||
Z.alert("印刷文件必须是pdf文件");
|
||||
return false;
|
||||
}
|
||||
|
||||
//设置上传路径
|
||||
endUpload.setFileDir(pdfPath);
|
||||
};
|
||||
endUpload.onCompleted = function(fileId){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("WorksPresenter");
|
||||
ajax.setMethodName("doWorksEndLoad");
|
||||
ajax.addParam(fileId);
|
||||
ajax.addParam(items);
|
||||
ajax.addParam(thumPath);
|
||||
ajax.setFailure(function(){
|
||||
endUpload.$delete.click();
|
||||
Z.failure(this.responseText);
|
||||
});
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("作品添加成功", function(){parent.location.reload();Z.Dialog.close();});
|
||||
});
|
||||
ajax.setLoading(document);
|
||||
ajax.execute();
|
||||
};
|
||||
|
||||
endUpload.execute();
|
||||
}
|
||||
|
||||
//显示子行业 industryId 父行业ID
|
||||
function doSelectorInd(value)
|
||||
{
|
||||
industryId = value;
|
||||
industryName = Z("#ind_"+value).text();
|
||||
|
||||
var subArr = subIndustryMap.get(""+value);
|
||||
var subListHtml = "";
|
||||
if(subArr != null && typeof(subArr) != "undefined" && subArr.length > 0)
|
||||
{
|
||||
Z.each(subArr, function(sub, i){
|
||||
subListHtml += '<button name="subName" id="subid_'+sub.industrySubId+'" type="button" class="z-button z-large z-bordered z-mg-r6 z-mg-t6 z-blue-bd z-hover" onclick="doLabelIdSet(\''+sub.industrySubId+'\',this)">'+sub.industrySubName+'</button>';
|
||||
});
|
||||
}
|
||||
|
||||
Z("#subList").html(subListHtml);
|
||||
}
|
||||
|
||||
//子行业选择
|
||||
function doLabelIdSet(attaid, btn)
|
||||
{
|
||||
if(Z.AR.contains(indIdarr, attaid))
|
||||
{
|
||||
Z.AR.remove(indIdarr, attaid);
|
||||
Z(btn).removeClass("z-active");
|
||||
}
|
||||
else
|
||||
{
|
||||
indIdarr.push(attaid);
|
||||
Z(btn).addClass("z-active");
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<table class="z-table z-bordered z-pd10 z-bg-white">
|
||||
<tr height="20">
|
||||
<td width="30%">作品类型选择:</td>
|
||||
<td width="70%">
|
||||
<button id="nav_2" name="prdType" data-options="group:prdType" class="z-button z-large z-bordered-bg z-blue-bd z-blue-bg fi-mg3 z-active" >彩页</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="80">
|
||||
<td width="30%">作品行业选择:</td>
|
||||
<td width="70%">
|
||||
<#for item : indList>
|
||||
<button id="ind_${item.getIndustryId()}" type="button" name="ind_${item.getIndustryId()}" data-options="group:industry" class="z-button z-large z-bordered-bg z-blue-bd z-blue-bg fi-mg3" onclick="doSelectorInd('${item.getIndustryId()}')">${item.getIndustryName()}</button>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="80">
|
||||
<td width="30%">子行业选择:</td>
|
||||
<td width="70%" id="subList">
|
||||
<#for item : inSubList>
|
||||
<button name="subName" id="sub_${item.getIndustrySubId()}" type="button" class="z-button z-large z-bordered z-mg-r6 z-mg-t6 z-blue-bd z-hover" onclick="doLabelIdSet('${item.getIndustrySubId()}',this)">${item.getIndustrySubName()}</button>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="20">
|
||||
<td width="30%">作品名称:</td>
|
||||
<td width="70%">
|
||||
<input id="worksName" name="worksName" class="z-input z-w300 ${zmr_color_class}" value="" maxlength="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="20">
|
||||
<td width="30%">作品关键字:</td>
|
||||
<td width="70%">
|
||||
<input id="keywordName" name="keywordName" class="z-input z-w300 ${zmr_color_class}" value="" maxlength="20"> <font color="red">用于作品搜索,多组关键字用<b>空格</b>隔开</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="80">
|
||||
<td width="30%">设计文件上传(默认不断点续传):</td>
|
||||
<td width="70%"><button id="FUpload_DESIGN" type="button" class="z-button z-w200 z-blue">HTML5上传</button> <font color="red">必须是cdr文件</font></td>
|
||||
</tr>
|
||||
<tr height="80">
|
||||
<td width="30%">印刷文件上传(默认不断点续传):</td>
|
||||
<td width="70%"><button id="FUpload_END" class="z-button z-w200 z-blue">HTML5上传</button> <font color="red">必须是pdf文件</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
新增問題並參考
封鎖使用者