/** * 取专题栏目的路径 */ public function get_special_column_path() { $column_id = $this->input['column_id']; if (!$column_id) { $this->ReportError('ID为空'); } if (!class_exists('special')) { include ROOT_DIR . 'lib/class/special.class.php'; } $special = new special(); $ret['selected_ids'] = $column_id ? $column_id : ''; $ret['selected_items'] = $special->get_special_column_byid($ret['selected_ids']); if (is_array($ret['selected_items'])) { foreach ($ret['selected_items'] as $index => $item) { $hg_print_selected[$index] = array(); $current =& $hg_print_selected[$index]; $current['showName'] = $item['name']; $current['id'] = $item['id']; $current['name'] = $item['name']; $selected_names[] = $current['name']; } } $ret['selected_items'] = $hg_print_selected; $ret['selected_names'] = isset($selected_names) ? implode(',', $selected_names) : ''; echo json_encode($ret); exit; }