BUG 8879 "Need help with reference to the colors of the tasks..." SOLVED
- Feature, colors panel in processMap for the "tracker" - Added colors panel in processMap for the "tracker"
This commit is contained in:
@@ -420,6 +420,19 @@ try {
|
||||
$oCriteria2->add(TaskPeer::STG_UID, '');
|
||||
BasePeer::doUpdate($oCriteria1, $oCriteria2, Propel::getConnection('workflow'));
|
||||
break;
|
||||
|
||||
case "processMapLegend":
|
||||
$arrayField = array();
|
||||
$arrayField["sLabel1"] = G::LoadTranslation("ID_TASK_IN_PROGRESS");
|
||||
$arrayField["sLabel2"] = G::LoadTranslation("ID_COMPLETED_TASK");
|
||||
$arrayField["sLabel3"] = G::LoadTranslation("ID_PENDING_TASK");
|
||||
$arrayField["sLabel4"] = G::LoadTranslation("ID_PARALLEL_TASK");
|
||||
$arrayField["tracker"] = 1;
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent("smarty", "cases/cases_Leyends", "", "", $arrayField);
|
||||
G::RenderPage("publish", "raw");
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (Exception $oException) {
|
||||
|
||||
@@ -63,8 +63,8 @@
|
||||
$oHeadPublisher->addScriptCode('
|
||||
leimnud.event.add(window,"load",function(){
|
||||
var pb = leimnud.dom.capture("tag.body 0");
|
||||
Pm=new processmap();
|
||||
Pm.options = {
|
||||
pm = new processmap();
|
||||
pm.options = {
|
||||
target : "pm_target",
|
||||
dataServer: "../processes/processes_Ajax",
|
||||
uid : "' . $_SESSION['PROCESS'] . '",
|
||||
@@ -77,7 +77,49 @@
|
||||
ct : true,
|
||||
hideMenu : false
|
||||
}
|
||||
Pm.make();
|
||||
|
||||
pm.make();
|
||||
|
||||
///////
|
||||
var pnlLegend = new leimnud.module.panel();
|
||||
|
||||
pnlLegend.options = {
|
||||
size: {w: 160, h: 140},
|
||||
position: {
|
||||
x: ((document.body.clientWidth * 95) / 100) - ((document.body.clientWidth * 95) / 100 - (((document.body.clientWidth * 95) / 100) - 160)),
|
||||
y: 175,
|
||||
center: false
|
||||
},
|
||||
title: G_STRINGS.ID_COLOR_LEYENDS,
|
||||
theme: "processmaker",
|
||||
statusBar: false,
|
||||
control: {resize: false, roll: false, drag: true, close: false},
|
||||
fx: {modal: false, opacity: false, blinkToFront: true, fadeIn: false, drag: false}
|
||||
};
|
||||
|
||||
pnlLegend.setStyle = {
|
||||
content: {overflow: "hidden"}
|
||||
};
|
||||
|
||||
pnlLegend.events = {
|
||||
remove: function () { delete(pnlLegend); }.extend(this)
|
||||
};
|
||||
|
||||
pnlLegend.make();
|
||||
pnlLegend.loader.show();
|
||||
|
||||
///////
|
||||
var rpcRequest = new leimnud.module.rpc.xmlhttp({
|
||||
url : "tracker_Ajax",
|
||||
args: "action=processMapLegend"
|
||||
});
|
||||
|
||||
rpcRequest.callback = function (rpc) {
|
||||
pnlLegend.loader.hide();
|
||||
pnlLegend.addContent(rpc.xmlhttp.responseText);
|
||||
}.extend(this);
|
||||
|
||||
rpcRequest.make();
|
||||
});');
|
||||
G::RenderPage('publish');
|
||||
break;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<table width="90%" align="center" cellpadding="0" cellspacing="3" border="0">
|
||||
<tr><td width="20%" style="background-color:#FF0000;"></td><td width="5%"></td><td>{$sLabel1}</td></tr>
|
||||
<tr><td width="20%" style="background-color:#006633;"></td><td width="5%"></td><td>{$sLabel2}</td></tr>
|
||||
<tr><td width="20%" style="background-color:#939598;"></td><td width="5%"></td><td>{$sLabel3}</td></tr>
|
||||
<tr><td width="20%" style="background-color:#FF9900;"></td><td width="5%"></td><td>{$sLabel4}</td></tr>
|
||||
<tr><td width="20%" style="background-color:{if !isset($tracker)}#939598;{else}#006699;{/if}"></td><td width="5%"></td><td>{$sLabel3}</td></tr>
|
||||
{if !isset($tracker)}<tr><td width="20%" style="background-color:#FF9900;"></td><td width="5%"></td><td>{$sLabel4}</td></tr>{/if}
|
||||
</table>
|
||||
</form>
|
||||
Reference in New Issue
Block a user