/**
  * Отрисовывает вкладку со всеми привязанными к ней полями.
  *
  * @param $tabSettings
  * @internal
  */
 private function showTabElements($tabSettings)
 {
     $this->setContext(AdminEditHelper::OP_SHOW_TAB_ELEMENTS);
     $this->tabControl->BeginNextFormTab();
     foreach ($this->getFields() as $code => $fieldSettings) {
         $widget = $this->createWidgetForField($code, $this->data);
         $fieldTab = $widget->getSettings('TAB');
         $fieldOnCurrentTab = ($fieldTab == $tabSettings['DIV'] or $tabSettings['DIV'] == 'DEFAULT_TAB');
         if (!$fieldOnCurrentTab) {
             continue;
         }
         $fieldSettings = $widget->getSettings();
         if (isset($fieldSettings['VISIBLE']) && $fieldSettings['VISIBLE'] === false) {
             continue;
         }
         $this->tabControl->BeginCustomField($code, $widget->getSettings('TITLE'));
         $pkField = $code == $this->pk();
         $widget->genBasicEditField($pkField);
         $this->tabControl->EndCustomField($code);
     }
 }
/** @var $localization \WS\Tools\Localization */
$localization;
?>
<form method="POST"
      action="<?php 
echo $APPLICATION->GetCurUri();
?>
"
      ENCTYPE="multipart/form-data"
      name="apply">

<?php 
$form = new CAdminForm('ws_tools_conversion', array(array("DIV" => "edit1", "TAB" => $localization->getDataByPath('title'), "TITLE" => $localization->getDataByPath('title'))));
$form->Begin();
$form->BeginNextFormTab();
$form->BeginCustomField('form', '');
$form->AddSection('section-source', 'Источник');
$form->AddDropDownField('selectTypes', 'Тип Инфоблока', '', array());
$form->AddDropDownField('selectIblocks', 'Инфоблок', '', array());
$form->AddDropDownField('selectProperties', 'Свойство Инфоблока', '', array());
$form->AddSection('section-appointment', 'Назначение');
$form->AddDropDownField('new-type-property-info-block', 'Тип', '', array('L' => 'Список', 'E' => 'Привязка к эементам'));
?>
    <div class="adm-info-message">
        <span class="required">
            Внимание! Пока доступна только конвертация свойств типа 'строка' в тип 'список' и 'привязка к элементу'
        </span>
    </div>

<?php 
$form->Buttons(array('btnSave' => false));
Exemple #3
0
{
	$urlForm = "&ID=".$ID."&LID=".CUtil::JSEscape($LID);
	if (!$boolLocked)
		CSaleOrder::Lock($ID);
}

$tabControl->Begin(array(
	"FORM_ACTION" => $APPLICATION->GetCurPage()."?lang=".LANGUAGE_ID.$urlForm.GetFilterParams("filter_", false)
));

//order tabs
$tabControl->BeginNextFormTab();

$tabControl->AddSection("NEWO_TITLE_STATUS", GetMessage("NEWO_TITLE_STATUS"));

$tabControl->BeginCustomField("ORDER_STATUS", GetMessage("SOE_STATUS"), true);
?>
	<tr class="adm-detail-required-field">
		<td width="40%"><?php 
echo GetMessage("SOE_STATUS");
?>
:</td>
		<td width="60%">
			<?
			$arFilter = array("LID" => LANGUAGE_ID);
			$arGroupByTmp = false;

			if ($saleModulePermissions < "W")
			{
				$arFilter["GROUP_ID"] = $arUserGroups;
				$arFilter["PERM_STATUS_FROM"] = "Y";
Exemple #4
0
?>
		<?php 
echo bitrix_sessid_post();
?>
		<input type="hidden" name="lang" value="<? echo LANGUAGE_ID; ?>">
		<input type="hidden" name="ID" value="<? echo $ID; ?>">
		<input type="hidden" name="save_order_data" value="Y">
		<?
		$tabControl->EndEpilogContent();

		$tabControl->Begin();

		$tabControl->BeginNextFormTab();

			$tabControl->AddSection("order_id", GetMessage("P_ORDER_ID"));
				$tabControl->BeginCustomField("ORDER_ACCOUNT_NUMBER", GetMessage("SOD_ORDER_ACCOUNT_NUMBER"));
					?>
					<tr>
						<td width="40%"><?echo $tabControl->GetCustomLabelHTML()?>:</td>
						<td width="60%"><?echo $arOrder["ACCOUNT_NUMBER"]?></td>
					</tr>
					<?
				$tabControl->EndCustomField("ORDER_ACCOUNT_NUMBER", '');
				$tabControl->BeginCustomField("ORDER_DATE_CREATE", GetMessage("SOD_ORDER_DATE_CREATE"));
					?>
					<tr>
						<td width="40%"><?echo $tabControl->GetCustomLabelHTML()?>:</td>
						<td width="60%"><?echo $arOrder["DATE_INSERT"]?></td>
					</tr>
					<?
				$tabControl->EndCustomField("ORDER_DATE_CREATE", '');
Exemple #5
0
//********************
// первая закладка - форма редактирования параметров рассылки
//********************
$tabControl->BeginNextFormTab();

$tabControl->AddEditField("NAME", GetMessage("USER_NAME").":", true, array("size" => 63, "maxlength" => 255), $block["NAME"]);
$tabControl->AddEditField("PHONE", GetMessage("USER_PHONE").":", true, array("size" => 63, "maxlength" => 255), $block["PHONE"]);

$status = array(
	"new" => GetMessage("SB_CALLBACK_STATUS_NEW"),
	"dialing" => GetMessage("SB_CALLBACK_STATUS_DIALING"),
	"completed" => GetMessage("SB_CALLBACK_STATUS_COMPLETED"),
);

$tabControl->BeginCustomField("field");
?>
	<tr>
		<td><?php 
echo GetMessage("USER_COMMENT");
?>
</td>
		<td><textarea name="USER_COMMENT" cols="65" rows="5" wrap="VIRTUAL"><?php 
echo $block["USER_COMMENT"];
?>
</textarea></td>
	</tr>
	<tr>
		<td><?php 
echo GetMessage("ADMIN_COMMENT");
?>
$tabControl->Begin(array(
	"FORM_ACTION" => "/bitrix/admin/".CIBlock::GetAdminElementEditLink($IBLOCK_ID, null, $arEditLinkParams)
));

$tabControl->BeginNextFormTab();
	if($ID > 0 && !$bCopy)
	{
		$p = CIblockElement::GetByID($ID);
		$pr = $p->ExtractFields("prn_");
	}
	else
	{
		$pr = array();
	}
$tabControl->AddCheckBoxField("ACTIVE", GetMessage("IBLOCK_FIELD_ACTIVE").":", false, array("Y","N"), $str_ACTIVE=="Y");
$tabControl->BeginCustomField("ACTIVE_FROM", GetMessage("IBLOCK_FIELD_ACTIVE_PERIOD_FROM"), $arIBlock["FIELDS"]["ACTIVE_FROM"]["IS_REQUIRED"] === "Y");
?>
	<tr id="tr_ACTIVE_FROM">
		<td><?echo $tabControl->GetCustomLabelHTML()?>:</td>
		<td><?echo CAdminCalendar::CalendarDate("ACTIVE_FROM", $str_ACTIVE_FROM, 19, true)?></td>
	</tr>
<?
$tabControl->EndCustomField("ACTIVE_FROM", '<input type="hidden" id="ACTIVE_FROM" name="ACTIVE_FROM" value="'.$str_ACTIVE_FROM.'">');
$tabControl->BeginCustomField("ACTIVE_TO", GetMessage("IBLOCK_FIELD_ACTIVE_PERIOD_TO"), $arIBlock["FIELDS"]["ACTIVE_TO"]["IS_REQUIRED"] === "Y");
?>
	<tr id="tr_ACTIVE_TO">
		<td><?echo $tabControl->GetCustomLabelHTML()?>:</td>
		<td><?echo CAdminCalendar::CalendarDate("ACTIVE_TO", $str_ACTIVE_TO, 19, true)?></td>
	</tr>

<?
echo htmlspecialcharsbx($from);
?>
">
	<input type="hidden" name="return_url" value="<?php 
echo htmlspecialcharsbx($return_url);
?>
">
	<input type="hidden" name="ID" value="<?php 
echo $ID;
?>
">
<?php 
$tabControl->EndEpilogContent();
$tabControl->Begin();
$tabControl->BeginNextFormTab();
$tabControl->BeginCustomField("USER_NAME", GetMessage("LEARNING_ADMIN_STUDENT"), false);
?>
<tr>
	<td width="40%"><?php 
echo $tabControl->GetCustomLabelHTML();
?>
:</td>
	<td>
		<?php 
echo $arAttempt["USER_NAME"];
?>
	</td>
</tr>
<?php 
$tabControl->EndCustomField("USER_NAME");
$tabControl->BeginCustomField("ANSWERED", GetMessage("LEARNING_ADMIN_ANSWERED"), false);
?>
" ENCTYPE="multipart/form-data" name="apply"><?
$form = new CAdminForm('ws_maigrations_main', 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->BeginCustomField('list', 'vv');
?>
<tr style="color: #1e90ff;">
    <td width="30%"><?php 
?>
" 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><?
echo htmlspecialcharsbx($from);
?>
">
	<input type="hidden" name="return_url" value="<?php 
echo htmlspecialcharsbx($return_url);
?>
">
	<input type="hidden" name="ID" value="<?php 
echo $ID;
?>
">
<?php 
$tabControl->EndEpilogContent();
$tabControl->Begin();
$tabControl->BeginNextFormTab();
$tabControl->BeginCustomField("TITLE", GetMessage("LEARNING_ADMIN_TITLE"), $required = true);
?>
<tr class="adm-detail-required-field">
	<td width="40%"><?php 
echo $tabControl->GetCustomLabelHTML();
?>
:</td>
	<td>
		<input type="text" name="TITLE" size="20" maxlength="255" value="<?php 
echo $str_TITLE;
?>
">
	</td>
</tr>
<?php 
$tabControl->EndCustomField("TITLE");
">
	<?php 
    if (strlen($return_url) > 0) {
        ?>
<input type="hidden" name="return_url" value="<?php 
        echo htmlspecialcharsbx($return_url);
        ?>
"><?php 
    }
    $tabControl->EndEpilogContent();
    $tabControl->Begin();
    $tabControl->BeginNextFormTab();
    ?>
<!-- COURSE_ID -->
<?php 
    $tabControl->BeginCustomField('ID', 'ID', false);
    if ($linkedLessonId > 0) {
        ?>
	<tr>
		<td><?php 
        echo $tabControl->GetCustomLabelHTML();
        ?>
:</td>
		<td><?php 
        echo $linkedLessonId;
        ?>
</td>
	</tr>
	<?php 
    }
    $tabControl->EndCustomField('ID');
">
	<?php 
if (strlen($return_url) > 0) {
    ?>
<input type="hidden" name="return_url" value="<?php 
    echo htmlspecialcharsbx($return_url);
    ?>
"><?php 
}
$tabControl->EndEpilogContent();
$tabControl->Begin();
$tabControl->BeginNextFormTab();
?>
<!-- ID -->
<?php 
$tabControl->BeginCustomField("ID", "ID", false);
?>
	<?php 
if ($ID > 0) {
    ?>
		<tr>
			<td><?php 
    echo $tabControl->GetCustomLabelHTML();
    ?>
:</td>
			<td><?php 
    echo $str_ID;
    ?>
</td>
		</tr>
	<?php 
Exemple #13
0
">
<?php 
if (strlen($return_url) > 0) {
    ?>
	<input type="hidden" name="return_url" value="<?php 
    echo htmlspecialcharsbx($return_url);
    ?>
">
<?php 
}
$tabControl->EndEpilogContent();
$tabControl->Begin(array("FORM_ACTION" => "/bitrix/admin/" . CIBlock::GetAdminSectionEditLink($IBLOCK_ID, null, array("find_section_section" => intval($find_section_section)))));
$tabControl->BeginNextFormTab();
?>
	<?php 
$tabControl->BeginCustomField("ID", "ID:");
if ($ID > 0) {
    ?>
	<tr>
		<td width="40%"><?php 
    echo $tabControl->GetCustomLabelHTML();
    ?>
</td>
		<td width="60%"><?php 
    echo $str_ID;
    ?>
</td>
	</tr>
<?php 
}
?>
if ($boolCopy)
{
	?><input type="hidden" name="action" value="copy"><?
}
$tabControl->EndEpilogContent();
$tabControl->Begin(array(
	"FORM_ACTION" => '/bitrix/admin/cat_discount_edit.php?lang='.urlencode(LANGUAGE_ID),
));

$tabControl->BeginNextFormTab();
	if ($ID > 0 && !$boolCopy)
		$tabControl->AddViewField('ID','ID:',$ID,false);
	$tabControl->AddCheckBoxField("ACTIVE", GetMessage("DSC_ACTIVE").":", false, "Y", $arDiscount['ACTIVE'] == "Y");
	$tabControl->AddEditField("NAME", GetMessage("DSC_NAME").":", true, array("size" => 50, "maxlength" => 255), htmlspecialcharsbx($arDiscount['NAME']));
	$tabControl->AddDropDownField("SITE_ID", GetMessage('DSC_SITE').':', true, $arSiteList, $arDiscount['SITE_ID']);
	$tabControl->BeginCustomField("PERIOD", GetMessage('DSC_PERIOD').":",false);
	?><tr id="tr_PERIOD">
		<td width="40%"><? echo $tabControl->GetCustomLabelHTML(); ?></td>
		<td width="60%"><?
			global $ACTIVE_FROM_FILTER_PERIOD;
			$ACTIVE_FROM_FILTER_PERIOD = "";
			if ('' != $arDiscount['ACTIVE_FROM'] || '' != $arDiscount['ACTIVE_TO'])
				$ACTIVE_FROM_FILTER_PERIOD = CAdminCalendar::PERIOD_INTERVAL;

			echo CAdminCalendar::CalendarPeriodCustom("ACTIVE_FROM", "ACTIVE_TO", $arDiscount['ACTIVE_FROM'], $arDiscount['ACTIVE_TO'], true, 19, true, array(
				CAdminCalendar::PERIOD_EMPTY => GetMessage('BT_CAT_DISCOUNT_EDIT_CALENDARE_PERIOD_EMPTY'),
				CAdminCalendar::PERIOD_INTERVAL => GetMessage('BT_CAT_DISCOUNT_EDIT_CALENDARE_PERIOD_INTERVAL')
			));
		?></td>
	</tr><?
	$tabControl->EndCustomField("PERIOD",
	<?endif?>

	<?
	$topMenu->Show();

	$args = array();
	if($id)
		$args['id'] = $id;

	$tabControl->Begin(array(
		"FORM_ACTION" => Helper::getEditUrl($args) // generally, it is not safe to leave action empty
	));
	$tabControl->BeginNextFormTab();
	?>

	<?$tabControl->BeginCustomField('LOCATIONS', Loc::getMessage('SALE_LOCATION_E_HEADING_LOCATIONS'));?>
		<tr>
		
			<tr class="heading">
				<td colspan="2">
					<?php 
echo GetMessage('SALE_LOCATION_E_FLD_LOCATIONS');
?>
				</td>
			</tr>

			<td>
				<input type="hidden" name="element[ID]" value="<?php 
echo $id;
?>
" />
		"FORM_ACTION" => Helper::getEditUrl($args) // generally, it is not safe to leave action empty
	));
	$tabControl->BeginNextFormTab();
	?>
	
	<?$requiredFld = ' class="adm-detail-required-field"';?>

	<?$columns = Helper::getColumns('detail');?>
	<?foreach($columns as $code => $field):?>

		<?if($code == 'ID' && !$id) continue; // new node or copied ?>
		<?if(Helper::checkIsNameField($code)) continue; // we`ll output names in a different manner ?>

		<?$value = Helper::makeSafeDisplay($formData[$code], $code);?>

		<?$tabControl->BeginCustomField($code, $field['title']);?>

			<tr<?php 
echo $field['required'] || $code == 'ID' ? $requiredFld : '';
?>
>
				<td width="40%"><?php 
echo $field['title'];
?>
:</td>
				<td width="60%">

					<?if($code == 'ID'):?>

						<?php 
echo $id;
{
	?><input type="hidden" name="return_url" value="<? echo htmlspecialcharsbx($return_url); ?>"><?
}
$tabControl->EndEpilogContent();
$tabControl->Begin(array(
	"FORM_ACTION" => '/bitrix/admin/cat_discount_coupon_edit.php?lang='.LANGUAGE_ID,
));

$tabControl->BeginNextFormTab();
	if ($ID > 0 && !$boolCopy)
		$tabControl->AddViewField('ID','ID:',$ID,false);
	if (!empty($arDiscountList))
	{
		if (0 < $ID)
		{
			$tabControl->BeginCustomField("DISCOUNT_ID", GetMessage('DSC_CPN_DISC').':', false);
			?><tr id="tr_DISCOUNT_ID" class="adm-detail-required-field">
			<td width="40%"><? echo $tabControl->GetCustomLabelHTML(); ?></td>
			<td width="60%"><?
				if (isset($arDiscountList[$arCoupon['DISCOUNT_ID']]))
				{
					echo htmlspecialcharsex($arDiscountList[$arCoupon['DISCOUNT_ID']]);
				}
			?></td>
			</tr><?
			$tabControl->EndCustomField('DISCOUNT_ID');
		}
		else
		{
			$tabControl->AddDropDownField("DISCOUNT_ID", GetMessage('DSC_CPN_DISC').':', true, $arDiscountList, $arCoupon['DISCOUNT_ID']);
		}
">
<?php 
if (strlen($return_url) > 0) {
    ?>
	<input type="hidden" name="return_url" value="<?php 
    echo htmlspecialcharsbx($return_url);
    ?>
">
<?php 
}
$tabControl->EndEpilogContent();
$tabControl->Begin(array("FORM_ACTION" => "/bitrix/admin/" . CIBlock::GetAdminSectionEditLink($IBLOCK_ID, null, array("find_section_section" => intval($find_section_section)))));
$tabControl->BeginNextFormTab();
?>
	<?php 
$tabControl->BeginCustomField("ID", "ID:");
if ($ID > 0) {
    ?>
	<tr>
		<td width="40%"><?php 
    echo $tabControl->GetCustomLabelHTML();
    ?>
</td>
		<td width="60%"><?php 
    echo $str_ID;
    ?>
</td>
	</tr>
<?php 
}
?>
Exemple #19
0
<?php 
if ($copy) {
    ?>
<input type="hidden" name="action" value="copy"><?php 
}
echo bitrix_sessid_post();
$control->EndEpilogContent();
$control->Begin(array("FORM_ACTION" => '/bitrix/admin/sale_discount_edit.php?lang=' . LANGUAGE_ID));
$control->BeginNextFormTab();
if ($discountID > 0 && !$copy) {
    $control->AddViewField('ID', 'ID:', $discountID, false);
}
$control->AddCheckBoxField("ACTIVE", GetMessage("SDEN_ACTIVE") . ":", false, "Y", $arDiscount['ACTIVE'] == "Y");
$control->AddDropDownField("LID", GetMessage('SDEN_SITE') . ':', true, $arSiteList, $arDiscount['LID']);
$control->AddEditField("NAME", GetMessage("BT_SALE_DISCOUNT_EDIT_FIELDS_NAME") . ":", false, array("size" => 50, "maxlength" => 255), htmlspecialcharsbx($arDiscount['NAME']));
$control->BeginCustomField("PERIOD", GetMessage('SDEN_PERIOD') . ":", false);
?>
<tr id="tr_PERIOD">
		<td width="40%"><?php 
echo $control->GetCustomLabelHTML();
?>
</td>
		<td width="60%"><?php 
$periodValue = '';
if ('' != $arDiscount['ACTIVE_FROM'] || '' != $arDiscount['ACTIVE_TO']) {
    $periodValue = CAdminCalendar::PERIOD_INTERVAL;
}
echo CAdminCalendar::CalendarPeriodCustom('ACTIVE_FROM', 'ACTIVE_TO', $arDiscount['ACTIVE_FROM'], $arDiscount['ACTIVE_TO'], true, 19, true, array(CAdminCalendar::PERIOD_EMPTY => GetMessage('BT_SALE_DISCOUNT_EDIT_CALENDARE_PERIOD_EMPTY'), CAdminCalendar::PERIOD_INTERVAL => GetMessage('BT_SALE_DISCOUNT_EDIT_CALENDARE_PERIOD_INTERVAL')), $periodValue);
?>
</td>
	</tr><?php 
">
	<input type="hidden" name="action" value="" id="action">
<?php 
if ($_REQUEST["addurl"] != "") {
    ?>
	<input type="hidden" name="addurl" value="<?php 
    echo htmlspecialcharsbx($_REQUEST["addurl"]);
    ?>
">
<?php 
}
$tabControl->EndEpilogContent();
$tabControl->Begin();
$tabControl->BeginNextFormTab();
$tabControl->AddEditField("NAME", GetMessage('RATING_EDIT_FRM_NAME'), true, array("size" => 54, "maxlength" => 255), $str_NAME);
$tabControl->BeginCustomField("ENTITY_ID", GetMessage('RATING_EDIT_FRM_TYPE_ID'), true);
$arObjects = CRatings::GetRatingObjects();
?>
	<tr style="<?php 
echo count($arObjects) > 1 ? '' : 'display:none';
?>
" class="adm-detail-required-field">
		<td><?php 
echo GetMessage("RATING_EDIT_FRM_TYPE_ID");
?>
</td>
		<td><?php 
echo SelectBoxFromArray("ENTITY_ID", array('reference_id' => $arObjects, 'reference' => $arObjects), $str_ENTITY_ID, "", "onChange=\"jsTypeChanged('rating_form')\"");
?>
</td>
	</tr>
<input type="hidden" name="ID" value="<?php 
echo $ID;
?>
">
<?php 
echo bitrix_sessid_post();
$tabControl->EndEpilogContent();
$tabControl->Begin(array("FORM_ACTION" => '/bitrix/admin/sale_discount_edit.php?lang=' . LANGUAGE_ID));
$tabControl->BeginNextFormTab();
if ($ID > 0) {
    $tabControl->AddViewField('ID', 'ID:', $ID, false);
}
$tabControl->AddCheckBoxField("ACTIVE", GetMessage("SDEN_ACTIVE") . ":", false, "Y", $arDiscount['ACTIVE'] == "Y");
$tabControl->AddDropDownField("LID", GetMessage('SDEN_SITE') . ':', true, $arSiteList, $arDiscount['LID']);
$tabControl->AddEditField("NAME", GetMessage("BT_SALE_DISCOUNT_EDIT_FIELDS_NAME") . ":", false, array("size" => 50, "maxlength" => 255), htmlspecialcharsbx($arDiscount['NAME']));
$tabControl->BeginCustomField("PERIOD", GetMessage('SDEN_PERIOD') . ":", false);
?>
<tr id="tr_PERIOD">
		<td width="40%"><?php 
echo $tabControl->GetCustomLabelHTML();
?>
</td>
		<td width="60%"><?php 
global $ACTIVE_FROM_FILTER_PERIOD;
$ACTIVE_FROM_FILTER_PERIOD = "";
if ('' != $arDiscount['ACTIVE_FROM'] || '' != $arDiscount['ACTIVE_TO']) {
    $ACTIVE_FROM_FILTER_PERIOD = CAdminCalendar::PERIOD_INTERVAL;
}
echo CAdminCalendar::CalendarPeriodCustom("ACTIVE_FROM", "ACTIVE_TO", $arDiscount['ACTIVE_FROM'], $arDiscount['ACTIVE_TO'], true, 19, true, array(CAdminCalendar::PERIOD_EMPTY => GetMessage('BT_SALE_DISCOUNT_EDIT_CALENDARE_PERIOD_EMPTY'), CAdminCalendar::PERIOD_INTERVAL => GetMessage('BT_SALE_DISCOUNT_EDIT_CALENDARE_PERIOD_INTERVAL')));
?>
</td>
Exemple #22
0
?>
">
	<input type="hidden" name="action" value="" id="action">
<?if($_REQUEST["addurl"]<>""):?>
	<input type="hidden" name="addurl" value="<?echo htmlspecialcharsbx($_REQUEST["addurl"])?>">
<?endif;?>
<?
$tabControl->EndEpilogContent();
$tabControl->Begin();

$tabControl->BeginNextFormTab();


$tabControl->AddEditField("NAME", GetMessage('RATING_RULE_EDIT_FRM_NAME'), true, array("size"=>54, "maxlength"=>255), $str_NAME);

$tabControl->BeginCustomField("ACTIVE", GetMessage('RATING_RULE_EDIT_FRM_ACTIVE'), false);
?>
	<tr>
		<td><?php 
echo GetMessage("RATING_RULE_EDIT_FRM_ACTIVE");
?>
</td>
		<td><?php 
echo InputType("checkbox", "ACTIVE", "Y", $str_ACTIVE);
?>
</td>
	</tr>
<?
$tabControl->EndCustomField("ACTIVE");

$tabControl->BeginCustomField("ENTITY_TYPE_ID", GetMessage('RATING_RULE_EDIT_FRM_TYPE_ID'), true);
<input type="hidden" name="action" value="copy"><?php 
}
if (!empty($returnUrl)) {
    ?>
<input type="hidden" name="return_url" value="<?php 
    echo htmlspecialcharsbx($returnUrl);
    ?>
"><?php 
}
echo bitrix_sessid_post();
$control->EndEpilogContent();
$control->Begin(array('FORM_ACTION' => 'sale_discount_coupon_edit.php?lang=' . LANGUAGE_ID));
$control->BeginNextFormTab();
if ($multiCoupons) {
    $control->AddEditField($prefix . 'COUNT', Loc::getMessage('BX_SALE_DISCOUNT_COUPON_COUNT'), true, array(), $coupon['COUNT'] > 0 ? $coupon['COUNT'] : '');
    $control->BeginCustomField($prefix . 'PERIOD', Loc::getMessage('BX_SALE_DISCOUNT_COUPON_FIELD_PERIOD'), false);
    ?>
<tr id="tr_COUPON_PERIOD">
	<td width="40%"><?php 
    echo $control->GetCustomLabelHTML();
    ?>
</td>
	<td width="60%"><?php 
    $periodValue = '';
    $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);
	$tabControl->Begin(array(
		"FORM_ACTION" => Helper::getEditUrl($args) // generally, it is not safe to leave action empty
	));
	$tabControl->BeginNextFormTab();
	?>

	<?$requiredFld = ' class="adm-detail-required-field"';?>

	<?$columns = Helper::getColumns('detail');?>
	<?foreach($columns as $code => $field):?>

		<?if($code == 'ID' && !$id) continue; // new node or copied ?>

		<?$value = Helper::makeSafeDisplay($formData[$code], $code);?>

		<?$tabControl->BeginCustomField($code, $field['title']);?>

			<tr<?php 
echo $field['required'] || $code == 'ID' ? $requiredFld : '';
?>
>
				<td width="40%"><?php 
echo $field['title'];
?>
:</td>
				<td width="60%">

					<?if($code == 'ID'):?>

						<?php 
echo $id;
Exemple #25
0
$tabControl->AddViewField("ID", "ID", $company['ID']);
$tabControl->ShowUserFieldsWithReadyData(CompanyTable::getUfId(), $company, false, 'ID');
if ($id > 0) {
    $createdBy = htmlspecialcharsbx($company['SALE_INTERNALS_COMPANY_CREATED_LAST_NAME']) . ' ' . htmlspecialcharsbx($company['SALE_INTERNALS_COMPANY_CREATED_NAME']);
    $modifiedBy = htmlspecialcharsbx($company['SALE_INTERNALS_COMPANY_CREATED_LAST_NAME']) . ' ' . htmlspecialcharsbx($company['SALE_INTERNALS_COMPANY_CREATED_NAME']);
    $tabControl->AddViewField('DATE_CREATE', GetMessage("COMPANY_DATE_CREATE"), $company['DATE_CREATE']);
    $tabControl->AddViewField('DATE_MODIFY', GetMessage("COMPANY_DATE_MODIFY"), $company['DATE_MODIFY']);
    $tabControl->AddViewField('CREATED_BY', GetMessage("COMPANY_CREATED_BY"), $createdBy);
    if (strlen(trim($modifiedBy)) > 0) {
        $tabControl->AddViewField('MODIFIED_BY', GetMessage("COMPANY_MODIFIED_BY"), $modifiedBy);
    }
}
$tabControl->ShowUserFieldsWithReadyData(CompanyTable::getUfId(), $fields, false, 'ID');
$tabControl->AddCheckBoxField("ACTIVE", GetMessage("COMPANY_ACTIVE"), false, 'Y', $fields['ACTIVE'] == 'Y');
$tabControl->AddEditField("NAME", GetMessage("COMPANY_NAME"), true, array(), htmlspecialcharsbx($fields['NAME']));
$tabControl->BeginCustomField('LOCATIONS', GetMessage("COMPANY_LOCATION_ID"));
if ($saleModulePermissions >= 'W') {
    ?>
	<tr>
		<td><strong><?php 
    echo GetMessage("COMPANY_LOCATION_ID");
    ?>
</strong></td>
		<td>
			<?php 
    $APPLICATION->IncludeComponent("bitrix:sale.location.selector." . \Bitrix\Sale\Location\Admin\LocationHelper::getWidgetAppearance(), "", array("ID" => "", "CODE" => $fields['LOCATION_ID'], "INPUT_NAME" => "LOCATION_ID", "PROVIDE_LINK_BY" => "code", "SHOW_ADMIN_CONTROLS" => 'Y', "SELECT_WHEN_SINGLE" => 'N', "FILTER_BY_SITE" => 'Y', "FILTER_SITE_ID" => Application::getInstance()->getContext()->getSite(), "SHOW_DEFAULT_LOCATIONS" => 'N', "SEARCH_BY_PRIMARY" => 'Y'), false);
    ?>
		</td>
	</tr>
<?php 
} else {
        ?>
">
		<?php 
    }
    $tabControl->EndEpilogContent();
    if ($LESSON_ID > 0) {
        $bContentReadOnly = !CLearnAccessMacroses::CanUserEditLesson(array('lesson_id' => $LESSON_ID));
    } else {
        $bContentReadOnly = !$oAccess->IsBaseAccess(CLearnAccess::OP_LESSON_CREATE);
    }
    $tabControl->Begin();
    $tabControl->BeginNextFormTab();
    ?>
<!-- ID -->
<?php 
    $tabControl->BeginCustomField("LESSON_ID", "ID", false);
    ?>
	<?php 
    if ($LESSON_ID > 0) {
        ?>
		<tr>
			<td><?php 
        echo $tabControl->GetCustomLabelHTML();
        ?>
:</td>
			<td><?php 
        echo $str_LESSON_ID;
        ?>
</td>
		</tr>
	<?php 
        $curVal = $userProfile[$ID]["VALUES"][IntVal($arProperties["ID"])];
        $fieldValue = $curVal != "" ? $curVal : $arProperties["DEFAULT_VALUE"];
        if (IntVal($arProperties["PROPS_GROUP_ID"]) != $propertyGroupID) {
            $tabControl->AddSection("SECTION_" . $arProperties["PROPS_GROUP_ID"], $arProperties["GROUP_NAME"]);
        }
        $shure = false;
        if ($arProperties["REQUIED"] == "Y" || $arProperties["IS_PROFILE_NAME"] == "Y" || $arProperties["IS_LOCATION"] == "Y" || $arProperties["IS_LOCATION4TAX"] == "Y" || $arProperties["IS_PAYER"] == "Y" || $arProperties["IS_ZIP"] == "Y") {
            $shure = true;
        }
        /*fields*/
        if ($arProperties["TYPE"] == "TEXT") {
            $tabControl->AddEditField("CODE_" . IntVal($arProperties["ID"]), $arProperties["NAME"] . ":", $shure, array("size" => 30, "maxlength" => 255), $fieldValue);
        } elseif ($arProperties["TYPE"] == "CHECKBOX") {
            $tabControl->AddCheckBoxField("CODE_" . IntVal($arProperties["ID"]), $arProperties["NAME"] . ":", $shure, "Y", $fieldValue);
        } elseif ($arProperties["TYPE"] == "SELECT") {
            $tabControl->BeginCustomField("CODE_" . IntVal($arProperties["ID"]), $arProperties["NAME"], $shure);
            ?>
			<tr<?php 
            $shure ? " class=\"adm-detail-required-field\"" : "";
            ?>
>
				<td width="40%">
					<?php 
            echo htmlspecialcharsbx($arProperties["NAME"]);
            ?>
:
				</td>
				<td width="60%">
					<select name="<?php 
            echo "CODE_" . IntVal($arProperties["ID"]);
            ?>
Exemple #28
0
	CAdminMessage::ShowOldStyleError($strWarning."<br>");

$tabControl->BeginEpilogContent();
echo bitrix_sessid_post();
$tabControl->EndEpilogContent();

$tabControl->Begin(array(
	"FORM_ACTION" => "/bitrix/admin/cat_catalog_edit.php?lang=".LANGUAGE_ID."&IBLOCK_ID=".$IBLOCK_ID,
));

$tabControl->BeginNextFormTab();
$tabControl->AddEditField("NAME", GetMessage("IBLOCK_FIELD_NAME").":", true, array("size" => 50, "maxlength" => 255), $str_NAME);


$tabControl->BeginNextFormTab();
$tabControl->BeginCustomField("SECTION_PROPERTY", GetMessage("CAT_CEDIT_SECTION_PROPERTY_FIELD"));
	?>
		<tr colspan="2"><td align="center">
			<table class="internal" id="table_SECTION_PROPERTY">
			<tr class="heading">
				<td><?echo GetMessage("CAT_CEDIT_PROP_TABLE_NAME");?></td>
				<td><?echo GetMessage("CAT_CEDIT_PROP_TABLE_TYPE");?></td>
				<td><?echo GetMessage("CAT_CEDIT_PROP_TABLE_SMART_FILTER");?></td>
				<td><?echo GetMessage("CAT_CEDIT_PROP_TABLE_ACTION");?></td></tr>
			<?
			if(CIBlockRights::UserHasRightTo($IBLOCK_ID, $IBLOCK_ID, "iblock_edit"))
				$arShadow = $arHidden = array(
					-1 => GetMessage("CAT_CEDIT_PROP_SELECT_CHOOSE"),
					0 => GetMessage("CAT_CEDIT_PROP_SELECT_CREATE"),
				);
			else
	<input type="hidden" name="ID" value="<?php 
    echo $ID;
    ?>
">
	<input type="hidden" name="LESSON_PATH" value="<?php 
    echo htmlspecialcharsbx(urldecode($uriLessonPath));
    ?>
">
<?php 
    $tabControl->EndEpilogContent();
    $tabControl->Begin();
    $tabControl->BeginNextFormTab();
    ?>
<!-- ID -->
<?php 
    $tabControl->BeginCustomField("ID", "ID", false);
    ?>
	<?php 
    if ($ID > 0) {
        ?>
		<tr>
			<td><?php 
        echo $tabControl->GetCustomLabelHTML();
        ?>
:</td>
			<td><?php 
        echo $str_ID;
        ?>
</td>
		</tr>
	<?php 
Exemple #30
0
	$users_cnt = CUser::GetActiveUsersCount();
	$limitUsersCount = intval(COption::GetOptionInt("main", "PARAM_MAX_USERS", 0));
}

$tabControl->Begin(array(
	"FORM_ACTION" => $APPLICATION->GetCurPage()."?ID=".intval($ID)."&lang=".LANG,
	"FORM_ATTRIBUTES" => ($ID <= 0 && $limitUsersCount > 0 && $limitUsersCount <= $users_cnt? 'onsubmit="alert(\''.GetMessage("USER_EDIT_WARNING_MAX").'\')"':''),
));

$tabControl->BeginNextFormTab();

$tabControl->AddViewField("LAST_UPDATE", GetMessage('LAST_UPDATE'), ($ID>0 && $COPY_ID<=0? $str_TIMESTAMP_X:''));
$tabControl->AddViewField("LAST_LOGIN", GetMessage('LAST_LOGIN'), ($ID>0 && $COPY_ID<=0? $str_LAST_LOGIN:''));

if(($ID!='1' || $COPY_ID>0) && ($USER->CanDoOperation('view_all_users') || $USER->CanDoOperation('view_own_profile'))):
	$tabControl->BeginCustomField("ACTIVE", GetMessage('ACTIVE'));
?>
	<tr>
		<td><?echo $tabControl->GetCustomLabelHTML()?></td>
		<td>
		<?if($canSelfEdit):?>
			<input type="checkbox" name="ACTIVE" value="Y"<?if($str_ACTIVE=="Y") echo " checked"?>>
		<?else:?>
			<input type="checkbox" <?if($str_ACTIVE=="Y") echo " checked"?> disabled>
			<input type="hidden" name="ACTIVE" value="<?php 
echo $str_ACTIVE;
?>
">
		<?endif;?>
	</tr>
<?