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


PHP ModuleBuilder::addModuleOrGroup方法代码示例

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


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

示例1: Copyright

You should have received a copy of the GNU General Public License
along with iCE Hrm. If not, see <http://www.gnu.org/licenses/>.

------------------------------------------------------------------

Original work Copyright (c) 2012 [Gamonoid Media Pvt. Ltd]  
Developer: Thilina Hasantha (thilina.hasantha[at]gmail.com / facebook.com/thilinah)
*/
$moduleName = 'travel';
define('MODULE_PATH', dirname(__FILE__));
include APP_BASE_PATH . 'header.php';
include APP_BASE_PATH . 'modulejslibs.inc.php';
$options = array();
$options['setRemoteTable'] = 'true';
$moduleBuilder = new ModuleBuilder();
$moduleBuilder->addModuleOrGroup(new ModuleTab('EmployeeTravelRecord', 'EmployeeTravelRecord', 'Travel Requests', 'EmployeeTravelRecordAdapter', '', '', true, $options));
echo UIManager::getInstance()->renderModule($moduleBuilder);
$itemName = 'TravelRequest';
$moduleName = 'Travel Management';
$itemNameLower = strtolower($itemName);
$statuses = array("Approved", "Pending", "Rejected", "Cancelled");
?>
<div class="modal" id="<?php 
echo $itemNameLower;
?>
StatusModel" tabindex="-1" role="dialog" aria-labelledby="messageModelLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"><li class="fa fa-times"/></button>
                <h3 style="font-size: 17px;">Change <?php 
开发者ID:DevlJs,项目名称:icehrm,代码行数:31,代码来源:index.php

示例2: dirname

<?php

$moduleName = 'metadata';
define('MODULE_PATH', dirname(__FILE__));
include APP_BASE_PATH . 'header.php';
include APP_BASE_PATH . 'modulejslibs.inc.php';
$moduleBuilder = new ModuleBuilder();
/*$moduleBuilder->addModuleOrGroup(new ModuleTab('SalaryComponentType','SalaryComponentType','Salary Component Types','SalaryComponentTypeAdapter','','',true));
$moduleBuilder->addModuleOrGroup(new ModuleTab('SalaryComponent','SalaryComponent','Salary Components','SalaryComponentAdapter','',''));
$moduleBuilder->addModuleOrGroup(new ModuleTab('EmployeeSalary','EmployeeSalary','Employee Salary','EmployeeSalaryAdapter','','',false,array("setRemoteTable"=>"true")));*/
$moduleBuilder->addModuleOrGroup(new ModuleTab('EmployeeSalaryPayslip', 'EmployeeSalary', 'Employee Salary Payslip', 'EmployeePayslipAdapter', '', '', true, array("setRemoteTable" => "true")));
echo UIManager::getInstance()->renderModule($moduleBuilder);
include APP_BASE_PATH . 'footer.php';
开发者ID:ahmedalaahagag,项目名称:ICEPROHRM,代码行数:13,代码来源:index.php

示例3: Copyright

it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Ice Framework 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 General Public License for more details.

You should have received a copy of the GNU General Public License
along with Ice Framework. If not, see <http://www.gnu.org/licenses/>.

------------------------------------------------------------------

Original work Copyright (c) 2012 [Gamonoid Media Pvt. Ltd]  
Developer: Thilina Hasantha (thilina.hasantha[at]gmail.com / facebook.com/thilinah)
*/
$moduleName = 'metadata';
define('MODULE_PATH', dirname(__FILE__));
include APP_BASE_PATH . 'header.php';
include APP_BASE_PATH . 'modulejslibs.inc.php';
$moduleBuilder = new ModuleBuilder();
$moduleBuilder->addModuleOrGroup(new ModuleTab('Country', 'Country', 'Countries', 'CountryAdapter', '', '', true));
$moduleBuilder->addModuleOrGroup(new ModuleTab('Province', 'Province', 'Provinces', 'ProvinceAdapter', '', ''));
$moduleBuilder->addModuleOrGroup(new ModuleTab('CurrencyType', 'CurrencyType', 'Currency Types', 'CurrencyTypeAdapter', '', ''));
$moduleBuilder->addModuleOrGroup(new ModuleTab('Nationality', 'Nationality', 'Nationality', 'NationalityAdapter', '', ''));
$moduleBuilder->addModuleOrGroup(new ModuleTab('Nationality', 'Nationality', 'Nationality', 'NationalityAdapter', '', ''));
$moduleBuilder->addModuleOrGroup(new ModuleTab('Ethnicity', 'Ethnicity', 'Ethnicity', 'EthnicityAdapter', '', ''));
$moduleBuilder->addModuleOrGroup(new ModuleTab('ImmigrationStatus', 'ImmigrationStatus', 'Immigration Status', 'ImmigrationStatusAdapter', '', ''));
echo UIManager::getInstance()->renderModule($moduleBuilder);
include APP_BASE_PATH . 'footer.php';
开发者ID:jpbalderas17,项目名称:hris,代码行数:31,代码来源:index.php

示例4: dirname

<?php

$moduleName = 'metadata';
define('MODULE_PATH', dirname(__FILE__));
include APP_BASE_PATH . 'header.php';
include APP_BASE_PATH . 'modulejslibs.inc.php';
$moduleBuilder = new ModuleBuilder();
$moduleBuilder->addModuleOrGroup(new ModuleTab('SalaryComponentType', 'SalaryComponentType', 'Salary Component Types', 'SalaryComponentTypeAdapter', '', '', true));
$moduleBuilder->addModuleOrGroup(new ModuleTab('SalaryComponent', 'SalaryComponent', 'Salary Components', 'SalaryComponentAdapter', '', ''));
$moduleBuilder->addModuleOrGroup(new ModuleTab('EmployeeSalary', 'EmployeeSalary', 'Employee Salary', 'EmployeeSalaryAdapter', '', '', false, array("setRemoteTable" => "true")));
echo UIManager::getInstance()->renderModule($moduleBuilder);
include APP_BASE_PATH . 'footer.php';
开发者ID:hackerwei,项目名称:icehrm,代码行数:12,代码来源:index.php

示例5: Copyright

along with iCE Hrm. If not, see <http://www.gnu.org/licenses/>.

------------------------------------------------------------------

Original work Copyright (c) 2012 [Gamonoid Media Pvt. Ltd]  
Developer: Thilina Hasantha (thilina.hasantha[at]gmail.com / facebook.com/thilinah)
*/
$moduleName = 'leaves';
define('MODULE_PATH', dirname(__FILE__));
include APP_BASE_PATH . 'header.php';
include APP_BASE_PATH . 'modulejslibs.inc.php';
$moduleBuilder = new ModuleBuilder();
$options1 = array();
$options1['setRemoteTable'] = 'true';
//$moduleBuilder->addModuleOrGroup(new ModuleTab('LeavePeriod','LeavePeriod','Leave Period','LeavePeriodAdapter','',''));
$moduleBuilder->addModuleOrGroup(new ModuleTab('WorkDay', 'WorkDay', 'Work Week', 'WorkDayAdapter', '', '', true));
$moduleBuilder->addModuleOrGroup(new ModuleTab('HoliDay', 'HoliDay', 'Holidays', 'HoliDayAdapter', '', '', false, $options1));
$moduleBuilder->addModuleOrGroup(new ModuleTab('LeaveType', 'LeaveType', 'Leave Types', 'LeaveTypeAdapter', '', '', false));
//$moduleBuilder->addModuleOrGroup(new ModuleTab('LeaveRule','LeaveRule','Leave Rules','LeaveType','',''));
//$moduleBuilder->addModuleOrGroup(new ModuleTab('LeaveStartingBalance','LeaveStartingBalance','Paid Time Off','LeaveStartingBalanceAdapter','',''));
//$moduleGroup1 = new ModuleTabGroup('leaveGroupMenu','Leave Groups');
//$moduleGroup1->addModuleTab(new ModuleTab('LeaveGroup','LeaveGroup','Edit Leave Groups','LeaveGroupAdapter','',''));
//$moduleGroup1->addModuleTab(new ModuleTab('LeaveGroupEmployee','LeaveGroupEmployee','Leave Group Employees','LeaveGroupEmployeeAdapter','','leave_group'));
//$moduleBuilder->addModuleOrGroup($moduleGroup1);
$options2 = array();
$options2['setRemoteTable'] = 'true';
$options2['setShowAddNew'] = 'false';
$moduleBuilder->addModuleOrGroup(new ModuleTab('EmployeeLeave', 'EmployeeLeave', 'Employee Leave List', 'EmployeeLeaveAdapter', '', 'date_start desc', false, $options2));
echo UIManager::getInstance()->renderModule($moduleBuilder);
?>
开发者ID:ahmedalaahagag,项目名称:ICEPROHRM,代码行数:30,代码来源:index.php


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