當前位置: 首頁>>代碼示例>>PHP>>正文


PHP FormOther::select_salesrepresentatives方法代碼示例

本文整理匯總了PHP中FormOther::select_salesrepresentatives方法的典型用法代碼示例。如果您正苦於以下問題:PHP FormOther::select_salesrepresentatives方法的具體用法?PHP FormOther::select_salesrepresentatives怎麽用?PHP FormOther::select_salesrepresentatives使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在FormOther的用法示例。


在下文中一共展示了FormOther::select_salesrepresentatives方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

     $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 .= ' &nbsp; &nbsp; &nbsp; ';
 }
 // 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);
開發者ID:TAASA,項目名稱:Dolibarr-ERP-3.8.1,代碼行數:31,代碼來源:list.php

示例2:

 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")) . '">';
開發者ID:ndrosis,項目名稱:lead,代碼行數:31,代碼來源:list.php


注:本文中的FormOther::select_salesrepresentatives方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。