echo GetMessage("IB_SEG_PRICE_TYPE");
    ?>
:</td>
						<td><?php 
    echo GetMessage("IB_SEG_PRICE");
    ?>
:</td>
						<td><?php 
    echo GetMessage("IB_SEG_CURRENCY");
    ?>
:</td>
					</tr>
					<tbody>
					<?php 
    $intCount = 0;
    echo __AddRangeRow($intCount, IB_SEG_ROW_PREFIX);
    ?>
					</tbody>
				</table>
				<span class="adm-btn adm-btn-add" style="margin-top: 12px;" onclick="obPricesTable.addRow();"><?php 
    echo GetMessage("IB_SEG_PRICE_ROW_ADD");
    ?>
</span>
				<input type="hidden" value="1" id="generator_price_table_max_id">
			</td>
		</tr>
	</table>
	</div></div>
</td></tr>
<tr>
	<td colspan="2" class="adm-detail-content-cell" style="padding-bottom: 0;">
echo htmlspecialcharsex(GetMessage('BT_CAT_DISC_SAVE_EDIT_RANGE_SUMM'));
?>
</td><td align="center"><?php 
echo htmlspecialcharsex(GetMessage('BT_CAT_DISC_SAVE_EDIT_RANGE_DISCOUNT'));
?>
</td></tr><?php 
$intCount = 0;
foreach ($arRanges as &$arOneRange) {
    echo __AddRangeRow($intCount, RANGE_ROW_PREFIX, $arOneRange);
    $intCount++;
}
if (isset($arOneRange)) {
    unset($arOneRange);
}
for ($i = 0; $i < RANGE_EMPTY_ROW_SIZE; $i++) {
    echo __AddRangeRow($intCount, RANGE_ROW_PREFIX, $arDefRange);
    $intCount++;
}
?>
</tbody></table>
		<div style="width: 100%; text-align: left; margin-top: 10px;">
			<input onclick="obRanges.addRow();" type="button" value="<?php 
echo GetMessage('BT_CAT_DISC_SAVE_RANGE_MORE');
?>
" title="<?php 
echo GetMessage('BT_CAT_DISC_SAVE_RANGE_MORE_DESCR');
?>
">
		</div>
		<input type="hidden" name="RANGES_COUNT" id="RANGES_COUNT" value="<?php 
echo intval($intCount);