本文整理汇总了PHP中CForm::Show方法的典型用法代码示例。如果您正苦于以下问题:PHP CForm::Show方法的具体用法?PHP CForm::Show怎么用?PHP CForm::Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CForm
的用法示例。
在下文中一共展示了CForm::Show方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GetMessage
<input <?php
if ($F_RIGHT < 30) {
echo "disabled";
}
?>
type="submit" name="save" value="<?php
echo GetMessage("FORM_SAVE");
?>
">
</form>
<?php
}
?>
<?php
if ($old_module_version == "Y") {
CForm::Show($arForm["SID"], false, $SHOW_TEMPLATE, "N");
} else {
/*
$APPLICATION->IncludeFile(
"form/result_new/default.php",
array(
"WEB_FORM_ID" => $WEB_FORM_ID,
"LIST_URL" => "form_result_list.php",
"EDIT_URL" => "form_result_edit.php",
)
);
*/
$APPLICATION->IncludeComponent("bitrix:form.result.new", "", array("WEB_FORM_ID" => $WEB_FORM_ID, "LIST_URL" => "form_result_list.php?lang=" . LANG, "EDIT_URL" => "form_result_edit.php?lang=" . LANG, "CACHE_TIME" => 0));
}
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
示例2: array
$users_id = array();
$db_users = DBselect('SELECT DISTINCT u.alias,u.userid ' . ' FROM users u,users_groups ug ' . ' WHERE u.userid=ug.userid ' . ' AND ug.usrgrpid=' . $row['usrgrpid'] . ' ORDER BY u.alias');
while ($db_user = DBfetch($db_users)) {
if (!empty($users)) {
$users[$db_user['userid']][] = ', ';
} else {
$users[$db_user['userid']] = array();
}
$users[$db_user['userid']][] = new Clink($db_user['alias'], 'users.php?form=update&config=0&userid=' . $db_user['userid'] . '#form');
}
$gui_access = user_auth_type2str($row['gui_access']);
$users_status = $row['users_status'] == GROUP_STATUS_ENABLED ? S_ENABLED : S_DISABLED;
if (granted2update_group($row['usrgrpid'])) {
$next_gui_auth = $row['gui_access'] + 1 > GROUP_GUI_ACCESS_DISABLED ? GROUP_GUI_ACCESS_SYSTEM : $row['gui_access'] + 1;
$gui_access = new CLink($gui_access, 'users.php?form=update' . '&set_gui_access=' . $next_gui_auth . '&usrgrpid=' . $row['usrgrpid'] . url_param('config'), $row['gui_access'] == GROUP_GUI_ACCESS_DISABLED ? 'orange' : 'enabled');
$users_status = new CLink($users_status, 'users.php?form=update' . '&set_users_status=' . ($row['users_status'] == GROUP_STATUS_ENABLED ? GROUP_STATUS_DISABLED : GROUP_STATUS_ENABLED) . '&usrgrpid=' . $row['usrgrpid'] . url_param('config'), $row['users_status'] == GROUP_STATUS_ENABLED ? 'enabled' : 'disabled');
} else {
$gui_access = new CSpan($gui_access, $row['gui_access'] == GROUP_GUI_ACCESS_DISABLED ? 'orange' : 'green');
$users_status = new CSpan($users_status, $row['users_status'] == GROUP_STATUS_ENABLED ? 'green' : 'red');
}
$table->addRow(array($users_status, $gui_access, array(new CCheckBox('group_groupid[' . $row['usrgrpid'] . ']', NULL, NULL, $row['usrgrpid']), $alias = new CLink($row['name'], 'users.php?form=update' . url_param('config') . '&usrgrpid=' . $row['usrgrpid'] . '#form', 'action')), new CCol($users, 'wraptext')));
$row_count++;
}
$table->SetFooter(new CCol(new CButtonQMessage('delete_selected', S_DELETE_SELECTED, S_DELETE_SELECTED_GROUPS_Q)));
$form->AddItem($table);
$form->Show();
}
}
}
zbx_add_post_js('insert_in_element("numrows","' . $row_count . '");');
include_once 'include/page_footer.php';
示例3: CCol
$right_tab->addRow(create_hat(S_EXPRESSIONS, get_expressions_tab(), null, 'hat_expressions', get_profile('web.config.hats.hat_expressions.state', 1)));
if (isset($_REQUEST['new_expression'])) {
$right_tab->addRow(create_hat(S_NEW_EXPRESSION, get_expression_form(), null, 'hat_new_expression', get_profile('web.config.hats.hat_new_expression.state', 1)));
}
$td_l = new CCol($left_tab);
$td_l->AddOption('valign', 'top');
$td_r = new CCol($right_tab);
$td_r->AddOption('valign', 'top');
$outer_table = new CTable();
$outer_table->AddOption('border', 0);
$outer_table->SetCellPadding(1);
$outer_table->SetCellSpacing(1);
$outer_table->AddRow(array($td_l, $td_r));
$frmRegExp->Additem($outer_table);
show_messages();
$frmRegExp->Show();
} else {
echo SBR;
show_table_header(S_REGULAR_EXPRESSIONS);
// ----
$regexps = array();
$regexpids = array();
$sql = 'SELECT re.* ' . ' FROM regexps re ' . ' WHERE ' . DBin_node('re.regexpid') . ' ORDER BY re.name';
$db_regexps = DBselect($sql);
while ($regexp = DBfetch($db_regexps)) {
$regexp['expressions'] = array();
$regexps[$regexp['regexpid']] = $regexp;
$regexpids[$regexp['regexpid']] = $regexp['regexpid'];
}
$count = array();
$expressions = array();