diff --git a/workflow/engine/methods/controls/buscador.php b/workflow/engine/methods/controls/buscador.php index 6bd27a558..61dfef45d 100755 --- a/workflow/engine/methods/controls/buscador.php +++ b/workflow/engine/methods/controls/buscador.php @@ -1,52 +1,53 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - */ -$frm = $HTTP_GET_VARS; - -?> - -

demo de buscador

-
- . + * + * For more information, contact Colosa Inc, 2566 Le Jeune Rd., + * Coral Gables, FL, 33134, USA, or email info@colosa.com. + */ +$frm = $HTTP_GET_VARS; + +?> + +

demo de buscador

+ + -Buscador tipo :
- - - - - - - - - -
curso
-
- - - +Buscador tipo :
+ + + + + + + + + +
curso
+ + + +Execute( $sql ); +Execute( $sql ); ?> + - + - - + + - \ No newline at end of file + +. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - */ -G::LoadClass( 'xmlfield_InputPM' ); -$aFields = getDynaformsVars( $_POST['sProcess'], true, isset( $_POST['bIncMulSelFields'] ) ? $_POST['bIncMulSelFields'] : 0 ); - -$sHTML = ''; -$sHTML = ''; - -if (! isset( $_POST['sNoShowLeyend'] )) { - $sHTML = ''; - $sHTML .= ''; - if (isset( $_POST['sType'] )) { - $sHTML .= ''; - $sHTML .= ''; - /*$sHTML .= ''; - $sHTML .= ''; - $sHTML .= ''; - $sHTML .= ''; - $sHTML .= '';*/ - } else { - $sHTML .= ''; - $sHTML .= ''; - $sHTML .= ''; - $sHTML .= ''; - $sHTML .= ''; - $sHTML .= ''; - } - $sHTML .= ''; - //$sHTML .= ''; - $sHTML .= '
Variables cast prefix
' . G::LoadTranslation( 'ID_ESC' ) . '
' . G::LoadTranslation( 'ID_NONEC' ) . '
' . G::LoadTranslation('ID_EURL') . '
' . G::LoadTranslation('ID_EVAL') . '
' . G::LoadTranslation('ID_ESCJS') . '
' . G::LoadTranslation('ID_ESCSJS') . '
' . G::LoadTranslation('ID_FUNCTION') . '
@@' . G::LoadTranslation( 'ID_TO_STRING' ) . '
@#' . G::LoadTranslation( 'ID_TO_FLOAT' ) . '
@%' . G::LoadTranslation( 'ID_TO_INTEGER' ) . '
@?' . G::LoadTranslation( 'ID_TO_URL' ) . '
@$' . G::LoadTranslation( 'ID_SQL_ESCAPE' ) . '
@=' . G::LoadTranslation( 'ID_REPLACE_WITHOUT_CHANGES' ) . '
 
' . G::LoadTranslation('ID_DOCLICK') . '
'; -} else { - // please don't remove this definition if there isn't some sort of html tags before the css styles aren't loaded in IE - $sHTML = ''; - $sHTML .= '
'; -} -$sStyle = " "; -$cssTabs = "
- -
- "; -echo $sHTML; -echo $sStyle; - -//////////////////////////////////////////////////////// - - -echo "
"; -echo $cssTabs; -G::LoadClass( 'ArrayPeer' ); - -global $_DBArray; -$_DBArray['dynavars'] = $aRows; -$_SESSION['_DBArray'] = $_DBArray; - -G::LoadClass( 'ArrayPeer' ); -$oCriteria = new Criteria( 'dbarray' ); -$oCriteria->setDBArrayTable( 'dynavars' ); - -$aFields = array (); - -$G_PUBLISH = new Publisher(); -$oHeadPublisher = & headPublisher::getSingleton(); -$oHeadPublisher->addScriptFile( "/jscore/controls/varsAjax.js" ); -$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'triggers/dynavars', $oCriteria ); -G::RenderPage( 'publish', 'raw' ); - -echo "
"; - +. + * + * For more information, contact Colosa Inc, 2566 Le Jeune Rd., + * Coral Gables, FL, 33134, USA, or email info@colosa.com. + */ +G::LoadClass( 'xmlfield_InputPM' ); +$aFields = getDynaformsVars( $_POST['sProcess'], true, isset( $_POST['bIncMulSelFields'] ) ? $_POST['bIncMulSelFields'] : 0 ); + +$sHTML = ''; +$sHTML = ''; + +if (! isset( $_POST['sNoShowLeyend'] )) { + $sHTML = ''; + $sHTML .= ''; + if (isset( $_POST['sType'] )) { + $sHTML .= ''; + $sHTML .= ''; + /*$sHTML .= ''; + $sHTML .= ''; + $sHTML .= ''; + $sHTML .= ''; + $sHTML .= '';*/ + } else { + $sHTML .= ''; + $sHTML .= ''; + $sHTML .= ''; + $sHTML .= ''; + $sHTML .= ''; + $sHTML .= ''; + } + $sHTML .= ''; + //$sHTML .= ''; + $sHTML .= '
Variables cast prefix
' . G::LoadTranslation( 'ID_ESC' ) . '
' . G::LoadTranslation( 'ID_NONEC' ) . '
' . G::LoadTranslation('ID_EURL') . '
' . G::LoadTranslation('ID_EVAL') . '
' . G::LoadTranslation('ID_ESCJS') . '
' . G::LoadTranslation('ID_ESCSJS') . '
' . G::LoadTranslation('ID_FUNCTION') . '
@@' . G::LoadTranslation( 'ID_TO_STRING' ) . '
@#' . G::LoadTranslation( 'ID_TO_FLOAT' ) . '
@%' . G::LoadTranslation( 'ID_TO_INTEGER' ) . '
@?' . G::LoadTranslation( 'ID_TO_URL' ) . '
@$' . G::LoadTranslation( 'ID_SQL_ESCAPE' ) . '
@=' . G::LoadTranslation( 'ID_REPLACE_WITHOUT_CHANGES' ) . '
 
' . G::LoadTranslation('ID_DOCLICK') . '
'; +} else { + // please don't remove this definition if there isn't some sort of html tags before the css styles aren't loaded in IE + $sHTML = ''; + $sHTML .= '
'; +} +$sStyle = " "; +$cssTabs = "
+ +
+ "; +echo $sHTML; +echo $sStyle; + +//////////////////////////////////////////////////////// + + +echo "
"; +echo $cssTabs; +G::LoadClass( 'ArrayPeer' ); + +global $_DBArray; +$_DBArray['dynavars'] = $aRows; +$_SESSION['_DBArray'] = $_DBArray; + +G::LoadClass( 'ArrayPeer' ); +$oCriteria = new Criteria( 'dbarray' ); +$oCriteria->setDBArrayTable( 'dynavars' ); + +$aFields = array (); + +$G_PUBLISH = new Publisher(); +$oHeadPublisher = & headPublisher::getSingleton(); +$oHeadPublisher->addScriptFile( "/jscore/controls/varsAjax.js" ); +$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'triggers/dynavars', $oCriteria ); +G::RenderPage( 'publish', 'raw' ); + +echo "
"; + diff --git a/workflow/engine/methods/controls/varsAjaxByType.php b/workflow/engine/methods/controls/varsAjaxByType.php index f86361002..eedeef09d 100755 --- a/workflow/engine/methods/controls/varsAjaxByType.php +++ b/workflow/engine/methods/controls/varsAjaxByType.php @@ -1,66 +1,65 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - */ - -/** - * the varAjaxByType file as the varAjax.php handle the render of the diferent - * types of dynaform variables there are 3 of them system, process, and the default - * that show both system and process variables. - * uses almost the same variables passed to varsAjax, plus $_POST['type'] that is the - * type of the variables. Then it render a propel table with all the variables - * loaded for that type. - * - * @author Gustavo Cruz gustavo-at-colosa.com - * @param $_POST variables - */ - -G::LoadClass( 'xmlfield_InputPM' ); -$aFields = getDynaformsVars( $_POST['sProcess'], true, isset( $_POST['bIncMulSelFields'] ) ? $_POST['bIncMulSelFields'] : 0 ); -$aType = $_POST['type']; - -$aRows[0] = Array ('fieldname' => 'char','variable' => 'char','type' => 'type','label' => 'char' -); -foreach ($aFields as $aField) { - switch ($aType) { - case "system": - if ($aField['sType'] == "system") { - $aRows[] = Array ('fieldname' => $_POST['sFieldName'],'variable' => $_POST['sSymbol'] . $aField['sName'],'variable_label' => '
' . $_POST['sSymbol'] . $aField['sName'] . '
','type' => $aField['sType'],'label' => $aField['sLabel'] - ); - } - break; - case "process": - if ($aField['sType'] != "system") { - $aRows[] = Array ('fieldname' => $_POST['sFieldName'],'variable' => $_POST['sSymbol'] . $aField['sName'],'variable_label' => '
' . $_POST['sSymbol'] . $aField['sName'] . '
','type' => $aField['sType'],'label' => $aField['sLabel'] - ); - } - break; - default: - $aRows[] = Array ('fieldname' => $_POST['sFieldName'],'variable' => $_POST['sSymbol'] . $aField['sName'],'variable_label' => '
' . $_POST['sSymbol'] . $aField['sName'] . '
','type' => $aField['sType'],'label' => $aField['sLabel'] - ); - break; - } - -} +. + * + * For more information, contact Colosa Inc, 2566 Le Jeune Rd., + * Coral Gables, FL, 33134, USA, or email info@colosa.com. + */ + +/** + * the varAjaxByType file as the varAjax.php handle the render of the diferent + * types of dynaform variables there are 3 of them system, process, and the default + * that show both system and process variables. + * uses almost the same variables passed to varsAjax, plus $_POST['type'] that is the + * type of the variables. Then it render a propel table with all the variables + * loaded for that type. + * + * @author Gustavo Cruz gustavo-at-colosa.com + * @param $_POST variables + */ + +G::LoadClass( 'xmlfield_InputPM' ); +$aFields = getDynaformsVars( $_POST['sProcess'], true, isset( $_POST['bIncMulSelFields'] ) ? $_POST['bIncMulSelFields'] : 0 ); +$aType = $_POST['type']; + +$aRows[0] = Array ('fieldname' => 'char','variable' => 'char','type' => 'type','label' => 'char'); +foreach ($aFields as $aField) { + switch ($aType) { + case "system": + if ($aField['sType'] == "system") { + $aRows[] = Array ('fieldname' => $_POST['sFieldName'],'variable' => $_POST['sSymbol'] . $aField['sName'],'variable_label' => '
' . $_POST['sSymbol'] . $aField['sName'] . '
','type' => $aField['sType'],'label' => $aField['sLabel'] + ); + } + break; + case "process": + if ($aField['sType'] != "system") { + $aRows[] = Array ('fieldname' => $_POST['sFieldName'],'variable' => $_POST['sSymbol'] . $aField['sName'],'variable_label' => '
' . $_POST['sSymbol'] . $aField['sName'] . '
','type' => $aField['sType'],'label' => $aField['sLabel'] + ); + } + break; + default: + $aRows[] = Array ('fieldname' => $_POST['sFieldName'],'variable' => $_POST['sSymbol'] . $aField['sName'],'variable_label' => '
' . $_POST['sSymbol'] . $aField['sName'] . '
','type' => $aField['sType'],'label' => $aField['sLabel'] + ); + break; + } + +} // Use and make a load translation variable call to the titles of the tabs $cssTabs = "
- "; - -echo $cssTabs; -G::LoadClass( 'ArrayPeer' ); - -global $_DBArray; -$_DBArray['dynavars'] = $aRows; -$_SESSION['_DBArray'] = $_DBArray; - -G::LoadClass( 'ArrayPeer' ); -$oCriteria = new Criteria( 'dbarray' ); -$oCriteria->setDBArrayTable( 'dynavars' ); - -$aFields = array (); -$G_PUBLISH = new Publisher(); -$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'triggers/dynavars', $oCriteria ); -G::RenderPage( 'publish', 'raw' ); - + "; + +echo $cssTabs; +G::LoadClass( 'ArrayPeer' ); + +global $_DBArray; +$_DBArray['dynavars'] = $aRows; +$_SESSION['_DBArray'] = $_DBArray; + +G::LoadClass( 'ArrayPeer' ); +$oCriteria = new Criteria( 'dbarray' ); +$oCriteria->setDBArrayTable( 'dynavars' ); + +$aFields = array (); +$G_PUBLISH = new Publisher(); +$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'triggers/dynavars', $oCriteria ); +G::RenderPage( 'publish', 'raw' ); +