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


PHP CTabBox::add方法代码示例

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


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

示例1: CTabBox

    // Now onto the display of the user.
    ?>
<table class="std view">
		<tr>
			<td align="right" nowrap="nowrap"><?php 
    echo $AppUI->_('Role ID');
    ?>
:</td>
			<td class="hilite" width="100%"><?php 
    echo $role["value"];
    ?>
</td>
		</tr>
		<tr>
			<td align="right" nowrap="nowrap"><?php 
    echo $AppUI->_('Description');
    ?>
:</td>
			<td class="hilite" width="100%"><?php 
    echo $AppUI->_($role["name"]);
    ?>
</td>
		</tr>
</table>
<?php 
    echo $AppUI->getTheme()->styleRenderBoxBottom();
    $tabBox = new CTabBox('?m=system&u=roles&a=viewrole&role_id=' . $role_id, W2P_BASE_DIR . '/modules/system/roles/', $tab);
    $tabBox->add('vw_role_perms', 'Permissions');
    $tabBox->show();
}
// End of check for valid role
开发者ID:illuminate3,项目名称:web2project,代码行数:31,代码来源:viewrole.php

示例2: CTitleBlock

$titleBlock = new CTitleBlock('Files', 'folder5.png', $m, $m . '.' . $a);
$titleBlock->addCell($AppUI->_('Filter') . ':');
$titleBlock->addCell(arraySelect($projects, 'project_id', 'onchange="javascript:document.pickProject.submit()" size="1" class="text"', $project_id), '', '<form name="pickProject" action="?m=files" method="post">', '</form>');
/*
 * override the file module's $canEdit variable passed from the main index.php 
 * in order to check on file folder permissions
 */
$canAuthor_folders = getPermission('file_folders', 'add');
if ($canAuthor) {
    $titleBlock->addCell('<input type="submit" class="button" value="' . $AppUI->_('new file') . '" />', '', '<form action="?m=files&amp;a=addedit&amp;folder=' . $folder . '" method="post">', '</form>');
}
if ($canAuthor_folders) {
    $titleBlock->addCell('<input type="submit" class="button" value="' . $AppUI->_('new folder') . '" />', '', '<form action="?m=files&amp;a=addedit_folder" method="post">', '</form>');
}
$titleBlock->show();
$file_types = dPgetSysVal('FileType');
$fts = $file_types;
if ($tab != -1) {
    array_unshift($file_types, 'All Files');
}
$tabBox = new CTabBox('?m=files', DP_BASE_DIR . '/modules/files/', $tab);
$tabbed = $tabBox->isTabbed();
$i = 0;
foreach ($file_types as $file_type) {
    $tabBox->add('index_table', $file_type);
    ++$i;
}
if ($canAccess_folders) {
    $tabBox->add('folders_table', 'Folder Explorer');
}
$tabBox->show();
开发者ID:srinivasulurao,项目名称:jonel,代码行数:31,代码来源:index.php

示例3: CTabBox

			    	<td>
		 <?php 
}
?>
		</table>
	</td>
</table>

<?php 
$tabBox = new CTabBox("?m=projects&a=view&project_id={$project_id}", "", $tab);
$query_string = "?m=projects&a=view&project_id={$project_id}";
// tabbed information boxes
// Note that we now control these based upon module requirements.
$canViewTask = $perms->checkModule('tasks', 'view');
if ($canViewTask) {
    $tabBox->add(dPgetConfig('root_dir') . "/modules/tasks/tasks", 'Tasks');
    $tabBox->add(dPgetConfig('root_dir') . "/modules/tasks/tasks", 'Tasks (Inactive)');
}
if ($perms->checkModule('forums', 'view')) {
    $tabBox->add(dPgetConfig('root_dir') . "/modules/projects/vw_forums", 'Forums');
}
//if ($perms->checkModule('files', 'view'))
//	$tabBox->add( dPgetConfig('root_dir')."/modules/projects/vw_files", 'Files' );
if ($canViewTask) {
    $tabBox->add(dPgetConfig('root_dir') . "/modules/tasks/viewgantt", 'Gantt Chart');
    $tabBox->add(dPgetConfig('root_dir') . "/modules/projects/vw_logs", 'Task Logs');
}
$tabBox->loadExtras($m);
$f = 'all';
$min_view = true;
$tabBox->show();
开发者ID:juliogallardo1326,项目名称:proc,代码行数:31,代码来源:view.php

示例4: COUNT

/*
 * Unassigned = 0
 * Open = 1
 * Closed = 2
 * On hold = 3
 * Delete = 4
 * Testing = 5
 */
$sql = "SELECT COUNT(DISTINCT(item_id))\n        FROM \n        \thelpdesk_items\n        WHERE \n        \titem_assigned_to=" . $AppUI->user_id . "\n        \tAND (item_status != 2)";
$nummine = db_loadResult($sql);
$sql = "SELECT COUNT(DISTINCT(item_id))\n        FROM \n        \thelpdesk_items\n        \tLEFT JOIN helpdesk_item_status on helpdesk_items.item_id = helpdesk_item_status.status_item_id\n        WHERE \n        \tstatus_code = 0\n            AND item_status <> 2\n            AND (TO_DAYS(NOW()) - TO_DAYS(status_date) = 0)\n        \tAND {$item_perms}";
$numopened = db_loadResult($sql);
$sql = "SELECT COUNT(DISTINCT(item_id))\n        FROM \n        \thelpdesk_items\n        \tLEFT JOIN helpdesk_item_status on helpdesk_items.item_id = helpdesk_item_status.status_item_id\n        WHERE \n        \titem_status=2\n        \tAND status_code=11\n        \tAND (TO_DAYS(NOW()) - TO_DAYS(status_date) = 0)\n          AND {$item_perms}";
$numclosed = db_loadResult($sql);
?>
<table cellspacing="0" cellpadding="2" border="0" width="100%">
<tr>
	<td width="80%" valign="top">
  <?php 
// Tabbed information boxes
$tabBox = new CTabBox("?m=helpdesk", "{$dPconfig['root_dir']}/modules/helpdesk/", $tab);
$tabBox->add('vw_idx_stats', $AppUI->_('Help Desk Items') . " ({$numtotal})");
$tabBox->add('vw_idx_my', $AppUI->_('My Open') . " ({$nummine})");
$tabBox->add('vw_idx_new', $AppUI->_('Opened Today') . " ({$numopened})");
$tabBox->add('vw_idx_closed', $AppUI->_('Closed Today') . " ({$numclosed})");
$tabBox->add('vw_idx_watched', "Watched Tickets");
$tabBox->show();
?>
	</td>
</tr>
</table>
开发者ID:slawekmikula,项目名称:dotproject,代码行数:31,代码来源:index.php

示例5: w2PfindImage

                    <td>
                        <a href="<?php 
echo '?m=calendar&a=day_view&date=' . $next_day->format(FMT_TIMESTAMP_DATE);
?>
"><img src="<?php 
echo w2PfindImage('next.gif');
?>
" width="16" height="16" alt="next" border="0"></a>
                    </td>
                </tr>
            </table>

            <?php 
// tabbed information boxes
$tabBox = new CTabBox('?m=calendar&a=day_view&date=' . $this_day->format(FMT_TIMESTAMP_DATE), W2P_BASE_DIR . '/modules/calendar/', $tab);
$tabBox->add('vw_day_events', 'Events');
$tabBox->add('vw_day_tasks', 'Tasks');
$tabBox->show();
?>
        </td>
<?php 
if ($w2Pconfig['cal_day_view_show_minical']) {
    ?>
        <td valign="top" width="175">
<?php 
    $minical = new CMonthCalendar($this_day);
    $minical->setStyles('minititle', 'minical');
    $minical->showArrows = false;
    $minical->showWeek = false;
    $minical->clickMonth = true;
    $minical->setLinkFunctions('clickDay');
开发者ID:eureka2,项目名称:web2project,代码行数:31,代码来源:day_view.php

示例6: CTabBox

			<td bgcolor="#ffffff"><?php 
    echo @$dept['dept_address1'] . ($dept['dept_address2'] ? '<br />' . $dept['dept_address2'] : '') . '<br />' . $dept['dept_city'] . '&nbsp;&nbsp;' . $dept['dept_state'] . '&nbsp;&nbsp;' . $dept['dept_zip'];
    ?>
</td>
		</tr>
		</table>
	</td>
	<td width="50%">
		<strong><?php 
    echo $AppUI->_('Description');
    ?>
</strong>
		<table cellspacing="1" cellpadding="2" border="0" width="100%">
		<tr>
			<td bgcolor="#ffffff" width="100%"><?php 
    echo str_replace(chr(10), "<br />", $dept['dept_desc']);
    ?>
&nbsp;</td>
		</tr>
		</table>
	</td>
</tr>
</table>
<?php 
    // tabbed information boxes
    $tabBox = new CTabBox('?m=departments&a=' . $a . '&dept_id=' . $dept_id, '', $tab);
    $tabBox->add(DP_BASE_DIR . '/modules/departments/vw_contacts', 'Contacts');
    // include auto-tabs with 'view' explicitly instead of $a, because this view is also included in the main index site
    $tabBox->loadExtras($m, 'view');
    $tabBox->show();
}
开发者ID:magsilva,项目名称:dotproject,代码行数:31,代码来源:view.php

示例7: die

<?php

if (!defined('W2P_BASE_DIR')) {
    die('You should not access this file directly.');
}
$tab = $AppUI->processIntState('ResourceTypeTab', $_GET, 'tab', 0);
$obj = new CResource();
$perms =& $AppUI->acl();
$canEdit = canEdit('resources');
$titleBlock = new w2p_Theme_TitleBlock('Resources', 'icon.png', $m);
if ($canEdit) {
    $titleBlock->addButton('new resource', '?m=resources&a=addedit');
}
$titleBlock->show();
$resource_types = w2PgetSysVal('ResourceTypes');
$tabBox = new CTabBox('?m=resources', W2P_BASE_DIR . '/modules/resources/', $tab);
if ($tabBox->isTabbed()) {
    array_unshift($resource_types, $AppUI->_('All Resources', UI_OUTPUT_RAW));
}
foreach ($resource_types as $resource_type) {
    $tabBox->add('vw_resources', $resource_type);
}
$tabBox->show();
开发者ID:illuminate3,项目名称:web2project,代码行数:23,代码来源:index.php

示例8: showchilddept

* Now, we will figure out which vw_idx file are available
* for each project type using the $fixed_project_type_file array 
*/
$project_type_file = array();
foreach ($project_types as $project_type) {
    $project_type = trim($project_type);
    if (isset($fixed_project_type_file[$project_type])) {
        $project_file_type[$project_type] = $fixed_project_type_file[$project_type];
    } else {
        // if there is no fixed vw_idx file, we will use vw_idx_proposed
        $project_file_type[$project_type] = "vw_idx_proposed";
    }
}
// tabbed information boxes
foreach ($project_types as $project_type) {
    $tabBox->add($project_file_type[$project_type], $project_type, true);
}
$min_view = true;
$tabBox->add("viewgantt", "Gantt");
$tabBox->show();
//writes out a single <option> element for display of departments
function showchilddept(&$a, $level = 1)
{
    global $buffer, $department;
    $s = '<option value="' . $a["dept_id"] . '"' . (isset($department) && $department == $a["dept_id"] ? 'selected="selected"' : '') . '>';
    for ($y = 0; $y < $level; $y++) {
        if ($y + 1 == $level) {
            $s .= '';
        } else {
            $s .= '&nbsp;&nbsp;';
        }
开发者ID:Esleelkartea,项目名称:gestion-de-primeras-muestras,代码行数:31,代码来源:index_2.php

示例9: CTabBox

	 		</td>
	 	</tr>
		</table>
	</td>
</tr>
</table>

<?php 
$query_string = "?m=tasks&a=view&task_id={$task_id}";
$tabBox = new CTabBox("?m=tasks&a=view&task_id={$task_id}", "", $tab);
$tabBox_show = 0;
if ($obj->task_dynamic != 1) {
    // tabbed information boxes
    if ($perms->checkModuleItem('task_log', 'view', $task_id)) {
        $tabBox_show = 1;
        $tabBox->add("{$dPconfig['root_dir']}/modules/tasks/vw_logs", 'Task Logs');
        // fixed bug that dP automatically jumped to access denied if user does not
        // have read-write permissions on task_id and this tab is opened by default (session_vars)
        // only if user has r-w perms on this task, new or edit log is beign showed
        /*if ($perms->checkModuleItem('task_log', 'add', $task_id))
        		$tabBox->add( "{$dPconfig['root_dir']}/modules/tasks/vw_log_update", 'New Log' );*/
        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');
                }
            }
开发者ID:Esleelkartea,项目名称:gestion-de-primeras-muestras,代码行数:31,代码来源:view.php

示例10: CCompany

    $AppUI->setState('CompIdxOrderDir', $orderdir);
}
$orderby = $AppUI->getState('CompIdxOrderBy') ? $AppUI->getState('CompIdxOrderBy') : 'company_name';
$orderdir = $AppUI->getState('CompIdxOrderDir') ? $AppUI->getState('CompIdxOrderDir') : 'asc';
$owner_filter_id = $AppUI->processIntState('owner_filter_id', $_POST, 'owner_filter_id', 0);
$search_string = w2PgetParam($_POST, 'search_string', '');
$search_string = w2PformSafe($search_string, true);
$company = new CCompany();
$canCreate = $company->canCreate();
$perms =& $AppUI->acl();
$baseArray = array(0 => $AppUI->_('All', UI_OUTPUT_RAW));
$allowedArray = $perms->getPermittedUsers('companies');
$owner_list = is_array($allowedArray) ? $baseArray + $allowedArray : $baseArray;
// setup the title block
$titleBlock = new w2p_Theme_TitleBlock('Companies', 'icon.png', $m);
$titleBlock->addSearchCell($search_string);
$titleBlock->addFilterCell('Owner', 'owner_filter_id', $owner_list, $owner_filter_id);
if ($canCreate) {
    $titleBlock->addButton('new company', '?m=companies&a=addedit');
}
$titleBlock->show();
// load the company types
$companyTypes = w2PgetSysVal('CompanyType');
$tabBox = new CTabBox('?m=companies', W2P_BASE_DIR . '/modules/companies/', $tab);
if ($tabBox->isTabbed()) {
    array_unshift($companyTypes, $AppUI->_('All Companies', UI_OUTPUT_RAW));
}
foreach ($companyTypes as $type_name) {
    $tabBox->add('vw_companies', $type_name);
}
$tabBox->show();
开发者ID:illuminate3,项目名称:web2project,代码行数:31,代码来源:index.php

示例11: htmlspecialchars

        $target = htmlspecialchars($dept['dept_batching_type']);
        foreach ($new as $n) {
            $as = explode('|', $n);
            if ($as[0] === $target) {
                $found = $as[1];
            }
        }
        ?>
                        <td align="right"><?php 
        echo $AppUI->_('Batch Type');
        ?>
:</td>
                        <td bgcolor="#ffffff" width="80%"><?php 
        echo $found;
        ?>
</td>
                    </tr>
                </table>
	</td>
</tr>
</table>
<?php 
        // tabbed information boxes
        $moddir = DP_BASE_DIR . '/modules/departments/';
        $tabBox = new CTabBox('?m=' . $m . '&a=' . $a . '&dept_id=' . $dept_id, '', $tab);
        $tabBox->add($moddir . 'vw_contacts', 'Contacts');
        // include auto-tabs with 'view' explicitly instead of $a, because this view is also included in the main index site
        $tabBox->loadExtras($m, 'view');
        $tabBox->show();
    }
}
开发者ID:srinivasulurao,项目名称:jonel,代码行数:31,代码来源:view.php

示例12: implode

    if (count($allowedProjects)) {
        $q->addWhere('( ( ' . implode(' AND ', $allowedProjects) . ') OR file_project = 0 )');
    }
    if (count($allowedTasks)) {
        $q->addWhere('( ( ' . implode(' AND ', $allowedTasks) . ') OR file_task = 0 )');
    }
    if ($catsql) {
        $q->addWhere($catsql);
    }
    if ($company_id) {
        $q->addWhere("project_company = {$company_id}");
    }
    if ($project_id) {
        $q->addWhere("file_project = {$project_id}");
    }
    if ($task_id) {
        $q->addWhere("file_task = {$task_id}");
    }
    $key = array_search($file_type, $fts);
    if ($i > 0 || !$tabbed) {
        $q->addWhere('file_category = ' . $key);
    }
    if ($project_id > 0) {
        $q->addWhere('file_project = ' . $project_id);
    }
    $tabBox->add('index_table', $file_type . ' (' . $q->loadResult() . ')');
    ++$i;
}
$tabBox->add('folders_table', 'Folder Explorer');
$tabBox->show();
//}
开发者ID:magsilva,项目名称:dotproject,代码行数:31,代码来源:index.php

示例13: CTabBox

    $titleBlock->show();
}
// If we are called from anywhere but directly, we would end up with
// double rows of tabs that would not work correctly, and since we
// are called from the day view of calendar, we need to prevent this
if ($m == 'tasks' && $a == 'todo') {
    ?>


<table cellspacing="0" cellpadding="2" border="0" width="100%">
<tr>
	<td width="80%" valign="top">
		<?php 
    // Tabbed information boxes
    $tabBox = new CTabBox('?m=tasks&amp;a=todo', DP_BASE_DIR . '/modules/', $tab);
    $tabBox->add('tasks/todo_tasks_sub', 'My Tasks');
    $tabBox->add('tasks/todo_gantt_sub', 'My Gantt');
    // Wouldn't it be better to user $tabBox->loadExtras('tasks', 'todo'); and then
    // add tasks_tab.todo.my_open_requests.php in helpdesk?
    if ($AppUI->isActiveModule('helpdesk')) {
        $tabBox->add('helpdesk/vw_idx_my', 'My Open Requests');
    }
    $tabBox->show();
    ?>
	</td>
</tr>
</table>
<?php 
} else {
    include DP_BASE_DIR . '/modules/tasks/todo_tasks_sub.php';
}
开发者ID:hoodoogurus,项目名称:dotprojecteap,代码行数:31,代码来源:todo.php

示例14: 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

示例15: delIt

</tr>
</table>
<script language="javascript">
<?php 
// security improvement:
// some javascript functions may not appear on client side in case of user not having write permissions
// else users would be able to arbitrarily run 'bad' functions
if ($canDelete) {
    ?>
function delIt() {
	if (confirm( "<?php 
    echo $AppUI->_('doDelete', UI_OUTPUT_JS);
    ?>
" )) {
		document.frmDelete.submit();
	}
}
<?php 
}
?>
</script>
<?php 
// tabbed information boxes
$moddir = $dPconfig['root_dir'] . '/modules/companies/';
$tabBox = new CTabBox("?m=companies&a=view&company_id={$company_id}", "", $tab);
//ina
$tabBox->add($moddir . 'vw_depts', 'Departments');
//
$tabBox->add($moddir . 'vw_contacts', 'Contacts');
//
$tabBox->show();
开发者ID:Esleelkartea,项目名称:gestion-de-primeras-muestras,代码行数:31,代码来源:view.php


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