You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.4 KiB
Plaintext

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>节点ICON </title>
<link href="../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../Scripts/bootstrap/js/jquery.min.js"></script>
<script type="text/javascript" src="../../Scripts/config.js"></script>
<script src="../../Scripts/QueryString.js" type="text/javascript"></script>
<script src="../../Comm/Gener.js" type="text/javascript"></script>
<base target="_self" />
<script type="text/javascript" language="javascript">
//页面启动函数.
$(function () {
var handler = new HttpHandler("BP.WF.HttpHandler.WF_Admin_AttrFlow");
handler.AddUrlData();
var data = handler.DoMethodReturnString("NodesIcon_Init");
if (data.indexOf('err@') == 0) {
alert(data);
return;
}
data = JSON.parse(data);
//取出来两个集合.
var nodes = data['Nodes'];
var icons = data['ICONs'];
var html = '';
for (var i = 0; i < icons.length; i++) {
var icon = icons[i];
var fileName = icon.No;
html += "&nbsp;&nbsp;<img class='icon' src='../ClientBin/NodeIcon/" + icon.No + ".png' style='width:60px;height:60px;' onclick=\"SelectIt('" + icon.No + "')\" alt='" + icon.No + "' />";
}
document.getElementById('docs').innerHTML = html;
});
function SelectIt(str) {
var nodeID = GetQueryString("FK_Node");
var node = new Entity("BP.WF.Node", nodeID);
node.ICON = str;
node.Update();
SetHref('NodesIcon.htm?FK_Flow=' + GetQueryString('FK_Flow'));
}
</script>
<style type="text/css">
li
{
padding: 3px 0;
}
</style>
</head>
<body onkeypress="Esc();" >
<form method="post" id="form1">
<div style="margin: 8px">
<table id="Table1" style="width: 100%">
<caption>
请选择一个ICON
</caption>
<tr>
<td>
<div id='docs'>
</div>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>