当前位置: 首页>>代码示例>>PHP>>正文


PHP G::RenderPage方法代码示例

本文整理汇总了PHP中G::RenderPage方法的典型用法代码示例。如果您正苦于以下问题:PHP G::RenderPage方法的具体用法?PHP G::RenderPage怎么用?PHP G::RenderPage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在G的用法示例。


在下文中一共展示了G::RenderPage方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: newSite

 public function newSite()
 {
     $textStep1 = G::LoadTranslation('ID_PROCESSMAKER_REQUIREMENTS_DESCRIPTION_STEP4_1');
     $textStep2 = G::LoadTranslation('ID_PROCESSMAKER_REQUIREMENTS_DESCRIPTION_STEP5');
     $this->includeExtJS('installer/CardLayout', false);
     $this->includeExtJS('installer/Wizard', false);
     $this->includeExtJS('installer/Header', false);
     $this->includeExtJS('installer/Card', false);
     $this->includeExtJS('installer/newSite', false);
     $this->setJSVar('textStep1', $textStep1);
     $this->setJSVar('textStep2', $textStep2);
     $this->setJSVar('DB_ADAPTER', DB_ADAPTER);
     $aux = explode(':', DB_HOST);
     $this->setJSVar('DB_HOST', $aux[0]);
     $this->setJSVar('DB_PORT', isset($aux[1]) ? $aux[1] : (DB_ADAPTER == 'mssql' ? '1433' : '3306'));
     $this->setJSVar('DB_NAME', 'workflow');
     $this->setJSVar('DB_USER', '');
     $this->setJSVar('DB_PASS', '');
     $this->setJSVar('pathConfig', PATH_CORE . 'config' . PATH_SEP);
     $this->setJSVar('pathLanguages', PATH_LANGUAGECONT);
     $this->setJSVar('pathPlugins', PATH_PLUGINS);
     $this->setJSVar('pathXmlforms', PATH_XMLFORM);
     $this->setJSVar('pathShared', PATH_DATA);
     $this->setView('installer/newSite');
     G::RenderPage('publish', 'extJs');
 }
开发者ID:ralpheav,项目名称:processmaker,代码行数:26,代码来源:installer.php

示例2: newSite

 public function newSite()
 {
     $textStep1 = 'ProcessMaker stores all of its data in a database. This screen gives the installation program the information needed to create this database.<br><br>' . 'If you are installing ProcessMaker on a remote web server, you will need to get this information from your Database Server.';
     $textStep2 = 'ProcessMaker uses a workspaces to store data. Please select a valid workspace name and credentials to log in it.';
     $this->includeExtJS('installer/CardLayout', false);
     $this->includeExtJS('installer/Wizard', false);
     $this->includeExtJS('installer/Header', false);
     $this->includeExtJS('installer/Card', false);
     $this->includeExtJS('installer/newSite', false);
     $this->setJSVar('textStep1', $textStep1);
     $this->setJSVar('textStep2', $textStep2);
     $this->setJSVar('DB_ADAPTER', DB_ADAPTER);
     $aux = explode(':', DB_HOST);
     $this->setJSVar('DB_HOST', $aux[0]);
     $this->setJSVar('DB_PORT', isset($aux[1]) ? $aux[1] : (DB_ADAPTER == 'mssql' ? '1433' : '3306'));
     $this->setJSVar('DB_NAME', 'workflow');
     $this->setJSVar('DB_USER', '');
     $this->setJSVar('DB_PASS', '');
     $this->setJSVar('pathConfig', PATH_CORE . 'config' . PATH_SEP);
     $this->setJSVar('pathLanguages', PATH_LANGUAGECONT);
     $this->setJSVar('pathPlugins', PATH_PLUGINS);
     $this->setJSVar('pathXmlforms', PATH_XMLFORM);
     $this->setJSVar('pathShared', PATH_DATA);
     $this->setView('installer/newSite');
     G::RenderPage('publish', 'extJs');
 }
开发者ID:nshong,项目名称:processmaker,代码行数:26,代码来源:installer.php

示例3: formPMGmail

 public function formPMGmail()
 {
     try {
         $this->includeExtJS('admin/pmGmail');
         if (!empty($_SESSION['__PMGMAIL_ERROR__'])) {
             $this->setJSVar('__PMGMAIL_ERROR__', $_SESSION['__PMGMAIL_ERROR__']);
             unset($_SESSION['__PMGMAIL_ERROR__']);
         }
         G::LoadClass("pmGoogleApi");
         $pmGoogle = new PMGoogleApi();
         $accountEmail = $pmGoogle->getServiceAccountEmail();
         $fileP12 = $pmGoogle->getServiceAccountP12();
         $fileJson = $pmGoogle->getAccountJson();
         $fileJson = $fileJson == null ? '' : $fileJson;
         $type = $pmGoogle->getTypeAuthentication();
         $enablePMGmail = $pmGoogle->getStatusService();
         $this->setJSVar('accountEmail', $accountEmail);
         $this->setJSVar('fileP12', $fileP12);
         $this->setJSVar('enablePMGmail', $enablePMGmail);
         $this->setJSVar('fileJson', $fileJson);
         $this->setJSVar('typeAuthentication', $type);
         G::RenderPage('publish', 'extJs');
     } catch (Exception $error) {
         $_SESSION['__PMGMAIL_ERROR__'] = $error->getMessage();
         die;
     }
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:27,代码来源:pmGmail.php

示例4: editTemplate

 /**
  * 
  * @url GET /editTemplate
  */
 public function editTemplate($params)
 {
     // Action Validations
     if (!isset($_REQUEST['TEMPLATE'])) {
         $_REQUEST['TEMPLATE'] = '';
     }
     if ($_REQUEST['TEMPLATE'] == '') {
         throw new Exception('The TEMPLATE parameter is empty.');
     }
     $data = array('CONTENT' => file_get_contents(PATH_DATA_MAILTEMPLATES . $_REQUEST['PRO_UID'] . PATH_SEP . $_REQUEST['TEMPLATE']), 'TEMPLATE' => $_REQUEST['TEMPLATE']);
     global $G_PUBLISH;
     $G_PUBLISH = new Publisher();
     $G_PUBLISH->AddContent('xmlform', 'xmlform', 'actionsByEmail/actionsByEmail_FileEdit', '', $data);
     G::RenderPage('publish', 'raw');
     die;
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:20,代码来源:ActionsByEmail.php

示例5: index

 function index($httpData)
 {
     if (!isset($httpData->id)) {
         throw new Exception('The Process ID was not set!');
     }
     require_once 'classes/model/Process.php';
     $process = ProcessPeer::retrieveByPK($httpData->id);
     if (get_class($process) != 'Process') {
         throw new Exception("The Process with UID: {$httpData->id} doesn't exist!");
     }
     $_SESSION['PROCESS'] = $httpData->id;
     $_SESSION['PROCESSMAP'] = 'BPMN';
     $this->includeExtJS('bpmn/MyWorkflow', true);
     $this->includeExtJS('bpmn/pmosExt', true);
     $this->includeExtJS('bpmn/TaskContext', true);
     $this->includeExtJS('bpmn/designerComponents', true);
     $this->includeExtJS('bpmn/designer', true);
     $this->includeExtJS('bpmn/Annotation', true);
     $this->includeExtJS('bpmn/bpmnShapes', true);
     $this->includeExtJS('bpmn/EventEmptyStart');
     $this->includeExtJS('bpmn/EventMessageStart');
     $this->includeExtJS('bpmn/EventTimerStart');
     $this->includeExtJS('bpmn/EventEmptyInter');
     $this->includeExtJS('bpmn/EventMessageRecInter');
     $this->includeExtJS('bpmn/EventMessageSendInter');
     $this->includeExtJS('bpmn/EventTimerInter');
     $this->includeExtJS('bpmn/EventEmptyEnd');
     $this->includeExtJS('bpmn/EventMessageEnd');
     $this->includeExtJS('bpmn/GatewayInclusive');
     $this->includeExtJS('bpmn/GatewayExclusiveData');
     $this->includeExtJS('bpmn/GatewayParallel');
     $this->includeExtJS('bpmn/GridPanel');
     $this->includeExtJS('bpmn/SubProcess');
     $this->includeExtJS('bpmn/ProcessOptions', true);
     $this->includeExtJS('bpmn/ProcessMapContext', true);
     $this->includeExtJS('bpmn/ProcessOptions', true);
     $this->setJSVar('pro_uid', $httpData->id);
     $this->setJSVar('pro_title', $process->getProTitle());
     $this->setView('bpmn/designer');
     G::RenderPage('publish', 'extJs');
 }
开发者ID:nshong,项目名称:processmaker,代码行数:41,代码来源:bpmnDesigner.php

示例6: DBConnection

 * customFunctions.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.
 * 
 */
if (($RBAC_Response = $RBAC->userCanAccess("PM_SETUP")) != 1) {
    return $RBAC_Response;
}
$G_ENABLE_BLANK_SKIN = true;
$dbc = new DBConnection();
$G_PUBLISH = new Publisher();
$G_PUBLISH->AddContent('table', 'paged-table2', 'setup/Custom_Functions', '', '', '');
G::RenderPage('publish-treeview');
开发者ID:nshong,项目名称:processmaker,代码行数:30,代码来源:customFunctions.php

示例7: setupPlugins

    /**
     * get setup Plugins
     *
     * @param unknown_type $default
     * @return void
     */
    public function setupPlugins ()
    {
        try {
            require_once(PATH_CORE . "methods" . PATH_SEP . "enterprise" . PATH_SEP . "enterprise.php");
            require_once("class.serverConfiguration.php");

            $iPlugins = 0;
            $oServerConf = & serverConf::getSingleton();
            $oServerConf->addPlugin( SYS_SYS, $this->_aPluginDetails );
            foreach ($this->_aPluginDetails as $namespace => $detail) {
                if (isset( $detail->enabled ) && $detail->enabled) {
                    if (! empty( $detail->sFilename ) && file_exists( $detail->sFilename )) {
                        $arrayFileInfo = pathinfo($detail->sFilename);
                        $sFilename = (($detail->sNamespace == "enterprise")? PATH_CORE. "methods" . PATH_SEP . "enterprise" . PATH_SEP : PATH_PLUGINS) . $arrayFileInfo["basename"];
                        if (! file_exists( $sFilename )) {
                            continue;
                        }
                        require_once $sFilename;
                        if (class_exists( $detail->sClassName )) {
                            $oPlugin = new $detail->sClassName( $detail->sNamespace, $detail->sFilename );
                            $this->_aPlugins[$detail->sNamespace] = $oPlugin;
                            $iPlugins ++;
                            $oPlugin->setup();
                        }
                    }
                }
            }
            $this->eevalidate();
            return $iPlugins;
        } catch (Exception $e) {
            global $G_PUBLISH;
            $aMessage['MESSAGE'] = $e->getMessage();
            $G_PUBLISH = new Publisher();
            $G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
            G::RenderPage( 'publish' );
            die();
        }
    }
开发者ID:hpx2206,项目名称:processmaker-1,代码行数:44,代码来源:class.pluginRegistry.php

示例8: DBConnection

 * 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.
 * 
 */
$G_MAIN_MENU = "rbac";
$G_SUB_MENU = "rbac.userEdit";
$G_MENU_SELECTED = 0;
$uid = $HTTP_SESSION_VARS['CURRENT_USER'];
$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME);
$ses = new DBSession($dbc);
$stQry = "SELECT UID, USR_USE_LDAP FROM USERS where UID = {$uid} ";
$dset = $ses->Execute($stQry);
$row = $dset->Read();
$useLdap = $row['USR_USE_LDAP'] == 'Y';
$access = $RBAC->userCanAccess("RBAC_CREATE_USERS");
G::LoadClassRBAC("user");
$obj = new RBAC_User();
$obj->SetTo($dbc);
$obj->Load($uid);
$G_PUBLISH = new Publisher();
$G_PUBLISH->SetTo($dbc);
$G_PUBLISH->AddContent("xmlform", "xmlform", "rbac/userChangeLdap", "", $obj->Fields, "userChangeLdap2");
G::RenderPage("publish");
开发者ID:emildev35,项目名称:processmaker,代码行数:30,代码来源:userChangeLdap.php

示例9: unset

                    $_SESSION['ACTION'] = 'jump';
                } else {
                    $Fields = $oCase->loadCase( $_SESSION['APPLICATION'], $_SESSION['INDEX']);
                    unset($_SESSION['ACTION']);
                }
                $_SESSION['CURRENT_TASK'] = $Fields['TAS_UID'];
                $_SESSION['STEP_POSITION'] = 0;
                require_once (PATH_METHODS . 'cases' . PATH_SEP . 'cases_Resume.php');

            }
            break;
        default: //APP_STATUS <> DRAFT and TO_DO
            $_SESSION['APPLICATION'] = $sAppUid;
            $_SESSION['INDEX'] = $oCase->getCurrentDelegationCase( $_GET['APP_UID'] );
            $_SESSION['PROCESS'] = $aFields['PRO_UID'];
            $_SESSION['TASK'] = - 1;
            $_SESSION['STEP_POSITION'] = 0;
            $Fields = $oCase->loadCase( $_SESSION['APPLICATION'], $_SESSION['INDEX']);
            $_SESSION['CURRENT_TASK'] = $Fields['TAS_UID'];

            require_once (PATH_METHODS . 'cases' . PATH_SEP . 'cases_Resume.php');
    }
} catch (Exception $e) {
    $aMessage = array ();
    $aMessage['MESSAGE'] = $e->getMessage();
    $G_PUBLISH = new Publisher();
    $G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
    G::RenderPage( 'publishBlank', 'blank' );
}

开发者ID:hpx2206,项目名称:processmaker-1,代码行数:29,代码来源:cases_Open.php

示例10: Publisher

     $Fields['APP_DOC_UID'] = $_POST['appDocId'];
     $Fields['actionType'] = $_POST['actionType'];
     $Fields['docVersion'] = $_POST['docVersion'];
     $G_PUBLISH->AddContent('xmlform', 'xmlform', 'cases/cases_AttachInputDocumentGeneral', '', $Fields, 'cases_SupervisorSaveDocument?UID=' . $_POST['docID'] . '&APP_UID=' . $_POST['appDocId']);
     G::RenderPage('publish', 'raw');
     break;
 case "inputDocumentVersionHistory":
     //krumo($_POST);
     $G_PUBLISH = new Publisher();
     $Fields['DOC_UID'] = $_POST['docID'];
     $Fields['APP_DOC_UID'] = $_POST['appDocId'];
     $G_PUBLISH->AddContent('propeltable', 'paged-table', 'cases/cases_InputdocsListHistory', $oCase->getInputDocumentsCriteria($_SESSION['APPLICATION'], $_SESSION['INDEX'], $_POST['docID'], $_POST['appDocId']), array());
     //$aFields
     //$G_PUBLISH->AddContent('xmlform', 'xmlform', 'cases/cases_AttachInputDocumentGeneral',
     // '', $Fields, 'cases_SaveDocument?UID=' . $_POST['docID']);
     G::RenderPage('publish', 'raw');
     break;
 case "getCountCasesFolder":
     //$json = new Services_JSON();
     $aTypes = array('to_do', 'draft', 'cancelled', 'sent', 'paused', 'completed', 'selfservice', 'to_revise', 'to_reassign');
     $aTypesID = array('to_do' => 'CASES_INBOX', 'draft' => 'CASES_DRAFT', 'cancelled' => 'CASES_CANCELLED', 'sent' => 'CASES_SENT', 'paused' => 'CASES_PAUSED', 'completed' => 'CASES_COMPLETED', 'selfservice' => 'CASES_SELFSERVICE', 'to_revise' => 'CASES_TO_REVISE', 'to_reassign' => 'CASES_TO_REASSIGN');
     if (!isset($_POST['A'])) {
         $oCases = new Cases();
         $aCount = $oCases->getAllConditionCasesCount($aTypes, true);
         echo Bootstrap::json_encode($aCount);
     } else {
         echo Bootstrap::json_encode($aTypesID);
     }
     break;
 case "previusJump":
     //require_once 'classes/model/Application.php';
开发者ID:bqevin,项目名称:processmaker,代码行数:31,代码来源:cases_Ajax.php

示例11: Publisher

            G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
            G::header('location: ../login/login');
            die;
            break;
        case -2:
            G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels');
            G::header('location: ../login/login');
            die;
            break;
        default:
            G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
            G::header('location: ../login/login');
            die;
            break;
    }
}
try {
    /* Includes */
    G::LoadClass('processes');
    /* Render page */
    $G_MAIN_MENU = 'processmaker';
    $G_ID_MENU_SELECTED = 'PROCESSES';
    $G_PUBLISH = new Publisher();
    $G_PUBLISH->AddContent('xmlform', 'xmlform', 'processes/processes_Import', '', NULL, 'processes_ImportFile');
    G::RenderPage("publish", "blank");
} catch (Exception $e) {
    $G_PUBLISH = new Publisher();
    $aMessage['MESSAGE'] = $e->getMessage();
    $G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage);
    G::RenderPage('publish', "blank");
}
开发者ID:nshong,项目名称:processmaker,代码行数:31,代码来源:processes_Import.php

示例12: pmLogo

 /**
  * getting default list
  *
  * @param string $httpData->PRO_UID (opional)
  */
 public function pmLogo($httpData)
 {
     global $RBAC;
     $RBAC->requirePermissions('PM_SETUP_ADVANCE');
     G::LoadClass('configuration');
     $c = new Configurations();
     $configPage = $c->getConfiguration('additionalTablesList', 'pageSize', '', $_SESSION['USER_LOGGED']);
     $Config['pageSize'] = isset($configPage['pageSize']) ? $configPage['pageSize'] : 20;
     $this->includeExtJS('admin/pmLogo');
     $this->setView('admin/pmLogo');
     //assigning js variables
     $this->setJSVar('FORMATS', $c->getFormats());
     $this->setJSVar('CONFIG', $Config);
     $this->setJSVar('PRO_UID', isset($_GET['PRO_UID']) ? $_GET['PRO_UID'] : false);
     if (isset($_SESSION['_cache_pmtables'])) {
         unset($_SESSION['_cache_pmtables']);
     }
     if (isset($_SESSION['ADD_TAB_UID'])) {
         unset($_SESSION['ADD_TAB_UID']);
     }
     //render content
     G::RenderPage('publish', 'extJs');
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:28,代码来源:admin.php

示例13: export

 public function export($httpData)
 {
     $this->includeExtJS('pmTables/export', $this->debug);
     //adding a javascript file .js
     $this->setView('pmTables/export');
     //adding a html file  .html.
     $toSend = array();
     $toSend['UID_LIST'] = $httpData->id;
     $this->setJSVar('EXPORT_TABLES', $toSend);
     G::RenderPage('publish', 'extJs');
 }
开发者ID:rodrigoivan,项目名称:processmaker,代码行数:11,代码来源:pmTables.php

示例14: printForm

 /**
  * Function printForm
  *
  * @param string $filename
  * @param array $data
  * @return void
  */
 public function printForm($filename, $data = array())
 {
     global $G_PUBLISH;
     $G_PUBLISH = new Publisher();
     $G_PUBLISH->AddContent('xmlform', 'xmlform', $filename, '', $data, $this->popupSubmit);
     G::RenderPage("publish", "blank");
 }
开发者ID:rodrigoivan,项目名称:processmaker,代码行数:14,代码来源:class.propelTable.php

示例15: Publisher

$html .= '<tr width="40%">';
$html .= '<td>' . G::LoadTranslation('ID_RESULT') . '</td>';
$html .= '<td><span id="selectedVariableLabel">@@SYS_LANG</span></td>';
$html .= '</tr>';
$html .= '<tr width="60%">';
$html .= '<td>' . G::LoadTranslation('ID_DESCRIPTION') . '</td>';
$html .= '<td><span id="desc_variables">' . G::LoadTranslation('ID_SYSTEM') . '</span></td>';
$html .= '</tr>';
$html .= '</table>';
$html .= '</div>';
$html .= '<br>';
$html .= '<table width="90%" align="center">';
$html .= '<tr><td>';
$html .= '<label for="desc_prefix">*<span id="desc_prefix">' . G::LoadTranslation('ID_TO_STRING') . '</span></label>';
$html .= '</td></tr>';
$html .= '</div>';
$html .= '</form>';
$display = 'raw';
$G_PUBLISH = new Publisher();
$oHeadPublisher =& headPublisher::getSingleton();
$oHeadPublisher->addScriptFile('/jscore/controls/variablePicker.js');
if (isset($_REQUEST['displayOption'])) {
    if ($_REQUEST['displayOption'] == 'tinyMCE') {
        $display = 'blank';
        $oHeadPublisher->addScriptFile('/js/tinymce/jscripts/tiny_mce/tiny_mce_popup.js');
        $oHeadPublisher->addScriptFile('/js/tinymce/jscripts/tiny_mce/plugins/pmVariablePicker/editor_plugin_src.js');
    }
}
echo $html;
G::RenderPage('publish', $display);
开发者ID:bqevin,项目名称:processmaker,代码行数:30,代码来源:varsAjax.php


注:本文中的G::RenderPage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。