<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die; } include $_SERVER["DOCUMENT_ROOT"] . $templateFolder . "/props_format.php"; $style = is_array($arResult["ORDER_PROP"]["RELATED"]) && count($arResult["ORDER_PROP"]["RELATED"]) ? "" : "display:none"; ?> <div class="bx_section" style="<?php echo $style; ?> "> <h2> <?php echo GetMessage("SOA_TEMPL_RELATED_PROPS"); ?> </h2> <br /> <?php echo PrintPropsForm($arResult["ORDER_PROP"]["RELATED"], $arParams["TEMPLATE_LOCATION"]); ?> </div>
<input type="radio" name="PROFILE_ID" id="ID_PROFILE_ID_0" value="0"<?if ($arResult["PROFILE_ID"]=="0") echo " checked";?> onClick="SetContact(true)"> </td> <td width="100%"><b><label for="ID_PROFILE_ID_0"><?echo GetMessage("SALE_NEW_PROFILE")?></label></b><br /></td> </tr> </table> <? } else { ?><input type="hidden" name="PROFILE_ID" value="0"><? } ?> <br /><br /> <div id="sof-prof-div"> <? PrintPropsForm($arResult["PRINT_PROPS_FORM"]["USER_PROPS_Y"], GetMessage("SALE_NEW_PROFILE_TITLE"), $arParams); ?> </div> <? if ($arResult["USER_PROFILES_TO_FILL"]=="Y") { ?> <script language="JavaScript"> SetContact(<?echo ($arResult["USER_PROFILES_TO_FILL_VALUE"]=="Y" || $arResult["PROFILE_ID"] == "0")?"true":"false";?>); </script> <? } ?> </td> </tr> <tr>
<div style="display:none;"> <? $APPLICATION->IncludeComponent( "bitrix:sale.ajax.locations", ".default", array( "AJAX_CALL" => "N", "COUNTRY_INPUT_NAME" => "COUNTRY_tmp", "REGION_INPUT_NAME" => "REGION_tmp", "CITY_INPUT_NAME" => "tmp", "CITY_OUT_LOCATION" => "Y", "LOCATION_VALUE" => "", "ONCITYCHANGE" => "", ), null, array('HIDE_ICONS' => 'Y') ); ?> </div> <? */ ?> <table class="sale_order_full_table_no_border"> <?php PrintPropsForm($arResult["ORDER_PROP"]["USER_PROPS_N"], $arParams["TEMPLATE_LOCATION"]); PrintPropsForm($arResult["ORDER_PROP"]["USER_PROPS_Y"], $arParams["TEMPLATE_LOCATION"]); ?> </table> </td></tr></table> <br /><br />
?> </div> <? if (array_key_exists('ERROR', $arResult) && is_array($arResult['ERROR']) && !empty($arResult['ERROR'])) { $bHideProps = false; } ?> <input type="hidden" name="showProps" id="showProps" value="<?php echo $_POST["showProps"] == 'Y' ? 'Y' : 'N'; ?> " /> <div class="card-content" id="sale_order_props"> <? PrintPropsForm($arResult["ORDER_PROP"]["USER_PROPS_N"], $arParams["TEMPLATE_LOCATION"], $arParams["CONTACT_PROPERTIES_".$arResult["DEFAULT_PERSON_TYPE_ID"]]); PrintPropsForm($arResult["ORDER_PROP"]["USER_PROPS_Y"], $arParams["TEMPLATE_LOCATION"], $arParams["CONTACT_PROPERTIES_".$arResult["DEFAULT_PERSON_TYPE_ID"]]); ?> </div> </div> <??> <div style="display:none"> <?/* PrintPropsForm($arResult["ORDER_PROP"]["USER_PROPS_N"], $arParams["TEMPLATE_LOCATION"], $arParams["DELIVERY_PROPERTIES_".$arResult["DEFAULT_PERSON_TYPE_ID"]]); PrintPropsForm($arResult["ORDER_PROP"]["USER_PROPS_Y"], $arParams["TEMPLATE_LOCATION"], $arParams["DELIVERY_PROPERTIES_".$arResult["DEFAULT_PERSON_TYPE_ID"]]); */?> </div> <??> <script type="text/javascript"> function fGetBuyerProps(el) {
?> </option> <? foreach($arResult["ORDER_PROP"]["USER_PROFILES"] as $arUserProfiles) { ?> <option value="<?php echo $arUserProfiles["ID"]; ?> "<?if ($arUserProfiles["CHECKED"]=="Y") echo " selected";?>><?php echo $arUserProfiles["NAME"]; ?> </option> <? } ?> </select> </div> <script language="javascript"> function SetContact(profileId){ document.getElementById("profile_change").value = "Y"; submitForm(); } </script> <?}?> <? PrintPropsForm($arResult["ORDER_PROP"]["USER_PROPS_N"]); PrintPropsForm($arResult["ORDER_PROP"]["USER_PROPS_Y"]); ?>
} include $_SERVER["DOCUMENT_ROOT"] . $templateFolder . "/props_format.php"; include $_SERVER["DOCUMENT_ROOT"] . $templateFolder . "/person_type.php"; ?> <p class="blockTitle">Местоположение</p> <p class="blockText">Выберите страну и город. В зависимости от выбора Вашего местоположения Вам будут предложены способы доставки и самовывоза.</p> <br> <?php //блок с местоположением if ($arResult["ORDER_PROP"]["USER_PROPS_Y"][6]) { $location[] = $arResult["ORDER_PROP"]["USER_PROPS_Y"][6]; } else { $location[] = $arResult["ORDER_PROP"]["USER_PROPS_Y"][18]; } PrintPropsForm($location, $arParams["TEMPLATE_LOCATION"]); ?> <?php if ($arParams["DELIVERY_TO_PAYSYSTEM"] == "p2d") { include $_SERVER["DOCUMENT_ROOT"] . $templateFolder . "/paysystem.php"; include $_SERVER["DOCUMENT_ROOT"] . $templateFolder . "/delivery.php"; } else { include $_SERVER["DOCUMENT_ROOT"] . $templateFolder . "/delivery.php"; include $_SERVER["DOCUMENT_ROOT"] . $templateFolder . "/paysystem.php"; } include $_SERVER["DOCUMENT_ROOT"] . $templateFolder . "/props.php"; include $_SERVER["DOCUMENT_ROOT"] . $templateFolder . "/related_props.php"; include $_SERVER["DOCUMENT_ROOT"] . $templateFolder . "/summary.php"; if (strlen($arResult["PREPAY_ADIT_FIELDS"]) > 0) { echo $arResult["PREPAY_ADIT_FIELDS"];