Merge branch '2.0' of git.colosa.net:processmaker into 2.0

Conflicts:
	workflow/engine/classes/class.languages.php
This commit is contained in:
gustavo
2011-03-18 18:58:10 -04:00
594 changed files with 2208 additions and 2744 deletions

5
.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
nbproject
workflow/engine/config/paths_installed.php
gulliver/thirdparty/html2ps_pdf/cache
*~

View File

@@ -3119,9 +3119,7 @@ class XmlForm_Field_Date extends XmlForm_Field_SimpleText
* By Erik A. O. <erik@colosa.com>
* @package gulliver.system
*/
if($mask == 'yyyy-mm-dd')
$mask = '%Y-%m-%d';
if( strpos($mask, '%') === false ) {
if( strpos($mask, '-') !== false ) { // case '-' saparator
$maskparts = explode('-', $mask);
@@ -3129,6 +3127,14 @@ class XmlForm_Field_Date extends XmlForm_Field_SimpleText
foreach($maskparts as $part) {
if($mask != '')
$mask .= '-';
if($part=='yyyy')
$part='Y';
if($part=='dd')
$part='d';
if($part=='mm')
$part='m';
if($part=='yy')
$part='y';
$mask .= '%'.$part;
}
}
@@ -3139,9 +3145,37 @@ class XmlForm_Field_Date extends XmlForm_Field_SimpleText
foreach($maskparts as $part) {
if($mask != '')
$mask .= '/';
if($part=='yyyy')
$part='Y';
if($part=='dd')
$part='d';
if($part=='mm')
$part='m';
if($part=='yy')
$part='y';
$mask .= '%'.$part;
}
}
if( strpos($mask, '.') !== false ) { // case '.' saparator
$maskparts = explode('.', $mask);
$mask = '';
foreach($maskparts as $part) {
if($mask != '')
$mask .= '.';
if($part=='yyyy')
$part='Y';
if($part=='dd')
$part='d';
if($part=='mm')
$part='m';
if($part=='yy')
$part='y';
$mask .= '%'.$part;
}
}
}
/** - end - Backward compatibility **/
$tmp = str_replace("%", "", $mask);
@@ -3196,14 +3230,14 @@ class XmlForm_Field_Date extends XmlForm_Field_SimpleText
$value=$value1;
}
if ( $this->editable != "0") {
$html = '<input id="'.$pID.'" name="'.$pID.'" pm:mask="'.$mask.'" pm:start="'.$startDate.'" pm:end="'.$endDate.'" pm:time="'.$Time.'" '.$onchange.' class="module_app_input___gray" size="'.$sizeend.'" value="'.$value.'" pm:defaultvalue="'.$value1.'"/>'
. '<a onclick="removeValue(\''.$pID.'\'); return false;"/> '
. '<img src="/images/icons_silk/calendar_x_button.png" style="position:relative;left:-17px;top:5px;"/></a>'
. '<a id="'.$pID.'[btn]"><img src="/images/pmdateicon.png" border="0" width="12" height="12" style="position:relative;left:-17px;top:0px;"/></a>'
. '<script>datePicker4("", \''.$pID.'\', \''.$mask.'\', \''.$startDate.'\', \''.$endDate.'\','.$Time.')</script>';
} else {
} else {
$html = '<input id="'.$pID.'" name="'.$pID.'" pm:mask="'.$mask.'" pm:start="'.$startDate.'" pm:end="'.$endDate.'" pm:time="'.$Time.'" '.$onchange.' class="module_app_input___gray" size="'.$sizeend.'" value="'.$value.'"pm:defaultvalue="'.$value1.'" readonly="readonly"/>'
. '<a onclick="removeValue(\''.$pID.'\'); return false;"/> '
. '<img src="/images/icons_silk/calendar_x_button.png" style="position:relative;left:-17px;top:5px;"/></a>'

0
gulliver/thirdparty/html2ps_pdf/.htaccess vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/autofix.url.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/background.image.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/background.position.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.block.inline.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.block.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.body.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.br.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.button.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.button.reset.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.button.submit.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.checkbutton.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.container.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.field.pageno.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.field.pages.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.form.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.frame.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.generic.formatted.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.generic.inline.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.generic.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.iframe.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.img.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.inline.control.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.inline.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.inline.simple.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.input.img.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.input.password.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.input.text.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.input.textarea.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.legend.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.list-item.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.note-call.class.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.null.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.page.margin.class.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.page.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.radiobutton.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.select.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.table.cell.fake.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.table.cell.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.table.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.table.row.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.table.section.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.text.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.text.string.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.utils.text-align.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/box.whitespace.php vendored Normal file → Executable file
View File

View File

0
gulliver/thirdparty/html2ps_pdf/classes/include.php vendored Normal file → Executable file
View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

0
gulliver/thirdparty/html2ps_pdf/classes/org/active-link/xml/RSS.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/classes/org/active-link/xml/Tag.php vendored Normal file → Executable file
View File

View File

20
gulliver/thirdparty/html2ps_pdf/classes/org/active-link/xml/XML.php vendored Normal file → Executable file
View File

@@ -228,7 +228,7 @@ class XML_ extends Tree {
}
else {
foreach($this->nodes as $node) {
if(is_object($node) && strtolower(get_class($node)) == "xmlbranch")
if(strtolower(get_class($node)) == "xmlbranch")
if($node->tag->getTagName() == $tags[1]) {
$newTagPath = implode($this->pathSeparator, array_slice($tags, 1));
$attributeValue = $node->getTagAttribute($attributeName, $newTagPath);
@@ -255,7 +255,7 @@ class XML_ extends Tree {
$tagValue = $this->getXMLContent();
else {
foreach($this->nodes as $node) {
if(is_object($node) && strtolower(get_class($node)) == "xmlbranch")
if(strtolower(get_class($node)) == "xmlbranch")
if($node->tag->getTagName() == $tags[1]) {
$newTagPath = implode($this->pathSeparator, array_slice($tags, 1));
$tagValue = $node->getTagContent($newTagPath);
@@ -337,7 +337,7 @@ class XML_ extends Tree {
function hasBranch() {
$hasBranch = false;
foreach($this->nodes as $node) {
if(is_object($node) && strtolower(get_class($node)) == "xmlbranch") {
if(strtolower(get_class($node)) == "xmlbranch") {
$hasBranch = true;
break;
}
@@ -353,7 +353,7 @@ class XML_ extends Tree {
function hasLeaf() {
$hasLeaf = false;
foreach($this->nodes as $node) {
if(is_object($node) && strtolower(get_class($node)) == "xmlleaf") {
if(strtolower(get_class($node)) == "xmlleaf") {
$hasLeaf = true;
break;
}
@@ -407,7 +407,7 @@ class XML_ extends Tree {
*/
function removeAllBranches() {
foreach($this->nodes as $key => $value) {
if(is_object($value) && strtolower(get_class($value)) == "xmlbranch")
if(strtolower(get_class($value)) == "xmlbranch")
unset($this->nodes[$key]);
}
}
@@ -418,7 +418,7 @@ class XML_ extends Tree {
*/
function removeAllLeafs() {
foreach($this->nodes as $key => $value) {
if(is_object($value) && strtolower(get_class($value)) == "xmlleaf")
if(strtolower(get_class($value)) == "xmlleaf")
unset($this->nodes[$key]);
}
}
@@ -469,7 +469,7 @@ class XML_ extends Tree {
*/
function setBranchTag($branchId, $tag) {
$success = true;
if(is_object($this->nodes[$branchId]) && (strtolower(get_class($this->nodes[$branchId])) == "xmlbranch" && strtolower(get_class($tag)) == "tag"))
if(strtolower(get_class($this->nodes[$branchId])) == "xmlbranch" && strtolower(get_class($tag)) == "tag")
$this->nodes[$branchId]->setTag($tag);
else
$success = false;
@@ -484,7 +484,7 @@ class XML_ extends Tree {
*/
function setTag($tag) {
$success = true;
if(is_object($tag) && strtolower(get_class($tag)) == "tag")
if(strtolower(get_class($tag)) == "tag")
$this->tag = $tag;
else
$success = false;
@@ -513,7 +513,7 @@ class XML_ extends Tree {
$arrKeys = array_keys($this->nodes);
for($index = 0; $index < count($arrKeys); $index ++) {
$node =& $this->nodes[$arrKeys[$index]];
if(is_object($node) && strtolower(get_class($node)) == "xmlbranch")
if(strtolower(get_class($node)) == "xmlbranch")
if($node->tag->getTagName() == $tags[1]) {
$newTagPath = implode($this->pathSeparator, array_slice($tags, 1));
$success = $node->setTagAttribute($attributeName, $attributeValue, $newTagPath);
@@ -553,7 +553,7 @@ class XML_ extends Tree {
$arrKeys = array_keys($this->nodes);
for($index = 0; $index < count($arrKeys); $index ++) {
$node =& $this->nodes[$arrKeys[$index]];
if(is_object($node) && strtolower(get_class($node)) == "xmlbranch")
if(strtolower(get_class($node)) == "xmlbranch")
if($node->tag->getTagName() == $tags[1]) {
$newTagPath = implode($this->pathSeparator, array_slice($tags, 1));
$success = $node->setTagContent($content, $newTagPath);

View File

@@ -59,7 +59,7 @@ class XMLBranch extends XML_ {
*/
function setParentXML(&$xml) {
$success = false;
if(is_object($xml) == "xml" && (strtolower(get_class($xml)) == "xml" || strtolower(get_class($xml)) == "xmlbranch")) {
if(strtolower(get_class($xml)) == "xml" || strtolower(get_class($xml)) == "xmlbranch") {
$this->parentXML = &$xml;
$success = true;
}

View File

View File

@@ -61,7 +61,7 @@ class XMLLeaf extends Leaf {
*/
function setParentXML(&$xml) {
$success = false;
if((is_object($xml) == "xml" && strtolower(get_class($xml)) == "xml" || strtolower(get_class($xml)) == "xmlbranch")) {
if(strtolower(get_class($xml)) == "xml" || strtolower(get_class($xml)) == "xmlbranch") {
$this->parentXML = &$xml;
$success = true;
}

View File

View File

0
gulliver/thirdparty/html2ps_pdf/config.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/config.parse.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/content_type.class.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/converter.class.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.background.attachment.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.background.color.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.background.image.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.background.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.background.position.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.background.repeat.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.border.bottom.color.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.border.bottom.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.border.bottom.style.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.border.bottom.width.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.border.collapse.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.border.color.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.border.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.border.left.color.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.border.left.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.border.left.style.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.border.left.width.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.border.right.color.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.border.right.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.border.right.style.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.border.right.width.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.border.style.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.border.top.color.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.border.top.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.border.top.style.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.border.top.width.inc.php vendored Normal file → Executable file
View File

0
gulliver/thirdparty/html2ps_pdf/css.border.width.inc.php vendored Normal file → Executable file
View File

Some files were not shown because too many files have changed in this diff Show More