Merge remote branch 'upstream/master' into PM-2104
This commit is contained in:
@@ -294,10 +294,10 @@ class Publisher
|
||||
|
||||
//This dynaform has show/hide field conditions
|
||||
if (isset($_SESSION['CURRENT_DYN_UID']) && $_SESSION['CURRENT_DYN_UID'] != '') {
|
||||
$ConditionalShowHideRoutines = $oFieldCondition->getConditionScript($_SESSION["CURRENT_DYN_UID"]); //lsl
|
||||
$ConditionalShowHideRoutines = $oFieldCondition->getConditionScript($_SESSION["CURRENT_DYN_UID"]);
|
||||
} else {
|
||||
if (isset($_SESSION['CONDITION_DYN_UID']) && $_SESSION['CONDITION_DYN_UID'] != '') {
|
||||
$ConditionalShowHideRoutines = $oFieldCondition->getConditionScript($_SESSION["CONDITION_DYN_UID"]); //lsl
|
||||
$ConditionalShowHideRoutines = $oFieldCondition->getConditionScript($_SESSION["CONDITION_DYN_UID"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -649,4 +649,3 @@ class Publisher
|
||||
$G_TABLE = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,127 @@ class PMLicensedFeatures
|
||||
{
|
||||
private $featuresDetails = array ();
|
||||
private $features = array ();
|
||||
private $newFeatures = array(
|
||||
0 => array(
|
||||
"description" => "Enables de Actions By Email feature.",
|
||||
"enabled" => false,
|
||||
"id" => "actionsByEmail",
|
||||
"latest_version" => "",
|
||||
"log" => null,
|
||||
"name" => "actionsByEmail",
|
||||
"nick" => "actionsByEmail",
|
||||
"progress" => 0,
|
||||
"publisher" => "Colosa",
|
||||
"release_type" => "localRegistry",
|
||||
"status" => "ready",
|
||||
"store" => "00000000000000000000000000010004",
|
||||
"type" => "features",
|
||||
"url" => "",
|
||||
"version" => ""
|
||||
),
|
||||
1 => array(
|
||||
"description" => "Enables de Batch Routing feature.",
|
||||
"enabled" => false,
|
||||
"id" => "pmConsolidatedCL",
|
||||
"latest_version" => "",
|
||||
"log" => null,
|
||||
"name" => "pmConsolidatedCL",
|
||||
"nick" => "pmConsolidatedCL",
|
||||
"progress" => 0,
|
||||
"publisher" => "Colosa",
|
||||
"release_type" => "localRegistry",
|
||||
"status" => "ready",
|
||||
"store" => "00000000000000000000000000010005",
|
||||
"type" => "features",
|
||||
"url" => "",
|
||||
"version" => ""
|
||||
),
|
||||
2 => array(
|
||||
"description" => "Dashboard with improved charting graphics and optimized to show strategic information like Process Efficiency and User Efficiency indicators.",
|
||||
"enabled" => false,
|
||||
"id" => "strategicDashboards",
|
||||
"latest_version" => "",
|
||||
"log" => null,
|
||||
"name" => "strategicDashboards",
|
||||
"nick" => "Strategic Dashboards",
|
||||
"progress" => 0,
|
||||
"publisher" => "Colosa",
|
||||
"release_type" => "localRegistry",
|
||||
"status" => "ready",
|
||||
"store" => "00000000000000000000000000010006",
|
||||
"type" => "features",
|
||||
"url" => "",
|
||||
"version" => ""
|
||||
),
|
||||
3 => array(
|
||||
"description" => "Enables the configuration of a second database connection in order to divide the database requests in read and write operations. This features is used with database clusters to improve the application performance.",
|
||||
"enabled" => false,
|
||||
"id" => "secondDatabaseConnection",
|
||||
"latest_version" => "",
|
||||
"log" => null,
|
||||
"name" => "secondDatabaseConnection",
|
||||
"nick" => "secondDatabaseConnection",
|
||||
"progress" => 0,
|
||||
"publisher" => "Colosa",
|
||||
"release_type" => "localRegistry",
|
||||
"status" => "ready",
|
||||
"store" => "00000000000000000000000000010000",
|
||||
"type" => "features",
|
||||
"url" => "",
|
||||
"version" => ""
|
||||
),
|
||||
4 => array(
|
||||
"description" => "Registers every admin action in a log. The actions in administration settings options are registered in the log.",
|
||||
"enabled" => false,
|
||||
"id" => "auditLog",
|
||||
"latest_version" => "",
|
||||
"log" => null,
|
||||
"name" => "auditLog",
|
||||
"nick" => "auditLog",
|
||||
"progress" => 0,
|
||||
"publisher" => "Colosa",
|
||||
"release_type" => "localRegistry",
|
||||
"status" => "ready",
|
||||
"store" => "00000000000000000000000000010001",
|
||||
"type" => "features",
|
||||
"url" => "",
|
||||
"version" => ""
|
||||
),
|
||||
5 => array(
|
||||
"description" => "A more secure option to store user passwords in ProcessMaker. The modern algorithm SHA-2 is used to store the passwords.",
|
||||
"enabled" => false,
|
||||
"id" => "secureUserPasswordHash",
|
||||
"latest_version" => "",
|
||||
"log" => null,
|
||||
"name" => "secureUserPasswordHash",
|
||||
"nick" => "secureUserPasswordHash",
|
||||
"progress" => 0,
|
||||
"publisher" => "Colosa",
|
||||
"release_type" => "localRegistry",
|
||||
"status" => "ready",
|
||||
"store" => "00000000000000000000000000010002",
|
||||
"type" => "features",
|
||||
"url" => "",
|
||||
"version" => ""
|
||||
),
|
||||
6 => array(
|
||||
"description" => "This functionality enables the flexibility to send mails from different email servers or configurations.",
|
||||
"enabled" => false,
|
||||
"id" => "sendEmailFromDifferentEmailServers",
|
||||
"latest_version" => "",
|
||||
"log" => null,
|
||||
"name" => "sendEmailFromDifferentEmailServers",
|
||||
"nick" => "sendEmailFromDifferentEmailServers",
|
||||
"progress" => 0,
|
||||
"publisher" => "Colosa",
|
||||
"release_type" => "localRegistry",
|
||||
"status" => "ready",
|
||||
"store" => "00000000000000000000000000010003",
|
||||
"type" => "features",
|
||||
"url" => "",
|
||||
"version" => ""
|
||||
)
|
||||
);
|
||||
|
||||
private static $instancefeature = null;
|
||||
|
||||
@@ -87,6 +208,132 @@ class PMLicensedFeatures
|
||||
$this->featuresDetails[$value[0]]->enabled = $enable;
|
||||
return $enable;
|
||||
}
|
||||
|
||||
public function addNewFeatures ($data)
|
||||
{
|
||||
$newFeaturesList = $this->newFeatures;
|
||||
$newData = array();
|
||||
$newFeaturesIds = array();
|
||||
foreach($newFeaturesList as $val) {
|
||||
$newFeaturesIds[] = $val['id'];
|
||||
}
|
||||
$criteria = new Criteria();
|
||||
$criteria->addSelectColumn(AddonsManagerPeer::ADDON_ID);
|
||||
$criteria->add(AddonsManagerPeer::ADDON_ID, $newFeaturesIds, Criteria::IN);
|
||||
$criteria->add(AddonsManagerPeer::ADDON_TYPE, 'features');
|
||||
$rs = AddonsManagerPeer::doSelectRS($criteria);
|
||||
$rs->next();
|
||||
$row = $rs->getRow();
|
||||
if(sizeof($row)) {
|
||||
while (is_array($row)) {
|
||||
$ids[] = $row[0];
|
||||
$rs->next();
|
||||
$row = $rs->getRow();
|
||||
}
|
||||
$toUpdate = array_diff($newFeaturesIds,$ids);
|
||||
|
||||
if(sizeof($toUpdate)){
|
||||
$newFeaturesListAux = array();
|
||||
foreach($toUpdate as $index => $v) {
|
||||
$newFeaturesListAux[] = $newFeaturesList[$index];
|
||||
}
|
||||
unset($newFeaturesList);
|
||||
$newFeaturesList = array_values($newFeaturesListAux);
|
||||
} else {
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
|
||||
foreach($newFeaturesList as $k => $newFeature){
|
||||
$newData[] = array (
|
||||
'db' => 'wf',
|
||||
'table' => 'ADDONS_MANAGER',
|
||||
'keys' =>
|
||||
array (
|
||||
0 => 'ADDON_ID',
|
||||
),
|
||||
'data' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'field' => 'ADDON_DESCRIPTION',
|
||||
'type' => 'text',
|
||||
'value' => $newFeature['description'],
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'field' => 'ADDON_ID',
|
||||
'type' => 'text',
|
||||
'value' => $newFeature['id'],
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'field' => 'ADDON_NAME',
|
||||
'type' => 'text',
|
||||
'value' => $newFeature['name'],
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'field' => 'ADDON_NICK',
|
||||
'type' => 'text',
|
||||
'value' => $newFeature['nick'],
|
||||
),
|
||||
4 =>
|
||||
array (
|
||||
'field' => 'ADDON_PUBLISHER',
|
||||
'type' => 'text',
|
||||
'value' => $newFeature['publisher'],
|
||||
),
|
||||
5 =>
|
||||
array (
|
||||
'field' => 'ADDON_RELEASE_TYPE',
|
||||
'type' => 'text',
|
||||
'value' => $newFeature['release_type'],
|
||||
),
|
||||
6 =>
|
||||
array (
|
||||
'field' => 'ADDON_STATUS',
|
||||
'type' => 'text',
|
||||
'value' => $newFeature['status'],
|
||||
),
|
||||
7 =>
|
||||
array (
|
||||
'field' => 'STORE_ID',
|
||||
'type' => 'text',
|
||||
'value' => $newFeature['store'],
|
||||
),
|
||||
8 =>
|
||||
array (
|
||||
'field' => 'ADDON_TYPE',
|
||||
'type' => 'text',
|
||||
'value' => $newFeature['type'],
|
||||
),
|
||||
9 =>
|
||||
array (
|
||||
'field' => 'ADDON_DOWNLOAD_URL',
|
||||
'type' => 'text',
|
||||
'value' => $newFeature['url'],
|
||||
),
|
||||
10 =>
|
||||
array (
|
||||
'field' => 'ADDON_VERSION',
|
||||
'type' => 'text',
|
||||
'value' => $newFeature['version'],
|
||||
),
|
||||
11 =>
|
||||
array (
|
||||
'field' => 'ADDON_DOWNLOAD_PROGRESS',
|
||||
'type' => 'text',
|
||||
'value' => $newFeature['progress'],
|
||||
)
|
||||
),
|
||||
'action' => 1,
|
||||
);
|
||||
|
||||
$i++;
|
||||
}
|
||||
return array_merge($data, $newData);
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/**
|
||||
* class.pmDynaform.php
|
||||
* Implementing pmDynaform library in the running case.
|
||||
*
|
||||
*
|
||||
* @author Roly Rudy Gutierrez Pinto
|
||||
* @package engine.classes
|
||||
*/
|
||||
@@ -80,19 +80,37 @@ class pmDynaform
|
||||
|
||||
public function jsonr(&$json)
|
||||
{
|
||||
foreach ($json as $key => $value) {
|
||||
foreach ($json as $key => &$value) {
|
||||
$sw1 = is_array($value);
|
||||
$sw2 = is_object($value);
|
||||
if ($sw1 || $sw2) {
|
||||
$this->jsonr($value);
|
||||
}
|
||||
if (!$sw1 && !$sw2) {
|
||||
//property
|
||||
//set properties from trigger
|
||||
$prefixs = array("@@", "@#", "@%", "@?", "@$", "@=");
|
||||
if (is_string($value) && in_array(substr($value, 0, 2), $prefixs)) {
|
||||
$triggerValue = substr($value, 2);
|
||||
if (isset($this->fields["APP_DATA"][$triggerValue])) {
|
||||
$json->$key = $this->fields["APP_DATA"][$triggerValue];
|
||||
$json->{$key} = $this->fields["APP_DATA"][$triggerValue];
|
||||
}
|
||||
}
|
||||
//set properties from 'formInstance' variable
|
||||
if (isset($this->fields["APP_DATA"]["formInstance"])) {
|
||||
$formInstance = $this->fields["APP_DATA"]["formInstance"];
|
||||
if (!is_array($formInstance)) {
|
||||
$formInstance = array($formInstance);
|
||||
}
|
||||
$nfi = count($formInstance);
|
||||
for ($ifi = 0; $ifi < $nfi; $ifi++) {
|
||||
$fi = $formInstance[$ifi];
|
||||
if (is_object($fi) && isset($fi->id) && $key === "id" && $json->{$key} === $fi->id) {
|
||||
foreach ($fi as $keyfi => $valuefi) {
|
||||
if (isset($json->{$keyfi})) {
|
||||
$json->{$keyfi} = $valuefi;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//query & options
|
||||
@@ -136,11 +154,17 @@ class pmDynaform
|
||||
array_push($json->options, $option);
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
if (isset($json->options[0])) {
|
||||
$json->data = $json->options[0];
|
||||
$no = count($json->options);
|
||||
for ($io = 0; $io < $no; $io++) {
|
||||
if ($json->options[$io]["value"] === $json->defaultValue) {
|
||||
$json->data = $json->options[$io];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//data
|
||||
@@ -187,7 +211,7 @@ class pmDynaform
|
||||
if ($column->type === "text" || $column->type === "textarea" || $column->type === "dropdown" || $column->type === "datetime" || $column->type === "checkbox" || $column->type === "file" || $column->type === "link") {
|
||||
array_push($cells, array(
|
||||
"value" => isset($row[$column->name]) ? $row[$column->name] : "",
|
||||
"label" => isset($row[$column->name . "_label"]) ? $row[$column->name . "_label"] : ""
|
||||
"label" => isset($row[$column->name . "_label"]) ? $row[$column->name . "_label"] : (isset($row[$column->name]) ? $row[$column->name] : "")
|
||||
));
|
||||
}
|
||||
if ($column->type === "suggest") {
|
||||
@@ -208,11 +232,15 @@ class pmDynaform
|
||||
$this->lang = $json->language;
|
||||
}
|
||||
if ($this->langs !== null) {
|
||||
if (($key === "label" || $key === "hint" || $key === "placeholder" || $key === "validateMessage" || $key === "alternateText" || $key === "comment" || $key === "alt") && isset($json->{$key}) && isset($this->langs->{$this->lang})) {
|
||||
if (($key === "label" || $key === "title" || $key === "hint" || $key === "placeholder" || $key === "validateMessage" || $key === "alternateText" || $key === "comment" || $key === "alt") && isset($this->langs->{$this->lang})) {
|
||||
$langs = $this->langs->{$this->lang}->Labels;
|
||||
foreach ($langs as $langsValue) {
|
||||
if ($json->{$key} === $langsValue->msgid)
|
||||
if (is_object($json) && $json->{$key} === $langsValue->msgid) {
|
||||
$json->{$key} = $langsValue->msgstr;
|
||||
}
|
||||
if (is_array($json) && $json[$key] === $langsValue->msgid) {
|
||||
$json[$key] = $langsValue->msgstr;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -225,6 +253,72 @@ class pmDynaform
|
||||
return $this->record != null && $this->record["DYN_VERSION"] == 2 ? true : false;
|
||||
}
|
||||
|
||||
public function printViewWithoutSubmit()
|
||||
{
|
||||
ob_clean();
|
||||
|
||||
$json = G::json_decode($this->record["DYN_CONTENT"]);
|
||||
|
||||
foreach ($json->items[0]->items as $key => $value) {
|
||||
switch ($json->items[0]->items[$key][0]->type) {
|
||||
case "submit":
|
||||
unset($json->items[0]->items[$key]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$this->jsonr($json);
|
||||
|
||||
$javascript = "
|
||||
<script type=\"text/javascript\">
|
||||
var jsondata = " . G::json_encode($json) . ";
|
||||
var pm_run_outside_main_app = \"\";
|
||||
var dyn_uid = \"" . $this->fields["CURRENT_DYNAFORM"] . "\";
|
||||
var __DynaformName__ = \"" . $this->record["PRO_UID"] . "_" . $this->record["DYN_UID"] . "\";
|
||||
var app_uid = \"" . $this->fields["APP_UID"] . "\";
|
||||
var prj_uid = \"" . $this->fields["PRO_UID"] . "\";
|
||||
var step_mode = \"\";
|
||||
var workspace = \"" . SYS_SYS . "\";
|
||||
var credentials = " . G::json_encode($this->credentials) . ";
|
||||
var filePost = \"\";
|
||||
var fieldsRequired = null;
|
||||
var triggerDebug = false;
|
||||
|
||||
$(window).load(function ()
|
||||
{
|
||||
var data = jsondata;
|
||||
data.items[0].mode = \"disabled\";
|
||||
|
||||
window.project = new PMDynaform.core.Project({
|
||||
data: data,
|
||||
keys: {
|
||||
server: location.host,
|
||||
projectId: prj_uid,
|
||||
workspace: workspace
|
||||
},
|
||||
token: credentials,
|
||||
submitRest: false
|
||||
});
|
||||
$(document).find(\"form\").submit(function (e) {
|
||||
e.preventDefault();
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<div style=\"margin: 10px 20px 10px 0;\">
|
||||
<div style=\"float: right\"><a href=\"javascript: window.history.go(-1);\" style=\"text-decoration: none;\">< " . G::LoadTranslation("ID_BACK") . "</a></div>
|
||||
<div style=\"clear: both\"></div>
|
||||
</div>
|
||||
";
|
||||
|
||||
$file = file_get_contents(PATH_HOME . "public_html" . PATH_SEP . "lib" . PATH_SEP . "pmdynaform" . PATH_SEP . "build" . PATH_SEP . "pmdynaform.html");
|
||||
$file = str_replace("{javascript}", $javascript, $file);
|
||||
|
||||
echo $file;
|
||||
exit(0);
|
||||
}
|
||||
|
||||
public function printView()
|
||||
{
|
||||
ob_clean();
|
||||
@@ -409,6 +503,8 @@ class pmDynaform
|
||||
$json->name = $newVariable["VAR_NAME"];
|
||||
if (isset($json->dbConnection) && $json->dbConnection === $oldVariable["VAR_DBCONNECTION"])
|
||||
$json->dbConnection = $newVariable["VAR_DBCONNECTION"];
|
||||
if (isset($json->dbConnectionLabel) && $json->dbConnectionLabel === $oldVariable["VAR_DBCONNECTION_LABEL"])
|
||||
$json->dbConnectionLabel = $newVariable["VAR_DBCONNECTION_LABEL"];
|
||||
if (isset($json->sql) && $json->sql === $oldVariable["VAR_SQL"])
|
||||
$json->sql = $newVariable["VAR_SQL"];
|
||||
if (isset($json->options) && G::json_encode($json->options) === $oldVariable["VAR_ACCEPTED_VALUES"]) {
|
||||
|
||||
@@ -1588,8 +1588,9 @@ class processMap
|
||||
|
||||
$numRows = DynaformPeer::doCount($oCriteria);
|
||||
if ($numRows == 0) {
|
||||
echo "<div style=\"margin:1em;\"><strong>".G::LoadTranslation('ID_ALERT')."</strong><br />".G::LoadTranslation('ID_CONSOLIDATED_DYNAFORM_REQUIRED')."</div>";
|
||||
die;
|
||||
$aFields['TITLE_ALERT'] = G::LoadTranslation('ID_ALERT');
|
||||
$aFields['SUBTITLE_MESSAGE'] = G::LoadTranslation('ID_CONSOLIDATED_DYNAFORM_REQUIRED');
|
||||
$sFilename = 'tasks/tasks_Consolidated_Error.xml';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -919,6 +919,10 @@ class workspaceTools
|
||||
if (file_exists(PATH_CORE . 'data' . PATH_SEP . 'check.data')) {
|
||||
$checkData = unserialize(file_get_contents(PATH_CORE . 'data' . PATH_SEP . 'check.data'));
|
||||
if (is_array($checkData)) {
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$licensedFeatures = & PMLicensedFeatures::getSingleton();
|
||||
$checkData = $licensedFeatures->addNewFeatures($checkData);
|
||||
/*----------------------------------********---------------------------------*/
|
||||
foreach ($checkData as $checkThis) {
|
||||
$this->updateThisRegistry($checkThis);
|
||||
}
|
||||
|
||||
@@ -59981,3 +59981,12 @@ INSERT INTO CATALOG (CAT_UID, CAT_LABEL_ID, CAT_TYPE, CAT_FLAG, CAT_OBSERVATION,
|
||||
('1060','ID_NEW_CASES','INDICATOR','','','2015-03-04','2015-03-04'),
|
||||
('1070','ID_COMPLETED_CASES','INDICATOR','','','2015-03-04','2015-03-04'),
|
||||
('1080','ID_WORKING_CASES','INDICATOR','','','2015-03-04','2015-03-04');
|
||||
|
||||
INSERT INTO ADDONS_MANAGER (ADDON_DESCRIPTION,ADDON_ID,ADDON_NAME,ADDON_NICK,ADDON_PUBLISHER,ADDON_RELEASE_TYPE,ADDON_STATUS,STORE_ID,ADDON_TYPE,ADDON_DOWNLOAD_URL,ADDON_VERSION,ADDON_DOWNLOAD_PROGRESS) VALUES
|
||||
('Enables de Actions By Email feature.','actionsByEmail','actionsByEmail','actionsByEmail','Colosa','localRegistry','ready','00000000000000000000000000010004','features','','','0'),
|
||||
('Enables de Batch Routing feature.','pmConsolidatedCL','pmConsolidatedCL','pmConsolidatedCL','Colosa','localRegistry','ready','00000000000000000000000000010005','features','','','0'),
|
||||
('Dashboard with improved charting graphics and optimized to show strategic information like Process Efficiency and User Efficiency indicators.','strategicDashboards','strategicDashboards','Strategic Dashboards','Colosa','localRegistry','ready','00000000000000000000000000010006','features','','','0'),
|
||||
('Enables the configuration of a second database connection in order to divide the database requests in read and write operations. This features is used with database clusters to improve the application performance.','secondDatabaseConnection','secondDatabaseConnection','secondDatabaseConnection','Colosa','localRegistry','ready','00000000000000000000000000010000','features','','','0'),
|
||||
('A more secure option to store user passwords in ProcessMaker. The modern algorithm SHA-2 is used to store the passwords.','secureUserPasswordHash','secureUserPasswordHash','secureUserPasswordHash','Colosa','localRegistry','ready','00000000000000000000000000010002','features','','','0'),
|
||||
('This functionality enables the flexibility to send mails from different email servers or configurations.','sendEmailFromDifferentEmailServers','sendEmailFromDifferentEmailServers','sendEmailFromDifferentEmailServers','Colosa','localRegistry','ready','00000000000000000000000000010003','features','','','0'),
|
||||
('Registers every admin action in a log. The actions in administration settings options are registered in the log.','auditLog','auditLog','auditLog','Colosa','localRegistry','ready','00000000000000000000000000010001','features','','','0');
|
||||
|
||||
@@ -908,7 +908,7 @@ try {
|
||||
$daysSelected = "selected = 'selected'";
|
||||
}
|
||||
|
||||
$sAux = '<select name=' . $hiddenName . '[NEXT_TASK][TAS_TIMEUNIT] id= ' . $hiddenName . '[NEXT_TASK][TAS_TIMEUNIT] ';
|
||||
$sAux = '<select name=' . $hiddenName . '[NEXT_TASK][TAS_TIMEUNIT] id= ' . $hiddenName . '[NEXT_TASK][TAS_TIMEUNIT] >';
|
||||
$sAux .= "<option " . $hoursSelected . " value='HOURS'>Hours</option> ";
|
||||
$sAux .= "<option " . $daysSelected . " value='DAYS'>Days</option> ";
|
||||
$sAux .= '</select>';
|
||||
@@ -921,7 +921,7 @@ try {
|
||||
$calendarSelected = "selected = 'selected'";
|
||||
}
|
||||
|
||||
$sAux = '<select name=' . $hiddenName . '[NEXT_TASK][TAS_TYPE_DAY] id= ' . $hiddenName . '[NEXT_TASK][TAS_TYPE_DAY] ';
|
||||
$sAux = '<select name=' . $hiddenName . '[NEXT_TASK][TAS_TYPE_DAY] id= ' . $hiddenName . '[NEXT_TASK][TAS_TYPE_DAY] >';
|
||||
$sAux .= "<option " . $workSelected . " value='1'>Work Days</option> ";
|
||||
$sAux .= "<option " . $calendarSelected . " value='2'>Calendar Days</option> ";
|
||||
$sAux .= '</select>';
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
$DYN_UID = $_GET["dyn_uid"];
|
||||
$_SESSION['PROCESS'] = $_GET["prj_uid"];
|
||||
G::LoadClass('pmDynaform');
|
||||
$a = new pmDynaform(array("CURRENT_DYNAFORM" => $DYN_UID));
|
||||
$a->printPmDynaform();
|
||||
|
||||
@@ -54,11 +54,27 @@ switch ($_GET['CTO_TYPE_OBJ']) {
|
||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['PRINT_PREVIEW'] = '#';
|
||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['PRINT_PREVIEW_ACTION'] = 'tracker_PrintView?CTO_UID_OBJ=' . $_GET['CTO_UID_OBJ'] . '&CTO_TYPE_OBJ=PRINT_PREVIEW';
|
||||
$_SESSION['CTO_UID_OBJ'] = $_GET['CTO_UID_OBJ'];
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'dynaform', 'xmlform', $_SESSION['PROCESS'] . '/' . $_GET['CTO_UID_OBJ'], '', $Fields['APP_DATA'], '', '', 'view' );
|
||||
G::RenderPage( 'publish' );
|
||||
break;
|
||||
|
||||
$dynaForm = new Dynaform();
|
||||
$arrayDynaFormData = $dynaForm->Load($_GET["CTO_UID_OBJ"]);
|
||||
|
||||
if (isset($arrayDynaFormData["DYN_VERSION"]) && $arrayDynaFormData["DYN_VERSION"] == 2) {
|
||||
G::LoadClass("pmDynaform");
|
||||
|
||||
$Fields["PRO_UID"] = $_SESSION["PROCESS"];
|
||||
$Fields["CURRENT_DYNAFORM"] = $_GET["CTO_UID_OBJ"];
|
||||
|
||||
$pmDynaForm = new pmDynaform($Fields);
|
||||
|
||||
if ($pmDynaForm->isResponsive()) {
|
||||
$pmDynaForm->printViewWithoutSubmit();
|
||||
}
|
||||
} else {
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent("dynaform", "xmlform", $_SESSION["PROCESS"] . "/" . $_GET["CTO_UID_OBJ"], "", $Fields["APP_DATA"], "", "", "view");
|
||||
G::RenderPage("publish");
|
||||
}
|
||||
break;
|
||||
case 'INPUT_DOCUMENT':
|
||||
G::LoadClass( 'case' );
|
||||
$oCase = new Cases();
|
||||
|
||||
@@ -1,9 +1,18 @@
|
||||
/*
|
||||
* LOGIN PM3 STYLES
|
||||
*/
|
||||
|
||||
@font-face {
|
||||
font-family: "Chivo";
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
src: local("?"), url("/fonts/Chivo-Regular.ttf") format("truetype");
|
||||
}
|
||||
body.login {
|
||||
background: url("/images/backgroundpm3.jpg") repeat scroll 0 0 / cover rgba(0, 0, 0, 0);
|
||||
//background-position-y: -30px;
|
||||
//background-position-y: -30px;
|
||||
font-family: "Chivo",sans-serif;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.vertical-offset-100 {
|
||||
@@ -48,7 +57,8 @@ img.img-responsive {
|
||||
|
||||
|
||||
.module_app_input___gray {
|
||||
background-color: #fff;
|
||||
font-family: "Chivo",sans-serif;
|
||||
background-color: #fff;
|
||||
background-image: none;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 4px;
|
||||
@@ -71,9 +81,11 @@ img.img-responsive {
|
||||
color: #555;
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
height: 45px;
|
||||
//height: 45px;
|
||||
box-sizing: border-box;
|
||||
//padding-top: 12px;
|
||||
line-height: 1.42857;
|
||||
padding: 9px 12px;
|
||||
//padding: 9px 12px;
|
||||
transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
|
||||
width: 100%;
|
||||
}
|
||||
@@ -82,6 +94,7 @@ img.img-responsive {
|
||||
box-sizing: border-box;
|
||||
color: #444;
|
||||
font-family: "Open Sans",Arial,Helvetica,sans-serif;
|
||||
//font-family: "Chivo",sans-serif;
|
||||
font-size: 16px;
|
||||
height: 45px;
|
||||
padding: 10px;
|
||||
@@ -89,6 +102,12 @@ img.img-responsive {
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
|
||||
.form-signin .module_app_input___gray:-ms-input-placeholder {
|
||||
font-family: "Open Sans",Arial,Helvetica,sans-serif;
|
||||
color:#999;
|
||||
}
|
||||
|
||||
.module_app_input___gray::-moz-placeholder {
|
||||
color: #999;
|
||||
opacity: 1;
|
||||
@@ -159,7 +178,7 @@ p {
|
||||
font-weight: 700;
|
||||
//transition: all 0.3s ease-in-out 0s;
|
||||
max-width: 400px;
|
||||
filter:none;
|
||||
filter:none;
|
||||
}
|
||||
|
||||
.button-login-success:hover{
|
||||
@@ -211,13 +230,10 @@ p {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.footer-login .content{
|
||||
.footer-login span{
|
||||
color: white;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.footer-login{
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.login_result span{
|
||||
@@ -227,6 +243,7 @@ p {
|
||||
|
||||
|
||||
.login .module_app_inputFailed___gray{
|
||||
font-family: "Chivo",sans-serif;
|
||||
background-color: #fff;
|
||||
background-image: none;
|
||||
border: 1px solid #ccc;
|
||||
@@ -241,4 +258,29 @@ p {
|
||||
transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
|
||||
width: 100%;
|
||||
border:1px solid #e14333;
|
||||
}
|
||||
}
|
||||
|
||||
.page-wrap{
|
||||
height: auto;
|
||||
margin: 0 auto -60px;
|
||||
min-height: 95%;
|
||||
padding: 0 0 60px;
|
||||
}
|
||||
|
||||
.page-wrap:after{
|
||||
width: 100%;
|
||||
display:block;
|
||||
clear:both;
|
||||
}
|
||||
|
||||
.footer-login{
|
||||
text-align: center;
|
||||
height: auto;
|
||||
margin: -0px auto 0;
|
||||
}
|
||||
|
||||
#form[FORGOT_PASWORD_LINK]{
|
||||
font-family: Chivo;
|
||||
font-size: 14px;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
@@ -78,10 +78,8 @@
|
||||
</table>
|
||||
</body>
|
||||
{else}
|
||||
<body id="page-top" class="login" data-spy="scroll" data-target=".navbar-custom">
|
||||
<div style="display: none;" id="preloader">
|
||||
<div style="display: none;" id="load"></div>
|
||||
</div>
|
||||
<body id="page-top" class="login" data-spy="scroll" data-target=".navbar-custom">
|
||||
<div class="page-wrap">
|
||||
<div class="container">
|
||||
<div class="row vertical-offset-100">
|
||||
<div class="col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3">
|
||||
@@ -102,8 +100,13 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class ="footer-login">
|
||||
<div class="content">{$footer}</div>
|
||||
</div>
|
||||
<div class="footer-login">
|
||||
<div class="container">
|
||||
<span>
|
||||
{$footer}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
{/if}
|
||||
|
||||
@@ -377,8 +377,8 @@ class SkinEngine
|
||||
if (strpos($_SERVER['REQUEST_URI'], '/login/login') !== false) {
|
||||
$freeOfChargeText = "";
|
||||
if (! defined('SKIP_FREE_OF_CHARGE_TEXT'))
|
||||
$freeOfChargeText = "Supplied free of charge with no support, certification, warranty, <br>maintenance nor indemnity by Colosa and its Certified Partners.";
|
||||
if(class_exists('pmLicenseManager')) $freeOfChargeText="";
|
||||
$freeOfChargeText = "Supplied free of charge with no support, certification, warranty, <br>maintenance nor indemnity by Processmaker and its Certified Partners.";
|
||||
if(file_exists(PATH_CLASSES."class.pmLicenseManager.php")) $freeOfChargeText="";
|
||||
|
||||
$fileFooter = PATH_SKINS . SYS_SKIN . PATH_SEP . 'footer.html';
|
||||
if (file_exists($fileFooter)) {
|
||||
@@ -392,7 +392,7 @@ class SkinEngine
|
||||
if (file_exists($fileFooter)) {
|
||||
$footer .= file_get_contents($fileFooter);
|
||||
} else {
|
||||
$footer .= "<br />Copyright © 2000-" . date('Y') . " <a href=\"http://www.processmaker.com\" alt=\"ProcessMaker Inc.\" target=\"_blank\">ProcessMaker Inc.</a> All rights reserved.<br /> $freeOfChargeText " . "<br><br/><a href=\"http://www.processmaker.com\" alt=\"Powered by ProcessMaker - Open Source Workflow & Business Process Management (BPM) Management Software\" title=\"Powered by ProcessMaker\" target=\"_blank\"></a>";
|
||||
$footer .= "$freeOfChargeText <br />Copyright © 2000-" . date('Y') . " <a href=\"http://www.processmaker.com\" alt=\"ProcessMaker Inc.\" target=\"_blank\">ProcessMaker </a>Inc. All rights reserved.<br />" . "<br><br/><a href=\"http://www.processmaker.com\" alt=\"Powered by ProcessMaker - Open Source Workflow & Business Process Management (BPM) Management Software\" title=\"Powered by ProcessMaker\" target=\"_blank\"></a>";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -505,7 +505,7 @@ class SkinEngine
|
||||
if (file_exists($fileFooter)) {
|
||||
$footer .= file_get_contents($fileFooter);
|
||||
} else {
|
||||
$footer .= "<br />Copyright © 2000-" . date('Y') . " <a href=\"http://www.processmaker.com\" alt=\"ProcessMaker Inc.\" target=\"_blank\">ProcessMaker Inc.</a> All rights reserved.<br /> $freeOfChargeText " . "<br><br/><a href=\"http://www.processmaker.com\" alt=\"Powered by ProcessMaker - Open Source Workflow & Business Process Management (BPM) Management Software\" title=\"Powered by ProcessMaker\" target=\"_blank\"></a>";
|
||||
$footer .= "$freeOfChargeText <br />Copyright © 2000-" . date('Y') . " <a href=\"http://www.processmaker.com\" alt=\"ProcessMaker Inc.\" target=\"_blank\">ProcessMaker </a>Inc. All rights reserved.<br /> " . "<br><br/><a href=\"http://www.processmaker.com\" alt=\"Powered by ProcessMaker - Open Source Workflow & Business Process Management (BPM) Management Software\" title=\"Powered by ProcessMaker\" target=\"_blank\"></a>";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -698,8 +698,8 @@ class SkinEngine
|
||||
if (strpos($_SERVER['REQUEST_URI'], '/login/login') !== false) {
|
||||
$freeOfChargeText = "";
|
||||
if (! defined('SKIP_FREE_OF_CHARGE_TEXT'))
|
||||
$freeOfChargeText = "Supplied free of charge with no support, certification, warranty, maintenance nor indemnity by Colosa and its Certified Partners.";
|
||||
if(class_exists('pmLicenseManager')) $freeOfChargeText="";
|
||||
$freeOfChargeText = "Supplied free of charge with no support, certification, warranty, maintenance nor indemnity by ProcessMaker and its Certified Partners.";
|
||||
if(file_exists(PATH_CLASSES."class.pmLicenseManager.php")) $freeOfChargeText="";
|
||||
|
||||
$fileFooter = PATH_SKINS . SYS_SKIN . PATH_SEP . 'footer.html';
|
||||
if (file_exists($fileFooter)) {
|
||||
@@ -713,7 +713,7 @@ class SkinEngine
|
||||
if (file_exists($fileFooter)) {
|
||||
$footer .= file_get_contents($fileFooter);
|
||||
} else {
|
||||
$footer .= " $freeOfChargeText <br />Copyright © 2000-" . date('Y') . " <a href=\"http://www.processmaker.com\" alt=\"ProcessMaker Inc.\" target=\"_blank\">ProcessMaker Inc.</a> All rights reserved.<br />" . "<br><br/><a href=\"http://www.processmaker.com\" alt=\"Powered by ProcessMaker - Open Source Workflow & Business Process Management (BPM) Management Software\" title=\"Powered by ProcessMaker\" target=\"_blank\"></a>";
|
||||
$footer .= "$freeOfChargeText <br />Copyright © 2000-" . date('Y') . " <a href=\"http://www.processmaker.com\" alt=\"ProcessMaker Inc.\" target=\"_blank\">ProcessMaker </a>Inc. All rights reserved.<br />" . "<br><br/><a href=\"http://www.processmaker.com\" alt=\"Powered by ProcessMaker - Open Source Workflow & Business Process Management (BPM) Management Software\" title=\"Powered by ProcessMaker\" target=\"_blank\"></a>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -129,10 +129,13 @@ class Variable
|
||||
$cnn = \Propel::getConnection("workflow");
|
||||
try {
|
||||
$variable = \ProcessVariablesPeer::retrieveByPK($variableUid);
|
||||
$dbConnection = \DbSourcePeer::retrieveByPK($variable->getVarDbconnection(), $variable->getPrjUid());
|
||||
|
||||
$oldVariable = array(
|
||||
"VAR_NAME" => $variable->getVarName(),
|
||||
"VAR_FIELD_TYPE" => $variable->getVarFieldType(),
|
||||
"VAR_DBCONNECTION" => $variable->getVarDbconnection(),
|
||||
"VAR_DBCONNECTION_LABEL" => $dbConnection !== null ? '[' . $dbConnection->getDbsServer() . ':' . $dbConnection->getDbsPort() . '] ' . $dbConnection->getDbsType() . ': ' . $dbConnection->getDbsDatabaseName() : 'PM Database',
|
||||
"VAR_SQL" => $variable->getVarSql(),
|
||||
"VAR_ACCEPTED_VALUES" => $variable->getVarAcceptedValues()
|
||||
);
|
||||
@@ -170,10 +173,12 @@ class Variable
|
||||
$variable->save();
|
||||
$cnn->commit();
|
||||
//update dynaforms
|
||||
$dbConnection = \DbSourcePeer::retrieveByPK($variable->getVarDbconnection(), $variable->getPrjUid());
|
||||
$newVariable = array(
|
||||
"VAR_NAME" => $variable->getVarName(),
|
||||
"VAR_FIELD_TYPE" => $variable->getVarFieldType(),
|
||||
"VAR_DBCONNECTION" => $variable->getVarDbconnection(),
|
||||
"VAR_DBCONNECTION_LABEL" => $dbConnection !== null ? '[' . $dbConnection->getDbsServer() . ':' . $dbConnection->getDbsPort() . '] ' . $dbConnection->getDbsType() . ': ' . $dbConnection->getDbsDatabaseName() : 'PM Database',
|
||||
"VAR_SQL" => $variable->getVarSql(),
|
||||
"VAR_ACCEPTED_VALUES" => $variable->getVarAcceptedValues()
|
||||
);
|
||||
@@ -265,9 +270,14 @@ class Variable
|
||||
$criteria->addSelectColumn(\ProcessVariablesPeer::VAR_NULL);
|
||||
$criteria->addSelectColumn(\ProcessVariablesPeer::VAR_DEFAULT);
|
||||
$criteria->addSelectColumn(\ProcessVariablesPeer::VAR_ACCEPTED_VALUES);
|
||||
$criteria->addSelectColumn(\DbSourcePeer::DBS_SERVER);
|
||||
$criteria->addSelectColumn(\DbSourcePeer::DBS_PORT);
|
||||
$criteria->addSelectColumn(\DbSourcePeer::DBS_DATABASE_NAME);
|
||||
$criteria->addSelectColumn(\DbSourcePeer::DBS_TYPE);
|
||||
|
||||
$criteria->add(\ProcessVariablesPeer::PRJ_UID, $processUid, \Criteria::EQUAL);
|
||||
$criteria->add(\ProcessVariablesPeer::VAR_UID, $variableUid, \Criteria::EQUAL);
|
||||
$criteria->addJoin(\ProcessVariablesPeer::VAR_DBCONNECTION, \DbSourcePeer::DBS_UID, \Criteria::LEFT_JOIN);
|
||||
|
||||
$rsCriteria = \ProcessVariablesPeer::doSelectRS($criteria);
|
||||
|
||||
@@ -283,7 +293,8 @@ class Variable
|
||||
'var_field_type' => $aRow['VAR_FIELD_TYPE'],
|
||||
'var_field_size' => (int)$aRow['VAR_FIELD_SIZE'],
|
||||
'var_label' => $aRow['VAR_LABEL'],
|
||||
'var_dbconnection' => $aRow['VAR_DBCONNECTION'],
|
||||
'var_dbconnection' => $aRow['VAR_DBCONNECTION'] === 'none' ? 'workflow' : $aRow['VAR_DBCONNECTION'],
|
||||
'var_dbconnection_label' => $aRow['DBS_SERVER'] !== null ? '[' . $aRow['DBS_SERVER'] . ':' . $aRow['DBS_PORT'] . '] ' . $aRow['DBS_TYPE'] . ': ' . $aRow['DBS_DATABASE_NAME'] : 'PM Database',
|
||||
'var_sql' => $aRow['VAR_SQL'],
|
||||
'var_null' => (int)$aRow['VAR_NULL'],
|
||||
'var_default' => $aRow['VAR_DEFAULT'],
|
||||
@@ -326,8 +337,13 @@ class Variable
|
||||
$criteria->addSelectColumn(\ProcessVariablesPeer::VAR_NULL);
|
||||
$criteria->addSelectColumn(\ProcessVariablesPeer::VAR_DEFAULT);
|
||||
$criteria->addSelectColumn(\ProcessVariablesPeer::VAR_ACCEPTED_VALUES);
|
||||
$criteria->addSelectColumn(\DbSourcePeer::DBS_SERVER);
|
||||
$criteria->addSelectColumn(\DbSourcePeer::DBS_PORT);
|
||||
$criteria->addSelectColumn(\DbSourcePeer::DBS_DATABASE_NAME);
|
||||
$criteria->addSelectColumn(\DbSourcePeer::DBS_TYPE);
|
||||
|
||||
$criteria->add(\ProcessVariablesPeer::PRJ_UID, $processUid, \Criteria::EQUAL);
|
||||
$criteria->addJoin(\ProcessVariablesPeer::VAR_DBCONNECTION, \DbSourcePeer::DBS_UID, \Criteria::LEFT_JOIN);
|
||||
|
||||
$rsCriteria = \ProcessVariablesPeer::doSelectRS($criteria);
|
||||
|
||||
@@ -343,7 +359,8 @@ class Variable
|
||||
'var_field_type' => $aRow['VAR_FIELD_TYPE'],
|
||||
'var_field_size' => (int)$aRow['VAR_FIELD_SIZE'],
|
||||
'var_label' => $aRow['VAR_LABEL'],
|
||||
'var_dbconnection' => $aRow['VAR_DBCONNECTION'],
|
||||
'var_dbconnection' => $aRow['VAR_DBCONNECTION'] === 'none' ? 'workflow' : $aRow['VAR_DBCONNECTION'],
|
||||
'var_dbconnection_label' => $aRow['DBS_SERVER'] !== null ? '[' . $aRow['DBS_SERVER'] . ':' . $aRow['DBS_PORT'] . '] ' . $aRow['DBS_TYPE'] . ': ' . $aRow['DBS_DATABASE_NAME'] : 'PM Database',
|
||||
'var_sql' => $aRow['VAR_SQL'],
|
||||
'var_null' => (int)$aRow['VAR_NULL'],
|
||||
'var_default' => $aRow['VAR_DEFAULT'],
|
||||
@@ -690,4 +707,3 @@ class Variable
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1443,54 +1443,6 @@ Ext.onReady(function() {
|
||||
}
|
||||
return '';
|
||||
}
|
||||
},
|
||||
{
|
||||
id : "status-feature",
|
||||
header : _('ID_STATUS'),
|
||||
width : 60,
|
||||
sortable : false,
|
||||
hideable : false,
|
||||
dataIndex: "status",
|
||||
renderer: function (val) {
|
||||
var str = "";
|
||||
var text = "";
|
||||
|
||||
switch (val) {
|
||||
case "available": text = _('ID_BUY_NOW'); break;
|
||||
case "installed": text = _('ID_INSTALLED'); break;
|
||||
case "ready": text = _('ID_INSTALL_NOW'); break;
|
||||
case "upgrade": text = _('ID_UPGRADE_NOW'); break;
|
||||
case "download": text = _('ID_CANCEL'); break;
|
||||
case "install": text = _('ID_INSTALLING'); break;
|
||||
case "cancel": text = _('ID_CANCELLING'); break;
|
||||
case "disabled": text = _('ID_DISABLED'); break;
|
||||
case "download-start": text = "<img src=\"/images/enterprise/loader.gif\" />"; break;
|
||||
default: text = val; break;
|
||||
}
|
||||
|
||||
switch (val) {
|
||||
case "available":
|
||||
case "ready":
|
||||
case "upgrade":
|
||||
case "download":
|
||||
case "install":
|
||||
case "cancel":
|
||||
case "download-start":
|
||||
str = "<div class=\"" + val + " roundedCorners\">" + text + "</div>";
|
||||
break;
|
||||
|
||||
case "installed":
|
||||
case "disabled":
|
||||
str = "<div style=\"margin-right: 0.85em; font-weight: bold; text-align: center;\">" + text + "</div>";
|
||||
break;
|
||||
|
||||
default:
|
||||
str = "<div class=\"" + val + " roundedCorners\">" + text + "</div>";
|
||||
break;
|
||||
}
|
||||
|
||||
return (str);
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
@@ -198,20 +198,23 @@ Ext.onReady(function(){
|
||||
function createNW(nwTitle, aoDbWf, aoDbRb, aoDbRp, nwUsername, nwPassword, nwPassword2){
|
||||
PMExt.confirm(_('ID_CONFIRM'), _('NEW_SITE_CONFIRM_TO_CREATE'), function(){
|
||||
var loadMask = new Ext.LoadMask(document.body, {msg : _('ID_SITE_CREATING')});
|
||||
var oParams = {
|
||||
action : 'create',
|
||||
NW_TITLE : nwTitle,
|
||||
AO_DB_WF : aoDbWf,
|
||||
AO_DB_RB : aoDbRb,
|
||||
AO_DB_RP : aoDbRp,
|
||||
NW_USERNAME : nwUsername,
|
||||
NW_PASSWORD : nwPassword,
|
||||
NW_PASSWORD2 : nwPassword2
|
||||
};
|
||||
if(aoDbDrop){
|
||||
oParams.AO_DB_DROP = 'On';
|
||||
}
|
||||
loadMask.show();
|
||||
Ext.Ajax.request({
|
||||
url: '../newSiteProxy/testingNW',
|
||||
params: {
|
||||
action : 'create',
|
||||
NW_TITLE : nwTitle,
|
||||
AO_DB_WF : aoDbWf,
|
||||
AO_DB_RB : aoDbRb,
|
||||
AO_DB_RP : aoDbRp,
|
||||
NW_USERNAME : nwUsername,
|
||||
NW_PASSWORD : nwPassword,
|
||||
NW_PASSWORD2 : nwPassword2,
|
||||
AO_DB_DROP : aoDbDrop
|
||||
},
|
||||
params: oParams,
|
||||
method: 'POST',
|
||||
success: function ( result, request ) {
|
||||
loadMask.hide();
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<USR_USERNAME type="text" size="30" maxlength="50" required="true" validate="Any" autocomplete="0">
|
||||
<en><![CDATA[User]]></en>
|
||||
</USR_USERNAME>
|
||||
<USR_EMAIL type="text" size="30" required="true" maxlength="32" autocomplete="0">
|
||||
<USR_EMAIL type="text" size="30" required="true" maxlength="254" autocomplete="0">
|
||||
<en><![CDATA[Email]]></en>
|
||||
</USR_EMAIL>
|
||||
<URL type="hidden"/>
|
||||
|
||||
@@ -29,7 +29,7 @@ window.onload= function(){
|
||||
document.getElementById('form[USR_PASSWORD_MASK]').placeholder = _('ID_PASSWORD');
|
||||
document.getElementById('form[USER_ENV]').placeholder = _('ID_WORKSPACE');
|
||||
document.getElementById('form[BSUBMIT]').classList.remove('module_app_button___gray');
|
||||
document.getElementById('form[BSUBMIT]').classList.add('button-login-success');
|
||||
document.getElementById('form[BSUBMIT]').classList.add('button-login-success');
|
||||
};
|
||||
|
||||
setFocus (getField ('USR_USERNAME'));
|
||||
|
||||
19
workflow/engine/xmlform/tasks/tasks_Consolidated_Error.xml
Normal file
19
workflow/engine/xmlform/tasks/tasks_Consolidated_Error.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<dynaForm type="xmlform" name="" width="585" height="305" enabletemplate="0" mode="">
|
||||
<PRO_UID type="hidden" />
|
||||
<TAS_UID type="hidden" />
|
||||
<SYS_LANG type="hidden" />
|
||||
<REP_TAB_UID type="hidden" />
|
||||
<INDEX type="hidden" />
|
||||
<TABLE_NAME_DEFAULT type="hidden" />
|
||||
<IFORM type="hidden" />
|
||||
|
||||
<TITLE_ALERT type="title">
|
||||
<en><![CDATA[Alert]]></en>
|
||||
<es><![CDATA[Alert]]></es>
|
||||
</TITLE_ALERT>
|
||||
<SUBTITLE_MESSAGE type="text" mode="view">
|
||||
<en><![CDATA[Message]]></en>
|
||||
<en><![CDATA[Mensaje]]></en>
|
||||
</SUBTITLE_MESSAGE>
|
||||
</dynaForm>
|
||||
BIN
workflow/public_html/fonts/Chivo-Regular.ttf
Normal file
BIN
workflow/public_html/fonts/Chivo-Regular.ttf
Normal file
Binary file not shown.
Reference in New Issue
Block a user