echo "<td>"; echo print_select_from_sql ('SELECT id_language, name FROM tlanguage', 'id_language', $id_language, '', __("Any"), '', true, false, false, ''); echo "<tr>"; echo "<td class=datos2 valign=top>"; echo "<b>" . __('Data') . "</b>"; echo "<td class=datos2>"; print_textarea ("data", 15, 40, $data, '', false,false); echo "<tr>"; echo "<td class=datos2>"; echo "<b>" . __('Product') . "</b>"; echo "<td class=datos2>"; //combo_kb_products ($id_product); combo_product_types($id_product, 0); echo "<tr>"; echo "<td class=datos>"; echo "<b>" . __('Category') . "</b>"; echo "<td class=datos>"; combo_kb_categories ($id_category); if ($id != -1){ echo "<tr>"; echo "<td class=datos>"; echo "<b>" . __('Attach') . "</b>"; echo "<td class=datos>"; if ($id == -1) echo "<i>".__('Need to create first')."</i>"; else {
echo "<tr>"; echo "<td>"; echo __('Language'); echo "<td>"; echo print_select_from_sql('SELECT id_language, name FROM tlanguage', 'id_language', $id_language, '', __("Any"), '', true, false, false, ''); echo "<tr>"; echo "<td class=datos2 valign=top>"; echo __('Data'); echo "<td class=datos2>"; print_textarea("data", 15, 40, $data, '', false, false); echo "<tr>"; echo "<td class=datos2>"; echo __('Product'); echo "<td class=datos2>"; //combo_kb_products ($id_product); combo_product_types($product, 0); echo "<tr>"; echo "<td class=datos>"; echo __('Category'); echo "<td class=datos>"; combo_kb_categories($id_category); if ($id != -1) { echo "<tr>"; echo "<td class=datos>"; echo __('Attach'); echo "<td class=datos>"; if ($id == -1) { echo "<i>" . __('Need to create first') . "</i>"; } else { echo "<input type=file size=60 value='userfile' name='userfile'>"; echo "<tr>";
echo "<h2>" . __('KB Data management') . "</h2><h4>" . __('Defined data') . "</h4>"; // Search parameter $free_text = get_parameter ("free_text", ""); $product = get_parameter ("product", 0); $category = get_parameter ("category", 0); $id_language = get_parameter ("id_language", ''); // Search filters echo "<div class='divform'>"; echo '<form method="post" action="?sec=kb&sec2=operation/kb/browse">'; echo '<table width="100%" class="search-table">'; echo "<tr>"; echo "<td>"; echo "<label>" . __('Product types') . "</label>"; combo_product_types($product, 1); echo "<tr>"; echo "<td>"; echo "<label>" . __('Categories') . "</label>"; combo_kb_categories ($category, 1); echo "<tr>"; echo "<td>"; echo "<label>" . __('Search') . "</label>"; echo "<input type=text name='free_text' size=25 value='$free_text'>"; echo "<tr>"; echo "<td>"; echo "<label>" . __('Language') . "</label>"; echo print_select_from_sql ('SELECT id_language, name FROM tlanguage', 'id_language', $id_language, '', __("Any"), '', true, false, false, ''); echo "<tr>";