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


PHP CFormTable::addHelpIcon方法代码示例

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


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

示例1: getRequest

    if (!hasRequest('caption') || getRequest('caption') === $item['name']) {
        $caption = $item['name_expanded'];
    }
}
insert_js_function('add_bitem');
insert_js_function('update_bitem');
if (hasRequest('add') && !hasRequest('gid')) {
    insert_js("add_bitem(" . zbx_jsvalue(getRequest('dstfrm')) . "," . zbx_jsvalue($caption) . ",'" . getRequest('itemid') . "','" . getRequest('color') . "'," . getRequest('calc_fnc') . "," . getRequest('axisside') . ");\n");
}
if (hasRequest('update') && hasRequest('gid')) {
    insert_js("update_bitem(" . zbx_jsvalue(getRequest('dstfrm')) . "," . zbx_jsvalue(getRequest('list_name')) . ",'" . getRequest('gid') . "'," . zbx_jsvalue($caption) . ",'" . getRequest('itemid') . "','" . getRequest('color') . "'," . getRequest('calc_fnc') . "," . getRequest('axisside') . ");\n");
} else {
    echo BR();
    $frmGItem = new CFormTable(_('New item for the graph'));
    $frmGItem->setName('graph_item');
    $frmGItem->addHelpIcon();
    $frmGItem->addVar('dstfrm', $_REQUEST['dstfrm']);
    $config = getRequest('config', 1);
    $gid = getRequest('gid');
    $list_name = getRequest('list_name');
    $itemid = getRequest('itemid', 0);
    $color = getRequest('color', '009900');
    $calc_fnc = getRequest('calc_fnc', 2);
    $axisside = getRequest('axisside', GRAPH_YAXIS_SIDE_LEFT);
    $frmGItem->addVar('gid', $gid);
    $frmGItem->addVar('config', $config);
    $frmGItem->addVar('list_name', $list_name);
    $frmGItem->addVar('itemid', $itemid);
    $frmGItem->addRow(array(new CVisibilityBox('caption_visible', hasRequest('caption') && $caption != $autoCaption, 'caption', _('Default')), _('Caption')), new CTextBox('caption', $caption, 50));
    $host = getRequest('host');
    $itemName = getRequest('name_expanded');
开发者ID:TonywalkerCN,项目名称:Zabbix,代码行数:31,代码来源:popup_bitem.php

示例2: array

}
// checks
$fields['test_expression'] = array(T_ZBX_STR, O_OPT, P_SYS | P_ACT, null, null);
if (!check_fields($fields)) {
    $test = false;
}
// actions
if (isset($_REQUEST['test_expression'])) {
    show_messages();
    $test = true;
} else {
    $test = false;
}
// form
$testForm = new CFormTable(_('Test'), 'tr_testexpr.php');
$testForm->addHelpIcon();
$testForm->setTableClass('formlongtable formtable');
$testForm->addVar('expression', $expression);
$testForm->addRow(_('Test data'), $dataTable);
$resultTable = new CTable(null, 'tableinfo');
$resultTable->setAttribute('id', 'result_list');
$resultTable->setOddRowClass('even_row');
$resultTable->setEvenRowClass('even_row');
$resultTable->setHeader(array(_('Expression'), _('Result')));
ksort($rplcts, SORT_NUMERIC);
foreach ($eHTMLTree as $e) {
    $result = '-';
    $style = 'text-align: center;';
    if ($allowedTesting && $test && isset($e['expression'])) {
        if (evalExpressionData($e['expression']['value'], $macrosData)) {
            $result = 'TRUE';
开发者ID:TonywalkerCN,项目名称:Zabbix,代码行数:31,代码来源:tr_testexpr.php

示例3: DBstart

        }
        if ($result) {
            DBstart();
            add_audit($auditAction, AUDIT_RESOURCE_TRIGGER, _('Trigger') . ' [' . $triggerId . '] [' . $trigger['description'] . ']');
            DBend(true);
            unset($_REQUEST['sform']);
            zbx_add_post_js('closeForm("items.php");');
            require_once dirname(__FILE__) . '/include/page_footer.php';
        }
    }
}
//------------------------ <FORM> ---------------------------
if (hasRequest('sform')) {
    $frmTRLog = new CFormTable(_('Trigger'), null, null, null, 'sform');
    $frmTRLog->setName('sform');
    $frmTRLog->addHelpIcon();
    $frmTRLog->setTableClass('formlongtable formtable');
    if (hasRequest('triggerid')) {
        $frmTRLog->addVar('triggerid', getRequest('triggerid'));
    }
    if (hasRequest('triggerid') && !hasRequest('form_refresh')) {
        $result = DBselect('SELECT t.expression,t.description,t.priority,t.comments,t.url,t.status,t.type' . ' FROM triggers t' . ' WHERE t.triggerid=' . zbx_dbstr(getRequest('triggerid')) . ' AND EXISTS (' . 'SELECT NULL' . ' FROM functions f,items i' . ' WHERE t.triggerid=f.triggerid' . ' AND f.itemid=i.itemid ' . ' AND i.value_type IN (' . ITEM_VALUE_TYPE_LOG . ',' . ITEM_VALUE_TYPE_TEXT . ',' . ITEM_VALUE_TYPE_STR . ')' . ')');
        if ($row = DBfetch($result)) {
            $description = $row['description'];
            $expression = explode_exp($row['expression']);
            $type = $row['type'];
            $priority = $row['priority'];
            $comments = $row['comments'];
            $url = $row['url'];
            $status = $row['status'];
        }
开发者ID:omidmt,项目名称:zabbix-greenplum,代码行数:31,代码来源:tr_logform.php


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