getInfo($id); if ($info_tag == "") header("location:index.php"); $smarty->assign("info_tag", $info_tag); } else header("location:index.php"); $w_list['id_tags'] = $id; $list_items = $item_tags_cls->selectSQL($w_list); if ($list_items != "") { foreach ($list_items as $val) { $where_list[] = array ('and' =>'OR', 'is' => '=', 'field'=>'id', 'val' => $val['id_item']); } } $selhard=1; include("_list.php"); $smarty->display("tags_list.tpl"); ?>