本文整理汇总了PHP中CTabView::setAttribute方法的典型用法代码示例。如果您正苦于以下问题:PHP CTabView::setAttribute方法的具体用法?PHP CTabView::setAttribute怎么用?PHP CTabView::setAttribute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CTabView
的用法示例。
在下文中一共展示了CTabView::setAttribute方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
} else {
$screenFormList->addVar('width', 500);
$screenFormList->addVar('height', 100);
}
if (in_array($resourceType, array(SCREEN_RESOURCE_GRAPH, SCREEN_RESOURCE_SIMPLE_GRAPH, SCREEN_RESOURCE_MAP, SCREEN_RESOURCE_CLOCK, SCREEN_RESOURCE_URL))) {
$hightAlignRadioButton = array(new CRadioButton('halign', HALIGN_LEFT, null, 'halign_' . HALIGN_LEFT, $halign == HALIGN_LEFT), new CLabel(_('Left'), 'halign_' . HALIGN_LEFT), new CRadioButton('halign', HALIGN_CENTER, null, 'halign_' . HALIGN_CENTER, $halign == HALIGN_CENTER), new CLabel(_('Center'), 'halign_' . HALIGN_CENTER), new CRadioButton('halign', HALIGN_RIGHT, null, 'halign_' . HALIGN_RIGHT, $halign == HALIGN_RIGHT), new CLabel(_('Right'), 'halign_' . HALIGN_RIGHT));
$screenFormList->addRow(_('Horizontal align'), new CDiv($hightAlignRadioButton, 'jqueryinputset'));
} else {
$screenFormList->addVar('halign', 0);
}
$verticalAlignRadioButton = array(new CRadioButton('valign', VALIGN_TOP, null, 'valign_' . VALIGN_TOP, $valign == VALIGN_TOP), new CLabel(_('Top'), 'valign_' . VALIGN_TOP), new CRadioButton('valign', VALIGN_MIDDLE, null, 'valign_' . VALIGN_MIDDLE, $valign == VALIGN_MIDDLE), new CLabel(_('Middle'), 'valign_' . VALIGN_MIDDLE), new CRadioButton('valign', VALIGN_BOTTOM, null, 'valign_' . VALIGN_BOTTOM, $valign == VALIGN_BOTTOM), new CLabel(_('Bottom'), 'valign_' . VALIGN_BOTTOM));
$screenFormList->addRow(_('Vertical align'), new CDiv($verticalAlignRadioButton, 'jqueryinputset'));
$screenFormList->addRow(_('Column span'), new CNumericBox('colspan', $colspan, 3));
$screenFormList->addRow(_('Row span'), new CNumericBox('rowspan', $rowspan, 3));
// dynamic addon
if ($this->data['screen']['templateid'] == 0 && in_array($resourceType, array(SCREEN_RESOURCE_GRAPH, SCREEN_RESOURCE_SIMPLE_GRAPH, SCREEN_RESOURCE_PLAIN_TEXT))) {
$screenFormList->addRow(_('Dynamic item'), new CCheckBox('dynamic', $dynamic, null, 1));
}
// append tabs to form
$screenTab = new CTabView();
$screenTab->setAttribute('style', 'text-align: left;');
$screenTab->addTab('screenTab', _('Screen cell configuration'), $screenFormList);
$screenForm->addItem($screenTab);
// append buttons to form
$buttons = array();
if (isset($_REQUEST['screenitemid'])) {
array_push($buttons, new CButtonDelete(null, url_param('form') . url_param('screenid') . url_param('screenitemid')));
}
array_push($buttons, new CButtonCancel(url_param('screenid')));
$screenForm->addItem(makeFormFooter(new CSubmit('save', _('Save')), $buttons));
return $screenForm;