Код |
---|
<? $str_DETAIL_TEXT=htmlspecialchars($arTemp[DETAIL_TEXT]); echo $arTemp[DETAIL_TEXT]; echo "</br>"; echo $str_DETAIL_TEXT; echo "</br>"; echo "</br>"; ?> <textarea name="detailtext" id="DETAIL_TEXT" wrap="virtual" style="width: 486px; height:250px;"><?echo $arTemp[DETAIL_TEXT]?></textarea> |
Код |
---|
if ($_POST[work]==3) { $el = new CIBlockElement; $arLoadProductArray = Array ( "DETAIL_TEXT" => $arToProcessing[detailtext], "DETAIL_TEXT_TYPE" => 'text' ); $PRODUCT_ID = $arToProcessing[hotel]; if($res = $el->Update($PRODUCT_ID, $arLoadProductArray)) { } else { echo "Error: ".$el->LAST_ERROR; } LocalRedirect("index.php?divid=".$arToProcessing[divid]); } |
Код |
---|
<? $arSelect = Array(); $arFilter = Array("IBLOCK_ID"=>3,"ID"=>$hotelID); $res = CIBlockElement::GetList(Array("SORT"=>"ASC"), $arFilter, false, false, $arSelect); while($ob = $res->GetNextElement()) { $arTemp = $ob->GetFields(); } $str_DETAIL_TEXT=$arTemp[DETAIL_TEXT]; ?> <fo rm action="editdetail.php" method="post"> <textarea name="detailtext" id="DETAIL_TEXT" class="maxlength" style="width: 484px; height:255px;"> <?echo $str_DETAIL_TEXT;?> </textarea> |
Код |
---|
<? echo $str_DETAIL_TEXT; ?> |