本文整理汇总了PHP中CFormTable::show方法的典型用法代码示例。如果您正苦于以下问题:PHP CFormTable::show方法的具体用法?PHP CFormTable::show怎么用?PHP CFormTable::show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CFormTable
的用法示例。
在下文中一共展示了CFormTable::show方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CFormTable
}
}
$messageTable = new CFormTable($title . ' "' . getUserFullname(CWebUser::$data) . '"');
$messageTable->addVar('backurl', $_REQUEST['backurl']);
if (in_array($_REQUEST['backurl'], array('tr_events.php', 'events.php'))) {
$messageTable->addVar('eventid', $_REQUEST['eventid']);
$messageTable->addVar('triggerid', $_REQUEST['triggerid']);
} elseif (in_array($_REQUEST['backurl'], array('screenedit.php', 'screens.php'))) {
$messageTable->addVar('screenid', $_REQUEST['screenid']);
}
if (isset($_REQUEST['eventid'])) {
$messageTable->addVar('eventid', $_REQUEST['eventid']);
} elseif (isset($_REQUEST['triggers'])) {
foreach ($_REQUEST['triggers'] as $triggerId) {
$messageTable->addVar('triggers[' . $triggerId . ']', $triggerId);
}
} elseif (isset($_REQUEST['events'])) {
foreach ($_REQUEST['events'] as $eventId) {
$messageTable->addVar('events[' . $eventId . ']', $eventId);
}
}
$message = new CTextArea('message', '', array('rows' => ZBX_TEXTAREA_STANDARD_ROWS, 'width' => ZBX_TEXTAREA_BIG_WIDTH, 'maxlength' => 255));
$message->attr('autofocus', 'autofocus');
$messageTable->addRow(_('Message'), $message);
$messageTable->addItemToBottomRow(new CSubmit('saveandreturn', $saveAndReturnLabel));
if (!$bulk) {
$messageTable->addItemToBottomRow(new CSubmit('save', $saveLabel));
}
$messageTable->addItemToBottomRow(new CButtonCancel(url_params(array('backurl', 'eventid', 'triggerid', 'screenid'))));
$messageTable->show(false);
require_once dirname(__FILE__) . '/include/page_footer.php';
示例2: CButton
$value = '';
}
$frmLcls->addItemToBottomRow(new CButton('prev', '<< ' . S_PREVIOUS));
$frmLcls->addItemToBottomRow(SPACE);
$frmLcls->addItemToBottomRow(new CButton('download', S_DOWNLOAD));
$frmLcls->show();
} else {
show_table_header(S_LOCALES);
echo SBR;
$frmLcls = new CFormTable(S_CREATE . SPACE . S_LOCALE_SMALL, 'locales.php', 'post', null, 'form');
$frmLcls->setAttribute('id', 'locales');
$cmbLang = new CComboBox('srclang', get_request('srclang', 'en_gb'));
foreach ($ZBX_LOCALES as $id => $name) {
$cmbLang->addItem($id, $name);
}
$frmLcls->addRow(S_TAKE_DEF_LOCALE, $cmbLang);
$cmbExtLang = new CComboBox('extlang', get_request('extlang', 'new'));
$cmbExtLang->addItem('new', S_CREATE . SPACE . S_NEW_SMALL);
foreach ($ZBX_LOCALES as $id => $name) {
$cmbExtLang->addItem($id, $name);
}
$frmLcls->addRow(S_LOCALE_TO_EXTEND, $cmbExtLang);
$cmbFill = new CComboBox('fill', get_request('fill', 1));
$cmbFill->addItem('0', S_DO_NOT_ADD);
$cmbFill->addItem('1', S_LEAVE_EMPTY);
$cmbFill->addItem('2', S_FILL_WITH_DEFAULT_VALUE);
$frmLcls->addRow(S_NEW_ENTRIES, $cmbFill);
$frmLcls->addItemToBottomRow(new CButton('next', S_NEXT . ' >>'));
$frmLcls->show();
}
include_once "include/page_footer.php";
示例3: CCol
}
}
$col = new CCol($result);
$col->setAttribute('style', $style);
$resultTable->addRow(new CRow(array($e['list'], $col)));
}
$result = '-';
$style = 'text-align: center;';
if ($allowedTesting && $test) {
if (evalExpressionData($expression, $macrosData)) {
$result = 'TRUE';
$style = 'background-color: #ccf; color: #00f;';
} else {
$result = 'FALSE';
$style = 'background-color: #fcc; color: #f00;';
}
}
$col = new CCol($result);
$col->setAttribute('style', $style);
$resultTable->setFooter(array($outline, $col), $resultTable->headerClass);
$testForm->addRow(_('Result'), $resultTable);
// action buttons
$testButton = new CSubmit('test_expression', _('Test'));
if (!$allowedTesting) {
$testButton->setAttribute('disabled', 'disabled');
}
$testForm->addItemToBottomRow($testButton);
$testForm->addItemToBottomRow(SPACE);
$testForm->addItemToBottomRow(new CButton('close', _('Close'), 'javascript: self.close();'));
$testForm->show();
require_once dirname(__FILE__) . '/include/page_footer.php';
示例4: insert_httpstep_form
function insert_httpstep_form()
{
$form = new CFormTable(S_STEP_OF_SCENARIO, null, 'post');
$form->SetHelp("web.webmon.httpconf.php");
$form->addVar('dstfrm', get_request('dstfrm', null));
$form->addVar('stepid', get_request('stepid', null));
$form->addVar('list_name', get_request('list_name', null));
$stepid = get_request('stepid', null);
$name = get_request('name', '');
$url = get_request('url', '');
$posts = get_request('posts', '');
$timeout = get_request('timeout', 15);
$required = get_request('required', '');
$status_codes = get_request('status_codes', '');
$form->addRow(S_NAME, new CTextBox('name', $name, 50));
$form->addRow(S_URL, new CTextBox('url', $url, 80));
$form->addRow(S_POST, new CTextArea('posts', $posts, 50, 10));
$form->addRow(S_TIMEOUT, new CNumericBox('timeout', $timeout, 5));
$form->addRow(S_REQUIRED, new CTextBox('required', $required, 80));
$form->addRow(S_STATUS_CODES, new CTextBox('status_codes', $status_codes, 80));
$form->addItemToBottomRow(new CButton("save", isset($stepid) ? S_SAVE : S_ADD));
$form->addItemToBottomRow(new CButtonCancel(null, 'close_window();'));
$form->show();
}
示例5: CFormTable
$messageTable = new CFormTable($title . ' "' . getUserFullname(CWebUser::$data) . '"');
$messageTable->addClass('acknowledge-edit');
$backURL = getRequest('backurl');
$messageTable->addVar('backurl', $backURL);
if ($backURL === 'tr_events.php' || $backURL === 'events.php') {
$messageTable->addVar('triggerid', getRequest('triggerid'));
$messageTable->addVar('source', EVENT_SOURCE_TRIGGERS);
} elseif ($backURL === 'screenedit.php' || $backURL === 'screens.php') {
$messageTable->addVar('screenid', $_REQUEST['screenid']);
}
if (hasRequest('eventid')) {
$messageTable->addVar('eventid', getRequest('eventid'));
} elseif (hasRequest('triggers')) {
foreach (getRequest('triggers') as $triggerId) {
$messageTable->addVar('triggers[' . $triggerId . ']', $triggerId);
}
} elseif (hasRequest('events')) {
foreach (getRequest('events') as $eventId) {
$messageTable->addVar('events[' . $eventId . ']', $eventId);
}
}
$message = new CTextArea('message', '', array('rows' => ZBX_TEXTAREA_STANDARD_ROWS, 'width' => ZBX_TEXTAREA_BIG_WIDTH, 'maxlength' => 255));
$message->attr('autofocus', 'autofocus');
$messageTable->addRow(_('Message'), $message);
$messageTable->addItemToBottomRow(new CSubmit('saveandreturn', $saveAndReturnLabel));
if (!$bulk) {
$messageTable->addItemToBottomRow(new CSubmit('save', $saveLabel));
}
$messageTable->addItemToBottomRow(new CButtonCancel(url_params(array('backurl', 'eventid', 'triggerid', 'screenid'))));
$messageTable->show();
require_once dirname(__FILE__) . '/include/page_footer.php';
示例6: foreach
$frmTRLog->addVar('expressions[' . $id . '][view]', $expr['view']);
$maxid = $maxid < $id ? $id : $maxid;
}
zbx_add_post_js('logexpr_count=' . ($maxid + 1));
$maxid = 0;
foreach ($keys as $id => $val) {
$del_url = new CLink(_('Delete'), '#', 'action', 'javascript: if(confirm("' . _('Delete keyword?') . '")) remove_keyword("keytr' . $id . '"); return false;');
$row = new CRow(array(htmlspecialchars($val['value']), $val['type'], $del_url));
$row->setAttribute('id', 'keytr' . $id);
$keyTable->addRow($row);
$frmTRLog->addVar('keys[' . $id . '][value]', $val['value']);
$frmTRLog->addVar('keys[' . $id . '][type]', $val['type']);
$maxid = $maxid < $id ? $id : $maxid;
}
zbx_add_post_js('key_count=' . ($maxid + 1));
$frmTRLog->addRow(SPACE, $keyTable);
$frmTRLog->addRow(SPACE, $table);
$sev_select = new CComboBox('priority', $priority);
$sev_select->addItems(getSeverityCaption());
$frmTRLog->addRow(_('Severity'), $sev_select);
$frmTRLog->addRow(_('Comments'), new CTextArea('comments', $comments));
$frmTRLog->addRow(_('URL'), new CTextBox('url', $url, 80));
$frmTRLog->addRow(_('Disabled'), new CCheckBox('status', $status == TRIGGER_STATUS_DISABLED ? 'yes' : 'no', null, 1));
$frmTRLog->addItemToBottomRow(new CSubmit('save_trigger', _('Save'), 'javascript: document.forms[0].action += \'?saction=1\';'));
$frmTRLog->addItemToBottomRow(SPACE);
$frmTRLog->addItemToBottomRow(new CButton('cancel', _('Cancel'), 'javascript: self.close();'));
if ($bExprResult) {
$frmTRLog->show();
}
}
require_once dirname(__FILE__) . '/include/page_footer.php';
示例7: array
require_once "include/scripts.inc.php";
require_once "include/forms.inc.php";
$page['title'] = "S_SCRIPTS";
$page['file'] = 'scripts_exec.php';
define('ZBX_PAGE_NO_MENU', 1);
include_once "include/page_header.php";
// VAR TYPE OPTIONAL FLAGS VALIDATION EXCEPTION
$fields = array('hostid' => array(T_ZBX_INT, O_OPT, P_SYS, DB_ID, 'isset({execute})'), 'scriptid' => array(T_ZBX_INT, O_OPT, P_SYS, DB_ID, 'isset({execute})'), 'execute' => array(T_ZBX_INT, O_OPT, P_ACT, IN('0,1'), null));
check_fields($fields);
if (isset($_REQUEST['execute'])) {
$scriptid = $_REQUEST['scriptid'];
$hostid = $_REQUEST['hostid'];
$sql = 'SELECT name ' . ' FROM scripts ' . ' WHERE scriptid=' . $scriptid;
$script_info = DBfetch(DBselect($sql));
$result = CScript::execute(array('hostid' => $hostid, 'scriptid' => $scriptid));
if ($result === false) {
show_messages(false, '', S_SCRIPT_ERROR);
} else {
$message = $result['value'];
if ($result['response'] == 'failed') {
error($message);
show_messages(false, '', S_SCRIPT_ERROR);
$message = '';
}
$frmResult = new CFormTable($script_info['name'] . ': ' . script_make_command($scriptid, $hostid));
$frmResult->addRow(S_RESULT, new CTextArea('message', $message, 100, 25, 'yes'));
$frmResult->addItemToBottomRow(new CButton('close', S_CLOSE, 'window.close();'));
$frmResult->show();
}
}
include_once "include/page_footer.php";
示例8: CCol
if ($result != '-') {
$style = $result == 'TRUE' ? 'background-color: #ccf; color: #00f;' : 'background-color: #fcc; color: #f00;';
}
$col = new CCol($result);
$col->setAttribute('style', $style);
$res_table->addRow(new CRow(array($e['list'], $col)));
}
$result = '-';
if ($allowedTesting && $test) {
$result = evalExpressionData($expression, $macrosData, $octet);
}
$style = 'text-align: center;';
if ($result != '-') {
$style = $result == 'TRUE' ? 'background-color: #ccf; color: #00f;' : 'background-color: #fcc; color: #f00;';
}
$col = new CCol($result);
$col->setAttribute('style', $style);
$res_table->setFooter(array($outline, $col), $res_table->headerClass);
$frm_test->addRow(_('Result'), $res_table);
// action buttons
$btn_test = new CSubmit('test_expression', _('Test'));
if (!$allowedTesting) {
$btn_test->setAttribute('disabled', 'disabled');
}
$frm_test->addItemToBottomRow($btn_test);
$frm_test->addItemToBottomRow(SPACE);
$btn_close = new CButton('close', _('Close'), 'javascript: self.close();');
$frm_test->addItemToBottomRow($btn_close);
$frm_test->show();
//------------------------ </FORM> ---------------------------
require_once dirname(__FILE__) . '/include/page_footer.php';
示例9: insert_graph_form
function insert_graph_form()
{
$frmGraph = new CFormTable(S_GRAPH, null, 'post');
$frmGraph->setName('frm_graph');
//$frmGraph->setHelp("web.graphs.graph.php");
$items = get_request('items', array());
if (isset($_REQUEST['graphid'])) {
$frmGraph->addVar('graphid', $_REQUEST['graphid']);
$options = array('graphids' => $_REQUEST['graphid'], 'extendoutput' => 1);
$graphs = CGraph::get($options);
$row = reset($graphs);
$frmGraph->setTitle(S_GRAPH . ' "' . $row['name'] . '"');
}
if (isset($_REQUEST['graphid']) && !isset($_REQUEST['form_refresh'])) {
$name = $row['name'];
$width = $row['width'];
$height = $row['height'];
$ymin_type = $row['ymin_type'];
$ymax_type = $row['ymax_type'];
$yaxismin = $row['yaxismin'];
$yaxismax = $row['yaxismax'];
$ymin_itemid = $row['ymin_itemid'];
$ymax_itemid = $row['ymax_itemid'];
$showworkperiod = $row['show_work_period'];
$showtriggers = $row['show_triggers'];
$graphtype = $row['graphtype'];
$legend = $row['show_legend'];
$graph3d = $row['show_3d'];
$percent_left = $row['percent_left'];
$percent_right = $row['percent_right'];
$options = array('graphids' => $_REQUEST['graphid'], 'sortfield' => 'sortorder', 'extendoutput' => 1);
$items = CGraphItem::get($options);
} else {
$name = get_request('name', '');
$graphtype = get_request('graphtype', GRAPH_TYPE_NORMAL);
if ($graphtype == GRAPH_TYPE_PIE || $graphtype == GRAPH_TYPE_EXPLODED) {
$width = get_request('width', 400);
$height = get_request('height', 300);
} else {
$width = get_request('width', 900);
$height = get_request('height', 200);
}
$ymin_type = get_request('ymin_type', GRAPH_YAXIS_TYPE_CALCULATED);
$ymax_type = get_request('ymax_type', GRAPH_YAXIS_TYPE_CALCULATED);
$yaxismin = get_request('yaxismin', 0.0);
$yaxismax = get_request('yaxismax', 100.0);
$ymin_itemid = get_request('ymin_itemid', 0);
$ymax_itemid = get_request('ymax_itemid', 0);
$showworkperiod = get_request('showworkperiod', 0);
$showtriggers = get_request('showtriggers', 0);
$legend = get_request('legend', 0);
$graph3d = get_request('graph3d', 0);
$visible = get_request('visible');
$percent_left = 0;
$percent_right = 0;
if (isset($visible['percent_left'])) {
$percent_left = get_request('percent_left', 0);
}
if (isset($visible['percent_right'])) {
$percent_right = get_request('percent_right', 0);
}
}
/* reinit $_REQUEST */
$_REQUEST['items'] = $items;
$_REQUEST['name'] = $name;
$_REQUEST['width'] = $width;
$_REQUEST['height'] = $height;
$_REQUEST['ymin_type'] = $ymin_type;
$_REQUEST['ymax_type'] = $ymax_type;
$_REQUEST['yaxismin'] = $yaxismin;
$_REQUEST['yaxismax'] = $yaxismax;
$_REQUEST['ymin_itemid'] = $ymin_itemid;
$_REQUEST['ymax_itemid'] = $ymax_itemid;
$_REQUEST['showworkperiod'] = $showworkperiod;
$_REQUEST['showtriggers'] = $showtriggers;
$_REQUEST['graphtype'] = $graphtype;
$_REQUEST['legend'] = $legend;
$_REQUEST['graph3d'] = $graph3d;
$_REQUEST['percent_left'] = $percent_left;
$_REQUEST['percent_right'] = $percent_right;
/********************/
if ($graphtype != GRAPH_TYPE_NORMAL) {
foreach ($items as $gid => $gitem) {
if ($gitem['type'] == GRAPH_ITEM_AGGREGATED) {
unset($items[$gid]);
}
}
}
$items = array_values($items);
$icount = count($items);
for ($i = 0; $i < $icount - 1;) {
// check if we deletd an item
$next = $i + 1;
while (!isset($items[$next]) && $next < $icount - 1) {
$next++;
}
if (isset($items[$next]) && $items[$i]['sortorder'] == $items[$next]['sortorder']) {
for ($j = $next; $j < $icount; $j++) {
if ($items[$j - 1]['sortorder'] >= $items[$j]['sortorder']) {
$items[$j]['sortorder']++;
//.........这里部分代码省略.........
示例10: insert_command_result_form
function insert_command_result_form($scriptid, $hostid)
{
$result = execute_script($scriptid, $hostid);
$script_info = DBfetch(DBselect("SELECT name FROM scripts WHERE scriptid={$scriptid}"));
$frmResult = new CFormTable($script_info["name"] . ': ' . script_make_command($scriptid, $hostid));
$message = $result["message"];
if ($result["flag"] != 0) {
error($message);
$message = "";
}
$frmResult->addRow(S_RESULT, new CTextArea("message", $message, 100, 25, 'yes'));
$frmResult->addItemToBottomRow(new CButton('close', S_CLOSE, 'window.close();'));
$frmResult->show();
}
示例11: CNumericBox
$frmOther->addRow(S_REFRESH_UNSUPPORTED_ITEMS, new CNumericBox('refresh_unsupported', $config['refresh_unsupported'], 5));
$cmbGrp = new CComboBox('discovery_groupid', $config['discovery_groupid']);
$groups = CHostGroup::get(array('order' => 'name', 'editable' => 1));
foreach ($groups as $groupid => $group) {
$cmbGrp->addItem($groupid, $group['name']);
}
$frmOther->addRow(S_GROUP_FOR_DISCOVERED_HOSTS, $cmbGrp);
$cmbUsrGrp = new CComboBox('alert_usrgrpid', $config['alert_usrgrpid']);
$cmbUsrGrp->addItem(0, S_NONE);
$result = DBselect('SELECT usrgrpid,name FROM usrgrp' . ' WHERE ' . DBin_node('usrgrpid') . ' order by name');
while ($row = DBfetch($result)) {
$cmbUsrGrp->addItem($row['usrgrpid'], get_node_name_by_elid($row['usrgrpid']) . $row['name']);
}
$frmOther->addRow(S_USER_GROUP_FOR_DATABASE_DOWN_MESSAGE, $cmbUsrGrp);
$frmOther->addItemToBottomRow(new CButton('save', S_SAVE));
$frmOther->show();
} else {
if ($_REQUEST['config'] == 7) {
//work period
echo SBR;
$frmHouseKeep = new CFormTable(S_WORKING_TIME, "config.php");
$frmHouseKeep->SetHelp("web.config.workperiod.php");
$frmHouseKeep->addVar("config", get_request("config", 7));
$frmHouseKeep->addRow(S_WORKING_TIME, new CTextBox("work_period", $config["work_period"], 35));
$frmHouseKeep->addItemToBottomRow(new CButton("save", S_SAVE));
$frmHouseKeep->Show();
} else {
if ($_REQUEST['config'] == 8) {
// GUI
echo SBR;
$frmGUI = new CFormTable(S_GUI, "config.php");
示例12: CFormTable
$btn_txt = S_SAVE;
$btn_txt2 = S_SAVE . ' ' . S_AND_SYMB . ' ' . S_RETURN;
} else {
$title = S_ACKNOWLEDGE_ALARM_BY;
$btn_txt = S_ACKNOWLEDGE;
$btn_txt2 = S_ACKNOWLEDGE . ' ' . S_AND_SYMB . ' ' . S_RETURN;
}
}
$frmMsg = new CFormTable($title . ' "' . $USER_DETAILS['alias'] . '"');
$frmMsg->addVar('backurl', $_REQUEST['backurl']);
if (isset($_REQUEST['eventid'])) {
$frmMsg->addVar('eventid', $_REQUEST['eventid']);
} else {
if (isset($_REQUEST['triggers'])) {
foreach ($_REQUEST['triggers'] as $triggerid) {
$frmMsg->addVar('triggers[' . $triggerid . ']', $triggerid);
}
} else {
if (isset($_REQUEST['events'])) {
foreach ($_REQUEST['events'] as $eventid) {
$frmMsg->addVar('events[' . $eventid . ']', $eventid);
}
}
}
}
$frmMsg->addRow(S_MESSAGE, new CTextArea('message', '', 80, 6));
$frmMsg->addItemToBottomRow(new CButton('saveandreturn', $btn_txt2));
$bulk ? '' : $frmMsg->addItemToBottomRow(new CButton('save', $btn_txt));
$frmMsg->addItemToBottomRow(new CButtonCancel('&backurl=' . $_REQUEST['backurl']));
$frmMsg->show(false);
include_once 'include/page_footer.php';
示例13: addPopupValues
if (empty($triggers)) {
$trList->setAttribute('style', 'width: 300px;');
}
foreach ($triggers as $tnum => $trigger) {
$dbTriggers = CTrigger::get($options);
order_result($dbTriggers, 'description');
$host = reset($trigger['hosts']);
$trList->addItem($trigger['triggerid'], $host['host'] . ':' . expand_trigger_description_by_data($trigger));
}
$frmCnct->addRow(S_TRIGGERS, array($trList, BR(), $btnSelect, $btnRemove));
$frmCnct->addRow(S_TYPE . ' (' . S_PROBLEM_BIG . ')', $cmbType);
$frmCnct->addRow(S_COLOR . ' (' . S_PROBLEM_BIG . ')', new CColor('color', $color));
$frmCnct->addItemToBottomRow(new CButton('save', isset($_REQUEST['triggerid']) ? S_SAVE : S_ADD));
$frmCnct->addItemToBottomRow(SPACE);
$frmCnct->addItemToBottomRow(new CButton('cancel', S_CANCEL, 'javascript: window.close();'));
$frmCnct->show();
}
?>
<script type="text/javascript">
//<!--<![CDATA[
function addPopupValues(list){
if(!isset('object', list)) return false;
if(list.object == 'linktrigger'){
for(var i=0; i < list.values.length; i++){
create_var('connector_form', 'new_linktriggers['+i+']', list.values[i], false);
}
create_var('connector_form','add_dependence', 1, true);
}
}
示例14: redirect
$url = is_null($request) ? $USER_DETAILS['url'] : $request;
redirect($url);
exit;
}
}
include_once 'include/page_header.php';
if (isset($_REQUEST['message'])) {
show_error_message($_REQUEST['message']);
}
if (!isset($sessionid) || $USER_DETAILS['alias'] == ZBX_GUEST_USER) {
switch ($authentication_type) {
case ZBX_AUTH_HTTP:
break;
case ZBX_AUTH_LDAP:
case ZBX_AUTH_INTERNAL:
default:
// konqueror bug #138024; adding useless param(login=1) to the form's action path to avoid bug!!
$frmLogin = new CFormTable('Login', 'index.php?login=1', 'post', 'multipart/form-data');
$frmLogin->setHelp('web.index.login');
$frmLogin->addVar('request', $request);
$frmLogin->addRow('Login name', new CTextBox('name'));
$frmLogin->addRow('Password', new CPassBox('password'));
$frmLogin->addItemToBottomRow(new CButton('enter', 'Enter'));
$frmLogin->show(false);
setFocus($frmLogin->getName(), 'name');
$frmLogin->destroy();
}
} else {
echo '<div align="center" class="textcolorstyles">Welcome to ZABBIX! You are connected as <b>' . $USER_DETAILS['alias'] . '</b>.</div>';
}
include_once 'include/page_footer.php';
示例15: array
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
**/
require_once 'include/config.inc.php';
require_once 'include/forms.inc.php';
$page["title"] = "S_INSTALLATION";
$page["file"] = 'instal.php';
include_once 'include/page_header.php';
include_once 'setup.php';
include_once 'include/page_footer.php';
/*******************************/
/* THIS POINT NEVER BE REACHED */
/*******************************/
$fields = array("install" => array(T_ZBX_STR, O_OPT, P_SYS | P_ACT, NULL, NULL), "update" => array(T_ZBX_STR, O_OPT, P_SYS | P_ACT, NULL, NULL));
check_fields($fields);
if (isset($_REQUEST['install'])) {
jsRedirect('setup.php');
exit;
} else {
if (isset($_REQUEST['update'])) {
error('*UNDER CONSTRUCTION*');
}
}
$form = new CFormTable(S_INSTALLATION_UPDATE);
$form->setHelp('install_source_web.php');
$form->addRow(array(bold(S_NEW_INSTALLATION_BIG), BR(), BR(), bold(S_DESCRIPTION), BR(), 'Not implemented yet!', BR(), BR(), BR()), new CButton('install', S_NEW_INSTALLATION));
$form->addRow(array(bold(S_UPDATE_BIG), BR(), BR(), bold(S_DESCRIPTION), BR(), 'Not implemented yet!', BR(), BR(), BR()), new CButton('update', S_UPDATE));
$form->show();
include_once 'include/page_footer.php';