예제 #1
0
        ?>
</a>
				</td>
			</tr>
		<?php 
    } else {
        ?>
			<tr>
				<td width="40%">
					<?php 
        echo Loc::getMessage("SALE_DSE_FORM_GROUP_ID");
        ?>
					:</td>
				<td width="60%">
					<?php 
        echo \Bitrix\Sale\Delivery\Helper::getGroupChooseControl($fields["PARENT_ID"], "PARENT_ID");
        ?>
 &nbsp;
					<a
						href="javascript:void(0);"
						style="border-bottom: 1px dashed; cursor: pointer; text-decoration: none;"
						onclick="BX.Sale.Delivery.createGroup();"
					>
						<?php 
        echo Loc::getMessage("SALE_DSE_ADD");
        ?>
					</a>
					<input type="hidden" name="GROUP_NAME" id="GROUP_NAME" value="">
				</td>
			</tr>
		<?php 
예제 #2
0
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
$lang = isset($_REQUEST['lang']) ? trim($_REQUEST['lang']) : "ru";
\Bitrix\Main\Context::getCurrent()->setLanguage($lang);
Loc::loadMessages(__FILE__);
$arResult = array("ERROR" => "");
if (!\Bitrix\Main\Loader::includeModule('sale')) {
    $arResult["ERROR"] = "Error! Can't include module \"Sale\"";
}
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/sale/lib/delivery/inputs.php";
$saleModulePermissions = $APPLICATION->GetGroupRight("sale");
if (strlen($arResult["ERROR"]) <= 0 && $saleModulePermissions >= "W" && check_bitrix_sessid()) {
    $action = isset($_REQUEST['action']) ? trim($_REQUEST['action']) : '';
    switch ($action) {
        case "get_group_dialog_content":
            $selectedGroupId = isset($_REQUEST['selectedGroupId']) ? trim($_REQUEST['selectedGroupId']) : '';
            die("<table><tr><td>" . \Bitrix\Sale\Delivery\Helper::getGroupChooseControl($selectedGroupId, "DELIVERY_GROUP[]", ' size="10" style="width: 300px;"') . "</td></tr></table>");
            break;
        case "get_restriction_params_html":
            $className = isset($_REQUEST['className']) ? trim($_REQUEST['className']) : '';
            $params = isset($_REQUEST['params']) ? $_REQUEST['params'] : array();
            $deliveryId = isset($_REQUEST['deliveryId']) ? intval($_REQUEST['deliveryId']) : 0;
            $sort = isset($_REQUEST['sort']) ? intval($_REQUEST['sort']) : 100;
            if (!$className) {
                throw new \Bitrix\Main\ArgumentNullException("className");
            }
            $restriction = Services\Manager::getRestrictionObject($className);
            $paramsStructure = $restriction->getParamsStructure($deliveryId);
            $params = $restriction->prepareParamsValues($params, $deliveryId);
            $paramsField = "<table width='100%'>";
            foreach ($paramsStructure as $name => $param) {
                $paramsField .= "<tr>" . "<td valign=\"top\" style=\"padding-right:20px;\">" . (strlen($param["LABEL"]) > 0 ? $param["LABEL"] . ": " : "") . "</td>" . "<td>" . \Bitrix\Sale\Internals\Input\Manager::getEditHtml("RESTRICTION[" . $name . "]", $param, isset($params[$name]) ? $params[$name] : false) . "</td>" . "</tr>";
예제 #3
0
        echo htmlspecialcharsbx($className::getClassTitle());
        ?>
</option>
					<?php 
    }
    ?>
				<?php 
}
?>
			</select>
		</td>
	</tr>
	<tr>
		<td><?php 
echo Loc::getMessage("SALE_SDL_FILTER_GROUP");
?>
:</td>
		<td>
			<?php 
echo \Bitrix\Sale\Delivery\Helper::getGroupChooseControl($filter_group, "filter_group", "", true);
?>
		</td>
	</tr>
	<?php 
$oFilter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPageParam(), "form" => "find_form"));
$oFilter->End();
?>
</form>
<?php 
$lAdmin->DisplayList();
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";