if (!empty($_GET['help']['title'])) { $search_title = $_GET['help']['title']; $conditions = "word like '%" . $search_title . "%'"; } } if ($do == "del" && !empty($id)) { $deleted = false; $deleted = $dict->del($id); } if ($do == "edit") { if (!empty($id)) { $item = $dict->read("*", $id); setvar("item", $item); } if (!empty($item['dicttype_id'])) { setvar("dicttypeOptions", $dicttype_option = $dicttype->getTypeOptions($item['dicttype_id'])); } else { setvar("dicttypeOptions", $dicttype_option = $dicttype->getTypeOptions()); } $tpl_file = "dict.edit"; template($tpl_file); exit; } } if (isset($_POST['save']) && !empty($_POST['data']['dict'])) { $_POST['data']['dict']['word'] = pb_lang_merge($_POST['data']['multi']); $vals = $_POST['data']['dict']; if (isset($_POST['id'])) { $id = intval($_POST['id']); } if (!empty($id)) {