<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>选择关联知识</title>
|
<!--(start) public flies-->
|
|
</head>
|
[#include "/business/pages/include/static.html" /]
|
<body class="search_list_body">
|
<div class="search_list">
|
<div class="sl_search clearfix">
|
<table><tr><td>
|
<ul>
|
<li><label>标题:</label><input class="general" type="text" id="title" name="title" /></li>
|
<li><label>关键字:</label><input class="general" type="text" id="keyword" name="keyword" /></li>
|
</ul>
|
</td><td>
|
<a class="retrievebtn" href="javascript:window.location.reload(true);">重置</a><a class="retrievebtn focus" href="javascript:query();">查询</a>
|
</td></tr></table>
|
</div>
|
<table class="display_form" id="main">
|
|
</table>
|
</div>
|
|
<script type="text/javascript">
|
function query() {
|
var title = $.trim($("#title").val());
|
var keyword = $.trim($("#keyword").val());
|
var knowIds = '${knowIds}';
|
$.post("${base}/business/pages/knowledge/knowledgeDeal/knowList.html",{"title":title,"keyword":keyword,"knowIds":knowIds},function(data,textStatus) {
|
if(data=='${SysConstants.Ajax_login_Time_Out_Key}') {
|
window.location.href="${base}/business/login.html";
|
}
|
$("#main").html(data);
|
niceform('input[type=checkbox]').create();
|
})
|
|
}
|
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID == "btnSure"){
|
var checkedBox = $("#main :checkbox:checked");
|
if(checkedBox.length==0) {
|
popupTips("请选择关联的知识");
|
return;
|
}
|
var type = '${RequestParameters.type}';
|
var knows = new Array();
|
checkedBox.each(function() {
|
var $str = $(this).parents("tr.linkTr");
|
var map = new $.HashMap();
|
map.put("knowId",$(this).val());
|
map.put("title",$.trim($str.find("td.title").text()));
|
map.put("create_user_name",$.trim($str.find("td.create_user_name").text()));
|
map.put("category_name",$.trim($str.find("td.category_name").text()));
|
knows.push(map);
|
});
|
if(type == 'company'){
|
window.top.document.getElementById('baseMsgIframe1').contentWindow.showLinkKnow(knows);
|
}else if(type == 'dept'){
|
window.top.document.getElementById('baseMsgIframe3').contentWindow.showLinkKnow(knows);
|
}else{
|
window.parent.showLinkKnow(knows);
|
}
|
window.top.hideDialog(dialogID);
|
}
|
}
|
|
|
$(function() {
|
query();
|
})
|
</script>
|
</body>
|
</html>
|