$param .= '&search_montant_ht=' . $search_montant_ht; } if ($search_author) { $param .= '&search_author=' . $search_author; } print_barre_liste($langs->trans('ListOfAskPriceSupplier') . ' ' . ($socid ? '- ' . $soc->name : ''), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $nbtotalofrecords); // Lignes des champs de filtre print '<form method="GET" action="' . $_SERVER["PHP_SELF"] . '">'; $i = 0; print '<table class="liste" width="100%">'; $moreforfilter = ''; // If the user can view prospects other than his' if ($user->rights->societe->client->voir || $socid) { $langs->load("commercial"); $moreforfilter .= $langs->trans('ThirdPartiesOfSaleRepresentative') . ': '; $moreforfilter .= $formother->select_salesrepresentatives($search_sale, 'search_sale', $user); $moreforfilter .= ' '; } // If the user can view prospects other than his' if ($user->rights->societe->client->voir || $socid) { $moreforfilter .= $langs->trans('LinkedToSpecificUsers') . ': '; $moreforfilter .= $form->select_dolusers($search_user, 'search_user', 1); } if (!empty($moreforfilter)) { print '<tr class="liste_titre">'; print '<td class="liste_titre" colspan="10">'; print $moreforfilter; print '</td></tr>'; } print '<tr class="liste_titre">'; print_liste_field_titre($langs->trans('Ref'), $_SERVER["PHP_SELF"], 'p.ref', '', $param, '', $sortfield, $sortorder);
} if ($search_town) { $param .= '&search_town=' . $search_town; } print_barre_liste($langs->trans('ListOfProposals') . ' ' . ($socid ? '- ' . $soc->name : ''), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $nbtotalofrecords, 'title_commercial.png'); // Lignes des champs de filtre print '<form method="GET" action="' . $_SERVER["PHP_SELF"] . '">'; $i = 0; print '<table class="liste" width="100%">'; $moreforfilter = ''; // If the user can view prospects other than his' if ($user->rights->societe->client->voir || $socid) { $langs->load("commercial"); $moreforfilter .= '<div class="divsearchfield">'; $moreforfilter .= $langs->trans('ThirdPartiesOfSaleRepresentative') . ': '; $moreforfilter .= $formother->select_salesrepresentatives($search_sale, 'search_sale', $user, 0, 1, 'maxwidth300'); $moreforfilter .= '</div>'; } // If the user can view prospects other than his' if ($user->rights->societe->client->voir || $socid) { $moreforfilter .= '<div class="divsearchfield">'; $moreforfilter .= $langs->trans('LinkedToSpecificUsers') . ': '; $moreforfilter .= $form->select_dolusers($search_user, 'search_user', 1, '', 0, '', '', 0, 0, 0, '', 0, '', 'maxwidth300'); $moreforfilter .= '</div>'; } // If the user can view prospects other than his' if ($conf->categorie->enabled && $user->rights->produit->lire) { include_once DOL_DOCUMENT_ROOT . '/categories/class/categorie.class.php'; $moreforfilter .= '<div class="divsearchfield">'; $moreforfilter .= $langs->trans('IncludingProductWithTag') . ': '; $cate_arbo = $form->select_all_categories(Categorie::TYPE_PRODUCT, null, 'parent', null, null, 1);
print_liste_field_titre($langs->trans("LeadCommercial"), $_SERVEUR['PHP_SELF'], "usr.lastname", "", $option, '', $sortfield, $sortorder); print_liste_field_titre($langs->trans("LeadStatus"), $_SERVEUR['PHP_SELF'], "leadsta.label", "", $option, '', $sortfield, $sortorder); print_liste_field_titre($langs->trans("LeadType"), $_SERVEUR['PHP_SELF'], "leadtype.label", "", $option, '', $sortfield, $sortorder); 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")) . '">';