<?php require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php"; CModule::IncludeModule('useraddress'); $id = $_POST['id']; $user_id = $_POST['user_id']; $module_id = "useraddress"; $maxCountAddress = COption::GetOptionString($module_id, 'zCount', 6); $res = CUserAddress::removeUserAddress($id, $user_id); $dbUserAddress = CUserAddress::getAddressUser($user_id); ?> <table class="table table-responsive table-striped"> <thead> <tr> <th>Город</th> <th>Улица</th> <th>Дом</th> <th>Корпус</th> <th>Квартира</th> <th></th> </tr> </thead> <tbody> <? foreach($dbUserAddress as $address) { ?> <tr <?if($address['DEFAULT_ADDRESS'] == 'Y'):?>class="default"<?endif;?>> <td><?php echo $address['CITY']; ?>