function showprintForm() { $rows['objects'] = objects_getList(isset($_SESSION['RIEL']) ? $_SESSION['RIEL'] : array(), 'room'); objects_formatList($rows['objects']); $rows['fields'] = objects_getFields(isset($_SESSION['RIEL']['print_filter']['room_type']) ? $_SESSION['RIEL']['print_filter']['room_type'] : 0, isset($_SESSION['RIEL']['print_filter']['o.region']) ? $_SESSION['RIEL']['print_filter']['o.region'] : 0); $rows['align'] = objects_getAlign(); $rows['title'] = 'Квартиры'; if (isset($_SESSION['RIEL']['print_filter'])) { $rows['filter'] = objects_getFilter($_SESSION['RIEL']['print_filter']); } else { $rows['filter'] = array(); } return $this->Parse($rows, '../objects_print.tmpl'); }
function showprintForm() { $rows['objects'] = objects_getList(isset($_SESSION['RIEL']) ? $_SESSION['RIEL'] : array(), 'commerce'); objects_formatList($rows['objects']); $rows['fields'] = objects_getFields('commerce', isset($_SESSION['RIEL']['print_filter']['o.region']) ? $_SESSION['RIEL']['print_filter']['o.region'] : 0); $rows['align'] = objects_getAlign(); $rows['title'] = 'Коммерческая недвижимость'; if (isset($_SESSION['RIEL']['print_filter'])) { $rows['filter'] = objects_getFilter($_SESSION['RIEL']['print_filter']); } else { $rows['filter'] = array(); } return $this->Parse($rows, '../objects_print.tmpl'); }