当前位置: 首页>>代码示例>>PHP>>正文


PHP CAdminForm::Show方法代码示例

本文整理汇总了PHP中CAdminForm::Show方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminForm::Show方法的具体用法?PHP CAdminForm::Show怎么用?PHP CAdminForm::Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CAdminForm的用法示例。


在下文中一共展示了CAdminForm::Show方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
 }
开发者ID:Reprezo,项目名称:digitalwand.admin_helper,代码行数:31,代码来源:AdminEditHelper.php

示例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();
 }
开发者ID:s-sementsov,项目名称:digitalwand.admin_helper,代码行数:37,代码来源:AdminEditHelper.php

示例3: OnSubmit

			<textarea style="width:100%; height:250px;" name="DESCRIPTION" wrap="off"><?php 
        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;
	}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:learn_question_edit.php

示例4: CAdminCalendar

    $activeFrom = $coupon['COUPON']['ACTIVE_FROM'] instanceof Main\Type\DateTime ? $coupon['COUPON']['ACTIVE_FROM']->toString() : '';
    $activeTo = $coupon['COUPON']['ACTIVE_TO'] instanceof Main\Type\DateTime ? $coupon['COUPON']['ACTIVE_TO']->toString() : '';
    if ($activeFrom != '' || $activeTo != '') {
        $periodValue = CAdminCalendar::PERIOD_INTERVAL;
    }
    $calendar = new CAdminCalendar();
    echo $calendar->CalendarPeriodCustom($prefix . 'ACTIVE_FROM', $prefix . 'ACTIVE_TO', $activeFrom, $activeTo, true, 19, true, array(CAdminCalendar::PERIOD_EMPTY => Loc::getMessage('BX_SALE_DISCOUNT_COUPON_PERIOD_EMPTY'), CAdminCalendar::PERIOD_INTERVAL => Loc::getMessage('BX_SALE_DISCOUNT_COUPON_PERIOD_INTERVAL')), $periodValue);
    unset($calendar, $activeTo, $activeFrom, $periodValue);
    ?>
</td>
	</tr><?php 
    $control->EndCustomField($prefix . 'PERIOD');
    $control->AddDropDownField($prefix . 'TYPE', Loc::getMessage('BX_SALE_DISCOUNT_COUPON_FIELD_TYPE'), true, $couponTypes, $coupon['COUPON']['TYPE']);
    $control->AddEditField($prefix . 'MAX_USE', Loc::getMessage('BX_SALE_DISCOUNT_COUPON_FIELD_MAX_USE'), false, array(), $coupon['COUPON']['MAX_USE'] > 0 ? $coupon['COUPON']['MAX_USE'] : '');
    $control->Buttons(false, '');
    $control->Show();
    ?>
<script type="text/javascript">top.BX.WindowManager.Get().adjustSizeEx();</script>
<?php 
} else {
    if ($couponID > 0 && !$copy) {
        $control->AddViewField($prefix . 'ID', Loc::getMessage('BX_SALE_DISCOUNT_COUPON_FIELD_ID'), $couponID, false);
    }
    $control->AddCheckBoxField($prefix . 'ACTIVE', Loc::getMessage('BX_SALE_DISCOUNT_COUPON_FIELD_ACTIVE'), true, array('Y', 'N'), $coupon['ACTIVE'] == 'Y');
    if ($couponID > 0) {
        $discountName = '<a href="sale_discount_edit.php?lang=' . LANGUAGE_ID . '&ID=' . $coupon['DISCOUNT_ID'] . '">[' . $coupon['DISCOUNT_ID'] . ']</a>';
        if ($coupon['DISCOUNT_NAME'] !== '') {
            $discountName .= ' ' . $coupon['DISCOUNT_NAME'];
        }
        $discountName .= '<input type="hidden" name="DISCOUNT_ID" value="' . $coupon['DISCOUNT_ID'] . '">';
        $control->AddViewField('DISCOUNT_ID', Loc::getMessage('BX_SALE_DISCOUNT_COUPON_FIELD_DISCOUNT'), $discountName, true);
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:discount_coupon_edit.php

示例5: CAdminForm

" ENCTYPE="multipart/form-data" name="apply"><?
    $form = new CAdminForm('ws_maigrations_export', array(
        array(
            "DIV" => "edit1",
            "TAB" => $localization->getDataByPath('title'),
            "ICON" => "iblock",
            "TITLE" => $localization->getDataByPath('title'),
        ) ,
    ));

    $form->Begin(array(
        'FORM_ACTION' => $APPLICATION->GetCurUri()
    ));
    $form->BeginNextFormTab();
    $form->BeginCustomField('version', 'vv');
    ?><tr>
        <td width="30%"><?php 
echo $localization->getDataByPath('version');
?>
:</td>
        <td width="60%"><b><?php 
echo \WS\Migrations\Module::getInstance()->getDbVersion();
?>
</b></td>
    </tr><?
    $form->EndCustomField('version');
    $form->EndTab();
    $form->Buttons(array('btnSave' => false, 'btnÀpply' => true));
    $form->Show();
    ?></form><?
开发者ID:ASDAFF,项目名称:bitrix-module-migrations,代码行数:30,代码来源:export.php


注:本文中的CAdminForm::Show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。