Merge branch 'master' of bitbucket.org:colosa/processmaker into PM-2288
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -254,9 +254,6 @@ class DataBaseMaintenance
|
||||
*/
|
||||
function dumpData ($table)
|
||||
{
|
||||
G::LoadSystem('inputfilter');
|
||||
$filter = new InputFilter();
|
||||
$table = $filter->validateInput($table, 'nosql');
|
||||
$this->outfile = $this->tmpDir . $table . '.dump';
|
||||
|
||||
//if the file exists delete it
|
||||
@@ -264,8 +261,7 @@ class DataBaseMaintenance
|
||||
@unlink( $this->outfile );
|
||||
}
|
||||
|
||||
$sql = "SELECT * INTO OUTFILE '{%s}' FIELDS TERMINATED BY '\t|\t' OPTIONALLY ENCLOSED BY '\"' LINES TERMINATED BY '\t\t\r\r\n' FROM %s";
|
||||
$sql = $filter->preventSqlInjection($sql, array($this->outfile,$table));
|
||||
$sql = "SELECT * INTO OUTFILE '{$this->outfile}' FIELDS TERMINATED BY '\t|\t' OPTIONALLY ENCLOSED BY '\"' LINES TERMINATED BY '\t\t\r\r\n' FROM $table";
|
||||
// The mysql_escape_string function has been DEPRECATED as of PHP 5.3.0.
|
||||
// Commented that is not assigned to a variable.
|
||||
// mysql_escape_string("';");
|
||||
@@ -285,11 +281,8 @@ class DataBaseMaintenance
|
||||
*/
|
||||
function restoreData ($backupFile)
|
||||
{
|
||||
G::LoadSystem('inputfilter');
|
||||
$filter = new InputFilter();
|
||||
$tableName = str_replace( '.dump', '', basename( $backupFile ) );
|
||||
$sql = "LOAD DATA INFILE '%s' INTO TABLE %s FIELDS TERMINATED BY '\t|\t' OPTIONALLY ENCLOSED BY '\"' LINES TERMINATED BY '\t\t\r\r\n'";
|
||||
$sql = $filter->preventSqlInjection($sql, array($backupFile,$tableName));
|
||||
$sql = "LOAD DATA INFILE '$backupFile' INTO TABLE $tableName FIELDS TERMINATED BY '\t|\t' OPTIONALLY ENCLOSED BY '\"' LINES TERMINATED BY '\t\t\r\r\n'";
|
||||
if (! @mysql_query( $sql )) {
|
||||
print mysql_error() . "\n";
|
||||
return false;
|
||||
@@ -305,12 +298,8 @@ class DataBaseMaintenance
|
||||
function backupData ()
|
||||
{
|
||||
$aTables = $this->getTablesList();
|
||||
G::LoadSystem('inputfilter');
|
||||
$filter = new InputFilter();
|
||||
$aTables = $filter->xssFilterHard($aTables);
|
||||
foreach ($aTables as $table) {
|
||||
if ($this->dumpData( $table ) !== false) {
|
||||
$this->outfile = $filter->xssFilterHard($this->outfile);
|
||||
printf( "%20s %s %s\n", 'Dump of table:', $table, " in file {$this->outfile}" );
|
||||
} else {
|
||||
return false;
|
||||
@@ -347,11 +336,6 @@ class DataBaseMaintenance
|
||||
{
|
||||
|
||||
$aTables = $this->getTablesList();
|
||||
G::LoadSystem('inputfilter');
|
||||
$filter = new InputFilter();
|
||||
$aTables = $filter->xssFilterHard($aTables);
|
||||
$this->tmpDir = $filter->xssFilterHard($this->tmpDir);
|
||||
$this->infile = $filter->xssFilterHard($this->infile);
|
||||
|
||||
foreach ($aTables as $table) {
|
||||
if (isset( $type ) && $type == 'sql') {
|
||||
@@ -437,22 +421,11 @@ class DataBaseMaintenance
|
||||
|
||||
function lockTables ()
|
||||
{
|
||||
G::LoadSystem('inputfilter');
|
||||
$filter = new InputFilter();
|
||||
$aTables = $this->getTablesList();
|
||||
if (empty( $aTables ))
|
||||
return false;
|
||||
printf( "%-70s", "LOCK TABLES" );
|
||||
|
||||
if(is_array($aTables)) {
|
||||
foreach($aTables as $k => $v) {
|
||||
$aTables[$k] = mysql_real_escape_string($v);
|
||||
}
|
||||
}
|
||||
|
||||
$sQuery = "LOCK TABLES " . implode( " READ, ", $aTables ) . " READ; ";
|
||||
|
||||
if (@mysql_query( $filter->preventSqlInjection($sQuery) )) {
|
||||
if (@mysql_query( "LOCK TABLES " . implode( " READ, ", $aTables ) . " READ; " )) {
|
||||
echo " [OK]\n";
|
||||
return true;
|
||||
} else {
|
||||
@@ -481,14 +454,8 @@ class DataBaseMaintenance
|
||||
function dumpSqlInserts ($table)
|
||||
{
|
||||
|
||||
G::LoadSystem('inputfilter');
|
||||
$filter = new InputFilter();
|
||||
$table = $filter->xssFilterHard($table);
|
||||
$table = $filter->validateInput($table, 'nosql');
|
||||
$bytesSaved = 0;
|
||||
$query = "SELECT * FROM `%s`";
|
||||
$query = $filter->preventSqlInjection($query, array($table));
|
||||
$result = @mysql_query( $query );
|
||||
$result = @mysql_query( "SELECT * FROM `$table`" );
|
||||
|
||||
$num_rows = mysql_num_rows( $result );
|
||||
$num_fields = mysql_num_fields( $result );
|
||||
@@ -509,7 +476,6 @@ class DataBaseMaintenance
|
||||
$data .= ");\n";
|
||||
}
|
||||
|
||||
$data = $filter->preventSqlInjection($data);
|
||||
printf( "%-59s%20s", "Dump of table $table", strlen( $data ) . " Bytes Saved\n" );
|
||||
return $data;
|
||||
}
|
||||
@@ -659,12 +625,10 @@ class DataBaseMaintenance
|
||||
*/
|
||||
function getSchemaFromTable ($tablename)
|
||||
{
|
||||
G::LoadSystem('inputfilter');
|
||||
$filter = new InputFilter();
|
||||
$tablename = $filter->validateInput($tablename, 'nosql');
|
||||
//$tableSchema = "/* Structure for table `$tablename` */\n";
|
||||
//$tableSchema .= "DROP TABLE IF EXISTS `$tablename`;\n\n";
|
||||
$tableSchema = "";
|
||||
$sql = 'show create table `%s`; ';
|
||||
$sql = $filter->preventSqlInjection($sql, array($tablename));
|
||||
$sql = "show create table `$tablename`; ";
|
||||
$result = @mysql_query( $sql );
|
||||
if ($result) {
|
||||
if ($row = mysql_fetch_assoc( $result )) {
|
||||
|
||||
@@ -452,6 +452,18 @@ Wrote: /usr/src/redhat/RPMS/i386/PEAR::Net_Socket-1.0-1.i386.rpm
|
||||
|
||||
function doRunTests($command, $options, $params)
|
||||
{
|
||||
if (!class_exists('G')) {
|
||||
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||
$docuroot = explode( '/', $realdocuroot );
|
||||
array_pop( $docuroot );
|
||||
$pathhome = implode( '/', $docuroot ) . '/';
|
||||
array_pop( $docuroot );
|
||||
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||
}
|
||||
G::LoadSystem('inputfilter');
|
||||
$filter = new InputFilter();
|
||||
|
||||
$cwd = getcwd();
|
||||
$php = PHP_BINDIR . '/php' . (OS_WINDOWS ? '.exe' : '');
|
||||
putenv("TEST_PHP_EXECUTABLE=$php");
|
||||
@@ -465,20 +477,16 @@ Wrote: /usr/src/redhat/RPMS/i386/PEAR::Net_Socket-1.0-1.i386.rpm
|
||||
}
|
||||
}
|
||||
$plist = implode(" ", $params);
|
||||
|
||||
$php = $filter->validateInput($php);
|
||||
$cwd = $filter->validateInput($cwd);
|
||||
$ps = $filter->validateInput($ps);
|
||||
$ip = $filter->validateInput($ip);
|
||||
$run_tests = $filter->validateInput($run_tests);
|
||||
$plist = $filter->validateInput($plist);
|
||||
|
||||
$cmd = $php.' -C -d include_path='.$cwd.$ps.$ip.' -f '.$run_tests.' -- '.$plist;
|
||||
|
||||
if (!class_exists('G')) {
|
||||
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||
$docuroot = explode( '/', $realdocuroot );
|
||||
array_pop( $docuroot );
|
||||
$pathhome = implode( '/', $docuroot ) . '/';
|
||||
array_pop( $docuroot );
|
||||
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||
}
|
||||
|
||||
G::LoadSystem('inputfilter');
|
||||
$filter = new InputFilter();
|
||||
$cmd = $filter->validateInput($cmd);
|
||||
|
||||
system($cmd);
|
||||
|
||||
@@ -75,11 +75,11 @@ class indicatorsCalculator
|
||||
private $userGroupReportingMetadata = array("tableName" => "USR_REPORTING", "keyField" => "PRO_UID");
|
||||
private $processCategoryReportingMetadata = array("tableName" => "PRO_REPORTING", "keyField" => "PRO_UID");
|
||||
|
||||
private $peiCostFormula = "USER_HOUR_COST * SUM(case when TOTAL_TIME_BY_TASK >0 then TOTAL_CASES_OUT * CONFIGURED_TASK_TIME - TOTAL_TIME_BY_TASK * USER_HOUR_COST else 0 end)";
|
||||
private $peiCostFormula = " SUM(case when TOTAL_TIME_BY_TASK >0 then (TOTAL_CASES_OUT * CONFIGURED_TASK_TIME - TOTAL_TIME_BY_TASK) * USER_HOUR_COST else 0 end)";
|
||||
private $peiFormula = "SUM(TOTAL_CASES_OUT*CONFIGURED_TASK_TIME) / SUM(SDV_TIME * TOTAL_CASES_OUT + TOTAL_TIME_BY_TASK)";
|
||||
|
||||
private $ueiCostFormula = " USER_HOUR_COST * SUM(case when TOTAL_TIME_BY_TASK >0 then TOTAL_CASES_OUT * CONFIGURED_TASK_TIME - TOTAL_TIME_BY_TASK * USER_HOUR_COST else 0 end)";
|
||||
private $ueiFormula = "SUM(TOTAL_CASES_OUT * CONFIGURED_TASK_TIME) / SUM(TOTAL_TIME_BY_TASK * USER_HOUR_COST)";
|
||||
private $ueiCostFormula = " SUM(case when TOTAL_TIME_BY_TASK >0 then (TOTAL_CASES_OUT * CONFIGURED_TASK_TIME - TOTAL_TIME_BY_TASK) * USER_HOUR_COST else 0 end)";
|
||||
private $ueiFormula = "SUM(TOTAL_CASES_OUT * CONFIGURED_TASK_TIME) / SUM(TOTAL_TIME_BY_TASK)";
|
||||
|
||||
public function getSkewOfDataDistribution($table, $field) {
|
||||
/*$sqlString = "SET @median = (SELECT x.$field from $table x, $table y
|
||||
|
||||
@@ -44,7 +44,10 @@ class Dashboard extends BaseDashboard
|
||||
$dashboard = DashboardPeer::retrieveByPK($data['DAS_UID']);
|
||||
}
|
||||
|
||||
G::LoadSystem('inputfilter');
|
||||
$filter = new InputFilter();
|
||||
$data['DAS_UPDATE_DATE'] = date('Y-m-d H:i:s');
|
||||
$data['DAS_TITLE'] = $filter ->validateInput($data['DAS_TITLE'], "string");
|
||||
$dashboard->fromArray($data, BasePeer::TYPE_FIELDNAME);
|
||||
if ($dashboard->validate()) {
|
||||
$connection->begin();
|
||||
|
||||
@@ -21,11 +21,6 @@ class StrategicDashboard extends Controller
|
||||
{
|
||||
global $RBAC;
|
||||
|
||||
if ($RBAC->userCanAccess('PM_SETUP') != 1) {
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header( 'location: login/login' );
|
||||
exit(0);
|
||||
}
|
||||
$licensedFeatures = & PMLicensedFeatures::getSingleton();
|
||||
if (!$licensedFeatures->verifyfeature('r19Vm5DK1UrT09MenlLYjZxejlhNUZ1b1NhV0JHWjBsZEJ6dnpJa3dTeWVLVT0=')) {
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
@@ -215,8 +210,8 @@ class StrategicDashboard extends Controller
|
||||
$translation['ID_NO_INEFFICIENT_USER_GROUPS'] = G::LoadTranslation('ID_NO_INEFFICIENT_USER_GROUPS');
|
||||
$translation['ID_NO_INEFFICIENT_USERS'] = G::LoadTranslation('ID_NO_INEFFICIENT_USERS');
|
||||
$translation['ID_DISPLAY_EMPTY'] = G::LoadTranslation('ID_DISPLAY_EMPTY');
|
||||
$translation['ID_EMPTY'] = G::LoadTranslation('ID_EMPTY');
|
||||
$translation['ID_INBOX'] = G::LoadTranslation('ID_INBOX');
|
||||
//text for inbox empty in status indicator
|
||||
$translation['ID_INBOX_EMPTY'] = G::LoadTranslation('ID_INBOX_EMPTY');
|
||||
|
||||
$this->setVar('translation', $translation);
|
||||
$this->render();
|
||||
@@ -266,9 +261,7 @@ class StrategicDashboard extends Controller
|
||||
$translation['ID_NO_INEFFICIENT_USER_GROUPS'] = G::LoadTranslation('ID_NO_INEFFICIENT_USER_GROUPS');
|
||||
$translation['ID_NO_INEFFICIENT_USERS'] = G::LoadTranslation('ID_NO_INEFFICIENT_USERS');
|
||||
$translation['ID_DISPLAY_EMPTY'] = G::LoadTranslation('ID_DISPLAY_EMPTY');
|
||||
$translation['ID_EMPTY'] = G::LoadTranslation('ID_EMPTY');
|
||||
$translation['ID_INBOX'] = G::LoadTranslation('ID_INBOX');
|
||||
|
||||
$translation['ID_INBOX_EMPTY'] = G::LoadTranslation('ID_INBOX_EMPTY');
|
||||
|
||||
$this->setVar('translation', $translation);
|
||||
$this->render();
|
||||
|
||||
@@ -192,7 +192,7 @@ ViewDashboardPresenter.prototype.setStatusButtonWidthsAndDisplayValues = functio
|
||||
});
|
||||
|
||||
if (atRisk.valueToShow == 0 && overdue.valueToShow == 0 && onTime.valueToShow == 0) {
|
||||
onTime.valueToShow = G_STRING['ID_INBOX'] + ' ' + G_STRING['ID_EMPTY'];
|
||||
onTime.valueToShow = G_STRING['ID_INBOX_EMPTY'];
|
||||
onTime.width = 100;
|
||||
}
|
||||
|
||||
@@ -310,18 +310,18 @@ ViewDashboardPresenter.prototype.statusViewModel = function(indicatorId, data) {
|
||||
$.each(data.dataList, function(index, originalObject) {
|
||||
|
||||
originalObject.taskTitle = that.helper.labelIfEmpty(originalObject.taskTitle);
|
||||
var title = originalObject.taskTitle.substring(0,10);
|
||||
//var title = originalObject.taskTitle.substring(0,10);
|
||||
|
||||
var newObject1 = {
|
||||
datalabel : title,
|
||||
datalabel : originalObject.taskTitle,
|
||||
value : originalObject.percentageTotalOverdue
|
||||
};
|
||||
var newObject2 = {
|
||||
datalabel : title,
|
||||
datalabel : originalObject.taskTitle,
|
||||
value : originalObject.percentageTotalAtRisk
|
||||
};
|
||||
var newObject3 = {
|
||||
datalabel : title,
|
||||
datalabel : originalObject.taskTitle,
|
||||
value : originalObject.percentageTotalOnTime
|
||||
};
|
||||
|
||||
@@ -338,6 +338,11 @@ ViewDashboardPresenter.prototype.statusViewModel = function(indicatorId, data) {
|
||||
originalObject.indicatorId = indicatorId;
|
||||
});
|
||||
|
||||
|
||||
that.makeShortLabel(graph1Data, 10);
|
||||
that.makeShortLabel(graph2Data, 10);
|
||||
that.makeShortLabel(graph3Data, 10);
|
||||
|
||||
var retval = data;
|
||||
retval.graph1Data = this.orderGraphData(graph1Data, "down").splice(0,7)
|
||||
retval.graph2Data = this.orderGraphData(graph2Data, "down").splice(0,7)
|
||||
@@ -517,10 +522,15 @@ ViewDashboardPresenter.prototype.adaptGraphData = function(listData) {
|
||||
|
||||
ViewDashboardPresenter.prototype.makeShortLabel = function(listData, labelLength) {
|
||||
$.each(listData, function(index, item) {
|
||||
var longLabel = (item.datalabel == null)
|
||||
? ""
|
||||
: item.datalabel.substring(0, 50);
|
||||
|
||||
var shortLabel = (item.datalabel == null)
|
||||
? ""
|
||||
: item.datalabel.substring(0, labelLength);
|
||||
|
||||
item.datalabel = shortLabel;
|
||||
item.datalabel = shortLabel;
|
||||
item.longlabel = longLabel;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -590,7 +590,7 @@ var fillStatusIndicatorFirstView = function (presenterData) {
|
||||
|
||||
allowDrillDown:true,
|
||||
allowTransition:true,
|
||||
showTip: false,
|
||||
showTip: true,
|
||||
allowZoom: false,
|
||||
showLabels: true
|
||||
}
|
||||
@@ -650,7 +650,7 @@ var fillSpecialIndicatorFirstView = function(presenterData) {
|
||||
graph: {
|
||||
allowDrillDown:false,
|
||||
allowTransition:true,
|
||||
showTip: false,
|
||||
showTip: true,
|
||||
allowZoom: false,
|
||||
gapWidth:0.3,
|
||||
useShadows: true,
|
||||
@@ -674,7 +674,7 @@ var fillSpecialIndicatorFirstView = function(presenterData) {
|
||||
axisY:{ showAxis: true, label: G_STRING['ID_COSTS']},
|
||||
gridLinesX:false,
|
||||
gridLinesY:true,
|
||||
showTip: false,
|
||||
showTip: true,
|
||||
allowZoom: false,
|
||||
useShadows: true,
|
||||
paddingTop: 50,
|
||||
@@ -747,7 +747,7 @@ var fillSpecialIndicatorSecondView = function(presenterData) {
|
||||
graph: {
|
||||
allowTransition: false,
|
||||
allowDrillDown: true,
|
||||
showTip: false,
|
||||
showTip: true,
|
||||
allowZoom: false,
|
||||
useShadows: false,
|
||||
gridLinesX: true,
|
||||
@@ -837,7 +837,7 @@ var fillGeneralIndicatorFirstView = function (presenterData) {
|
||||
graph: {
|
||||
allowTransition: false,
|
||||
allowDrillDown: true,
|
||||
showTip: false,
|
||||
showTip: true,
|
||||
allowZoom: false,
|
||||
useShadows: false,
|
||||
gridLinesX: true,
|
||||
@@ -859,7 +859,7 @@ var fillGeneralIndicatorFirstView = function (presenterData) {
|
||||
graph: {
|
||||
allowTransition: false,
|
||||
allowDrillDown: true,
|
||||
showTip: false,
|
||||
showTip: true,
|
||||
allowZoom: false,
|
||||
useShadows: false,
|
||||
gridLinesX: true,
|
||||
@@ -885,7 +885,7 @@ var fillGeneralIndicatorFirstView = function (presenterData) {
|
||||
axisY:{ showAxis: true, label: G_STRING.ID_TIME_HOURS },
|
||||
gridLinesX:false,
|
||||
gridLinesY:true,
|
||||
showTip: false,
|
||||
showTip: true,
|
||||
allowZoom: false,
|
||||
useShadows: true,
|
||||
paddingTop: 50,
|
||||
@@ -907,7 +907,7 @@ var fillGeneralIndicatorFirstView = function (presenterData) {
|
||||
axisY:{ showAxis: true, label: G_STRING.ID_TIME_HOURS },
|
||||
gridLinesX:false,
|
||||
gridLinesY:true,
|
||||
showTip: false,
|
||||
showTip: true,
|
||||
allowZoom: false,
|
||||
useShadows: true,
|
||||
paddingTop: 50,
|
||||
|
||||
@@ -48,7 +48,7 @@ if ($RBAC->userCanAccess('PM_DASHBOARD') == 1) {
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$licensedFeatures = & PMLicensedFeatures::getSingleton();
|
||||
if ($licensedFeatures->verifyfeature('r19Vm5DK1UrT09MenlLYjZxejlhNUZ1b1NhV0JHWjBsZEJ6dnpJa3dTeWVLVT0=') && ($RBAC->userCanAccess('PM_SETUP') == 1 || $RBAC->userCanAccess('PM_USERS') == 1)) {
|
||||
if ($licensedFeatures->verifyfeature('r19Vm5DK1UrT09MenlLYjZxejlhNUZ1b1NhV0JHWjBsZEJ6dnpJa3dTeWVLVT0=') ) {
|
||||
$G_TMP_MENU->AddIdRawOption('DASHBOARD+', 'strategicDashboard/main', G::LoadTranslation('ID_STRATEGIC_DASHBOARD'), '', '', '', 'x-pm-dashboard');
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
@@ -464,7 +464,7 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
||||
$APP_UID = $filter->xssFilterHard($_POST['APP_UID']);
|
||||
$DEL_INDEX = $filter->xssFilterHard($_POST['DEL_INDEX']);
|
||||
|
||||
$_GET['APP_UID'] = $APP_UID
|
||||
$_GET['APP_UID'] = $APP_UID;
|
||||
$_GET['DEL_INDEX'] = $DEL_INDEX;
|
||||
$G_PUBLISH = new Publisher();
|
||||
|
||||
|
||||
@@ -22,8 +22,6 @@
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*/
|
||||
|
||||
$RBAC->requirePermissions( 'PM_DASHBOARD' );
|
||||
|
||||
$licensedFeatures = & PMLicensedFeatures::getSingleton();
|
||||
if (!$licensedFeatures->verifyfeature('r19Vm5DK1UrT09MenlLYjZxejlhNUZ1b1NhV0JHWjBsZEJ6dnpJa3dTeWVLVT0=')) {
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
|
||||
@@ -26,18 +26,34 @@ $_POST['qs'] = $filter->xssFilterHard($_POST['qs']);
|
||||
|
||||
|
||||
function autoResizeScreen() {
|
||||
var containerList1, containerList2;
|
||||
oCasesFrame = document.getElementById('casesFrame');
|
||||
oClientWinSize = getClientWindowSize();
|
||||
|
||||
containerList1 = document.getElementById("pm_header");
|
||||
if (document.getElementById("mainMenuBG") &&
|
||||
document.getElementById("mainMenuBG").parentNode &&
|
||||
document.getElementById("mainMenuBG").parentNode.parentNode &&
|
||||
document.getElementById("mainMenuBG").parentNode.parentNode.parentNode &&
|
||||
document.getElementById("mainMenuBG").parentNode.parentNode.parentNode.parentNode){
|
||||
containerList2 = document.getElementById("mainMenuBG").parentNode.parentNode.parentNode.parentNode;
|
||||
}
|
||||
if (containerList1 === containerList2) {
|
||||
height = oClientWinSize.height - containerList1.clientHeight;
|
||||
oCasesFrame.style.height = height;
|
||||
if (oCasesFrame.height ) {
|
||||
oCasesFrame.height = height;
|
||||
}
|
||||
} else {
|
||||
height = getClientWindowSize().height-90;
|
||||
oCasesFrame.style.height = height + 'px';;
|
||||
oCasesFrame.style.height = height + 'px';
|
||||
oCasesSubFrame = oCasesFrame.contentWindow.document.getElementById('casesSubFrame');
|
||||
if(oCasesSubFrame){
|
||||
oCasesSubFrame.style.height = (height-5) + 'px';;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
setTimeout('autoResizeScreen()', 2000);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
@@ -22,7 +22,24 @@
|
||||
|
||||
|
||||
function autoResizeScreen() {
|
||||
var containerList1, containerList2;
|
||||
oCasesFrame = document.getElementById('casesFrame');
|
||||
containerList1 = document.getElementById("pm_header");
|
||||
|
||||
if (document.getElementById("mainMenuBG") &&
|
||||
document.getElementById("mainMenuBG").parentNode &&
|
||||
document.getElementById("mainMenuBG").parentNode.parentNode &&
|
||||
document.getElementById("mainMenuBG").parentNode.parentNode.parentNode &&
|
||||
document.getElementById("mainMenuBG").parentNode.parentNode.parentNode.parentNode){
|
||||
containerList2 = document.getElementById("mainMenuBG").parentNode.parentNode.parentNode.parentNode;
|
||||
}
|
||||
if (containerList1 === containerList2) {
|
||||
height = oClientWinSize.height - containerList1.clientHeight;
|
||||
oCasesFrame.style.height = height;
|
||||
if (oCasesFrame.height ) {
|
||||
oCasesFrame.height = height;
|
||||
}
|
||||
}else{
|
||||
height = getClientWindowSize().height-90;
|
||||
oCasesFrame.style.height = height;
|
||||
oCasesSubFrame = oCasesFrame.contentWindow.document.getElementById('casesSubFrame');
|
||||
@@ -32,8 +49,7 @@
|
||||
else {
|
||||
setTimeout('autoResizeScreen()', 2000);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
@@ -94,7 +94,7 @@
|
||||
<a target="_blank" href="http://www.processmaker.com"><img src="/images/get_started.png" border="0" width="163" height="438"></a>
|
||||
</td>
|
||||
<td class="cell2" valign="top">
|
||||
<p><b><span class="cLow">Welcome to ProcessMaker 3.</span></b></p><br/>
|
||||
<p><b><span class="cLow">Welcome to ProcessMaker</span></b></p><br/>
|
||||
<p style="text-align: justify;"><span class="cLow-min">This new version features a new process designer based upon the Business Process Management Notation 2 standard. It offers a new form designer with flexible layouts for desktops, tablets and cellphones and a new REST API to remotely access ProcessMaker.</span></p>
|
||||
<p style="text-align: justify;"><span class="cLow-min">To get started, log in using the following credentials. You can change them later:</span></p>
|
||||
<span class="cNeg">Username:</span><span class="cLow"> {name}</span><br>
|
||||
|
||||
@@ -15,7 +15,23 @@
|
||||
document.documentElement.style.overflowY = 'hidden';
|
||||
|
||||
function autoResizeScreen() {
|
||||
var containerList1, containerList2;
|
||||
oCasesFrame = document.getElementById('adminFrame');
|
||||
containerList1 = document.getElementById("pm_header");
|
||||
if (document.getElementById("mainMenuBG") &&
|
||||
document.getElementById("mainMenuBG").parentNode &&
|
||||
document.getElementById("mainMenuBG").parentNode.parentNode &&
|
||||
document.getElementById("mainMenuBG").parentNode.parentNode.parentNode &&
|
||||
document.getElementById("mainMenuBG").parentNode.parentNode.parentNode.parentNode){
|
||||
containerList2 = document.getElementById("mainMenuBG").parentNode.parentNode.parentNode.parentNode;
|
||||
}
|
||||
if (containerList1 === containerList2) {
|
||||
height = oClientWinSize.height - containerList1.clientHeight;
|
||||
oCasesFrame.style.height = height;
|
||||
if (oCasesFrame.height ) {
|
||||
oCasesFrame.height = height;
|
||||
}
|
||||
} else {
|
||||
oClientWinSize = getClientWindowSize();
|
||||
height = oClientWinSize.height-90;
|
||||
oCasesFrame.style.height = height;
|
||||
@@ -26,5 +42,6 @@
|
||||
else
|
||||
setTimeout('autoResizeScreen()', 2000);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
@@ -239,7 +239,7 @@ Ext.onReady(function() {
|
||||
viewConfig: {
|
||||
forceFit:true
|
||||
},
|
||||
title : _('ID_STRATEGIC_DASHBOARD'),
|
||||
title : _('ID_KPI'),
|
||||
store: store,
|
||||
cm: cmodel,
|
||||
sm: smodel,
|
||||
|
||||
@@ -81,8 +81,8 @@ Ext.onReady( function() {
|
||||
xtype : 'textfield',
|
||||
anchor : '85%',
|
||||
maxLength : 250,
|
||||
maskRe : /([a-zA-Z0-9_'\s]+)$/,
|
||||
regex : /([a-zA-Z0-9_'\s]+)$/,
|
||||
maskRe : /^([a-zA-Z0-9_'\s]+)$/i,
|
||||
regex : /^([a-zA-Z0-9_'\s]+)$/i,
|
||||
regexText : _('ID_INVALID_VALUE', _('ID_DASHBOARD_TITLE')),
|
||||
allowBlank : false
|
||||
},
|
||||
@@ -752,8 +752,8 @@ var addTab = function (flag) {
|
||||
id : 'IND_TITLE_'+ indexTab,
|
||||
xtype : 'textfield',
|
||||
anchor : '85%',
|
||||
maskRe : /([a-zA-Z0-9_'\s]+)$/,
|
||||
regex : /([a-zA-Z0-9_'\s]+)$/,
|
||||
maskRe : /^([a-zA-Z0-9_'\s]+)$/,
|
||||
regex : /^([a-zA-Z0-9_'\s]+)$/,
|
||||
regexText : _('ID_INVALID_VALUE', _('ID_INDICATOR_TITLE')),
|
||||
maxLength : 250,
|
||||
allowBlank : false
|
||||
@@ -1044,6 +1044,10 @@ var saveDashboard = function () {
|
||||
PMExt.warning(_('ID_DASHBOARD'), _('ID_DASHBOARD_TITLE') + ' '+ _('ID_IS_REQUIRED'));
|
||||
Ext.getCmp('DAS_TITLE').focus(true,10);
|
||||
return false;
|
||||
} else if (!Ext.getCmp('DAS_TITLE').isValid()) {
|
||||
PMExt.warning(_('ID_DASHBOARD'), _('ID_INVALID_VALUE', _('ID_DASHBOARD_TITLE')));
|
||||
Ext.getCmp('DAS_TITLE').focus(true,10);
|
||||
return false;
|
||||
}
|
||||
data['DAS_TITLE'] = title;
|
||||
var description = Ext.getCmp('DAS_DESCRIPTION').getValue();
|
||||
@@ -1111,6 +1115,10 @@ var saveAllIndicators = function (DAS_UID) {
|
||||
PMExt.warning(_('ID_DASHBOARD'), _('ID_INDICATOR_TITLE_REQUIRED', tabPanel.getItem(tabActivate[tab]).title));
|
||||
fieldsTab[1].focus(true,10);
|
||||
return false;
|
||||
} else if (!fieldsTab[1].isValid()) {
|
||||
PMExt.warning(_('ID_DASHBOARD'), _('ID_INVALID_VALUE', _('ID_INDICATOR_TITLE')));
|
||||
fieldsTab[1].focus(true,10);
|
||||
return false;
|
||||
} else if (fieldsTab[2].getValue().trim() == '') {
|
||||
PMExt.warning(_('ID_DASHBOARD'), _('ID_INDICATOR_TYPE_REQUIRED', tabPanel.getItem(tabActivate[tab]).title));
|
||||
fieldsTab[2].focus(true,10);
|
||||
@@ -1279,6 +1287,11 @@ var loadIndicators = function (DAS_UID) {
|
||||
});
|
||||
};
|
||||
|
||||
function converter(str) {
|
||||
str = str.replace(/'/g, "'");
|
||||
return str;
|
||||
}
|
||||
|
||||
var loadInfoDashboard = function (DAS_UID) {
|
||||
Ext.Ajax.request({
|
||||
url : urlProxy + 'dashboard/' + DAS_UID,
|
||||
@@ -1289,7 +1302,7 @@ var loadInfoDashboard = function (DAS_UID) {
|
||||
},
|
||||
success: function (response) {
|
||||
var jsonResp = Ext.util.JSON.decode(response.responseText);
|
||||
Ext.getCmp('DAS_TITLE').setValue(jsonResp['DAS_TITLE']);
|
||||
Ext.getCmp('DAS_TITLE').setValue(converter(jsonResp['DAS_TITLE']));
|
||||
Ext.getCmp('DAS_DESCRIPTION').setValue(jsonResp['DAS_DESCRIPTION']);
|
||||
},
|
||||
failure: function (response) {
|
||||
|
||||
@@ -522,11 +522,12 @@ Ext.onReady(function () {
|
||||
fieldLabel : _('ID_COST_BY_HOUR'),
|
||||
xtype : 'numberfield',
|
||||
allowNegative: false,
|
||||
emptyText : '0.00',
|
||||
decimalSeparator : '.',
|
||||
maskRe : /^[0-9]/i,
|
||||
regex : /^[0-9]/i,
|
||||
regexText : _('ID_INVALID_VALUE', _('ID_COST_BY_HOUR')),
|
||||
maxLength : 13,
|
||||
maxLength : 10,
|
||||
width : 80
|
||||
},
|
||||
{
|
||||
@@ -610,7 +611,6 @@ Ext.onReady(function () {
|
||||
if (Ext.getCmp('USR_CNF_PASS').getValue() != '') {
|
||||
userExecuteEvent(document.getElementById('USR_CNF_PASS'), 'blur');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1175,6 +1175,11 @@ function saveUser()
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (!Ext.getCmp('USR_COST_BY_HOUR').isValid()) {
|
||||
PMExt.warning(_('ID_ERROR'), _('ID_INVALID_VALUE_EXPECTING_POSITIVE_INTEGER', _('ID_COST_BY_HOUR')));
|
||||
Ext.getCmp('USR_COST_BY_HOUR').focus(true,10);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (USR_UID == '00000000000000000000000000000001') {
|
||||
if (Ext.getCmp('USR_ROLE').getValue() != PROCESSMAKER_ADMIN) {
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
.grid-stack-item[data-gs-x="2"] { left: 16.66666667% }
|
||||
.grid-stack-item[data-gs-x="1"] { left: 8.33333333% }
|
||||
|
||||
@media (max-width: 1000px) {
|
||||
@media (max-width: 990px) {
|
||||
.grid-stack-item {
|
||||
position: relative !important;
|
||||
width: auto !important;
|
||||
|
||||
Reference in New Issue
Block a user