<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>flow</title>
<style type="text/css">
.div1{font-size:10pt}
.div2{font-size:10pt;cursor:hand}
html,body{height: 100%;padding:0 4 4 0;margin:0;}
</style>
<script language=javascript src=/psub.js></script>
<script language="javascript">
function getUrl(type)
{
var localname = "", pagename = "";
if (document.getElementById("localname") != undefined)
{
localname = document.getElementById("localname").value;
}
var url = location.href;
var re = /.*\/((.+?)\..+)/;
var m = re.exec(url);
var re1, t;
if (localname == "")
{
localname = m[2];
}
if (type == "ram" || localname == "debug")
{
t = new Date().getTime();
var restr = "\\w+\\d{" + (t.toString().length - 1) + "," + (t.toString().length + 1) + "}$";
re1 = new RegExp(restr);
if (!re1.test(localname))
{
localname += t;
}
document.getElementById("localname").value = localname;
}
var title = document.title;
if (title == "")
{
pagename = m[1];
title = pagename;
}
return localname + ";" + title;
}
window.onerror1 = function (sMsg,sUrl,sLine){
var str = "JavaScript脚本错误:\n";
str+="Error: " + sMsg + "\n";
str+="Line: " + sLine + "\n";
str+="URL: " + sUrl;
out.print(str);
return true;
}
var isDown = false;
var mouse0 = new Object();
function mouseover(obj)
{
obj.className = "div2"
}
function mouseout(obj)
{
obj.className = "div1"
}
function mousedown(obj)
{
isDown = true;
mouse0.mouseX0 = parseInt(event.clientX);
mouse0.mouseY0 = parseInt(event.clientY);
flashdiv.flashWidth0 = parseInt(flash.style.width);
//alert(flash.style.width);
flashdiv.flashHeight0 = parseInt(flash.style.height);
obj.setCapture();
}
function mousemove(obj)
{
if (!isDown)
{
return;
}
var offsetX = 0, offsetY = 0;
offsetX = parseInt(event.clientX) - mouse0.mouseX0;
offsetY = parseInt(event.clientY) - mouse0.mouseY0;
if (flashdiv.flashWidth0 + offsetX > 100) {
switch (obj.id) {
case "ccenter" :
break;
case "cleft" :
default :
changeSize.style.left = flashdiv.flashWidth0 + offsetX;
cleft.style.left = flashdiv.flashWidth0 + offsetX;
ccenter.style.left = (flashdiv.flashWidth0 + offsetX) / 2 - 2;
flash.style.width = flashdiv.flashWidth0 + offsetX;
flashdiv.style.width = flashdiv.flashWidth0 + offsetX;
}
changed = true;
}
if ( flashdiv.flashHeight0 + offsetY > 100) {
switch (obj.id) {
case "cleft" :
break;
case "ccenter" :
default :
changeSize.style.top = flashdiv.flashHeight0 + offsetY;
cleft.style.top = (flashdiv.flashHeight0 + offsetY) / 2 - 2;
ccenter.style.top = flashdiv.flashHeight0 + offsetY;
flash.style.height = flashdiv.flashHeight0 + offsetY;
flashdiv.style.height = flashdiv.flashHeight0 + offsetY;
}
changed = true;
}
}
function mouseup(obj)
{
isDown = false;
obj.releaseCapture();
}
function jiancha() {
if (changed) {
return "流程图已修改,放弃保存吗?";
}
}
function mouseclick(obj)
{
obj.className = "div2"
}
AC_FL_RunContent = 0;
var debugLevel = "info";
var flash = null;
function setStageSize(w, h) {
return;
if (h == undefined) {
h = 400;
}
if (w == undefined) {
w = 550;
}
flash.style.width = w;
flash.style.height = h;
changeSize.style.top = h;
changeSize.style.left = w;
cleft.style.top = h / 2 - 2;
cleft.style.left = w;
ccenter.style.top = h;
ccenter.style.left = w / 2 - 2;
if (w > document.body.offsetWidth || h > document.body.offsetHeight) {
document.body.scroll = "yes";
}
}
var changeSize = null;
var flashdiv = null;
var changed = false;
window.onload = function(){
changeSize = document.getElementById("changeSize0");
flashdiv = document.getElementById("flashdiv0");
flash = document.getElementById("flow");
flash.style.width = document.body.offsetWidth;
flash.style.height = document.body.offsetHeight;
};
window.onunload = function(){
//if ( prop != null && !prop.closed )
{
// prop.close();
// prop = null;
}
flash = null;
};
</script>
<script src="../AC_RunActiveContent.js" language="javascript"></script>
<script language=javascript src=/psub.js></script>
</head>
<body bgcolor="#ffffff" onbeforeunload="return jiancha();" scroll="no">
<div id="flashdiv0" style="border:solid 0 #aaaaaa;float:left;"><script language="javascript">
if (AC_FL_RunContent == 0) {
alert("此页需要 AC_RunActiveContent.js");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '550',
'height', '400',
'src', 'flow',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'Opaque',
'devicefont', 'false',
'id', 'flow',
'bgcolor', '#ffffff',
'name', 'flow',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', '../flow',
'salign', ''
); //end AC code
}
</script></div><div id="cleft" style="width:4px;height:4px;background-color:#000080;position:absolute;top:198px;left:550;overflow:hidden;cursor:w-resize;"
onmousedown="mousedown(this);" onmouseup="mouseup(this);" onmousemove="mousemove(this);"></div><div id="ccenter" style="width:4px;height:4px;background-color:#000080;position:absolute;top:400px;left:273;overflow:hidden;cursor:s-resize;"
onmousedown="mousedown(this);" onmouseup="mouseup(this);" onmousemove="mousemove(this);"></div><div id="changeSize0" style="width:4px;height:4px;background-color:#000080;position:absolute;top:400px;left:550;overflow:hidden;cursor:se-resize;"
onmousedown="mousedown(this);" onmouseup="mouseup(this);" onmousemove="mousemove(this);"></div>
<SCRIPT LANGUAGE="JavaScript">
<!--
var prop = null;
var time0 = 0;
var propInfo = "";
var curObj = "";
function flow::FSCommand(command, args)
{
command = command.toLowerCase();
//alert(command+"==="+args)
switch (command)
{
case "alert":
alert(args);
break;
case "status":
top.status = args;
break;
case "eval":
try {
eval(args);
} catch (e) {
}
break;
case "init":
document.getElementById("flow").execFunction("init");
break;
case "delete":
//parent.deleteEle();
flash.setDrawActionType("delete")
break;
case "addnodeafter":
changed = true;
parent.mouseclick();
//parent.addNodeAfter(args);
break;
case "addlineafter":
flash.sendDebug(args);
if (args.indexOf("错误") >= 0) {
return;
}
changed = true;
parent.mouseclick();
//parent.addLineAfter(args);
break;
case "deleteafter":
changed = true;
//parent.deleteAfter(args);
break;
case "node": //双击节点
parent.document.getElementById("nodeProp").src = "/TableAction.asp?Action=EditFlowActionProp&FlowDataID=" + args;
//NewHref("/TableAction.asp?Action=EditFlowActionProp&FlowDataID=" + (parseInt(args) + 1),
// "menubar=0,toolbar=0,location=0,status=0,width=640,height=480,scrollbars=0,resizable=0");
break;
case "line": //双击节点
parent.document.getElementById("nodeProp").src = "/TableAction.asp?Action=FlowCondition_form&FlowID=" + parent.flow_id + "&FlowDataID=" + args;
//window.open("line_prop.asp?flow_id=" + parent.flow_id + "&orderby=" + args, "_blank", "width=500,height=350,resizable=yes");
//NewHref("FlowLineProp.asp?FlowID=" + parent.flow_id + "&FlowDataID=" + (parseInt(args) + 1),
// "menubar=0,toolbar=0,location=0,status=0,width=300,height=220,scrollbars=0,resizable=0");
break;
case "loader": //作廢
parent.continueLoader();
break;
case "parent.reload":
parent.location.reloa
- 1
- 2
- 3
- 4
- 5
- 6
前往页