print '</td>'; print '</tr>'; print '<tr>'; print '<td class="fieldrequired" width="20%">'; print $langs->trans('LeadRefInt'); print '</td>'; print '<td>'; print '<input type="text" name="ref_int" size="10" value="' . $ref_int . '"/>'; print '</td>'; print '</tr>'; print '<tr>'; print '<td class="fieldrequired" width="20%">'; print $langs->trans('LeadStatus'); print '</td>'; print '<td>'; print $formlead->select_lead_status($leadstatus, 'leadstatus', 0); print '</td>'; print '</tr>'; print '<tr>'; print '<td class="fieldrequired" width="20%">'; print $langs->trans('LeadType'); print '</td>'; print '<td>'; print $formlead->select_lead_type($leadtype, 'leadtype', 0); print '</td>'; print '</tr>'; print '<tr>'; if (!empty($conf->global->LEAD_FORCE_USE_THIRDPARTY)) { print '<td class="fieldrequired">'; } else { print '<td>';
print_liste_field_titre($langs->trans("LeadAmountGuess"), $_SERVEUR['PHP_SELF'], "t.amount_prosp", "", $option, 'align="right"', $sortfield, $sortorder); print_liste_field_titre($langs->trans("LeadRealAmount"), $_SERVEUR['PHP_SELF'], "", "", $option, 'align="right"', $sortfield, $sortorder); print_liste_field_titre($langs->trans("LeadDeadLine"), $_SERVEUR['PHP_SELF'], "t.date_closure", "", $option, 'align="right"', $sortfield, $sortorder); print '<td align="center"></td>'; print "</tr>\n"; print '<tr class="liste_titre">'; print '<td><input type="text" class="flat" name="search_ref" value="' . $search_ref . '" size="5"></td>'; print '<td><input type="text" class="flat" name="search_ref_int" value="' . $search_ref_int . '" size="5"></td>'; print '<td class="liste_titre">'; print '<input type="text" class="flat" name="search_soc" value="' . $search_soc . '" size="20">'; print '</td>'; print '<td class="liste_titre">'; print $formother->select_salesrepresentatives($search_commercial, 'search_commercial', $user); print '</td>'; print '<td class="liste_titre">'; print $formlead->select_lead_status($search_status, 'search_status', 1); print '</td>'; print '<td class="liste_titre">'; print $formlead->select_lead_type($search_type, 'search_type', 1); print '</td>'; // amount guess print '<td id="totalamountguess" align="right"></td>'; // amount real print '<td id="totalamountreal" align="right"></td>'; // dt closure print '<td></td>'; // edit button print '<td class="liste_titre" align="right"><input class="liste_titre" type="image" src="' . DOL_URL_ROOT . '/theme/' . $conf->theme . '/img/search.png" value="' . dol_escape_htmltag($langs->trans("Search")) . '" title="' . dol_escape_htmltag($langs->trans("Search")) . '">'; print ' '; print '<input type="image" class="liste_titre" name="button_removefilter" src="' . DOL_URL_ROOT . '/theme/' . $conf->theme . '/img/searchclear.png" value="' . dol_escape_htmltag($langs->trans("RemoveFilter")) . '" title="' . dol_escape_htmltag($langs->trans("RemoveFilter")) . '">'; print '</td>';