added label into trigger wizard

This commit is contained in:
Carlos Pacha
2011-02-01 13:26:23 +00:00
parent ef427ec0df
commit 2ad3ee1591
2 changed files with 27 additions and 26 deletions

View File

@@ -43,7 +43,7 @@
<span style='font-weight:normal;'>{PMFUNTION_DESCRIPTION}
<!-- START BLOCK : methodLink -->
&nbsp;&nbsp;<a class='linkInBlue' href='{LIBRARY_METHOD_LINK}' target="_blank" >(More Info)</a>
&nbsp;&nbsp;<a class='linkInBlue' href='{LIBRARY_METHOD_LINK}' target="_blank" >({MORE_INFO})</a>
<!-- END BLOCK : methodLink -->
</span>

View File

@@ -1,26 +1,26 @@
<?php
/**
* triggers_CreateWizard.php
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2008 Colosa Inc.23
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*
/**
* triggers_CreateWizard.php
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2008 Colosa Inc.23
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*
*/
try {
@@ -51,7 +51,7 @@ try {
$methodreturnA = explode ( "|", $methodReturn );
$methodReturnLabel = isset ( $methodreturnA [3] ) ? $methodreturnA [3] : $methodReturn;
$aParametersFun = $methodParameters;
$aParametersFun = $methodParameters;
$triggerWizardTemplate = PATH_TPL . 'triggers' . PATH_SEP . 'triggers_CreateWizard.html';
$template = new TemplatePower ( $triggerWizardTemplate );
$template->prepare ();
@@ -66,6 +66,7 @@ try {
if ($methodLink != "") {
$template->newBlock ( 'methodLink' );
$template->assign ( 'LIBRARY_METHOD_LINK', $methodLink );
$template->assign ( 'MORE_INFO', G::LoadTranslation ( 'ID_MORE_INFO' ) );
$template->gotoBlock ( '_ROOT' );
}
@@ -105,7 +106,7 @@ try {
$paramDescription = isset ( $aParametersFunA [3] ) ? $aParametersFunA [3] : "";
$sPMfunction .= ($nrows != 2) ? ', "' . trim ( str_replace ( "$", "", $paramName ) ) . '"' : '"' . trim ( str_replace ( "$", "", $paramName ) . '"' );
$template->newBlock ( 'paremetersTriggers' );
$template->assign ( 'LABEL_PARAMETER', $paramLabel );
$template->assign ( 'LABEL_PARAMETER', $paramLabel );
$template->assign ( 'OPT_PARAMETER', trim ( str_replace ( "$", "", $paramName ) ) );
$sNameTag = 'form.' . trim ( str_replace ( "$", "", $paramName ) ) . '.name';
$sNameTag = trim ( $sNameTag );
@@ -131,4 +132,4 @@ try {
die ( $oException->getMessage () );
}
unset ( $_SESSION ['PROCESS'] );
?>
?>