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


PHP CTabBox::loadExtras方法代码示例

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


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

示例1: str_replace

	<td width="50%" valign="top" height="100%">
		<table cellspacing="0" cellpadding="2" border="0" width="100%" class="list" height="100%">
		<tr class="info"><td colspan="2"><?php 
echo $AppUI->_('Description');
?>
</td></tr>
		<tr class="second">
			<td style="height: 100%"><?php 
echo str_replace(chr(10), '<br/>', $obj->company_description);
?>
&nbsp;</td>
		</tr>
		</table>
		<?php 
require_once "./classes/CustomFields.class.php";
$custom_fields = new CustomFields($m, $a, $obj->company_id, "view");
$custom_fields->printHTML();
?>
	</td>
</tr>
</table>
<?php 
// tabbed information boxes
$tabBox = new CTabBox("?m=companies&a=view&company_id={$company_id}", $tab);
$tabBox->add('vw_active', 'Active Projects');
$tabBox->add('vw_archived', 'Archived Projects');
$tabBox->add('vw_depts', 'Departments');
$tabBox->add('vw_users', 'Users');
$tabBox->add('vw_contacts', 'Contacts');
$tabBox->loadExtras($m);
$tabBox->show();
开发者ID:n2i,项目名称:xvnkb,代码行数:31,代码来源:view.php

示例2: CustomFields

        ?>
</td>
                        </tr>
                    <?php 
    }
    ?>
                </table>
                <?php 
}
?>
		<?php 
require_once $AppUI->getSystemClass('CustomFields');
$custom_fields = new CustomFields($m, $a, $obj->company_id, 'view');
$custom_fields->printHTML();
?>
	</td>        
</tr>
</table>

<?php 
// tabbed information boxes
$moddir = DP_BASE_DIR . '/modules/companies/';
$tabBox = new CTabBox('?m=companies&amp;a=view&amp;company_id=' . $company_id, '', $tab);
$tabBox->add($moddir . 'vw_active', 'Active Projects');
$tabBox->add($moddir . 'vw_archived', 'Archived Projects');
$tabBox->add($moddir . 'vw_depts', 'Departments');
$tabBox->add($moddir . 'vw_users', 'Users');
$tabBox->add($moddir . 'vw_contacts', 'Contacts');
$tabBox->loadExtras($m);
$tabBox->loadExtras($m, 'view');
$tabBox->show();
开发者ID:srinivasulurao,项目名称:jonel,代码行数:31,代码来源:view.php

示例3: CTabBox

:</strong></td>
		</tr>
		<tr>
			<td class="hilite" width="100%" colspan="2">
				<?php 
    echo str_replace(chr(10), '<br />', $user['user_signature']);
    ?>
&nbsp;
			</td>
		</tr>
		</table>
	</td>
</tr>
</table>

<?php 
    // force tabbed information boxes
    $min_view = true;
    $oldViewPref = $AppUI->getPref('TABVIEW');
    $AppUI->setPref('TABVIEW', 1);
    $tabBox = new CTabBox('?m=admin&amp;a=viewuser&amp;user_id=' . $user_id, '', $tab);
    $tabBox->loadExtras('admin', 'viewuser');
    $tabBox->add(DP_BASE_DIR . '/modules/admin/vw_usr_log', 'User Log');
    $tabBox->add(DP_BASE_DIR . '/modules/admin/vw_usr_perms', 'Permissions');
    $tabBox->add(DP_BASE_DIR . '/modules/admin/vw_usr_roles', 'Roles');
    if ($canEdit) {
        $tabBox->add(DP_BASE_DIR . '/modules/admin/vw_usr_transfer', 'Transfer');
    }
    $tabBox->show();
    $AppUI->setPref('TABVIEW', $oldViewPref);
}
开发者ID:hoodoogurus,项目名称:dotprojecteap,代码行数:31,代码来源:viewuser.php

示例4:

        if ($perms->checkModuleItem('task_log', 'edit', $task_id)) {
            if ($task_log_id == 0) {
                if ($perms->checkModuleItem('task_log', 'add', $task_id)) {
                    $tabBox->add("{$dPconfig['root_dir']}/modules/tasks/vw_log_update", 'New Log');
                }
            } else {
                if ($perms->checkModuleItem('task_log', 'edit', $task_id)) {
                    $tabBox->add("{$dPconfig['root_dir']}/modules/tasks/vw_log_update", 'Edit Log');
                }
            }
        }
    }
}
if (count($obj->getChildren()) > 0) {
    // Has children
    // settings for tasks
    $f = 'children';
    $min_view = true;
    $tabBox_show = 1;
    // in the tasks file there is an if that checks
    // $_GET[task_status]; this patch is to be able to see
    // child tasks withing an inactive task
    $_GET["task_status"] = $obj->task_status;
    $tabBox->add("{$dPconfig['root_dir']}/modules/tasks/tasks", 'Child Tasks');
}
if ($tabBox->loadExtras($m, $a)) {
    $tabBox_show = 1;
}
if ($tabBox_show == 1) {
    $tabBox->show();
}
开发者ID:Esleelkartea,项目名称:gestion-de-primeras-muestras,代码行数:31,代码来源:view.php

示例5: dPgetParam

		</table>
	</td>
</tr>
</table>
</form>
<?php 
if (isset($_GET['tab'])) {
    $AppUI->setState('TaskAeTabIdx', dPgetParam($_GET, 'tab', 0));
}
$tab = $AppUI->getState('TaskAeTabIdx', 0);
$tabBox = new CTabBox('?m=tasks&a=addedit' . ($task_project ? '&task_project=' . $task_project : '&task_id=' . $task_id), '', $tab, '');
$tabBox->add(DP_BASE_DIR . '/modules/tasks/ae_desc', 'Details');
$tabBox->add(DP_BASE_DIR . '/modules/tasks/ae_dates', 'Dates');
$tabBox->add(DP_BASE_DIR . '/modules/tasks/ae_depend', 'Dependencies');
$tabBox->add(DP_BASE_DIR . '/modules/tasks/ae_resource', 'Human Resources');
$tabBox->loadExtras('tasks', 'addedit');
$tabBox->show('', true);
?>
<table border="0" cellspacing="0" cellpadding="3" width="100%">
<tr>
	<td height="40" width="35%">
		* <?php 
echo $AppUI->_('requiredField');
?>
	</td>
	<td height="40" width="30%">&nbsp;</td>
	<td  height="40" width="35%" align="right">
		<table>
		<tr>
			<td>
				<input class="button" type="button" name="cancel2" value="<?php 
开发者ID:hightechcompany,项目名称:dotproject,代码行数:31,代码来源:addedit.php

示例6:

            if ($task_log_id == 0) {
                if ($perms->checkModuleItem('task_log', 'add', $task_id)) {
                    $tabBox->add('vw_log_update', 'New Log');
                }
            } else {
                if ($perms->checkModuleItem('task_log', 'edit', $task_id)) {
                    $tabBox->add('vw_log_update', 'Edit Log');
                }
            }
        }
    }
}
if (count($obj->getChildren()) > 0) {
    // Has children
    // settings for tasks
    $f = 'children';
    $min_view = true;
    $tabBox_show = 1;
    // in the tasks file there is an if that checks
    // $_GET[task_status]; this patch is to be able to see
    // child tasks withing an inactive task
    $_GET['task_status'] = $obj->task_status;
    $tabBox->add('tasks', 'Child Tasks');
}
$tabBox->add('file', 'Files');
if ($isMyTask && $tabBox->loadExtras($m, $a)) {
    $tabBox_show = 1;
}
if ($tabBox_show == 1) {
    $tabBox->show();
}
开发者ID:n2i,项目名称:xvnkb,代码行数:31,代码来源:view.php


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