[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 <?php 2 // 3 // Created on: <16-Apr-2002 11:00:12 amos> 4 // 5 // SOFTWARE NAME: eZ publish 6 // SOFTWARE RELEASE: 3.9.0 7 // BUILD VERSION: 17785 8 // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS 9 // SOFTWARE LICENSE: GNU General Public License v2.0 10 // NOTICE: > 11 // This program is free software; you can redistribute it and/or 12 // modify it under the terms of version 2.0 of the GNU General 13 // Public License as published by the Free Software Foundation. 14 // 15 // This program is distributed in the hope that it will be useful, 16 // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 // GNU General Public License for more details. 19 // 20 // You should have received a copy of version 2.0 of the GNU General 21 // Public License along with this program; if not, write to the Free 22 // Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 23 // MA 02110-1301, USA. 24 // 25 // 26 27 28 include_once ( 'kernel/classes/ezworkflow.php' ); 29 include_once ( 'kernel/classes/ezworkflowgroup.php' ); 30 include_once ( 'lib/ezutils/classes/ezhttppersistence.php' ); 31 32 $Module =& $Params['Module']; 33 34 // include_once( 'lib/ezutils/classes/ezexecutionstack.php' ); 35 // $execStack =& eZExecutionStack::instance(); 36 // $execStack->clear(); 37 // $execStack->addEntry( $Module->functionURI( 'list' ), 38 // $Module->attribute( 'name' ), 'list' ); 39 40 $http =& eZHTTPTool::instance(); 41 42 if ( $http->hasPostVariable( 'NewGroupButton' ) ) 43 return $Module->run( 'groupedit', array() ); 44 if ( $http->hasPostVariable( 'NewWorkflowButton' ) ) 45 return $Module->run( 'edit', array() ); 46 47 if ( $http->hasPostVariable( 'DeleteButton' ) and 48 $http->hasPostVariable( 'Workflow_id_checked' ) ) 49 { 50 eZWorkflow::setIsEnabled( false, $http->postVariable( 'Workflow_id_checked' ) ); 51 } 52 53 $groupList = eZWorkflowGroup::fetchList(); 54 $workflows = eZWorkflow::fetchList(); 55 $workflowList = array(); 56 foreach( array_keys( $workflows ) as $workflowID ) 57 { 58 $workflow =& $workflows[$workflowID]; 59 $workflowList[$workflow->attribute( 'id' )] =& $workflow; 60 } 61 62 $Module->setTitle( 'Workflow list' ); 63 64 include_once ( 'kernel/common/template.php' ); 65 $tpl =& templateInit(); 66 67 $tpl->setVariable( 'workflow_list', $workflowList ); 68 $tpl->setVariable( 'group_list', $groupList ); 69 $tpl->setVariable( 'module', $Module ); 70 71 $Result = array(); 72 $Result['content'] =& $tpl->fetch( 'design:workflow/list.tpl' ); 73 $Result['path'] = array( array( 'url' => '/workflow/list/', 74 'text' => ezi18n( 'kernel/workflow', 'Workflow list' ) ) ); 75 76 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |