本文整理汇总了PHP中CAdminForm::ShowWarnings方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminForm::ShowWarnings方法的具体用法?PHP CAdminForm::ShowWarnings怎么用?PHP CAdminForm::ShowWarnings使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAdminForm
的用法示例。
在下文中一共展示了CAdminForm::ShowWarnings方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: show
/**
* Выводит детальную страницу
* @internal
*/
public function show()
{
$this->fillMenu();
$context = new \CAdminContextMenu($this->menu);
$context->Show();
$this->tabControl->BeginPrologContent();
$this->showMessages();
$this->showProlog();
$this->tabControl->EndPrologContent();
$this->tabControl->BeginEpilogContent();
$this->showEpilog();
$this->tabControl->EndEpilogContent();
$query = $this->additionalUrlParams;
if (isset($_REQUEST[$this->pk()])) {
$query[$this->pk()] = $_REQUEST[$this->pk()];
}
$this->tabControl->Begin(array('FORM_ACTION' => static::getEditPageURL($query)));
foreach ($this->tabs as $tabSettings) {
if ($tabSettings['VISIBLE']) {
$this->showTabElements($tabSettings);
}
}
$this->showEditPageButtons();
$this->tabControl->ShowWarnings('editform', array());
//TODO: дописать
$this->tabControl->Show();
}
示例2: show
/**
* {@inheritdoc}
*/
public function show()
{
if (!$this->hasReadRights()) {
$this->addErrors(Loc::getMessage('DIGITALWAND_ADMIN_HELPER_ACCESS_FORBIDDEN'));
$this->showMessages();
return false;
}
$context = new \CAdminContextMenu($this->getMenu());
$context->Show();
$this->tabControl->BeginPrologContent();
$this->showMessages();
$this->showProlog();
$this->tabControl->EndPrologContent();
$this->tabControl->BeginEpilogContent();
$this->showEpilog();
$this->tabControl->EndEpilogContent();
$query = $this->additionalUrlParams;
if (isset($_REQUEST[$this->pk()])) {
$query[$this->pk()] = $_REQUEST[$this->pk()];
} elseif (isset($_REQUEST['SECTION_ID']) && $_REQUEST['SECTION_ID']) {
$model = $this->getModel();
$this->data[$model::getSectionField()] = $_REQUEST['SECTION_ID'];
}
$this->tabControl->Begin(array('FORM_ACTION' => static::getUrl($query)));
foreach ($this->tabs as $tabSettings) {
if ($tabSettings['VISIBLE']) {
$this->showTabElements($tabSettings);
}
}
$this->showEditPageButtons();
$this->tabControl->ShowWarnings('editform', array());
//TODO: дописать
$this->tabControl->Show();
}
示例3: OnSubmit
echo $str_DESCRIPTION;
?>
</textarea>
</td>
</tr>
<?php
}
$tabControl->EndCustomField("DESCRIPTION");
$tabControl->BeginNextFormTab();
$tabControl->BeginCustomField("UFS", '', false);
$USER_FIELD_MANAGER->EditFormShowTab('LEARNING_QUESTIONS', $bVarsFromForm, $ID);
$tabControl->EndCustomField("UFS");
$tabControl->Buttons(array("back_url" => $from == "learn_admin" ? "learn_unilesson_admin.php?lang=" . LANG . '&LESSON_PATH=' . $uriParentLessonPath . GetFilterParams("filter_", false) . "&from=learn_admin" : "learn_question_admin.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . GetFilterParams("filter_", false)));
$tabControl->arParams["FORM_ACTION"] = $APPLICATION->GetCurPage() . "?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . GetFilterParams("filter_");
$tabControl->Show();
$tabControl->ShowWarnings($tabControl->GetName(), $message);
?>
<script type="text/javascript">
function OnSubmit()
{
var form = document.forms['questionTabControl'];
var ids = form.elements['ANSWER_HIDDEN_ID[]'];
//Text or Sorting
if (form.elements['QUESTION_TYPE'].value == "T" || form.elements['QUESTION_TYPE'].value == "R")
{
return true;
}
//Single
示例4: BeginNote
?>
</option>
<?endforeach;?>
</select>
</td>
</tr>
<?
$tabControl->EndCustomField("field");
$tabControl->Buttons(
array(
//"disabled"=>($POST_RIGHT<"W"),
"back_url"=>"softbalance_callback.php?lang=".LANG,
)
);
$tabControl->Show();
// дополнительное уведомление об ошибках - вывод иконки около поля, в котором возникла ошибка
$tabControl->ShowWarnings("post_form", $message);
?>
<?php
echo BeginNote();
?>
<span class="required">*</span><?echo GetMessage("REQUIRED_FIELDS")?>
<?php
echo EndNote();
?>
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php");?>
示例5: BeginNote
$tabControl->EndCustomField('COUPON',
'<input type="hidden" name="COUPON" value="'.htmlspecialcharsbx($arCoupon['COUPON']).'">'
);
$tabControl->AddCalendarField('DATE_APPLY', GetMessage("DDSC_CPN_DATE").':', $arCoupon['DATE_APPLY']);
$tabControl->AddTextField("DESCRIPTION", GetMessage("DSC_CPN_DESCRIPTION").':', htmlspecialcharsbx($arCoupon['DESCRIPTION']), array("cols" => 50, 'rows' => 6));
$arButtonsParams = array(
"disabled" => $bReadOnly,
"back_url" => "/bitrix/admin/cat_discount_coupon.php?lang=".LANGUAGE_ID.GetFilterParams("filter_", false)
);
$tabControl->Buttons($arButtonsParams);
$tabControl->Show();
$tabControl->ShowWarnings("tabControl", $obMessages);
echo BeginNote();
?><span class="required" style="vertical-align: super; font-size: smaller;">1</span> <? echo GetMessage('DSC_CPN_ONE_ORDER_NOTE');
echo EndNote();
?><script type="text/javascript">
BX.ready(function(){
var obCouponValue = BX('COUPON');
var obCouponBtn = BX('COUPON_GENERATE');
if (!!obCouponValue && !!obCouponBtn)
{
BX.bind(obCouponBtn, 'click', function(){
BX.showWait();
var url = '/bitrix/tools/catalog/generate_coupon.php?lang='+'<? echo urlencode(LANGUAGE_ID); ?>'+'&'+'<? echo bitrix_sessid_get(); ?>';
BX.ajax.loadJSON(url,function(data){
var boolFlag = true;
var strErr = '';
示例6: GetMessage
);
$tabControl->BeginNextFormTab();
$tabControl->AddEditField("XML_ID", GetMessage("BT_CAT_DISCOUNT_EDIT_FIELDS_XML_ID").":", false, array("size" => 50, "maxlength" => 255), htmlspecialcharsbx($arDiscount['XML_ID']));
$tabControl->AddEditField("SORT", GetMessage("DSC_SORT").":", false, array("size" => 20, "maxlength" => 20), intval($arDiscount['SORT']));
$arButtonsParams = array(
"disabled" => $bReadOnly,
"back_url" => "/bitrix/admin/cat_discount_admin.php?lang=".LANGUAGE_ID.GetFilterParams("filter_", false)
);
$tabControl->Buttons($arButtonsParams);
$tabControl->Show();
$tabControl->ShowWarnings("fdiscount_edit", $obMessages);
?>
<script type="text/javascript">
BX.ready(function(){
var obValueType = BX('ob_value_type');
var obMaxDiscount = BX('tr_MAX_DISCOUNT');
if (!!obValueType && !!obMaxDiscount)
{
BX.bind(obValueType, 'change', function(){
BX.style(obMaxDiscount, 'display', (-1 < obValueType.selectedIndex && 'P' == obValueType.options[obValueType.selectedIndex].value ? 'table-row' : 'none'));
});
BX.style(obMaxDiscount, 'display', (-1 < obValueType.selectedIndex && 'P' == obValueType.options[obValueType.selectedIndex].value ? 'table-row' : 'none'));
}
var obCouponAdd = BX('COUPON_ADD_Y');
var obCouponType = BX('tr_COUPON_TYPE');
var obCouponCount = BX('tr_COUPON_COUNT');
示例7: unset
}
}
if (isset($value)) {
unset($value);
}
} else {
$strGroupsHidden = '<input type="hidden" name="GROUP_IDS[]" value="">';
}
$tabControl->EndCustomField('GROUP_IDS', $strGroupsHidden);
$tabControl->BeginNextFormTab();
$tabControl->AddEditField("XML_ID", GetMessage("BT_CAT_DISC_SAVE_EDIT_FIELDS_XML_ID") . ":", false, array("size" => 50, "maxlength" => 255), $str_XML_ID);
$tabControl->AddEditField("SORT", GetMessage("BT_CAT_DISC_SAVE_EDIT_FIELDS_SORT") . ":", false, array("size" => 7, "maxlength" => 10), $str_SORT);
$arButtonsParams = array('disabled' => $bReadOnly, 'back_url' => '/bitrix/admin/cat_discsave_admin.php?lang=' . urlencode(LANGUAGE_ID));
$tabControl->Buttons($arButtonsParams);
$tabControl->Show();
$tabControl->ShowWarnings("cat_disc_save", $obMessages);
?>
<script type="text/javascript">
BX.ready(function(){
var obCountPeriod = BX('COUNT_PERIOD');
var obCountFrom = BX('tr_COUNT_FROM');
var obCountTo = BX('tr_COUNT_TO');
var obCountType = BX('tr_COUNT_TYPE_SIZE');
if (!!obCountPeriod && !!obCountFrom && !!obCountTo && !!obCountType)
{
BX.bind(obCountPeriod, 'change', function(){
BX.style(obCountFrom, 'display', (-1 < obCountPeriod.selectedIndex && 'D' == obCountPeriod.options[obCountPeriod.selectedIndex].value ? 'table-row' : 'none'));
BX.style(obCountTo, 'display', (-1 < obCountPeriod.selectedIndex && 'D' == obCountPeriod.options[obCountPeriod.selectedIndex].value ? 'table-row' : 'none'));
BX.style(obCountType, 'display', (-1 < obCountPeriod.selectedIndex && 'P' == obCountPeriod.options[obCountPeriod.selectedIndex].value ? 'table-row' : 'none'));
});