本文整理汇总了PHP中CTag::setHint方法的典型用法代码示例。如果您正苦于以下问题:PHP CTag::setHint方法的具体用法?PHP CTag::setHint怎么用?PHP CTag::setHint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CTag
的用法示例。
在下文中一共展示了CTag::setHint方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CSpan
}
$up = null;
if ($stepid != $first) {
$up = new CSpan(S_UP, 'link');
$up->onClick("return create_var('" . $form->getName() . "','move_up'," . $stepid . ", true);");
}
$down = null;
if ($stepid != $last) {
$down = new CLink(S_DOWN, 'link');
$down->onClick("return create_var('" . $form->getName() . "','move_down'," . $stepid . ", true);");
}
$name = new CSpan($s['name'], 'link');
$name->onClick('return PopUp("popup_httpstep.php?dstfrm=' . $form->getName() . '&list_name=steps&stepid=' . $stepid . url_param($s['name'], false, 'name') . url_param($s['timeout'], false, 'timeout') . url_param($s['url'], false, 'url') . url_param($s['posts'], false, 'posts') . url_param($s['required'], false, 'required') . url_param($s['status_codes'], false, 'status_codes') . '");');
if (zbx_strlen($s['url']) > 70) {
$url = new CTag('span', 'yes', substr($s['url'], 0, 35) . SPACE . '...' . SPACE . substr($s['url'], zbx_strlen($s['url']) - 25, 25));
$url->setHint($s['url']);
} else {
$url = $s['url'];
}
$tblSteps->addRow(array(new CCheckBox('sel_step[]', null, null, $stepid), $name, $s['timeout'] . SPACE . S_SEC_SMALL, $url, $s['required'], $s['status_codes'], array($up, isset($up) && isset($down) ? SPACE : null, $down)));
}
$form->addVar('steps', $steps);
$form->addRow(S_STEPS, array(count($steps) > 0 ? array($tblSteps, BR()) : null, new CButton('add_step', S_ADD, 'return PopUp("popup_httpstep.php?dstfrm=' . $form->getName() . '");'), count($steps) > 0 ? new CButton('del_sel_step', S_DELETE_SELECTED) : null));
$form->addItemToBottomRow(new CButton("save", S_SAVE));
if (isset($_REQUEST["httptestid"])) {
$form->addItemToBottomRow(SPACE);
$form->addItemToBottomRow(new CButton("clone", S_CLONE));
$form->addItemToBottomRow(SPACE);
$form->addItemToBottomRow(new CButtonDelete(S_DELETE_SCENARIO_Q, url_param("form") . url_param("httptestid") . url_param('hostid')));
}
$form->addItemToBottomRow(SPACE);