本文整理汇总了PHP中print_barre_liste函数的典型用法代码示例。如果您正苦于以下问题:PHP print_barre_liste函数的具体用法?PHP print_barre_liste怎么用?PHP print_barre_liste使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了print_barre_liste函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: print_barre_liste
if ($search_user > 0) {
$sql .= " AND ec.fk_c_type_contact = tc.rowid AND tc.element='contrat' AND tc.source='internal' AND ec.element_id = c.rowid AND ec.fk_socpeople = " . $search_user;
}
$sql .= " GROUP BY c.rowid, c.ref, c.datec, c.date_contrat, c.statut, c.ref_supplier, s.nom, s.rowid";
$totalnboflines = 0;
$result = $db->query($sql);
if ($result) {
$totalnboflines = $db->num_rows($result);
}
$sql .= $db->order($sortfield, $sortorder);
$sql .= $db->plimit($conf->liste_limit + 1, $offset);
$resql = $db->query($sql);
if ($resql) {
$num = $db->num_rows($resql);
$i = 0;
print_barre_liste($langs->trans("ListOfContracts"), $page, $_SERVER["PHP_SELF"], '&search_contract=' . $search_contract . '&search_name=' . $search_name, $sortfield, $sortorder, '', $num, $totalnboflines, 'title_commercial.png');
print '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">';
if ($optioncss != '') {
print '<input type="hidden" name="optioncss" value="' . $optioncss . '">';
}
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="list">';
print '<input type="hidden" name="sortfield" value="' . $sortfield . '">';
print '<input type="hidden" name="sortorder" value="' . $sortorder . '">';
if ($sall) {
foreach ($fieldstosearchall as $key => $val) {
$fieldstosearchall[$key] = $langs->trans($val);
}
print $langs->trans("FilterOnInto", $all) . join(', ', $fieldstosearchall);
}
// If the user can view prospects other than his'
示例2: ajax_object_onoff
} else {
print $product_static->LibStatut($objp->tosell, 5, 0);
}
print '</td>';
}
// Status (to buy)
if (!empty($arrayfields['p.tobuy']['checked'])) {
print '<td align="center" nowrap="nowrap">';
if (!empty($conf->use_javascript_ajax) && $user->rights->produit->creer && !empty($conf->global->MAIN_DIRECT_STATUS_UPDATE)) {
print ajax_object_onoff($product_static, 'status_buy', 'tobuy', 'ProductStatusOnBuy', 'ProductStatusNotOnBuy');
} else {
print $product_static->LibStatut($objp->tobuy, 5, 1);
}
print '</td>';
}
// Action
print '<td> </td>';
print "</tr>\n";
$i++;
}
print_barre_liste('', $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $nbtotalofrecords, '', '', '', 'paginationatbottom');
$db->free($resql);
print "</table>";
print '</form>';
}
} else {
dol_print_error($db);
}
}
llxFooter();
$db->close();
示例3: print_barre_liste
/*
* Mode Liste
*
*/
$sql = "SELECT p.rowid, p.ref, p.amount, p.statut";
$sql .= ", p.datec";
$sql .= " FROM " . MAIN_DB_PREFIX . "prelevement_bons as p";
$sql .= " WHERE p.entity = " . $conf->entity;
$sql .= " ORDER BY {$sortfield} {$sortorder} ";
$sql .= $db->plimit($conf->liste_limit + 1, $offset);
$result = $db->query($sql);
if ($result) {
$num = $db->num_rows($result);
$i = 0;
$urladd = "&statut=" . $statut;
print_barre_liste($langs->trans("WithdrawalsReceipts"), $page, "bons.php", $urladd, $sortfield, $sortorder, '', $num);
print "\n<!-- debut table -->\n";
print '<table class="liste" width="100%">';
print '<tr class="liste_titre">';
print_liste_field_titre($langs->trans("WithdrawalsReceipts"), "bons.php", "p.ref", '', '', 'class="liste_titre"');
print_liste_field_titre($langs->trans("Date"), "bons.php", "p.datec", "", "", 'class="liste_titre" align="center"');
print '<td class="liste_titre" align="right">' . $langs->trans("Amount") . '</td>';
print '</tr>';
print '<tr class="liste_titre">';
print '<form action="bons.php" method="GET">';
print '<td class="liste_titre"><input type="text" class="flat" name="search_ligne" value="' . $search_line . '" size="10"></td>';
print '<td class="liste_titre"> </td>';
print '<td class="liste_titre" align="right"><input type="image" class="liste_titre" src="' . img_picto($langs->trans("Search"), 'search.png', '', '', 1) . '" name="button_search" value="' . dol_escape_htmltag($langs->trans("Search")) . '" title="' . dol_escape_htmltag($langs->trans("Search")) . '"></td>';
print '</form>';
print '</tr>';
$var = True;
示例4: dol_print_error
// Unlock new sessions
if ($action == 'confirm_unlock' && $user->admin) {
if (dolibarr_del_const($db, 'MAIN_ONLY_LOGIN_ALLOWED', -1) < 0) {
dol_print_error($db);
}
}
/*
* View
*/
llxHeader();
$form = new Form($db);
$userstatic = new User($db);
$usefilter = 0;
$listofsessions = listOfSessions();
$num = count($listofsessions);
print_barre_liste($langs->trans("Sessions"), $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, '', $num, 0, 'setup');
$savehandler = ini_get("session.save_handler");
$savepath = ini_get("session.save_path");
$openbasedir = ini_get("open_basedir");
$phparray = phpinfo_array();
$suhosin = empty($phparray['suhosin']["suhosin.session.encrypt"]["local"]) ? '' : $phparray['suhosin']["suhosin.session.encrypt"]["local"];
print '<b>' . $langs->trans("SessionSaveHandler") . '</b>: ' . $savehandler . '<br>';
print '<b>' . $langs->trans("SessionSavePath") . '</b>: ' . $savepath . '<br>';
if ($openbasedir) {
print '<b>' . $langs->trans("OpenBaseDir") . '</b>: ' . $openbasedir . '<br>';
}
if ($suhosin) {
print '<b>' . $langs->trans("SuhosinSessionEncrypt") . '</b>: ' . $suhosin . '<br>';
}
print '<br>';
if ($action == 'purge') {
示例5: print_barre_liste
if ($search_user > 0) {
$param .= '&search_user=' . $search_user;
}
if ($search_sale > 0) {
$param .= '&search_sale=' . $search_sale;
}
if ($search_montant_ht) {
$param .= '&search_montant_ht=' . $search_montant_ht;
}
if ($search_author) {
$param .= '&search_author=' . $search_author;
}
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) {
示例6: print_barre_liste
}
$title = $langs->trans("ListOfServices");
if ($mode == "0") {
$title = $langs->trans("ListOfInactiveServices");
}
// Must use == "0"
if ($mode == "4" && $filter != "expired") {
$title = $langs->trans("ListOfRunningServices");
}
if ($mode == "4" && $filter == "expired") {
$title = $langs->trans("ListOfExpiredServices");
}
if ($mode == "5") {
$title = $langs->trans("ListOfClosedServices");
}
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $totalnboflines, 'title_commercial.png');
print '<form method="POST" action="' . $_SERVER["PHP_SELF"] . '">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<table class="liste" width="100%">';
print '<tr class="liste_titre">';
print_liste_field_titre($langs->trans("Contract"), $_SERVER["PHP_SELF"], "c.rowid", $param, "", "", $sortfield, $sortorder);
print_liste_field_titre($langs->trans("Service"), $_SERVER["PHP_SELF"], "p.description", $param, "", "", $sortfield, $sortorder);
print_liste_field_titre($langs->trans("Company"), $_SERVER["PHP_SELF"], "s.nom", $param, "", "", $sortfield, $sortorder);
// Date debut
if ($mode == "0") {
print_liste_field_titre($langs->trans("DateStartPlannedShort"), $_SERVER["PHP_SELF"], "cd.date_ouverture_prevue", $param, '', ' align="center"', $sortfield, $sortorder);
}
if ($mode == "" || $mode > 0) {
print_liste_field_titre($langs->trans("DateStartRealShort"), $_SERVER["PHP_SELF"], "cd.date_ouverture", $param, '', ' align="center"', $sortfield, $sortorder);
}
// Date fin
示例7: print_barre_liste
if ($search_desc) {
$usefilter++;
$sql .= " AND e.description like '%" . $search_desc . "%'";
}
if ($search_ua) {
$usefilter++;
$sql .= " AND e.user_agent like '%" . $search_ua . "%'";
}
$sql .= $db->order($sortfield, $sortorder);
$sql .= $db->plimit($conf->liste_limit + 1, $offset);
//print $sql;
$result = $db->query($sql);
if ($result) {
$num = $db->num_rows($result);
$i = 0;
print_barre_liste($langs->trans("ListOfSecurityEvents"), $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, '', $num, 0, 'setup');
if ($_GET["action"] == 'purge') {
$formquestion = array();
$ret = $form->form_confirm($_SERVER["PHP_SELF"] . '?noparam=noparam', $langs->trans('PurgeAuditEvents'), $langs->trans('ConfirmPurgeAuditEvents'), 'confirm_purge', $formquestion, 'no', 1);
if ($ret == 'html') {
print '<br>';
}
}
print '<table class="liste" width="100%">';
print '<tr class="liste_titre">';
print_liste_field_titre($langs->trans("Date"), $_SERVER["PHP_SELF"], "e.dateevent", "", "", 'align="left"', $sortfield, $sortorder);
print_liste_field_titre($langs->trans("Code"), $_SERVER["PHP_SELF"], "e.type", "", "", 'align="left"', $sortfield, $sortorder);
print_liste_field_titre($langs->trans("IP"), $_SERVER["PHP_SELF"], "e.ip", "", "", 'align="left"', $sortfield, $sortorder);
print_liste_field_titre($langs->trans("User"), $_SERVER["PHP_SELF"], "u.login", "", "", 'align="left"', $sortfield, $sortorder);
print_liste_field_titre($langs->trans("Description"), $_SERVER["PHP_SELF"], "e.description", "", "", 'align="left"', $sortfield, $sortorder);
print_liste_field_titre('', '', '');
示例8: dol_syslog
$sql .= " AND d.buy_price_ht <> 0";
}
if ($agentid > 0) {
$sql .= " GROUP BY s.rowid, s.nom, s.code_client, s.client, u.rowid, u.login, u.lastname, u.firstname";
} else {
$sql .= " GROUP BY u.rowid, u.login, u.lastname, u.firstname";
}
$sql .= $db->order($sortfield, $sortorder);
// TODO: calculate total to display then restore pagination
//$sql.= $db->plimit($conf->liste_limit +1, $offset);
dol_syslog('margin::agentMargins.php sql=' . $sql, LOG_DEBUG);
$result = $db->query($sql);
if ($result) {
$num = $db->num_rows($result);
print '<br>';
print_barre_liste($langs->trans("MarginDetails"), $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, '', 0, 0, '');
$i = 0;
print "<table class=\"noborder\" width=\"100%\">";
print '<tr class="liste_titre">';
if ($agentid > 0) {
print_liste_field_titre($langs->trans("Customer"), $_SERVER["PHP_SELF"], "s.nom", "", "&agentid=" . $agentid, '', $sortfield, $sortorder);
} else {
print_liste_field_titre($langs->trans("SalesRepresentative"), $_SERVER["PHP_SELF"], "u.lastname", "", "&agentid=" . $agentid, '', $sortfield, $sortorder);
}
print_liste_field_titre($langs->trans("SellingPrice"), $_SERVER["PHP_SELF"], "selling_price", "", "&agentid=" . $agentid, 'align="right"', $sortfield, $sortorder);
print_liste_field_titre($langs->trans("BuyingPrice"), $_SERVER["PHP_SELF"], "buying_price", "", "&agentid=" . $agentid, 'align="right"', $sortfield, $sortorder);
print_liste_field_titre($langs->trans("Margin"), $_SERVER["PHP_SELF"], "marge", "", "&agentid=" . $agentid, 'align="right"', $sortfield, $sortorder);
if (!empty($conf->global->DISPLAY_MARGIN_RATES)) {
print_liste_field_titre($langs->trans("MarginRate"), $_SERVER["PHP_SELF"], "", "", "&agentid=" . $agentid, 'align="right"', $sortfield, $sortorder);
}
if (!empty($conf->global->DISPLAY_MARK_RATES)) {
示例9: print_barre_liste
print '<tr><td width="25%" valign="top">' . $langs->trans("Ref") . '</td>';
print '<td colspan="2">';
print $form->showrefnav($fuser, 'id', '', $user->rights->user->user->lire || $user->admin);
print '</td>';
print '</tr>';
// LastName
print '<tr><td width="25%" valign="top">' . $langs->trans("LastName") . '</td>';
print '<td colspan="2">' . $fuser->lastname . '</td>';
print "</tr>\n";
// FirstName
print '<tr><td width="25%" valign="top">' . $langs->trans("FirstName") . '</td>';
print '<td colspan="2">' . $fuser->firstname . '</td>';
print "</tr>\n";
print '</table><br>';
} else {
print_barre_liste($langs->trans("ListeCP"), $page, $_SERVER["PHP_SELF"], '', $sortfield, $sortorder, "", $num);
dol_fiche_head('');
}
$nbaquis = $holiday->getCPforUser($user_id);
$nbdeduced = $holiday->getConfCP('nbHolidayDeducted');
$nb_holiday = $nbaquis / $nbdeduced;
print $langs->trans('SoldeCPUser', round($nb_holiday, 2)) . ($nbdeduced != 1 ? ' (' . $nbaquis . ' / ' . $nbdeduced . ')' : '');
if ($id > 0) {
dol_fiche_end();
print '</br>';
} else {
dol_fiche_end();
}
print '<form method="get" action="' . $_SERVER["PHP_SELF"] . '">' . "\n";
print '<table class="noborder" width="100%;">';
print "<tr class=\"liste_titre\">";
示例10: print_barre_liste
$limit = $conf->liste_limit;
$offset = $limit * $page;
$sql = "SELECT c.rowid as reference, loc.nom as nom, l.adresse as adresse , l.nom as local, loc.statut as statut, c.montant_tot as total, c.encours as encours , c.preavis as preavis";
$sql .= " FROM " . MAIN_DB_PREFIX . "immo_locataire as loc";
$sql .= " , " . MAIN_DB_PREFIX . "immo_contrat as c";
$sql .= " , " . MAIN_DB_PREFIX . "immo_local as l";
$sql .= " WHERE preavis = 1 AND loc.rowid = c.locataire_id and l.rowid = c.local_id ";
if ($user->id != 1) {
$sql .= " AND l.proprietaire_id=" . $user->id;
}
$sql .= " ORDER BY loc.nom ASC " . $db->plimit($limit + 1, $offset);
$result = $db->query($sql);
if ($result) {
$num_lignes = $db->num_rows($result);
$i = 0;
print_barre_liste("contrat", $page, "contrat/contrat.php", "", $sortfield, $sortorder, '', $num_lignes);
print '<a class="butAction" href="contrat/fiche_contrat.php?action=create">nouveau contrat</a>';
print '<table class="noborder" width="100%">';
print '<tr></tr>';
print '<tr class="liste_titre">';
print '<td>Nom</td>';
print '<td>adresse</td>';
print '<td>appartement</td>';
print '<td>loyer total</td>';
print '<td>encours loyer</td>';
print '<td> </td>';
print "</tr>\n";
$var = True;
while ($i < min($num_lignes, $limit)) {
$objp = $db->fetch_object($result);
$var = !$var;
示例11: urlencode
if ($socid) {
$urlparam .= "&socid=" . $socid;
}
if ($search_ref) {
$urlparam .= "&search_ref=" . urlencode($search_ref);
}
if ($search_company) {
$urlparam .= "&search_company=" . urlencode($search_company);
}
if ($search_desc) {
$urlparam .= "&search_desc=" . urlencode($search_desc);
}
if ($search_status != '' && $search_status > -1) {
$urlparam .= "&search_status=" . urlencode($search_status);
}
print_barre_liste($langs->trans("ListOfInterventions"), $page, $_SERVER['PHP_SELF'], $urlparam, $sortfield, $sortorder, '', $num);
print '<form method="POST" action="' . $_SERVER["PHP_SELF"] . '">' . "\n";
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print_liste_field_titre($langs->trans("Ref"), $_SERVER["PHP_SELF"], "f.ref", "", $urlparam, 'width="15%"', $sortfield, $sortorder);
print_liste_field_titre($langs->trans("Company"), $_SERVER["PHP_SELF"], "s.nom", "", $urlparam, '', $sortfield, $sortorder);
print_liste_field_titre($langs->trans("Description"), $_SERVER["PHP_SELF"], "f.description", "", $urlparam, '', $sortfield, $sortorder);
if (empty($conf->global->FICHINTER_DISABLE_DETAILS)) {
print_liste_field_titre('', $_SERVER["PHP_SELF"], '');
print_liste_field_titre($langs->trans("Date"), $_SERVER["PHP_SELF"], "fd.date", "", $urlparam, 'align="center"', $sortfield, $sortorder);
print_liste_field_titre($langs->trans("Duration"), $_SERVER["PHP_SELF"], "fd.duree", "", $urlparam, 'align="right"', $sortfield, $sortorder);
}
print_liste_field_titre($langs->trans("Status"), $_SERVER["PHP_SELF"], "f.fk_statut", "", $urlparam, 'align="right"', $sortfield, $sortorder);
print_liste_field_titre('', $_SERVER["PHP_SELF"], '');
print "</tr>\n";
print '<tr class="liste_titre">';
示例12:
$sql.= " WHERE c.rowid = cd.fk_contrat";
$sql.= " AND c.fk_soc = s.rowid";
$sql.= " AND s.entity = ".$conf->entity;
$sql.= " AND cd.fk_product =".$product->id;
if (!$user->rights->societe->client->voir && !$socid) $sql.= " AND s.rowid = sc.fk_soc AND sc.fk_user = " .$user->id;
if ($socid) $sql.= " AND s.rowid = ".$socid;
$sql.= " GROUP BY c.rowid, c.date_contrat, c.statut, s.nom, s.rowid, s.code_client";
$sql.= " ORDER BY $sortfield $sortorder";
$sql.= $db->plimit($conf->liste_limit +1, $offset);
$result = $db->query($sql);
if ($result)
{
$num = $db->num_rows($result);
print_barre_liste($langs->trans("Contrats"),$page,$_SERVER["PHP_SELF"],"&id=$product->id",$sortfield,$sortorder,'',$num,0,'');
$i = 0;
print "<table class=\"noborder\" width=\"100%\">";
print '<tr class="liste_titre">';
print_liste_field_titre($langs->trans("Ref"),$_SERVER["PHP_SELF"],"c.rowid","","&id=".$_GET["id"],'',$sortfield,$sortorder);
print_liste_field_titre($langs->trans("Company"),$_SERVER["PHP_SELF"],"s.nom","","&id=".$_GET["id"],'',$sortfield,$sortorder);
print_liste_field_titre($langs->trans("CustomerCode"),$_SERVER["PHP_SELF"],"s.code_client","","&id=".$_GET["id"],'',$sortfield,$sortorder);
print_liste_field_titre($langs->trans("Date"),$_SERVER["PHP_SELF"],"c.date_contrat","","&id=".$_GET["id"],'align="center"',$sortfield,$sortorder);
//print_liste_field_titre($langs->trans("AmountHT"),$_SERVER["PHP_SELF"],"c.amount","","&id=".$_GET["id"],'align="right"',$sortfield,$sortorder);
print '<td class="liste_titre" width="16">'.$staticcontratligne->LibStatut(0,3).'</td>';
print '<td class="liste_titre" width="16">'.$staticcontratligne->LibStatut(4,3).'</td>';
print '<td class="liste_titre" width="16">'.$staticcontratligne->LibStatut(5,3).'</td>';
print "</tr>\n";
示例13: urlencode
if ($search_ref) {
$urlparam .= "&search_ref=" . urlencode($search_ref);
}
if ($search_company) {
$urlparam .= "&search_company=" . urlencode($search_company);
}
if ($search_desc) {
$urlparam .= "&search_desc=" . urlencode($search_desc);
}
if ($search_status != '' && $search_status > -1) {
$urlparam .= "&search_status=" . urlencode($search_status);
}
if ($optioncss != '') {
$urlparam .= '&optioncss=' . $optioncss;
}
print_barre_liste($langs->trans("ListOfInterventions"), $page, $_SERVER['PHP_SELF'], $urlparam, $sortfield, $sortorder, '', $num, $totalnboflines, 'title_commercial.png');
print '<form method="POST" action="' . $_SERVER["PHP_SELF"] . '">' . "\n";
if ($optioncss != '') {
print '<input type="hidden" name="optioncss" value="' . $optioncss . '">';
}
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="list">';
print '<input type="hidden" name="sortfield" value="' . $sortfield . '">';
print '<input type="hidden" name="sortorder" value="' . $sortorder . '">';
if ($sall) {
foreach ($fieldstosearchall as $key => $val) {
$fieldstosearchall[$key] = $langs->trans($val);
}
print $langs->trans("FilterOnInto", $sall) . join(', ', $fieldstosearchall);
}
print '<table class="noborder" width="100%">';
示例14: Expedition
$sql .= " AND sc.fk_user = " . $user->id;
}
if ($socid) {
$sql .= " AND e.fk_soc = " . $socid;
}
if (GETPOST('sf_ref', 'alpha')) {
$sql .= " AND e.ref like '%" . $db->escape(GETPOST('sf_ref', 'alpha')) . "%'";
}
$sql .= $db->order($sortfield, $sortorder);
$sql .= $db->plimit($limit + 1, $offset);
$resql = $db->query($sql);
if ($resql) {
$num = $db->num_rows($resql);
$expedition = new Expedition($db);
$param = "&socid={$socid}";
print_barre_liste($langs->trans('ListOfSendings'), $page, "liste.php", $param, $sortfield, $sortorder, '', $num);
$i = 0;
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print_liste_field_titre($langs->trans("Ref"), "liste.php", "e.ref", "", $param, '', $sortfield, $sortorder);
print_liste_field_titre($langs->trans("Company"), "liste.php", "s.nom", "", $param, 'align="left"', $sortfield, $sortorder);
print_liste_field_titre($langs->trans("DateDeliveryPlanned"), "liste.php", "e.date_delivery", "", $param, 'align="center"', $sortfield, $sortorder);
print_liste_field_titre($langs->trans("DateReceived"), "liste.php", "e.date_expedition", "", $param, 'align="center"', $sortfield, $sortorder);
print_liste_field_titre($langs->trans("Status"), "liste.php", "e.fk_statut", "", $param, 'align="right"', $sortfield, $sortorder);
print "</tr>\n";
$var = True;
while ($i < min($num, $limit)) {
$objp = $db->fetch_object($resql);
$var = !$var;
print "<tr {$bc[$var]}>";
print "<td>";
示例15: print_barre_liste
if ($search_refsupp) {
$param .= "&search_refsupp=" . $search_refsupp;
}
if ($socid) {
$param .= "&socid=" . $socid;
}
if ($search_status >= 0) {
$param .= "&search_status=" . $search_status;
}
if ($billed != '') {
$param .= "billed=" . $billed;
}
if ($optioncss != '') {
$param .= '&optioncss=' . $optioncss;
}
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $nbtotalofrecords);
print '<form action="' . $_SERVER["PHP_SELF"] . '" method="POST">';
if ($optioncss != '') {
print '<input type="hidden" name="optioncss" value="' . $optioncss . '">';
}
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="list">';
print '<input type="hidden" name="sortfield" value="' . $sortfield . '">';
print '<input type="hidden" name="sortorder" value="' . $sortorder . '">';
print '<input type="hidden" name="viewstatut" value="' . $viewstatut . '">';
if ($sall) {
foreach ($fieldstosearchall as $key => $val) {
$fieldstosearchall[$key] = $langs->trans($val);
}
print $langs->trans("FilterOnInto", $sall) . join(', ', $fieldstosearchall);
}